FFmpeg 5.1.2
Loading...
Searching...
No Matches
hwcontext_es.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 VeriSilicon
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#ifndef AVUTIL_HWCONTEXT_VSV_H
22#define AVUTIL_HWCONTEXT_VSV_H
23// #ifndef ESW_FF_ENHANCEMENT
24// #include "dectypes.h"
25// #include "dwl.h"
26// #endif
27/**
28 * VAAPI connection details.
29 *
30 * Allocated as AVHWDeviceContext.hwctx
31 */
32typedef struct AVVSVDeviceContext {
33 char *device;
34 unsigned int dec_client_type;
35 unsigned int enc_client_type;
36
41
42 int fd_mem;
44
47 const void *dwl_inst;
49
53
54/**
55 * VAAPI-specific data associated with a frame pool.
56 *
57 * Allocated as AVHWFramesContext.hwctx.
58 */
59typedef struct AVVSVFramesContext {
61 struct {
64 int width;
65 int height;
66 struct {
67 int enabled;
68 int x;
69 int y;
70 int w;
71 int h;
73 struct {
74 int enabled;
75 int w;
76 int h;
79// #ifndef ESW_FF_ENHANCEMENT
80// struct DWLLinearMem* buffer;
81// #endif
83
84typedef struct VSVFramePriv {
85 int pp_sel;
87
88#endif
89
90
AVVSVFormat
@ AVVSV_FORMAT_YUV420_SEMIPLANAR
VAAPI connection details.
unsigned int enc_client_type
unsigned int dec_client_type
const void * dwl_inst
VAAPI-specific data associated with a frame pool.
AVVSVFormat format
struct AVVSVFramesContext::@10 pic_info[5]
struct AVVSVFramesContext::@10::@11 crop
struct AVVSVFramesContext::@10::@12 scale