Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

How do I configure DEI to output in 422 color format

$
0
0

CPU: DM8168 Rev 2

SDK: 05_05_01_04

We attempted to switch 420 color encoding to 422 using the API. Here's the 420 code:

DEI input port configuration:

inport->SetPortIndex(OMX_VFPC_INPUT_PORT_START_INDEX);

inport->setCompression(OMX_VIDEO_CodingUnused);

inport->setFrameWidth(1920);

inport->setFrameHeight(1080);

inport->setColorFormat(OMX_COLOR_FormatYUV420SemiPlanar);

inport->SetBufferSize((1920 * 1080 * 3) >> 1);

inport->setStride(1920);

DEI output port configuration:

outport->SetPortIndex(OMX_VFCC_OUTPUT_PORT_START_INDEX);

outport->setCompression(OMX_VIDEO_CodingUnused);

outport->setFrameWidth(1920);

outport->setFrameHeight(1080);

outport->setColorFormat(OMX_COLOR_FormatYUV420SemiPlanar);

outport->SetBufferSize((1920 * 1080 * 3) >> 1 );

outport->setStride(1920);


The 422 code looks like:

DEI input port configuration:

inport->SetPortIndex(OMX_VFPC_INPUT_PORT_START_INDEX);

inport->setCompression(OMX_VIDEO_CodingUnused);

inport->setFrameWidth(1920);

inport->setFrameHeight(1080);

inport->setColorFormat(OMX_COLOR_FormatYCbYCr);

inport->SetBufferSize((1920 * 1080) << 1);

inport->setStride(1920<<1);

DEI output port configuration:

outport->SetPortIndex(OMX_VFCC_OUTPUT_PORT_START_INDEX);

outport->setCompression(OMX_VIDEO_CodingUnused);

outport->setFrameWidth(1920);

outport->setFrameHeight(1080);

outport->setColorFormat(OMX_COLOR_FormatYCbYCr);

outport->SetBufferSize((1920 * 1080) << 1 );

outport->setStride(1920<<1);

This code compiles, but at run time we receive the following error message:

0x164340 - OMX.TI.VPSSM3.VFPC.DEIHDUALOUT(dei_h)::EventHandler::EventError: OMX_
ErrorInsufficientResources 0x00000000



Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>