ExpandPlane_H264

Expands plane.

Syntax

IppStatus ippiExpandPlane_H264_8u_C1R(Ipp8u* StartPtr, Ipp32u uFrameWidth, Ipp32u uFrameHeight, Ipp32u uPitch, Ipp32u uPels, IppvcFrameFieldFlag uFrameFieldFlag);

Parameters

StartPtr

Pointer to the frame source data.

uFrameWidth

Frame width in pixels.

uFrameHeight

Frame height in pixels.

uPitch

Frame width in bytes.

uPels

Number of pixels filled to the right/left and up/down in process of expansion.

uFrameFieldFlag

Flag that defines expansion method for various image types: frame, top field, bottom field. See the corresponding enumerator IPPVC_FRAME_FIELD_FLAG.

Description

The function ippiExpandPlane_H264_8u_C1R is declared in the ippvc.h file. This function expands the plane by adding pixels to the top and bottom rows and to the left and right columns of the frame.

ExpandPlane_H264 Usage Example 

{
    Ipp8u*  pPlane = pointer_on_frame;
    Ipp32s width, height, picth, padding;

    width = width_of_frame; // without padding
    height = height_of_frame; // without padding
    picth = picth_of_frame; // with padding

    padding = 32; // padding size.

    IppvcFrameFieldFlag ff_flag;

    if (!is_field_flag)
    {
        ff_flag = IPPVC_FRAME;
    }
    else
    {
        if(!is_bottom_field)
        {
           ff_flag = IPPVC_TOP_FIELD;
        }
        else
        {
            ff_flag = IPPVC_BOTTOM_FIELD;
        }
    }

    ippiExpandPlane_H264_8u_C1R(pPlane,
                                width,
                                height,
                                picth,
                                padding,
                                ff_flag);
}

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error condition if StartPtr is NULL.


Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.