Yuv codec windows
For this reason, the MPEG-2 scheme is preferred in Windows, and should be considered the default interpretation of formats. This section describes the 8-bit YUV formats that are recommended for video rendering. These fall into several categories:. This is a packed format, where each pixel is encoded as four consecutive bytes, arranged in the sequence shown in the following illustration. Both are packed formats, where each macropixel is two pixels encoded as four consecutive bytes.
This results in horizontal downsampling of the chroma by a factor of two. In YUY2 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, as shown in the following diagram.
It is expected to be an intermediate-term requirement for DirectX VA accelerators supporting video. This format is the same as the YUY2 format except the byte order is reversed—that is, the chroma and luma bytes are flipped Figure 4. Both of these YUV formats are planar formats.
The chroma channels are subsampled by a factor of two in both the horizontal and vertical dimensions. All of the Y samples appear first in memory as an array of unsigned char values. This is followed by all of the V Cr samples, and then all of the U Cb samples. The V and U planes have the same stride as the Y plane, resulting in unused areas of memory, as shown in Figure 5. The U and V planes must start on memory boundaries that are a multiple of 16 lines.
Figure 5 shows the origin of U and V for a x video frame. The starting address of the U and V planes are calculated as follows:. This format is identical to IMC1, except the U and V planes are swapped, as shown in the following diagram. In all of these formats, the chroma channels are subsampled by a factor of two in both the horizontal and vertical dimensions. In other words, each full-stride line in the chroma area starts with a line of V samples, followed by a line of U samples that begins at the next half-stride boundary Figure 7.
This layout makes more efficient use of address space than IMC1. It cuts the chroma address space in half, and thus the total address space by 25 percent. The following image illustrates this process. This array is followed immediately by all of the V Cr samples. The stride of the V plane is half the stride of the Y plane; and the V plane contains half as many lines as the Y plane.
Record and capture Quality from the start If you care about stunning visuals, crippled, lossy source is a no-go! Editing and post-production 4k editing like a breeze Stop wasting your time waiting on the timeline. Generation loss is a thing of the past… Professionals and hobbyists alike use MagicYUV for the most demanding video editing tasks. The limits are only your imagination! A practical codec you can use Today! Works out-of-the-box with popular video editing software, through Video For Windows or QuickTime interface.
Unmatched speed in both encoding and decoding. Packed with features. Mathematically lossless Unlike visually lossless codecs, MagicYUV is mathematically lossless, meaning that the decompressed output is bit-by-bit identical to the original input. Compressed formats MagicYUV offers a variety of compressed formats to choose from with built-in high quality and fast conversion for ease of use. If performed correctly, however, the loss is not perceptually significant.
The formulas listed previously for YUV are not the exact conversions used in digital video. These ranges assume 8 bits of precision for the Y'CbCr components. Start with RGB values in the range [ In other words, pure black is 0 and pure white is 1.
Importantly, these are non-linear gamma corrected RGB values. Calculate the intermediate chroma difference values B - Y' and R - Y'. This color space is used in analog component video. These last scaling factors produce the range of values listed in the previous table. The steps are listed separately here to show how Y'CbCr derives from the original YUV equations given at the beginning of this article.
As this table shows, Cb and Cr do not correspond to intuitive ideas about color. For example, pure white and pure black both contain neutral levels of Cb and Cr The highest and lowest values for Cb are blue and yellow, respectively. For Cr, the highest and lowest values are red and cyan.
If the format is packed, the first character is 'Y'. The final two characters in the FOURCC indicate the number of bits per channel, either '16' for 16 bits or '10' for 10 bits.
No formats for bit or bit YUV have been defined at this time. This section describes the memory layout of each format.
They share the same memory layout, but P uses 16 bits per channel and P uses 10 bits per channel. In these two formats, all Y samples appear first in memory as an array of WORD s with an even number of lines. The surface stride can be larger than the width of the Y plane.
This array is followed immediately by an array of WORD s that contains interleaved U and V samples, as shown in the following diagram.
The stride of the combined U-V plane is equal to the stride of the Y plane. The U-V plane has half as many lines as the Y plane. These two formats are the preferred planar pixel formats for higher precision YUV representations.
In these two planar formats, all Y samples appear first in memory as an array of WORD s with an even number of lines.
0コメント