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 / libvo / video_out.c < prev   
C/C++ Source or Header  |  2004-02-01  |  2KB  |  78 lines

  1. /*
  2.  * video_out.c
  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.  
  24. #include "config.h"
  25.  
  26. #include <stdlib.h>
  27. #include <inttypes.h>
  28.  
  29. #include "video_out.h"
  30.  
  31. /* Externally visible list of all vo drivers */
  32.  
  33. extern vo_open_t vo_xv_open;
  34. extern vo_open_t vo_xv2_open;
  35. extern vo_open_t vo_x11_open;
  36. extern vo_open_t vo_dxrgb_open;
  37. extern vo_open_t vo_dx_open;
  38. extern vo_open_t vo_sdl_open;
  39. extern vo_open_t vo_null_open;
  40. extern vo_open_t vo_nullslice_open;
  41. extern vo_open_t vo_nullskip_open;
  42. extern vo_open_t vo_nullrgb16_open;
  43. extern vo_open_t vo_nullrgb32_open;
  44. extern vo_open_t vo_pgm_open;
  45. extern vo_open_t vo_pgmpipe_open;
  46. extern vo_open_t vo_md5_open;
  47.  
  48. static vo_driver_t video_out_drivers[] = {
  49. #ifdef LIBVO_XV
  50.     {"xv", vo_xv_open},
  51.     {"xv2", vo_xv2_open},
  52. #endif
  53. #ifdef LIBVO_X11
  54.     {"x11", vo_x11_open},
  55. #endif
  56. #ifdef LIBVO_DX
  57.     {"dxrgb", vo_dxrgb_open},
  58.     {"dx", vo_dx_open},
  59. #endif
  60. #ifdef LIBVO_SDL
  61.     {"sdl", vo_sdl_open},
  62. #endif
  63.     {"null", vo_null_open},
  64.     {"nullslice", vo_nullslice_open},
  65.     {"nullskip", vo_nullskip_open},
  66.     {"nullrgb16", vo_nullrgb16_open},
  67.     {"nullrgb32", vo_nullrgb32_open},
  68.     {"pgm", vo_pgm_open},
  69.     {"pgmpipe", vo_pgmpipe_open},
  70.     {"md5", vo_md5_open},
  71.     {NULL, NULL}
  72. };
  73.  
  74. vo_driver_t const * vo_drivers (void)
  75. {
  76.     return video_out_drivers;
  77. }
  78.