Skip to Main Content Skip to Search
Product Documentation

C6000 Interleave - Convert planar YCbCr 4:2:2 data to interleaved YCbCr 4:2:2 data

Library

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C6000/ DM6437 EVM

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C6000/ Avnet S3ADSP DM6437

Description

This block takes planar YCbCr 4:2:2 data on three separate inputs and converts them to a single interleaved YCbCr 4:2:2 data output.

The input is a planar, color separated, YCbCr 4:2:2 image represented as a 2-D matrix of 8-bit unsigned integers. There are three input ports, one each for the luma component (Y), blue-difference chroma component (Cb), and red-difference chroma component (Cr). If the input to the Y port has dimensions M*N, the input to the Cb and Cr ports must be (M/2) by N.

The output is an interleaved YCbCr 4:2:2 image represented as a 2-D matrix of 8-bit unsigned integers. If the dimension of the Y port is M*N and dimensions of the Cb and Cr ports are M/2 by N, the image dimensions of the YCbCr output dimensions are 2*M*N under normal conditions. If you specify a line-to-line stride greater than 2*M in the block's mask, the output dimensions become (line-to-line stride)*N.

Dialog Box

Line to line stride (bytes)

Use the line-to-line stride parameter to satisfy the input requirements of the DM6437EVM Video Display block. Because of hardware requirements, each line of the input to the DM6437EVM Video Display block must have a size that is multiple of 32 bytes. For example, if the image you want to display is 180 by 120, use a line-to-line stride of 384 to satisfy the hardware requirements. Under normal conditions, the output of the Interleave block would have size 360x120 which would not be accepted by the DM6437EVM Video Display block. By using a line stride of 384, the block outputs a 384 by 120 matrix—of which only the 360x120 portion contains valid data—that is readily accepted by the DM6437EVM Video Display block.

Line-to-line stride is the distance in bytes between successive lines of an interleaved YCbCr frame. If line-to-line stride is greater than twice the number of pixels on a line of Y plane, this block outputs an interleaved YCbCr frame whose dimensions are the line-to-line stride times the number of lines in Y plane. Otherwise, line stride parameter is ignored, and the output matrix dimension becomes 2*(number of pixels on a line of Y plane)*(the number of lines in Y plane).

See Also

C6000 Deinterleave

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS