xine-lib  1.2.9
dxr3.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2000-2009 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 #ifndef HAVE_DXR3_H
22 #define HAVE_DXR3_H
23 
24 #include "em8300.h"
25 
26 #include <xine/xine_internal.h>
27 
28 #ifndef LOG_VID
29 #define LOG_VID 0
30 #endif
31 
32 /* data for the device name config entry */
33 #define CONF_KEY "dxr3.device_number"
34 #define CONF_NAME _("DXR3 device number")
35 #define CONF_HELP _("If you have more than one DXR3 in your computer, you can specify which one to use here.")
36 
37 /* image format used by dxr3_decoder to tag undecoded mpeg data */
38 #define XINE_IMGFMT_DXR3 (('3'<<24)|('R'<<16)|('X'<<8)|'D')
39 
40 /* name of the dxr3 video out plugin
41  * (used by decoders to check for dxr3 presence) */
42 #define DXR3_VO_ID "dxr3"
43 
44 /* inline helper implementations */
45 static inline int dxr3_present(xine_stream_t *stream)
46 {
47  int present = 0;
48 
49  if (stream->video_driver && stream->video_driver->node &&
50  stream->video_driver->node->plugin_class ) {
51  const video_driver_class_t *const vo_class = (video_driver_class_t *)stream->video_driver->node->plugin_class;
52  if (vo_class->identifier)
53  present = (strcmp(vo_class->identifier, DXR3_VO_ID) == 0);
54  }
55  llprintf(LOG_VID, "dxr3 %s\n", present ? "present" : "not present");
56  return present;
57 }
58 
59 #endif
const char * identifier
short human readable identifier for this plugin class
Definition: video_out.h:440
#define DXR3_VO_ID
Definition: dxr3.h:42
static int dxr3_present(xine_stream_t *stream)
Definition: dxr3.h:45
#define llprintf(cat,...)
Definition: xineutils.h:556
#define LOG_VID
Definition: dxr3.h:29
Definition: xine_internal.h:210
Definition: video_out.h:430
vo_driver_t * video_driver
Definition: xine_internal.h:244