diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-03-29 17:20:07 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-02 17:24:41 +0300 |
commit | 80e236e19b61a1267948433fd6855da138d6f527 (patch) | |
tree | f2ff6a8311b5c4d4cef65e4a7260e75c84aee6ec /src/qcam/viewfinder.h | |
parent | 29f323eea84c5bf5037658b0042478124ed58ff1 (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.h | 2 |
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_; |