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.

what is the framePitch ?

Other Parts Discussed in Thread: DM3730, OMAP3530

Hi,

In the viddec2_copy's viddec2_copy.c, I type the bottom.

      case XDM_GETBUFINFO:
            status->extendedError = 0;
            status->outputHeight = 288;  /* TODO */
            status->outputWidth = 352;  /* TODO */
            status->frameRate = 30000;  /* TODO */

            status->bitRate = 10000000;  /* TODO */          

            status->contentType = 0;  /* TODO */
            status->outputChromaFormat = obj->outputChromaFormat;
            status->bufInfo.minNumInBufs = MININBUFS;
            status->bufInfo.minNumOutBufs = MINOUTBUFS;
            status->bufInfo.minInBufSize[0] = MININBUFSIZE;           

            status->bufInfo.minOutBufSize[0] = MINOUTBUFSIZE;
            retVal = IVIDDEC2_EOK;            break;

In this case

outArgs->decodedBufs.framePitch = 0;        /* TODO */

how to use the framePitch?

please help me~!

best regards.

  • Hi,

    The pitch is a term used in video. In a video frame it is the number of pixels needed to move from one location in a video line to the "same" location in the next video line. "same" means it will be in the same row, next line.

    Thanks

    Cesar

  • I mean same column, next line

    Cesar

  • so, how I type the todo's value?

    outArgs->decodedBufs.framePitch = ????;        /* TODO */

  • framepitch is not a value that is input by the user. It is a characteristic of the buffer decoded by the codec. The buffer decoded by the video decoder has a certain number of characteristics and framepitch is one of them.

    All the codecs that run on a TI DM/OMAP platform use an interface called XDM to communicate with the application

    You can find out more about this interface in the dvsdk/xdais/docs folder. For example

    ti-dvsdk_dm368-evm_4_02_00_06/xdais_6_26_01_03/docs/html/index.htm

    Please take a look at the XDM IVIDDEC2 Video Decoder Interface, structure IVIDDEC2_OutArgs, IVIDEO1_BufDesc video buffer descriptor.

    I am not sure what platform you are using but you could also run some real codecs using the DMAI sample applications and the DVSDK demos.

    If you have a DM36x or OMAP3530/DM3730 platform I encourage you to install the DVSDK 4.02 and read the Software Developers Guide that will show you how to run some of these examples.

    If you have other platforms there should also be information in the user's guides how to do that

    Thanks

    cesar