summaryrefslogtreecommitdiff
path: root/src/qcam/viewfinder.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-03-29 17:20:07 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-02 17:24:41 +0300
commit80e236e19b61a1267948433fd6855da138d6f527 (patch)
treef2ff6a8311b5c4d4cef65e4a7260e75c84aee6ec /src/qcam/viewfinder.h
parent29f323eea84c5bf5037658b0042478124ed58ff1 (diff)
qcam: Add JPEG format support
When the camera provides MJPEG, use the QImage JPEG decompression code to convert that to RGB. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/qcam/viewfinder.h')
-rw-r--r--src/qcam/viewfinder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcam/viewfinder.h b/src/qcam/viewfinder.h
index df490169..c9ca9891 100644
--- a/src/qcam/viewfinder.h
+++ b/src/qcam/viewfinder.h
@@ -20,7 +20,7 @@ public:
int setFormat(unsigned int format, unsigned int width,
unsigned int height);
- void display(const unsigned char *rgb);
+ void display(const unsigned char *rgb, size_t size);
private:
unsigned int format_;