1.显示器无法显示的问题
解决办法:vio中关于分辨率部分修改为1080p60fps
2.显示器显示图像是倒立的
解决办法:
typedef struct hiVPSS_CHN_ATTR_S
{
VPSS_CHN_MODE_E enChnMode; /* RW; Vpss channel's work mode. */
HI_U32 u32Width; /* RW; Range: Hi3559AV100 = [64, 16384] | Hi3519AV100 = [64, 8192]; Width of target image. */
HI_U32 u32Height; /* RW; Range: Hi3559AV100 = [64, 16384] | Hi3519AV100 = [64, 8192]; Height of target image. */
VIDEO_FORMAT_E enVideoFormat; /* RW; Video format of target image. */
PIXEL_FORMAT_E enPixelFormat; /* RW; Pixel format of target image. */
DYNAMIC_RANGE_E enDynamicRange; /* RW; DynamicRange of target image. */
COMPRESS_MODE_E enCompressMode; /* RW; Compression mode of the output. */
FRAME_RATE_CTRL_S stFrameRate; /* Frame rate control info */
HI_BOOL bMirror; /* RW; Mirror enable. */
HI_BOOL bFlip; /* RW; Flip enable. */
HI_U32 u32Depth; /* RW; Range: [0, 8]; User get list depth. */
ASPECT_RATIO_S stAspectRatio; /* Aspect Ratio info. */
} VPSS_CHN_ATTR_S;
这个结构体里面定义了bool类型的bFlip,表示图像翻转;
将vio.c代码段中stVpssChnAttr[0].bFlip = HI_FALSE;
改为stVpssChnAttr[0].bFlip = HI_TURE;
即可,如下图所示。