xine-lib 1.2.13-20230125hg15249
video_out.h
Go to the documentation of this file.
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;
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);
32
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;
54
55void vo_accel (uint32_t accel);
56
57/* return NULL terminated array of all drivers */
58vo_driver_t const * vo_drivers (void);
unsigned int height
Definition gfontrle.c:5
unsigned int width
Definition gfontrle.c:4
struct vo_driver_s vo_driver_t
Definition video_out.h:48
void vo_accel(uint32_t accel)
vo_instance_t * vo_open_t(void)
Definition video_out.h:48
vo_driver_t const * vo_drivers(void)
Definition mpeg2.h:134
Definition mpeg2.h:44
Definition video_out.h:50
char * name
Definition video_out.h:51
vo_open_t * open
Definition video_out.h:52
Definition video_out.h:34
void(* draw)(vo_instance_t *instance, uint8_t *const *buf, void *id)
Definition video_out.h:42
void(* setup_fbuf)(vo_instance_t *instance, uint8_t **buf, void **id)
Definition video_out.h:38
void(* start_fbuf)(vo_instance_t *instance, uint8_t *const *buf, void *id)
Definition video_out.h:40
void(* set_fbuf)(vo_instance_t *instance, uint8_t **buf, void **id)
Definition video_out.h:39
void(* discard)(vo_instance_t *instance, uint8_t *const *buf, void *id)
Definition video_out.h:43
int(* setup)(vo_instance_t *instance, unsigned int width, unsigned int height, unsigned int chroma_width, unsigned int chroma_height, vo_setup_result_t *result)
Definition video_out.h:35
void(* close)(vo_instance_t *instance)
Definition video_out.h:45
Definition video_out.h:26