mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Revert "Add BGR16 to V42L"
This reverts commit 42975380f47a30a09f06d7dee7440b64b93aa305.
This commit is contained in:
parent
42975380f4
commit
912abd9fdf
@ -57,7 +57,6 @@ static PixelFormat GetPixelFormat(const unsigned int format)
|
|||||||
if (format == V4L2_PIX_FMT_BGR32) return PixelFormat::BGR32;
|
if (format == V4L2_PIX_FMT_BGR32) return PixelFormat::BGR32;
|
||||||
if (format == V4L2_PIX_FMT_RGB24) return PixelFormat::RGB24;
|
if (format == V4L2_PIX_FMT_RGB24) return PixelFormat::RGB24;
|
||||||
if (format == V4L2_PIX_FMT_BGR24) return PixelFormat::BGR24;
|
if (format == V4L2_PIX_FMT_BGR24) return PixelFormat::BGR24;
|
||||||
if (format == V4L2_PIX_FMT_BGR16) return PixelFormat::BGR16;
|
|
||||||
if (format == V4L2_PIX_FMT_YUYV) return PixelFormat::YUYV;
|
if (format == V4L2_PIX_FMT_YUYV) return PixelFormat::YUYV;
|
||||||
if (format == V4L2_PIX_FMT_UYVY) return PixelFormat::UYVY;
|
if (format == V4L2_PIX_FMT_UYVY) return PixelFormat::UYVY;
|
||||||
if (format == V4L2_PIX_FMT_NV12) return PixelFormat::NV12;
|
if (format == V4L2_PIX_FMT_NV12) return PixelFormat::NV12;
|
||||||
@ -572,10 +571,6 @@ void V4L2Grabber::init_device(VideoStandard videoStandard)
|
|||||||
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_BGR24;
|
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_BGR24;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PixelFormat::BGR16:
|
|
||||||
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_BGR16;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case PixelFormat::YUYV:
|
case PixelFormat::YUYV:
|
||||||
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV;
|
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV;
|
||||||
break;
|
break;
|
||||||
@ -730,14 +725,6 @@ void V4L2Grabber::init_device(VideoStandard videoStandard)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case V4L2_PIX_FMT_BGR16:
|
|
||||||
{
|
|
||||||
_pixelFormat = PixelFormat::BGR16;
|
|
||||||
_frameByteSize = _width * _height * 2;
|
|
||||||
Debug(_log, "Pixel format=BGR16");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case V4L2_PIX_FMT_YUYV:
|
case V4L2_PIX_FMT_YUYV:
|
||||||
{
|
{
|
||||||
_pixelFormat = PixelFormat::YUYV;
|
_pixelFormat = PixelFormat::YUYV;
|
||||||
@ -781,9 +768,9 @@ void V4L2Grabber::init_device(VideoStandard videoStandard)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
#ifdef HAVE_TURBO_JPEG
|
#ifdef HAVE_TURBO_JPEG
|
||||||
throw_exception("Only pixel formats RGB32, BGR32, RGB24, BGR24, BGR16, YUYV, UYVY, NV12, I420 and MJPEG are supported");
|
throw_exception("Only pixel formats RGB32, BGR32, RGB24, BGR24, YUYV, UYVY, NV12, I420 and MJPEG are supported");
|
||||||
#else
|
#else
|
||||||
throw_exception("Only pixel formats RGB32, BGR32, RGB24, BGR24, BGR16, YUYV, UYVY, NV12 and I420 are supported");
|
throw_exception("Only pixel formats RGB32, BGR32, RGB24, BGR24, YUYV, UYVY, NV12 and I420 are supported");
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user