diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2019-05-04 16:29:54 -0400 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2019-05-07 09:27:07 -0400 |
commit | b9a47058eb46281dd0c365b9e18a323994791498 (patch) | |
tree | 58db1183d23b5236493523738baf66844949f8d8 /src/qcam/format_converter.h | |
parent | b09b13dbf6921a5474b847ba940f0c38e3e37c71 (diff) |
qcam: format_converter: Add NV formats support
Add support for some NV formats:
- V4L2_PIX_FMT_NV12, V4L2_PIX_FMT_NV21
- V4L2_PIX_FMT_NV16, V4L2_PIX_FMT_NV61
- V4L2_PIX_FMT_NV24, V4L2_PIX_FMT_NV42
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/format_converter.h')
-rw-r--r-- | src/qcam/format_converter.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qcam/format_converter.h b/src/qcam/format_converter.h index bca44aa3..391e6a44 100644 --- a/src/qcam/format_converter.h +++ b/src/qcam/format_converter.h @@ -22,10 +22,12 @@ public: private: enum FormatFamily { MJPEG, + NV, RGB, YUV, }; + void convertNV(const unsigned char *src, unsigned char *dst); void convertRGB(const unsigned char *src, unsigned char *dst); void convertYUV(const unsigned char *src, unsigned char *dst); @@ -35,6 +37,11 @@ private: enum FormatFamily formatFamily_; + /* NV parameters */ + unsigned int horzSubSample_; + unsigned int vertSubSample_; + bool nvSwap_; + /* RGB parameters */ unsigned int bpp_; unsigned int r_pos_; |