summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/video_out.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/video_out.h')
-rw-r--r--apps/plugins/mpegplayer/video_out.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/video_out.h b/apps/plugins/mpegplayer/video_out.h
new file mode 100644
index 0000000000..342c551972
--- /dev/null
+++ b/apps/plugins/mpegplayer/video_out.h
@@ -0,0 +1,58 @@
1/*
2 * video_out.h
3 * Copyright (C) 2000-2003 Michel Lespinasse <walken@zoy.org>
4 * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
5 *
6 * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
7 * See http://libmpeg2.sourceforge.net/ for updates.
8 *
9 * mpeg2dec is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * mpeg2dec is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
23
24struct mpeg2_sequence_s;
25struct mpeg2_convert_init_s;
26typedef struct {
27 int (* convert) (int stage, void * id,
28 const struct mpeg2_sequence_s * sequence,
29 int stride, uint32_t accel, void * arg,
30 struct mpeg2_convert_init_s * result);
31} vo_setup_result_t;
32
33typedef struct vo_instance_s vo_instance_t;
34struct vo_instance_s {
35 int (* setup) (vo_instance_t * instance, unsigned int width,
36 unsigned int height, unsigned int chroma_width,
37 unsigned int chroma_height, vo_setup_result_t * result);
38 void (* setup_fbuf) (vo_instance_t * instance, uint8_t ** buf, void ** id);
39 void (* set_fbuf) (vo_instance_t * instance, uint8_t ** buf, void ** id);
40 void (* start_fbuf) (vo_instance_t * instance,
41 uint8_t * const * buf, void * id);
42 void (* draw) (vo_instance_t * instance, uint8_t * const * buf, void * id);
43 void (* discard) (vo_instance_t * instance,
44 uint8_t * const * buf, void * id);
45 void (* close) (vo_instance_t * instance);
46};
47
48typedef vo_instance_t * vo_open_t (void);
49
50typedef struct {
51 char * name;
52 vo_open_t * open;
53} vo_driver_t;
54
55void vo_accel (uint32_t accel);
56
57/* return NULL terminated array of all drivers */
58vo_driver_t const * vo_drivers (void);