Top
audio_capture
audio_decode
audio_encode
audio_lowpower
audio_mixer
audio_processor
audio_render
audio_splitter
image_decode
image_encode
image_fx
resize
source
transition
clock
null_sink
text_scheduler
visualisation
camera
egl_render
hvs
isp
rawcam
video_decode
video_encode
video_render
video_scheduler
video_splitter
Custom Index
Metadata

OMX.broadcom.resize

60
resize
61

A conformant image processing stage for resizing YUV420, RGB565 and RGBA32 images. Using proprietary communication other image formats can also be used as inputs. This component performs a resize, with the output size determined by the input size and a custom resize parameter or by directly setting the output port parameter. The input images can either be stripes or full frames, in general stripes are preferred for large images or for some image formats including RGB565. The input image can also be cropped prior to resizing. Output images can either be full frames or stripes, and may be a different colour format from the input image.

PortIndexNotes
60OMX_IndexParamPortDefinition Set this to control the input size of the image. Typically this is called by the component itself when this port is tunnelled with an appropriate output port. The stripe height must be 16, or the frame height rounded up to the next multiple of 16. YUV420 packed planar image format is supported with even image dimensions. RGB565 and RGBA32 formats are also supported, RGB565 input only supports 16 high striped input. Other internal formats such as YUV_UV are also handled when using prioritary communication on this port.
OMX_IndexConfigCommonInputCrop Allows cropping at the input. Cropping can be changed at any time.
OMX_IndexConfigBrcmUseProprietaryCallback Forces use of proprietary tunnelling between ports.
OMX_IndexParamCameraPoolToEncoderFunction Used to set up proprietary communication with the previous component.
61OMX_IndexParamPortDefinition Query this to show what the output size will be. Set to alter the number of buffers to be used, or change the size of the output image if the custom resize setting is not being used. YUV image dimensions must be even. nSliceHeight must be a multiple of 16, or 0 which indicates no preference. nStride must be a multiple of 32, or a multiple of 64 for RGBA32 format.
OMX_IndexParamResize As an alternative to setting the output size directly through the port definition, set this parameter to control how the resize operates.
60 61OMX_IndexParamImagePortFormat Set / query the image port format used. These ports support RGB565, RGBA32 or YUV420 raw bitmap formats.
OMX_IndexParamBrcmSupportsSlices Query the port for support of nSliceHeight=16.