Open nomaddo opened 3 years ago
https://github.com/Idein/actfw-core/blob/563c2c55a1081c3c0071701e802c09c0da4f3fbe/actfw_core/v4l2/video.py#L548-L574
The header file says:
https://github.com/philips/libv4l/blob/master/include/libv4lconvert.h#L63-L75
The function v4lconvert_try_format is not for check whether we can convert pictures from src_fmt to dest_fmt: The function is to get src_fmt which we finally get dest_fmt.
v4lconvert_try_format
src_fmt
dest_fmt
And, v4lconvert_try_format may change dest_fmt. The checking is lack.
https://github.com/Idein/actfw-core/blob/563c2c55a1081c3c0071701e802c09c0da4f3fbe/actfw_core/v4l2/video.py#L548-L574
The header file says:
https://github.com/philips/libv4l/blob/master/include/libv4lconvert.h#L63-L75
The function
v4lconvert_try_format
is not for check whether we can convert pictures fromsrc_fmt
todest_fmt
: The function is to getsrc_fmt
which we finally getdest_fmt
.