[Libav-user] how to convert NV21 to YUV420P with swscale
Carl Eugen Hoyos
cehoyos at ag.or.at
Wed Oct 1 01:48:58 CEST 2014
Peter Pan <hawkwithwind at ...> writes:
> params.setPreviewFormat(ImageFormat.NV21);
> the code works well if the src image is PIX_FMT_YUYV422,
> with android camera set to
> params.setPreviewFormat(ImageFormat.YUY2);
Doesn't this simply indicate that what the camera
calls "NV21" is not "AV_PIX_FMT_NV21"?
(You really shouldn't use PIX_FMT_*)
Carl Eugen
More information about the Libav-user
mailing list