hi,
Software Version
DRIVE OS 6.0.9
我使用SDK中drive-linux/samples/nvmedia/img_2d下的nvmimg_2d程序,目的是进行YUV422到YUV420p的转换,但是出现了点问题,转出的yuv420p貌似不对,配置文件如下。
# Flip YUV422 surface vertically (1920x1536) and convert to YUV420p # 输入配置 (YUV422) SrcLayer1InputFile = tree_1920x1536.yuv SrcLayer1Layout = PitchLinear SrcLayer1ScanType = Progressive SrcLayer1Plane1ColorFormat = Y8U8Y8V8 # YUV422打包格式 SrcLayer1Plane1Width = 1920 SrcLayer1Plane1Height = 1536 SrcLayer1Transform = FlipVertical # 输出配置 (YUV420p) DstOutputFile = output_flip_vertical_bgr_1920x1536_420.yuv DstLayout = PitchLinear DstScanType = Progressive # 平面1: Y分量 DstPlane1ColorFormat = Y8 DstPlane1Width = 1920 DstPlane1Height = 1536 # 平面2: U分量 DstPlane2ColorFormat = U8 DstPlane2Width = 960 DstPlane2Height = 768 # 平面3: V分量 DstPlane3ColorFormat = V8 DstPlane3Width = 960 DstPlane3Height = 768
能帮忙看一下配置文件是否有问题呢?谢谢
thanks