Miam-Player
0.8.0
A nice music player
dxva2.h
Go to the documentation of this file.
1
/*
2
* DXVA2 HW acceleration
3
*
4
* copyright (c) 2009 Laurent Aimar
5
*
6
* This file is part of FFmpeg.
7
*
8
* FFmpeg is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
12
*
13
* FFmpeg is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with FFmpeg; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
23
#ifndef AVCODEC_DXVA2_H
24
#define AVCODEC_DXVA2_H
25
32
#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0602
33
#undef _WIN32_WINNT
34
#define _WIN32_WINNT 0x0602
35
#endif
36
37
#include <stdint.h>
38
#include <d3d9.h>
39
#include <dxva2api.h>
40
48
#define FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG 1
49
#define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO 2
50
51
57
struct
dxva_context
{
61
IDirectXVideoDecoder *
decoder
;
62
66
const
DXVA2_ConfigPictureDecode *
cfg
;
67
71
unsigned
surface_count
;
72
76
LPDIRECT3DSURFACE9 *
surface
;
77
81
uint64_t
workaround
;
82
86
unsigned
report_id
;
87
};
88
93
#endif
/* AVCODEC_DXVA2_H */
dxva_context::surface
LPDIRECT3DSURFACE9 * surface
Definition:
dxva2.h:76
dxva_context::cfg
const DXVA2_ConfigPictureDecode * cfg
Definition:
dxva2.h:66
dxva_context::surface_count
unsigned surface_count
Definition:
dxva2.h:71
dxva_context::workaround
uint64_t workaround
Definition:
dxva2.h:81
dxva_context::report_id
unsigned report_id
Definition:
dxva2.h:86
dxva_context::decoder
IDirectXVideoDecoder * decoder
Definition:
dxva2.h:61
dxva_context
Definition:
dxva2.h:57
src
acoustid
chromaprint
libavcodec
dxva2.h
Generated on Thu Mar 23 2017 19:56:52 for Miam-Player by
1.8.13