diff options
Diffstat (limited to 'utils/v4l2-compliance/cv4l-helpers.h')
-rw-r--r-- | utils/v4l2-compliance/cv4l-helpers.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/v4l2-compliance/cv4l-helpers.h b/utils/v4l2-compliance/cv4l-helpers.h index 49ab7f74..1b01a6ca 100644 --- a/utils/v4l2-compliance/cv4l-helpers.h +++ b/utils/v4l2-compliance/cv4l-helpers.h @@ -59,6 +59,11 @@ public: bool has_streaming() const { return v4l_has_streaming(this); } bool has_ext_pix_format() const { return v4l_has_ext_pix_format(this); } + void querycap(v4l2_capability &cap) + { + cap = this->cap; + } + int queryctrl(v4l2_queryctrl &qc) { return cv4l_ioctl(VIDIOC_QUERYCTRL, &qc); @@ -469,6 +474,26 @@ public: return -1; } + int encoder_cmd(v4l2_encoder_cmd &cmd) + { + return cv4l_ioctl(VIDIOC_ENCODER_CMD, &cmd); + } + + int try_encoder_cmd(v4l2_encoder_cmd &cmd) + { + return cv4l_ioctl(VIDIOC_TRY_ENCODER_CMD, &cmd); + } + + int decoder_cmd(v4l2_decoder_cmd &cmd) + { + return cv4l_ioctl(VIDIOC_DECODER_CMD, &cmd); + } + + int try_decoder_cmd(v4l2_decoder_cmd &cmd) + { + return cv4l_ioctl(VIDIOC_TRY_DECODER_CMD, &cmd); + } + v4l2_fract g_pixel_aspect(unsigned &width, unsigned &height, unsigned type = 0) { v4l2_cropcap ratio; |