Expands plane.
IppStatus ippiExpandPlane_H264_8u_C1R(Ipp8u* StartPtr, Ipp32u uFrameWidth, Ipp32u uFrameHeight, Ipp32u uPitch, Ipp32u uPels, IppvcFrameFieldFlag uFrameFieldFlag);
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. |
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.
{ 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); }
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if StartPtr is NULL. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.