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_INTERNAL_H
20 #define AVUTIL_HWCONTEXT_INTERNAL_H
21
22 #include <stddef.h>
23
28
32
33 /**
34 * An array of pixel formats supported by the AVHWFramesContext instances
35 * Terminated by AV_PIX_FMT_NONE.
36 */
38
39 /**
40 * size of the public hardware-specific context,
41 * i.e. AVHWDeviceContext.hwctx
42 */
44 /**
45 * size of the private data, i.e.
46 * AVHWDeviceInternal.priv
47 */
49
50 /**
51 * Size of the hardware-specific device configuration.
52 * (Used to query hwframe constraints.)
53 */
55
56 /**
57 * size of the public frame pool hardware-specific context,
58 * i.e. AVHWFramesContext.hwctx
59 */
61 /**
62 * size of the private data, i.e.
63 * AVHWFramesInternal.priv
64 */
66
72
75
77 const void *hwconfig,
79
82
91
96
102
106
107 /**
108 * For a derived device, a reference to the original device
109 * context it was derived from.
110 */
112 };
113
117
119
120 /**
121 * For a derived context, a reference to the original frames
122 * context it was derived from.
123 */
125 /**
126 * Flags to apply to the mapping from the source to the derived
127 * frame context when trying to allocate in the derived context.
128 */
130 };
131
133 /**
134 * A reference to the original source of the mapping.
135 */
137 /**
138 * A reference to the hardware frames context in which this
139 * mapping was made. May be the same as source->hw_frames_ctx,
140 * but need not be.
141 */
143 /**
144 * Unmap function.
145 */
148 /**
149 * Hardware-specific private data associated with the mapping.
150 */
153
159
160 /**
161 * Replace the current hwmap of dst with the one from src, used for indirect
162 * mappings like VAAPI->(DRM)->OpenCL/Vulkan where a direct interop is missing
163 */
165
177
178 #endif /* AVUTIL_HWCONTEXT_INTERNAL_H */