xine-lib 1.2.11
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
30extern "C" {
31#endif
32
33#include <vdpau/vdpau.h>
34
35
36typedef 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
Definition: accel_vdpau.h:36
VdpDecoderCreate * vdp_decoder_create
Definition: accel_vdpau.h:43
VdpDecoderRender * vdp_decoder_render
Definition: accel_vdpau.h:45
int vdp_runtime_nr
Definition: accel_vdpau.h:54
VdpDevice vdp_device
Definition: accel_vdpau.h:39
VdpVideoSurface surface
Definition: accel_vdpau.h:51
VdpDecoderDestroy * vdp_decoder_destroy
Definition: accel_vdpau.h:44
vo_frame_t * vo_frame
Definition: accel_vdpau.h:37
VdpChromaType chroma
Definition: accel_vdpau.h:52
int * current_vdp_runtime_nr
Definition: accel_vdpau.h:55
VdpGetErrorString * vdp_get_error_string
Definition: accel_vdpau.h:41
Definition: video_out.h:59