android: camera_stream: Add CameraStream::Type
Define the CameraStream::Type enumeration and assign it to each CameraStream instance at construction time. The CameraStream type will be used to decide if memory needs to be allocated on its behalf or if the stream is backed by memory externally allocated by the Android framework. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
5cf64b26a2
commit
94c4d49ebe
3 changed files with 93 additions and 5 deletions
|
@ -12,7 +12,7 @@
|
|||
using namespace libcamera;
|
||||
|
||||
CameraStream::CameraStream(PixelFormat format, Size size,
|
||||
unsigned int index, Encoder *encoder)
|
||||
: format_(format), size_(size), index_(index), encoder_(encoder)
|
||||
Type type, unsigned int index, Encoder *encoder)
|
||||
: format_(format), size_(size), type_(type), index_(index), encoder_(encoder)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue