index
:
libcamera/jmondi/libcamera.git
imx8mp/extensible-format
imx8mp/extensible-format-v8
imx8mp/extensible-format-v9
isi/raw_sensor
isi/raw_sensor_v2
jmondi/android/ndk/pinephonepro
jmondi/android/pinephonepro
jmondi/android/vndk
jmondi/device-match-generalize
jmondi/imx8mp/debix-a
jmondi/lc-compliance-cros
jmondi/pinephone
jmondi/pinephonepro
jmondi/pinephonepro-af
jmondi/rk3399/google-dru-scarlet
jmondi/rockpi/af/imx519
jmondi/rpi5-on-mainline
multicontext/rpi/v3
pfc/rkisp1-free-run
pfc/rkisp1-free-run-upstreaming
pfc/rkisp1-free-run-v2
yaml-emitter
Jacopo Mondi's clone of libcamera
git repository hosting on libcamera.org
summary
refs
log
tree
commit
diff
log msg
aut
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* viewfinder.h - qcam - Viewfinder base class
*/
#pragma once
#include <QImage>
#include <QList>
#include <QSize>
#include <libcamera/formats.h>
#include <libcamera/framebuffer.h>
class
Image
;
class
ViewFinder
{
public
:
virtual
~
ViewFinder
() =
default
;
virtual
const
QList
<
libcamera
::
PixelFormat
> &
nativeFormats
()
const
=
0
;
virtual
int
setFormat
(
const
libcamera
::
PixelFormat
&
format
,
const
QSize
&
size
,
unsigned int
stride
) =
0
;
virtual
void
render
(
libcamera
::
FrameBuffer
*
buffer
,
Image
*
image
) =
0
;
virtual
void
stop
() =
0
;
virtual
QImage
getCurrentImage
() =
0
;
};->