|
| ImageContentBlockSpec (const ImageContentBlockSpec &)=default |
|
| ImageContentBlockSpec (const ImageContentBlockSpec &imageSpec, double keyFrameTimestamp, uint32_t keyFrameIndex) |
|
| ImageContentBlockSpec (ImageFormat imageFormat, PixelFormat pixelFormat, uint32_t width=0, uint32_t height=0, uint32_t stride=0, uint32_t stride2=0, string codecName={}, uint8_t codecQuality=kQualityUndefined, double keyFrameTimestamp=kInvalidTimestamp, uint32_t keyFrameIndex=0) |
| Specify-everything constructor.
|
|
| ImageContentBlockSpec (ImageFormat imageFormat, uint32_t width=0, uint32_t height=0) |
| Image formats with encoding (png, jpeg, etc).
|
|
| ImageContentBlockSpec (PixelFormat pixelFormat, uint32_t width, uint32_t height, uint32_t stride=0, uint32_t stride2=0) |
| Raw pixels image formats.
|
|
| ImageContentBlockSpec (string codecName, uint8_t codecQuality, PixelFormat pixelFormat, uint32_t width, uint32_t height, uint32_t stride=0, uint32_t stride2=0) |
| Video image with codec.
|
|
| ImageContentBlockSpec (const string &formatStr) |
| Constructor used for factory construction.
|
|
void | set (ContentParser &parser) |
| When constructing from a string.
|
|
void | clear () |
| Clear/reset object to default values.
|
|
ImageContentBlockSpec | core () const |
| Return base of format (no codec quality nor key frame info)
|
|
string | asString () const |
|
size_t | getBlockSize () const |
|
size_t | getRawImageSize () const |
|
ImageContentBlockSpec & | operator= (const ImageContentBlockSpec &)=default |
| Default copy assignment.
|
|
bool | operator== (const ImageContentBlockSpec &rhs) const |
| Compare two image block spec strictly, field by field.
|
|
bool | operator!= (const ImageContentBlockSpec &rhs) const |
|
ImageFormat | getImageFormat () const |
| Get image format.
|
|
string | getImageFormatAsString () const |
| Get Image format as string.
|
|
PixelFormat | getPixelFormat () const |
| Get Pixel format.
|
|
string | getPixelFormatAsString () const |
| Get pixel format presented as a readable string, from which it can be reconstructed.
|
|
uint32_t | getWidth () const |
| Get image width, or 0 if unknown/unspecified.
|
|
uint32_t | getHeight () const |
| Get image height, or 0 if unknown/unspecified.
|
|
uint32_t | getStride () const |
| Get image stride (number of bytes between rows) for the first plane.
|
|
uint32_t | getRawStride () const |
|
uint32_t | getRawStride2 () const |
|
uint32_t | getDefaultStride () const |
| Get default stride for plane 0 when stride isn't specified (minimum stride value)
|
|
uint32_t | getDefaultStride2 () const |
| Get default stride for planes N > 0, when stride2 isn't specified (minimum stride2 value)
|
|
uint32_t | getPlaneCount () const |
| Get the number of planes for this pixel format.
|
|
uint32_t | getPlaneStride (uint32_t planeIndex) const |
|
uint32_t | getPlaneHeight (uint32_t planeIndex) const |
|
uint8_t | getChannelCountPerPixel () const |
|
size_t | getBytesPerPixel () const |
|
const string & | getCodecName () const |
|
uint8_t | getCodecQuality () const |
|
double | getKeyFrameTimestamp () const |
| Get timestamp of the key frame of the group of frames this video frame belongs to.
|
|
uint32_t | getKeyFrameIndex () const |
|
bool | sanityCheckStrides () const |
|
|
static bool | isQualityValid (uint8_t quality) |
| Validate that a quality value is valid.
|
|
static uint8_t | getChannelCountPerPixel (PixelFormat pixel) |
| Get the number channels of a pixel. See getChannelCountPerPixel()
|
|
static size_t | getBytesPerPixel (PixelFormat pixel) |
| Get the size of a pixel, in bytes. See getBytesPerPixel()
|
|
static string | getPixelFormatAsString (PixelFormat pixelFormat) |
| Get pixel format presented as a readable string, from which it can be reconstructed.
|
|
static uint32_t | getPlaneCount (PixelFormat pixelFormat) |
| Get the number of planes for this pixel format.
|
|
Specification of an image content block.