class ImageFormat2
Defined at line 3348 of file fidling/gen/sdk/fidl/fuchsia.sysmem/fuchsia.sysmem/cpp/fidl/fuchsia.sysmem/cpp/natural_types.h
Describes how an image is represented.
This type is deprecated for new code, but is still used by some camera code.
Public Methods
void ImageFormat2 (::fuchsia_sysmem::PixelFormat pixel_format, uint32_t coded_width, uint32_t coded_height, uint32_t bytes_per_row, uint32_t display_width, uint32_t display_height, uint32_t layers, ::fuchsia_sysmem::ColorSpace color_space, bool has_pixel_aspect_ratio, uint32_t pixel_aspect_ratio_width, uint32_t pixel_aspect_ratio_height)
void ImageFormat2 ()
Default constructs a |ImageFormat2| only if all of its members are default constructible.
Defined at line 3358 of file fidling/gen/sdk/fidl/fuchsia.sysmem/fuchsia.sysmem/cpp/fidl/fuchsia.sysmem/cpp/natural_types.h
void ImageFormat2 (ImageFormat2 && )
Defined at line 3361 of file fidling/gen/sdk/fidl/fuchsia.sysmem/fuchsia.sysmem/cpp/fidl/fuchsia.sysmem/cpp/natural_types.h
void ImageFormat2 (Storage_ storage)
void ImageFormat2 (const ImageFormat2 & other)
ImageFormat2 & operator= (const ImageFormat2 & other)
bool operator== (const ImageFormat2 & other)
bool operator!= (const ImageFormat2 & other)
const ::fuchsia_sysmem::PixelFormat & pixel_format ()
Pixel format.
::fuchsia_sysmem::PixelFormat & pixel_format ()
Pixel format.
ImageFormat2 & pixel_format (::fuchsia_sysmem::PixelFormat value)
Pixel format.
uint32_t coded_width ()
Row width in pixels that exist in the buffer. Must be >= display_width.
Can be
<
the width implied by stride_bytes.
uint32_t & coded_width ()
Row width in pixels that exist in the buffer. Must be >= display_width.
Can be
<
the width implied by stride_bytes.
ImageFormat2 & coded_width (uint32_t value)
Row width in pixels that exist in the buffer. Must be >= display_width.
Can be
<
the width implied by stride_bytes.
uint32_t coded_height ()
Number of rows. Must be >= display_height.
uint32_t & coded_height ()
Number of rows. Must be >= display_height.
ImageFormat2 & coded_height (uint32_t value)
Number of rows. Must be >= display_height.
uint32_t bytes_per_row ()
Stride in bytes of plane 0. Planes beyond plane 0 (if any, depending on
pixel_format) have a known fixed relationship with plane 0's stride.
For Intel tiled textures, the stride is for the linearized version of the texture.
uint32_t & bytes_per_row ()
Stride in bytes of plane 0. Planes beyond plane 0 (if any, depending on
pixel_format) have a known fixed relationship with plane 0's stride.
For Intel tiled textures, the stride is for the linearized version of the texture.
ImageFormat2 & bytes_per_row (uint32_t value)
Stride in bytes of plane 0. Planes beyond plane 0 (if any, depending on
pixel_format) have a known fixed relationship with plane 0's stride.
For Intel tiled textures, the stride is for the linearized version of the texture.
uint32_t display_width ()
Row width in pixels that are to be displayed. This can be
<
=
coded_width. Any cropping occurs on the right of the image (not left).
uint32_t & display_width ()
Row width in pixels that are to be displayed. This can be
<
=
coded_width. Any cropping occurs on the right of the image (not left).
ImageFormat2 & display_width (uint32_t value)
Row width in pixels that are to be displayed. This can be
<
=
coded_width. Any cropping occurs on the right of the image (not left).
uint32_t display_height ()
Number of rows to be displayed. This can be
<
= coded_height, with any
cropping on the bottom (not top).
uint32_t & display_height ()
Number of rows to be displayed. This can be
<
= coded_height, with any
cropping on the bottom (not top).
ImageFormat2 & display_height (uint32_t value)
Number of rows to be displayed. This can be
<
= coded_height, with any
cropping on the bottom (not top).
uint32_t layers ()
Number of layers within a multi-layered image.
uint32_t & layers ()
Number of layers within a multi-layered image.
ImageFormat2 & layers (uint32_t value)
Number of layers within a multi-layered image.
const ::fuchsia_sysmem::ColorSpace & color_space ()
Color space.
::fuchsia_sysmem::ColorSpace & color_space ()
Color space.
ImageFormat2 & color_space (::fuchsia_sysmem::ColorSpace value)
Color space.
bool has_pixel_aspect_ratio ()
The pixel_aspect_ratio_width : pixel_aspect_ratio_height is the
pixel aspect ratio (AKA sample aspect ratio aka SAR) for the luma
(AKA Y) samples. A pixel_aspect_ratio of 1:1 mean square pixels. A
pixel_aspect_ratio of 2:1 would mean pixels that are displayed twice
as wide as they are tall. Codec implementation should ensure these
two values are relatively prime by reducing the fraction (dividing
both by GCF) if necessary.
When has_pixel_aspect_ratio == false, the pixel_aspect_ratio is unknown.
A default of 1:1 can be appropriate in some cases, but as always, a
consumer may determine the actual pixel_aspect_ratio by OOB means.
bool & has_pixel_aspect_ratio ()
The pixel_aspect_ratio_width : pixel_aspect_ratio_height is the
pixel aspect ratio (AKA sample aspect ratio aka SAR) for the luma
(AKA Y) samples. A pixel_aspect_ratio of 1:1 mean square pixels. A
pixel_aspect_ratio of 2:1 would mean pixels that are displayed twice
as wide as they are tall. Codec implementation should ensure these
two values are relatively prime by reducing the fraction (dividing
both by GCF) if necessary.
When has_pixel_aspect_ratio == false, the pixel_aspect_ratio is unknown.
A default of 1:1 can be appropriate in some cases, but as always, a
consumer may determine the actual pixel_aspect_ratio by OOB means.
ImageFormat2 & has_pixel_aspect_ratio (bool value)
The pixel_aspect_ratio_width : pixel_aspect_ratio_height is the
pixel aspect ratio (AKA sample aspect ratio aka SAR) for the luma
(AKA Y) samples. A pixel_aspect_ratio of 1:1 mean square pixels. A
pixel_aspect_ratio of 2:1 would mean pixels that are displayed twice
as wide as they are tall. Codec implementation should ensure these
two values are relatively prime by reducing the fraction (dividing
both by GCF) if necessary.
When has_pixel_aspect_ratio == false, the pixel_aspect_ratio is unknown.
A default of 1:1 can be appropriate in some cases, but as always, a
consumer may determine the actual pixel_aspect_ratio by OOB means.
ImageFormat2 & operator= (ImageFormat2 && )
Defined at line 3362 of file fidling/gen/sdk/fidl/fuchsia.sysmem/fuchsia.sysmem/cpp/fidl/fuchsia.sysmem/cpp/natural_types.h
uint32_t pixel_aspect_ratio_width ()
uint32_t & pixel_aspect_ratio_width ()
ImageFormat2 & pixel_aspect_ratio_width (uint32_t value)
Setter for pixel_aspect_ratio_width.
uint32_t pixel_aspect_ratio_height ()
uint32_t & pixel_aspect_ratio_height ()
ImageFormat2 & pixel_aspect_ratio_height (uint32_t value)
Setter for pixel_aspect_ratio_height.
void ImageFormat2 (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalStructCodingTraits