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.

Problems configuring NTSC 16-bit RGB 525i output on DM648

Hello,

I'm trying to configure my DM648 to output NTSC 16-bit RGB 525i data. My configuration in PSP driver style looks like that:

VPORT_MODE_RAW_16BIT,               /* dmode:3          */          \
    VPORT_FLDOP_FRAME,            /* fldOp:3          */          \
                                                                        \
    VPORT_SCALING_DISABLE,              /* scale:1          */          \
    VPORT_RESMPL_DISABLE,               /* resmpl:1         */          \
    VPORTDIS_DEFVAL_ENABLE,             /* defValEn:1       */          \
    VPORTDIS_BPK_10BIT_NORMAL,          /* bpk10Bit:1       */          \
                                                                        \
    VPORTDIS_VCTL1_HSYNC,               /* vctl1Config:2    */          \
    VPORTDIS_VCTL2_VSYNC,               /* vctl2Config:2    */          \
    VPORTDIS_VCTL3_FLD,                 /* vctl3Config:1    */          \
    VPORTDIS_EXC_DISABLE,               /* extCtl:3         */          \
                                                                        \
    858,                                /* frmHSize         */          \
    525,                                /* frmVSize         */          \
                                                                        \
    0,                                  /* imgHOffsetFld1   */          \
    0,                                  /* imgVOffsetFld1   */          \
    720,         /* imgHSizeFld1     */          \
    240,       /* imgVSizeFld1     */          \
                                                                        \
    0,                                  /* imgHOffsetFld2   */          \
    0,                                  /* imgVOffsetFld2   */          \
    720,                                  /* imgHSizeFld2     */          \
    240,                                  /* imgVSizeFld2     */          \
                                                                        \
    720,                                /* hBlnkStart       */          \
    856,                                  /* hBlnkStop        */          \
                                                                        \
    720,                                  /* vBlnkXStartFld1  */          \
    1,                                  /* vBlnkYStartFld1  */          \
    720,                                  /* vBlnkXStopFld1   */          \
    21,                                 /* vBlnkYStopFld1   */          \
                                                                        \
    360,                                  /* vBlnkXStartFld2  */          \
    263,                                  /* vBlnkYStartFld2  */          \
    360,                                  /* vBlnkXStopFld2   */          \
    284,                                  /* vBlnkYStopFld2   */          \
                                                                        \
    720,                                  /* xStartFld1       */          \
    1,                                  /* yStartFld1       */          \
                                                                        \
    360,                                  /* xStartFld2       */          \
    263,                                  /* yStartFld2       */          \
                                                                        \
    736,                                /* hSyncStart       */          \
    800,                                /* hSyncStop        */          \
                                                                        \
    736,                                /* vSyncXStartFld1  */          \
    4,                                  /* vSyncYStartFld1  */          \
    736,                                /* vSyncXStopFld1   */          \
    7,                                  /* vSyncYStopFld1   */          \
                                                                        \
    307,                                  /* vSyncXStartFld2  */          \
    266,                                  /* vSyncYStartFld2  */          \
    307,                                  /* vSyncXStopFld2   */          \
    269,                                  /* vSyncYStopFld2   */          \
                                                                        \
    16,                                 /* yClipLow         */          \
    240,                                /* yClipHigh        */          \
    16,                                 /* cClipLow         */          \
    240,                                /* cClipHigh        */          \
                                                                        \
    0x00,                               /* Default Y value  */          \
    0x00,                               /* Default Cb value */          \
    0x00,                               /* Default Cr value */          \
                                                                        \
    VPORTDIS_RGBX_DISABLE,              /* RGB extract disable */       \
    1,                                  /* incPix, for raw mode only */ \
                                                                        \
    (720 >> 3),  /* thrld            */          \
                                                                        \
    0,                                  /* numFrmBufs       */          \
    128,                                /* alignment        */          \
    VPORT_FLDS_MERGED,                  /* mergeFlds        */          \
                                                                        \
    NULL,                               /* segId            */          \
    NULL                                /* hEdma            */          \
};

I'm outputing a frame which is completely red and im getting the following output

Could someone please tell me what I'm missing in my configuration.

  • hello Oliver,

     

    i am not able to open zpour output file. can you plaese upload it again.

     

    regards,

    wajdi

  • My setting lool like this in the meanwhile

    static VPORTDIS_Params vDisParamsChan =
    {
        VPORT_MODE_RAW_16BIT,               /* dmode:3          */          \
        VPORT_FLDOP_FRAME,            /* fldOp:3          */          \
                                                                            \
        VPORT_SCALING_DISABLE,              /* scale:1          */          \
        VPORT_RESMPL_DISABLE,               /* resmpl:1         */          \
        VPORTDIS_DEFVAL_ENABLE,             /* defValEn:1       */          \
        VPORTDIS_BPK_10BIT_NORMAL,          /* bpk10Bit:1       */          \
                                                                            \
        VPORTDIS_VCTL1_HSYNC,               /* vctl1Config:2    */          \
        VPORTDIS_VCTL2_VSYNC,               /* vctl2Config:2    */          \
        VPORTDIS_VCTL3_FLD,                 /* vctl3Config:1    */          \
        VPORTDIS_EXC_DISABLE,               /* extCtl:3         */          \
                                                                            \
        858,    /* frmHSize         */          \
        525,    /* frmVSize         */          \
                                                                            \
        8,                                    /* imgHOffsetFld1   */          \
        2,                                  /* imgVOffsetFld1   */          \
        704,         /* imgHSizeFld1     */          \
        240,       /* imgVSizeFld1     */          \
                                                                            \
        8,                                  /* imgHOffsetFld2   */          \
        3,                                  /* imgVOffsetFld2   */          \
        704,                                  /* imgHSizeFld2     */          \
        240,                                  /* imgVSizeFld2     */          \
                                                                            \
        720,                                /* hBlnkStart       */          \
        0,                                  /* hBlnkStop        */          \
                                                                            \
        720,                                  /* vBlnkXStartFld1  */          \
        1,                                  /* vBlnkYStartFld1  */          \
        720,                                  /* vBlnkXStopFld1   */          \
        21,                                 /* vBlnkYStopFld1   */          \
                                                                            \
        360,                                  /* vBlnkXStartFld2  */          \
        263,                                  /* vBlnkYStartFld2  */          \
        360,                                  /* vBlnkXStopFld2   */          \
        283,                                  /* vBlnkYStopFld2   */          \
                                                                            \
        720,                                  /* xStartFld1       */          \
        1,                                  /* yStartFld1       */          \
                                                                            \
        360,                                  /* xStartFld2       */          \
        263,                                  /* yStartFld2       */          \
                                                                            \
        736,                                /* hSyncStart       */          \
        800,                                /* hSyncStop        */          \
                                                                            \
        720,                                /* vSyncXStartFld1  */          \
        4,                                  /* vSyncYStartFld1  */          \
        720,                                /* vSyncXStopFld1   */          \
        7,                                  /* vSyncYStopFld1   */          \
                                                                            \
        360,                                  /* vSyncXStartFld2  */          \
        266,                                  /* vSyncYStartFld2  */          \
        360,                                  /* vSyncXStopFld2   */          \
        269,                                  /* vSyncYStopFld2   */          \
                                                                            \
        0,                                 /* yClipLow         */          \
        0,                                /* yClipHigh        */          \
        0,                                 /* cClipLow         */          \
        0,                                /* cClipHigh        */          \
                                                                            \
        0x00,                               /* Default Y value  */          \
        0x00,                               /* Default Cb value */          \
        0x00,                               /* Default Cr value */          \
                                                                            \
        VPORTDIS_RGBX_DISABLE,              /* RGB extract disable */       \
        1,                                  /* incPix, for raw mode only */ \
                                                                            \
        (720 >> 3),  /* thrld            */          \
                                                                            \
        0,                                  /* numFrmBufs       */          \
        128,                                /* alignment        */          \
        VPORT_FLDS_MERGED,                  /* mergeFlds        */          \
                                                                            \
        NULL,                               /* segId            */          \
        NULL                                /* hEdma            */          \
        };

    And I'm getting the following picture