mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-08 12:24:09 +00:00
linux-v4l2: Add support for grayscale MJPEG
This commit is contained in:
parent
e121ac1587
commit
79d77ddf90
|
@ -104,6 +104,9 @@ int v4l2_decode_frame(struct obs_source_frame *out, uint8_t *data,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (decoder->context->pix_fmt) {
|
switch (decoder->context->pix_fmt) {
|
||||||
|
case AV_PIX_FMT_GRAY8:
|
||||||
|
out->format = VIDEO_FORMAT_Y800;
|
||||||
|
break;
|
||||||
case AV_PIX_FMT_YUVJ422P:
|
case AV_PIX_FMT_YUVJ422P:
|
||||||
case AV_PIX_FMT_YUV422P:
|
case AV_PIX_FMT_YUV422P:
|
||||||
out->format = VIDEO_FORMAT_I422;
|
out->format = VIDEO_FORMAT_I422;
|
||||||
|
|
Loading…
Reference in a new issue