index
:
libcamera/pinchartl/libcamera.git
master
mtk/camsv
mtk/multi-cam
rpi/streams/next
simple/imx8
Laurent Pinchart's clone of libcamera
git repository hosting on libcamera.org
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
src
/
ipa
/
raspberrypi
/
controller
/
rpi
/
focus.hpp
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* libcamera V4L2 API tests
*/
#include
"v4l2_videodevice_test.h"
class
StreamOnStreamOffTest
:
public
V4L2VideoDeviceTest
{
public
:
StreamOnStreamOffTest
()
:
V4L2VideoDeviceTest
(
"vimc"
,
"Raw Capture 0"
) {}
protected
:
int
run
()
{
const unsigned int
bufferCount
=
8
;
int
ret
=
capture_
->
allocateBuffers
(
bufferCount
, &
buffers_
);
if
(
ret
<
0
)
return
TestFail
;
ret
=
capture_
->
streamOn
();
if
(
ret
)
return
TestFail
;
ret
=
capture_
->
streamOff
();
if
(
ret
)
return
TestFail
;
return
TestPass
;
}
};
TEST_REGISTER
(
StreamOnStreamOffTest
)