我使用imx6q的vpu将jpg图片转为yuv图片,转换后的图片大小为4177920 感觉图像大小不对,并且转出来的图像最上边有一条绿色的横纹,
1920X1080=2073600
2073600X2=4147200
4177920-4147200=30720(我认为转出来的图像大小是1920*1080*2)
PS:我使用的VPU源码是imx-test-3.0.35-4.1.0 里面的mxc_vpu_test,
使用命令行为./mxc_vpu_test.out -D "-i a.jpg -o b.yuv -f 7"
我想问一下imx6的vpu支持这种转换吗,如果支持的话是哪出错了
在FSL-UT-VPU-002中内容如下,
[cols=">s,6a",frame="topbot",options="header"] |==================================================================== |Name | Description
| Summary | Decode a stream and save to a file
| Automated | No
| Kernel Config Option | N/A
| Software Dependency | Need /usr/lib/libvpu.so
| Non-default Hardware Configuration | N/A
| Test Procedure | To test MPEG-4 decode:
./mxc_vpu_test.out -D "-i /usr/vectors/file.m4v -f 0 -o out.yuv"
To test H.263 decode:
./mxc_vpu_test.out -D "-i /usr/vectors/file.263 -f 1 -o out.yuv"
To test H.264 decode:
./mxc_vpu_test.out -D "-i /usr/vectors/file.264 -f 2 -o out.yuv"
To test VC1 decode (i.MX37 and i.MX51 VPU only):
./mxc_vpu_test.out -D "-i /usr/vectors/file.rcv -f 3 -o out.yuv"
To test MPEG2 decode (i.MX37 and i.MX51 VPU only):
./mxc_vpu_test.out -D "-i /usr/vectors/file.mpg -f 4 -o out.yuv"
To test MJPEG decode (i.MX51 VPU only):
./mxc_vpu_test.out -D "-i /usr/vectors/file.mjpg -f 7 -o out.yuv"
|