apps: cam: Fix include order
Several .cpp files in the cam application don't include their corresponding header first, as usually done by libcamera to ensure that headers are self-contained. Reorder headers to fix it. This shows through a compilation error that file_sink.h is missing libcamera/controls.h, fix it as well. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
This commit is contained in:
parent
841ef2b4bb
commit
330cd1c560
4 changed files with 7 additions and 4 deletions
|
@ -5,6 +5,8 @@
|
||||||
* Camera capture session
|
* Camera capture session
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "camera_session.h"
|
||||||
|
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
@ -16,7 +18,6 @@
|
||||||
#include "../common/event_loop.h"
|
#include "../common/event_loop.h"
|
||||||
#include "../common/stream_options.h"
|
#include "../common/stream_options.h"
|
||||||
|
|
||||||
#include "camera_session.h"
|
|
||||||
#include "capture_script.h"
|
#include "capture_script.h"
|
||||||
#include "file_sink.h"
|
#include "file_sink.h"
|
||||||
#ifdef HAVE_KMS
|
#ifdef HAVE_KMS
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
* File Sink
|
* File Sink
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "file_sink.h"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -21,8 +23,6 @@
|
||||||
#include "../common/image.h"
|
#include "../common/image.h"
|
||||||
#include "../common/ppm_writer.h"
|
#include "../common/ppm_writer.h"
|
||||||
|
|
||||||
#include "file_sink.h"
|
|
||||||
|
|
||||||
using namespace libcamera;
|
using namespace libcamera;
|
||||||
|
|
||||||
FileSink::FileSink([[maybe_unused]] const libcamera::Camera *camera,
|
FileSink::FileSink([[maybe_unused]] const libcamera::Camera *camera,
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include <libcamera/controls.h>
|
||||||
#include <libcamera/stream.h>
|
#include <libcamera/stream.h>
|
||||||
|
|
||||||
#include "frame_sink.h"
|
#include "frame_sink.h"
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
* cam - The libcamera swiss army knife
|
* cam - The libcamera swiss army knife
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -19,7 +21,6 @@
|
||||||
#include "../common/stream_options.h"
|
#include "../common/stream_options.h"
|
||||||
|
|
||||||
#include "camera_session.h"
|
#include "camera_session.h"
|
||||||
#include "main.h"
|
|
||||||
|
|
||||||
using namespace libcamera;
|
using namespace libcamera;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue