From a55d409e3c61592a51e9dbb61164fc41ca82416b Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Thu, 7 Mar 2019 02:19:28 +0100 Subject: [PATCH] Include project's local headers for H.264 and HEVC - h264-ctrls.h - hevc-ctrls.h Signed-off-by: Ralf Zerres --- presets.c | 4 ++-- v4l2-request-test.h | 4 ++-- v4l2.c | 9 +++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/presets.c b/presets.c index 098f97a..bba2432 100644 --- a/presets.c +++ b/presets.c @@ -23,8 +23,8 @@ #include #include #include -#include -#include +//#include +//#include #include "v4l2-request-test.h" diff --git a/v4l2-request-test.h b/v4l2-request-test.h index ad8ad5a..d99337d 100644 --- a/v4l2-request-test.h +++ b/v4l2-request-test.h @@ -24,8 +24,8 @@ #include #include #include -//#include -//#include +#include +#include #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) #define TS_REF_INDEX(index) ((index) * 1000) diff --git a/v4l2.c b/v4l2.c index cde9a11..ee7cc44 100644 --- a/v4l2.c +++ b/v4l2.c @@ -30,8 +30,8 @@ #include #include #include -#include -#include +//#include +//#include #include "v4l2-request-test.h" @@ -453,13 +453,14 @@ static int set_control(int video_fd, int request_fd, unsigned int id, controls.request_fd = request_fd; } - if (!quiet) + if (!quiet) { /* Ref: https://www.kernel.org/doc/html/v4.10/media/uapi/v4l/vidioc-g-ext-ctrls.html */ fprintf(stderr, "Initialized 'controls' structure (ctrl_class: %d, which: %d)\n", controls.ctrl_class, controls.which); fprintf(stderr, " 'control' value (id: %d, size: %d)\n", control.id, control.size); - + } + rc = ioctl(video_fd, VIDIOC_S_EXT_CTRLS, &controls); if (rc < 0) { fprintf(stderr, "Unable to set control: %s (%d)\n",