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:
Jacopo Mondi 2020-10-02 19:22:24 +02:00
parent 5fbda0dfda
commit 5cf64b26a2
5 changed files with 60 additions and 29 deletions

View 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)
{
}