home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / ccd0605.iso / LINUX / gopchop-1.1.7.tar.tar / gopchop-1.1.7.tar / gopchop-1.1.7 / include / video_out.h < prev   
C/C++ Source or Header  |  2005-04-30  |  2KB  |  66 lines

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