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.h7
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_;