[ Previous | Next | Contents | Glossary | Home | Search ]
Ultimedia Services Version 2 for AIX: Programmer's Guide and Reference

UMSRGB24to422 Object

The UMSRGB24to422 object provides conversion of PadRGB24 images to YUV422 images. This object inherits or overrides all methods from the UMSVideoDecoder base video decoder class and does not add new methods.

A YUV422 image is composed of 32 bits per pair of pixels. The pixels are in order from left to right, top to bottom. For each pair of pixels in memory, the first 8 bits are Y1. The next 8 bits are U. The next 8 bits are Y2. The last 8 bits are V.

A PadRGB24 image is composed of 32 bits per pixel. The pixels are in order from left to right, top to bottom. In memory, each pixel is 8 bits of pad, 8 bits of red, 8 bits of green, and 8 bits of blue.

Because of the format of the YUV422 images the width must be an even number. This object does not do scaling of the image.

Note: For this object the in CompressedFrame comp_frame argument to the decompress_frame method is the input PadRGB24 image even though it is not compressed. The inout ImageFrame image_frame argument is the output YUV422 image.

For introductory information, see Video Codec Objects.


[ Previous | Next | Contents | Glossary | Home | Search ]