xine-lib  1.2.10
accel_vdpau.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2019 the xine project
3  *
4  * This file is part of xine, a free video player.
5  *
6  * xine is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * xine 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
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19  *
20  *
21  * Common acceleration definitions for vdpau
22  *
23  *
24  */
25 
26 #ifndef HAVE_XINE_ACCEL_VDPAU_H
27 #define HAVE_XINE_ACCEL_VDPAU_H
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #include <vdpau/vdpau.h>
34 
35 
36 typedef struct {
38 
39  VdpDevice vdp_device;
40 
41  VdpGetErrorString *vdp_get_error_string;
42 
43  VdpDecoderCreate *vdp_decoder_create;
44  VdpDecoderDestroy *vdp_decoder_destroy;
45  VdpDecoderRender *vdp_decoder_render;
46 
47  /* if not NULL, call these around the 3 above. */
48  void (*lock) (vo_frame_t *frame);
49  void (*unlock) (vo_frame_t *frame);
50 
51  VdpVideoSurface surface;
52  VdpChromaType chroma;
53 
54  int vdp_runtime_nr; /* this is used to keep in sync on preemptions */
56 
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif
64 
vdpau_accel_t::vdp_decoder_render
VdpDecoderRender * vdp_decoder_render
Definition: accel_vdpau.h:45
vdpau_accel_t
Definition: accel_vdpau.h:36
vdpau_accel_t::vdp_runtime_nr
int vdp_runtime_nr
Definition: accel_vdpau.h:54
vdpau_accel_t::vdp_get_error_string
VdpGetErrorString * vdp_get_error_string
Definition: accel_vdpau.h:41
vdpau_accel_t::current_vdp_runtime_nr
int * current_vdp_runtime_nr
Definition: accel_vdpau.h:55
vdpau_accel_t::chroma
VdpChromaType chroma
Definition: accel_vdpau.h:52
vdpau_accel_t::vdp_decoder_destroy
VdpDecoderDestroy * vdp_decoder_destroy
Definition: accel_vdpau.h:44
vdpau_accel_t::vdp_decoder_create
VdpDecoderCreate * vdp_decoder_create
Definition: accel_vdpau.h:43
vdpau_accel_t::surface
VdpVideoSurface surface
Definition: accel_vdpau.h:51
vdpau_accel_t::vdp_device
VdpDevice vdp_device
Definition: accel_vdpau.h:39
vo_frame_s
Definition: video_out.h:59
vdpau_accel_t::vo_frame
vo_frame_t * vo_frame
Definition: accel_vdpau.h:37