UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
hwaccel_vaapi.h
Go to the documentation of this file.
1
7/*
8 * Copyright (c) 2018-2021 CESNET z.s.p.o.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, is permitted provided that the following conditions
12 * are met:
13 *
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 *
17 * 2. Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
20 *
21 * 3. All advertising materials mentioning features or use of this software
22 * must display the following acknowledgement:
23 *
24 * This product includes software developed by CESNET z.s.p.o.
25 *
26 * 4. Neither the name of the CESNET nor the names of its contributors may be
27 * used to endorse or promote products derived from this software without
28 * specific prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
31 * "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
32 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
33 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
34 * EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
35 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
37 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
39 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
40 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
41 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 *
43 */
44
45#ifndef HWACCEL_VAAPI_H
46#define HWACCEL_VAAPI_H
47
48#ifdef HWACC_VAAPI
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
54#include "types.h"
55
56struct AVCodecContext;
57struct hw_accel_state;
58struct vaapi_ctx;
59
60void vaapi_uninit(struct hw_accel_state *s);
61int vaapi_init(struct AVCodecContext *s,
62 struct hw_accel_state *state,
63 codec_t out_codec);
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif //HWACC_VAAPI
70
71#endif
void ** state
int vaapi_init(struct AVCodecContext *s, struct hw_accel_state *state, codec_t out_codec)
void vaapi_uninit(struct hw_accel_state *s)
This file contains some common data types.
codec_t
Definition types.h:65