~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to stream/stream_dvdnav.h

  • Committer: Bazaar Package Importer
  • Author(s): A Mennucc1
  • Date: 2009-03-23 10:05:45 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090323100545-x8h79obawnnte7kk
Tags: 1.0~rc2+svn20090303-5
debian/control : move docbook-xml,docbook-xsl,xsltproc from 
Build-Depends-Indep to Build-Depends, since they are needed to run
configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef MPLAYER_STREAM_DVDNAV_H
2
2
#define MPLAYER_STREAM_DVDNAV_H
3
3
 
4
 
#include <dvdnav.h>
5
 
 
6
 
typedef struct {
7
 
  int event;             /* event number fromd dvdnav_events.h */
8
 
  void * details;        /* event details */
9
 
  int len;               /* bytes in details */
10
 
} dvdnav_event_t;
 
4
#include <stdint.h>
 
5
#include "stream.h"
11
6
 
12
7
typedef struct {
13
8
  uint16_t sx, sy;
14
9
  uint16_t ex, ey;
 
10
  uint32_t palette;
15
11
} nav_highlight_t;
16
12
 
17
 
typedef struct {
18
 
  dvdnav_t *       dvdnav;              /* handle to libdvdnav stuff */
19
 
  char *           filename;            /* path */
20
 
  unsigned int     duration;            /* in milliseconds */
21
 
  int              mousex, mousey;
22
 
  int              title;
23
 
  unsigned int     spu_clut[16], spu_set;
24
 
  dvdnav_highlight_event_t hlev;
25
 
} dvdnav_priv_t;
26
 
 
27
 
 
28
 
int dvdnav_number_of_subs(stream_t *stream);
29
 
int dvdnav_aid_from_lang(stream_t *stream, unsigned char *language);
30
 
int dvdnav_lang_from_aid(stream_t *stream, int id, unsigned char *buf);
31
 
int dvdnav_sid_from_lang(stream_t *stream, unsigned char *language);
32
 
int dvdnav_lang_from_sid(stream_t *stream, int sid, unsigned char *buf);
33
 
int mp_dvdnav_handle_input(stream_t *stream, int cmd, int *button);
 
13
int mp_dvdnav_number_of_subs(stream_t *stream);
 
14
int mp_dvdnav_aid_from_audio_num(stream_t *stream, int audio_num);
 
15
int mp_dvdnav_aid_from_lang(stream_t *stream, unsigned char *language);
 
16
int mp_dvdnav_lang_from_aid(stream_t *stream, int id, unsigned char *buf);
 
17
int mp_dvdnav_sid_from_lang(stream_t *stream, unsigned char *language);
 
18
int mp_dvdnav_lang_from_sid(stream_t *stream, int sid, unsigned char *buf);
 
19
void mp_dvdnav_handle_input(stream_t *stream, int cmd, int *button);
34
20
void mp_dvdnav_update_mouse_pos(stream_t *stream, int32_t x, int32_t y, int* button);
35
21
void mp_dvdnav_get_highlight (stream_t *stream, nav_highlight_t *hl);
36
22
unsigned int *mp_dvdnav_get_spu_clut(stream_t *stream);
 
23
void mp_dvdnav_switch_title(stream_t *stream, int title);
 
24
int mp_dvdnav_is_eof (stream_t *stream);
 
25
int mp_dvdnav_skip_still (stream_t *stream);
 
26
int mp_dvdnav_skip_wait (stream_t *stream);
 
27
void mp_dvdnav_read_wait (stream_t *stream, int mode, int automode);
 
28
int mp_dvdnav_cell_has_changed (stream_t *stream, int clear);
 
29
int mp_dvdnav_audio_has_changed (stream_t *stream, int clear);
 
30
int mp_dvdnav_spu_has_changed (stream_t *stream, int clear);
 
31
int mp_dvdnav_stream_has_changed (stream_t *stream);
37
32
 
38
 
#endif
 
33
#endif /* MPLAYER_STREAM_DVDNAV_H */