summaryrefslogtreecommitdiff
path: root/src/qcam/format_converter.h
diff options
context:
space:
mode:
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_;
};