This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to use IVIDEO_VideoLayout to encode an interleaved buffer in ezsdk-05-04

I read the h264 encoder docs and example codes in ezsdk-0504, but still don't how to set up this parameter using omx api.

The case I encounter is the input yuv frame is field separated, and the default setup of h264 encoder cannot handle it.

The  IVIDEO_VideoLayout is defined as:

typedef enum {
    IVIDEO_FIELD_INTERLEAVED = 0, /**< Buffer layout is interleaved. */
    IVIDEO_FIELD_SEPARATED = 1,   /**< Buffer layout is field separated. */
    IVIDEO_TOP_ONLY = 2,          /**< Buffer contains only top field. */
    IVIDEO_BOTTOM_ONLY = 3        /**< Buffer contains only bottom field. */
} IVIDEO_VideoLayout;

Thanks.

Llano