FFmpeg 8.0.1
Loading...
Searching...
No Matches
hwcontext_v4l2request.h
Go to the documentation of this file.
1/*
2 * This file is part of FFmpeg.
3 *
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef AVUTIL_HWCONTEXT_V4L2REQUEST_H
20#define AVUTIL_HWCONTEXT_V4L2REQUEST_H
21
22#include <stdint.h>
23#include <linux/videodev2.h>
24
25/**
26 * @file
27 * An API-specific header for AV_HWDEVICE_TYPE_V4L2REQUEST.
28 */
29
31
32/**
33 * V4L2 Request API frames context.
34 *
35 * This struct is allocated as AVHWFramesContext.hwctx
36 */
38 /**
39 * Internal context for the initialized V4L2 stateless decoder/encoder session.
40 */
42
43 /**
44 * V4L2_PIX_FMT_* coded pixel format to set on the OUTPUT queue (decoders)
45 * or the CAPTURE queue (encoders) during initialization.
46 *
47 * This field must be set by caller before av_hwframe_ctx_init() is called.
48 */
49 uint32_t pixelformat;
50
51 /**
52 * Optional bit depth of the frame pixel format, e.g. 8 or 10.
53 *
54 * This field should be set by caller before av_hwframe_ctx_init() is called,
55 * the field will be updated to match the selected frame pixel format after
56 * successful initialization.
57 */
58 uint32_t bit_depth;
59
60 /**
61 * Optional codec-specific extended controls to be set during initialization.
62 *
63 * These fields should be set by caller before av_hwframe_ctx_init() is called,
64 * fields are reset to NULL and 0 after successful initialization.
65 */
66 struct v4l2_ext_control *init_controls;
69
70#endif /* AVUTIL_HWCONTEXT_V4L2REQUEST_H */
struct AVV4L2RequestFramesContextInternal AVV4L2RequestFramesContextInternal
V4L2 Request API frames context.
AVV4L2RequestFramesContextInternal * internal
Internal context for the initialized V4L2 stateless decoder/encoder session.
uint32_t pixelformat
V4L2_PIX_FMT_* coded pixel format to set on the OUTPUT queue (decoders) or the CAPTURE queue (encoder...
struct v4l2_ext_control * init_controls
Optional codec-specific extended controls to be set during initialization.
uint32_t bit_depth
Optional bit depth of the frame pixel format, e.g.