Omx_indexparamvideoportformat
OMX_IndexParamVideoPortFormat: Query / set the video port format. This port supports unencoded video with a number of different pixel formats. OMX_IndexConfigDisplayRegion: Setting this config allows control over the display device used to output the frames. OMX_IndexConfigCommonRotate: Rotates video or image frames clockwise by a specified angle. 1) OMX_IndexParamVideoPortFormat, Get/Set both Input port and output port; 2) OMX_IndexParamPortDefinition, for Input port, correct nFrameWidth, nFrameHeight, eCompressionFormat, eColorFormat, and nBufferSize=64K. for output port, correct nFrameWidth, nFrameHeight,xFramerate. 3) native_window_set_crop/ native_window_set_buffer_layout