pjmedia_format_id class abstract

This enumeration uniquely identify audio sample and/or video pixel formats. Some well known formats are listed here. The format ids are built by combining four character codes, similar to FOURCC. The format id is extensible, as application may define and use format ids not declared on this enumeration.

This format id along with other information will fully describe the media in #pjmedia_format structure.

Constructors

pjmedia_format_id()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

PJMEDIA_FORMAT_ALAW → const int
Alias for PJMEDIA_FORMAT_PCMA
PJMEDIA_FORMAT_AMR → const int
AMR narrowband
PJMEDIA_FORMAT_AYUV → const int
This is a packed 4:4:4/32bpp format, where each pixel is encoded as four consecutive bytes, arranged in the following sequence: V0, U0, Y0, A0. Source: http://msdn.microsoft.com/en-us/library/dd206750%28v=VS.85%29.aspx#ayuv
PJMEDIA_FORMAT_BGRA → const int
PJMEDIA_FORMAT_DIB → const int
Device Independent Bitmap, alias for 24 bit RGB
PJMEDIA_FORMAT_G729 → const int
ITU G.729
PJMEDIA_FORMAT_GBRP → const int
This is planar 4:4:4/24bpp RGB format, the data can be treated as three planes of color components, where the first plane contains only the G samples, the second plane contains only the B samples, and the third plane contains only the R samples.
PJMEDIA_FORMAT_H261 → const int
Encoded video formats
PJMEDIA_FORMAT_H263 → const int
PJMEDIA_FORMAT_H263P → const int
PJMEDIA_FORMAT_H264 → const int
PJMEDIA_FORMAT_I420 → const int
This is planar 4:2:0/12bpp YUV format, the data can be treated as three planes of color components, where the first plane contains only the Y samples, the second plane contains only the U (Cb) samples, and the third plane contains only the V (Cr) sample.
PJMEDIA_FORMAT_I420JPEG → const int
The JPEG version of planar 4:2:0/12bpp YUV format.
PJMEDIA_FORMAT_I422 → const int
This is planar 4:2:2/16bpp YUV format, the data can be treated as three planes of color components, where the first plane contains only the Y samples, the second plane contains only the U (Cb) samples, and the third plane contains only the V (Cr) sample.
PJMEDIA_FORMAT_I422JPEG → const int
The JPEG version of planar 4:2:2/16bpp YUV format.
PJMEDIA_FORMAT_ILBC → const int
Internet Low Bit-Rate Codec (ILBC)
PJMEDIA_FORMAT_INVALID → const int
PJMEDIA_FORMAT_IYUV → const int
IYUV is alias for I420.
PJMEDIA_FORMAT_L16 → const int
16bit signed integer linear PCM audio
PJMEDIA_FORMAT_MJPEG → const int
PJMEDIA_FORMAT_MPEG1VIDEO → const int
PJMEDIA_FORMAT_MPEG2VIDEO → const int
PJMEDIA_FORMAT_MPEG4 → const int
PJMEDIA_FORMAT_NV12 → const int
This is planar 4:2:0/12bpp YUV format, the data can be treated as two planes of color components, where the first plane contains only the Y samples, the second plane contains interleaved U (Cb) - V (Cr) samples.
PJMEDIA_FORMAT_NV21 → const int
This is planar 4:2:0/12bpp YUV format, the data can be treated as two planes of color components, where the first plane contains only the Y samples, the second plane contains interleaved V (Cr) - U (Cb) samples.
PJMEDIA_FORMAT_PCM → const int
Alias for PJMEDIA_FORMAT_L16
PJMEDIA_FORMAT_PCMA → const int
G.711 ALAW
PJMEDIA_FORMAT_PCMU → const int
G.711 ULAW
PJMEDIA_FORMAT_RGB24 → const int
Video formats. / /** 24bit RGB
PJMEDIA_FORMAT_RGB32 → const int
Alias for PJMEDIA_FORMAT_RGBA
PJMEDIA_FORMAT_RGBA → const int
32bit RGB with alpha channel
PJMEDIA_FORMAT_ULAW → const int
Aliaw for PJMEDIA_FORMAT_PCMU
PJMEDIA_FORMAT_UYVY → const int
This format is the same as the YUY2 format except the byte order is reversed -- that is, the chroma and luma bytes are flipped. If the image is addressed as an array of two little-endian WORD values, the first WORD contains U in the LSBs and Y0 in the MSBs, and the second WORD contains V in the LSBs and Y1 in the MSBs. Source: http://msdn.microsoft.com/en-us/library/dd206750%28v=VS.85%29.aspx#uyvy
PJMEDIA_FORMAT_VP8 → const int
PJMEDIA_FORMAT_VP9 → const int
PJMEDIA_FORMAT_YUY2 → const int
This is packed 4:2:2/16bpp YUV format, the data can be treated as an array of unsigned char values, where the first byte contains the first Y sample, the second byte contains the first U (Cb) sample, the third byte contains the second Y sample, and the fourth byte contains the first V (Cr) sample, and so forth. Source: http://msdn.microsoft.com/en-us/library/dd206750%28v=VS.85%29.aspx#yuy2
PJMEDIA_FORMAT_YV12 → const int
This is planar 4:2:0/12bpp YUV format, similar to I420 or IYUV but the U (Cb) and V (Cr) planes order is switched, i.e: the second plane contains the V (Cb) samples and the third plane contains the V (Cr) samples.
PJMEDIA_FORMAT_YVYU → const int
This format is the same as the YUY2 and UYVY format except the byte order is reversed -- that is, the chroma and luma bytes are flipped. If the image is addressed as an array of two little-endian WORD values, the first WORD contains Y0 in the LSBs and V in the MSBs, and the second WORD contains Y1 in the LSBs and U in the MSBs.