summaryrefslogtreecommitdiff
path: root/src/qcam/format_converter.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-05-01 04:59:54 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-05-04 01:06:22 +0300
commit28382ff2b181441334f2ccbb3ce82ae491dcc771 (patch)
treef70ae93e130763738cbef48c091076bae256e2c2 /src/qcam/format_converter.h
parent977cfbd526f2da1cfce5c5c2b187c83af3d3efdc (diff)
qcam: format_converter: Add RGB formats support
Add support for the RGB format supported by VIMC (V4L2_PIX_FMT_BGR24, V4L2_PIX_FMT_RGB24 and V4L2_PIX_FMT_ARGB32). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src/qcam/format_converter.h')
-rw-r--r--src/qcam/format_converter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qcam/format_converter.h b/src/qcam/format_converter.h
index 396d0bea..76cd9f1c 100644
--- a/src/qcam/format_converter.h
+++ b/src/qcam/format_converter.h
@@ -20,11 +20,19 @@ public:
void convert(const unsigned char *src, size_t size, QImage *dst);
private:
+ void convertRGB(const unsigned char *src, unsigned char *dst);
void convertYUV(const unsigned char *src, unsigned char *dst);
unsigned int format_;
unsigned int width_;
unsigned int height_;
+
+ unsigned int bpp_;
+ unsigned int r_pos_;
+ unsigned int g_pos_;
+ unsigned int b_pos_;
+
+ bool yuv_;
unsigned int y_pos_;
unsigned int cb_pos_;
};