Hi,everyone
When I use resizer,it's parameters is as below:
static PSP_RSZparams rszParams ={ FRAME_WIDTH, /* Input image width */ FRAME_HEIGHT, /* Input image height */ FRAME_WIDTH*(2u), /* Input image pitch */ PSP_RSZ_INTYPE_YCBCR422_16BIT, /* Input image type */ 0, /* Vertical starting pixel */ 0, /* Horizontal starting pixel */ 0, /* Chroma position */ PSP_RSZ_PIX_FMT_YUYV, /* Image format */ VALID_WIDTH, /* Intermediate image width */ VALID_HEIGHT, /* Intermediate image height */ VALID_WIDTH*(2u), /* Intermediate image pitch */ 0, /* Horizontal starting phase */ 0, /* Vertical starting phase */ gRDRV_reszFilter4TapHighQuality, /* Horizontal filter coefficients */ gRDRV_reszFilter4TapHighQuality, /* Vertical filter coefficients */ PSP_RSZ_YENH_DISABLE /* Luma enhancement options */};
Input image format is UYVY,but the resize output image format is YUYV. When I send the YUYV data to the display,it can display Normally.
However,when we just preview the video,don‘t do any procession between input and output. That is to say, the output image format is UYVY.Of course,it can display Normally.
I wonder why the firs case can display Normally?
Regards、
JQ Zhao
JQ Zhao,
Could you please mention the PSP version which is being used? Also the sample application which you are using in the PSP
Regards,
Sandeep K
Does this help with your question? If not, please send back more information. If it answers your question, please click the Verify Answer button below
The PSP version is psp_1_00_02_00.
The sample application is downsample located in C:\dvsdk_1_01_00_15\psp_1_00_02_00\pspdrivers\system\dm6437\bios\dm6437_evm\src\video\sample\resizer.
In PSP_RSZparams params,it define Image format as PSP_RSZ_PIX_FMT_YUYV. What this means?
I found that :
/**< specifies input is 16 bit */#define PSP_RSZ_INTYPE_PLANAR_8BIT (0x1)#define PSP_RSZ_CBILIN_DISABLE (0x0)/**< same as luminance processing */#define PSP_RSZ_CBILIN_ENABLE (0x1)/**< enable bi-linear processing */#define PSP_RSZ_PIX_FMT_UYVY (0x0)/**< cb:y:cr:y */#define PSP_RSZ_PIX_FMT_YUYV (0x1)/**< y:cb:y:cr */#define PSP_RSZ_PIX_FMT_PLANAR (0x2)/**< 8-bit planar input */#define PSP_RSZ_YENH_DISABLE (0x0)/**< specifies luma is enabled or disabled */#define PSP_RSZ_YENH_3TAP_HPF (0x1)/**< specifies luma algorithm */#define PSP_RSZ_YENH_5TAP_HPF (0x2)/**< specifies luma algorithm */#define PSP_RSZ_SRC_CCDC_PREVIEWER (0x0)/**< specifies input is from CCDC or previewer */#define PSP_RSZ_SRC_RAM (0x1)/**< specifies input is from Ram */
What differences between PSP_RSZ_PIX_FMT_UYVY and PSP_RSZ_PIX_FMT_YUYV ?Does it impact the resize output image format?And what image format should be?
Thank you for your help.
Junqing,
It appears that your question is beyond the scope of knowledge of the BIOS/PSP team and is video specific. I have moved this thread over to the DM64x forum in hopes that you will get a faster response there.
Thanks,
Dave