android: camera_stream: Break out CameraStream
Break CameraStream out of the CameraDevice class. No functional changes, only the code is moved. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
5fbda0dfda
commit
5cf64b26a2
5 changed files with 60 additions and 29 deletions
18
src/android/camera_stream.cpp
Normal file
18
src/android/camera_stream.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
/*
|
||||
* Copyright (C) 2020, Google Inc.
|
||||
*
|
||||
* camera_stream.cpp - Camera HAL stream
|
||||
*/
|
||||
|
||||
#include "camera_stream.h"
|
||||
|
||||
#include "jpeg/encoder.h"
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
CameraStream::CameraStream(PixelFormat format, Size size,
|
||||
unsigned int index, Encoder *encoder)
|
||||
: format_(format), size_(size), index_(index), encoder_(encoder)
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue