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.

Real-Time rotation using DM6446

Hi,

         I wish to perform rotation on real time video. I explored 'encodedecode' demo and found out 'display.c' could be my starting point. I explored 'ti/sdo/dmai/display.h' too for Display_Attrs_DM6446_DM355_VID_DEFAULT. I went deeper in the function Display_create() in the linux directory. dvsdk_2_00_00_22/dmai_1_20_00_06/packages/ti/sdo/dmai/linux and found out there are three 'c' files of my interest 'display.c' ,Display_fbdev.c', 'Display_v4l2.c' in order to tweak the function to accept 'rotation' attribute.

Void *displayThrFxn(Void *arg)
{
    DisplayEnv             *envp       = (DisplayEnv *) arg;
    Display_Attrs           dAttrs     = Display_Attrs_DM6446_DM355_VID_DEFAULT;
    Framecopy_Attrs         fcAttrs    = Framecopy_Attrs_DEFAULT;
    Display_Handle          hDisplay   = NULL;
    Framecopy_Handle        hFc        = NULL;
    Void                   *status     = THREAD_SUCCESS;
    Uns                     frameCnt   = 0;
    Int32                   clipWidth  = 0;
    Int32                   clipHeight = 0;
    Int32                   srcWidth   = 0;
    Int32                   srcHeight  = 0;
    Int32                   dstWidth   = 0;
    Int32                   dstHeight  = 0;
    Int32                   dstX       = 0;
    Int32                   dstY       = 0;
    Buffer_Handle           hSrcBuf, hDstBuf;
    BufferGfx_Dimensions    srcDim, dstDim;
    Int                     fifoRet;

    /* Create the display device instance */
    dAttrs.numBufs = NUM_DISPLAY_BUFS;
    dAttrs.videoStd = envp->videoStd;
    dAttrs.videoOutput = envp->displayOutput;
    // added by Virgoptrex
    dAttrs.rotation = 90;
                 // This looks like only application on OMAP - didn't give me any compilation error but wouldn't do anything either.
    hDisplay = Display_create(NULL, &dAttrs);

Anyone tried this?