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 format of the image captured?

Other Parts Discussed in Thread: TVP5146

你好,

(Hi,)

说中文不知你们能不能懂,但是说英文我怕我说不明白。

我想问的是那个用dsvdk开发包里面的例子进行视频采集每一帧图像的存储格式是什么???

(I want to ask what format of the image captured in the video_preview example which in dsvdk???)

我们用的是dsvdk开发包里面的那个video_preview实例。

注:这是程序里的参数配置(其中那个PSP_VPFE_CCDC_YCBCR_8=8,PSP_VPBE_YCbCr422=0)

static PSP_VPFECcdcConfigParams vpfeCcdcConfigParams = {
    PSP_VPFE_CCDC_YCBCR_8,              /* dataFlow     */
    PSP_VPSS_FRAME_MODE,                /* ffMode       */
    480,                                /* height       */
    720,                                /* width        */
    (720 *2),                           /* pitch        */
    0,                                  /* horzStartPix */
    0,                                  /* vertStartPix */
    NULL,                               /* appCallback  */ 
    {
        PSP_VPFE_TVP5146_Open,         /* extVD Fxn    */
        PSP_VPFE_TVP5146_Close,
        PSP_VPFE_TVP5146_Control,
    },
    0                                   /*segId         */                         
};

static PSP_VPBEOsdConfigParams  vpbeOsdConfigParams = {
    PSP_VPSS_FRAME_MODE,                /* ffmode       */
    PSP_VPSS_BITS16,                    /* bitsPerPixel */
    PSP_VPBE_YCbCr422,                  /* colorFormat  */
    (720 *  (16/8u)),                   /* pitch        */
    0,                                  /* leftMargin   */
    0,                                  /* topMargin    */
    720,                                /* width        */
    480,                                /* height       */
    0,                                  /* segId        */
    PSP_VPBE_ZOOM_IDENTITY,             /* hScaling     */
    PSP_VPBE_ZOOM_IDENTITY,             /* vScaling     */
    PSP_VPBE_EXP_IDENTITY,              /* hExpansion   */
    PSP_VPBE_EXP_IDENTITY,              /* vExpansion   */
    NULL                                /* appCallback  */

};

谢谢。。。

Thanks!

  • It is not clear which version of the DVSDK and for what device, but based on the configuration settings, the VPFE is being configured to capture YU at 720x480 resolution.

    If you are using the Digital Media processors, the DVSDK does contain examples under the PSP_xx_xx_xx/examples folder. There are subfolders for different devices, each containing different type of examples. For each example, there's usually a readme.txt explaining what the specifics.