Merge pull request #417 from fryshorts/v4l2-rgb-formats

linux-v4l2: Add additional video formats
This commit is contained in:
Jim 2015-04-20 11:16:47 -07:00
commit b4a0e7931a

View File

@ -63,6 +63,8 @@ static inline enum video_format v4l2_to_obs_video_format(uint_fast32_t format)
case V4L2_PIX_FMT_NV12: return VIDEO_FORMAT_NV12; case V4L2_PIX_FMT_NV12: return VIDEO_FORMAT_NV12;
case V4L2_PIX_FMT_YUV420: return VIDEO_FORMAT_I420; case V4L2_PIX_FMT_YUV420: return VIDEO_FORMAT_I420;
case V4L2_PIX_FMT_YVU420: return VIDEO_FORMAT_I420; case V4L2_PIX_FMT_YVU420: return VIDEO_FORMAT_I420;
case V4L2_PIX_FMT_XBGR32: return VIDEO_FORMAT_BGRX;
case V4L2_PIX_FMT_ABGR32: return VIDEO_FORMAT_BGRA;
default: return VIDEO_FORMAT_NONE; default: return VIDEO_FORMAT_NONE;
} }
} }