Message ID | CAB0OVGoA6HhnUAOEskfSQ-rq6VPNNd0uTurNRi6S8G-YCV3F8A@mail.gmail.com |
---|---|
State | Superseded |
Headers | show |
2018-11-19 18:41 GMT+01:00, Carl Eugen Hoyos <ceffmpeg@gmail.com>: > 2018-11-19 18:21 GMT+01:00, Pablo Rubio Fernández <prubio@elitegrupo.com>: > >> It's my first time here. I want to create a patch to add Z16 pixel >> format. >> I have did some changes, and I want to know if I'll need change any other >> file. > > Isn't attached poc sufficient? After adding the missing ","... Carl Eugen
diff --git a/libavdevice/v4l2-common.c b/libavdevice/v4l2-common.c index 2d6bfac..4da6044 100644 --- a/libavdevice/v4l2-common.c +++ b/libavdevice/v4l2-common.c @@ -64,6 +64,9 @@ const struct fmt_map ff_fmt_conversion_table[] = { { AV_PIX_FMT_BAYER_GRBG8, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_SGRBG8 }, { AV_PIX_FMT_BAYER_RGGB8, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_SRGGB8 }, #endif +#ifdef V4L2_PIX_FMT_Z16 + { AV_PIX_FMT_GRAY16LE AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_Z16 }, +#endif { AV_PIX_FMT_NONE, AV_CODEC_ID_NONE, 0 }, };