![]() ![]() This is a packed format, where each pixel is encoded as four consecutive bytes, arranged in the sequence shown in the following illustration. #8 bit color converter codeA FOURCC code is a 32-bit unsigned integer that is created by concatenating four ASCII characters.Ī single 4:4:4 format is recommended, with the FOURCC code AYUV. In a planar format, the Y, U, and V components are stored as three separate planes.Įach of the YUV formats described in this article has an assigned FOURCC code. Pixels are organized into groups of macropixels, whose layout depends on the format. In a packed format, the Y, U, and V components are stored in a single array. YUV formats are divided into packed formats and planar formats. The alignment can be larger than 32 bits, however, depending on the needs of the hardware. ![]() The surface must always be DWORD aligned that is, individual lines within the surface are guaranteed to originate on a 32-bit (DWORD) boundary. The alignment of a surface is at the discretion of the graphics display driver. Given a surface origin at the top left corner, the stride is always positive. The stride of a surface, sometimes called the pitch, is the width of the surface in bytes. For the YUV formats described in this article, the origin (0,0) is always the top left corner of the surface. These fall into several categories:įirst, you should be aware of the following concepts in order to understand what follows: This section describes the 8-bit YUV formats that are recommended for video rendering. For this reason, the MPEG-2 scheme is preferred in Windows, and should be considered the default interpretation of 4:2:0 formats. One of these is used in MPEG-2 video, and the other is used in MPEG-1 and in ITU-T Recommendations H.261 and H.263.Ĭompared with the MPEG-1 scheme, it is simpler to convert between the MPEG-2 scheme and the sampling grids defined for 4:2:2 and 4:4:4 formats. There are two common variants of 4:2:0 sampling. The dominant form of 4:2:2 sampling is defined in ITU-R Recommendation BT.601. Luma samples are represented by a cross, and chroma samples are represented by a circle. The following diagrams shows how chroma is sampled for each of the downsampling rates. 4:1:1 sampling is less common than other formats, and is not discussed in detail in this article. Every scan line contains four Y samples for each U and V sample. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |