how to convert YUV 422 to jpg
Posted: 2010-06-21T03:08:13-07:00
Hi All Experts!
I am capturing a photo using at91sam9g45 processor.
CASE 1:
Captured photo output details are YUV422, scanning-progressive, packed format (YUYV), size 640x480.
I tried following command
convert -compress JPEG -size 640 x 480 - interlace None - quality 90 -sampling-factor 4:2:2 myInputImage.yuv myoutputImage.jpg
This has been executed successfully but target image is very blured. my yuv image is OK and verified in YUV player.
CASE 2:
Although I could convert image which is YUV422, scanning- planar, size 640x480 (sample image got from internet) using following command
convert -compress JPEG -size 640 x 480 - interlace plane - quality 90 -sampling-factor 4:2:2 myInputImage.yuv myoutputImage.jpg. The output is perfect.
MY QUERY:
Can someone guide me what is wrong in first case?? Is it possible yo convert YUV422 progressive, packed image into jpeg directly using imagemagicK?
Thanks in Advance!
Ronak Tanna
I am capturing a photo using at91sam9g45 processor.
CASE 1:
Captured photo output details are YUV422, scanning-progressive, packed format (YUYV), size 640x480.
I tried following command
convert -compress JPEG -size 640 x 480 - interlace None - quality 90 -sampling-factor 4:2:2 myInputImage.yuv myoutputImage.jpg
This has been executed successfully but target image is very blured. my yuv image is OK and verified in YUV player.
CASE 2:
Although I could convert image which is YUV422, scanning- planar, size 640x480 (sample image got from internet) using following command
convert -compress JPEG -size 640 x 480 - interlace plane - quality 90 -sampling-factor 4:2:2 myInputImage.yuv myoutputImage.jpg. The output is perfect.
MY QUERY:
Can someone guide me what is wrong in first case?? Is it possible yo convert YUV422 progressive, packed image into jpeg directly using imagemagicK?
Thanks in Advance!
Ronak Tanna