Artifacts when encoding rotated JPEG in vpu

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Artifacts when encoding rotated JPEG in vpu

953件の閲覧回数
emilmyhrman
Contributor IV

Hello,

I'm using the Android KitKat imx6 BSP with provided libcamera HAL with the addition to rotate the encoded JPEG image.

This is done in "YuvToJpegEncoder.cpp" by setting, "sEncOpenParamSimp.nRotAngle=rotation" for vpu_wrapper.

This works fine for all image sizes except 2592x1944, where I get artifacts on the image border, as can been in image below.

vpu_artifact.jpeg

This problem only occurs when the image is rotated 180 or 270 degrees, 0 and 90 looks fine.

Have anyone else seen this problem or have any idea on what could be wrong?

Update: This can be reproduced with mxc-vpu-test using a YUV image 2592x1944.

mxc-vpu-test -E "-i /data/local/camera_tst.data -f 7 -r $rotate -w 2592 -h 1944 -o /data/local/image.jpeg"

0 件の賞賛
返信
0 返答(返信)