Mercurial > mplayer.hg
annotate subreader.h @ 8609:1d98280b9ad1
The following patch allows the MPlayer "cdparanoia" support to work on
NetBSD-1.6_STABLE, both "cdda://NN" and "cddb://NN" URI's.
The CDROM ioctl's are actually more like OpenBSD's than FreeBSD's. I
went with the "/dev/cdrom" symlink as the default device, though, as
it otherwise gets messy fast... The first CDROM is "/dev/rcd0d" on
NetBSD/i386, but "/dev/rcd0c" on all other NetBSD ports, and only the
cdda_identify_scsi() form seems to work on NetBSD. (I searched the web
in vain for the Paranoia API, so I'm left to hacking. ;-))
Frederick Bruckman <fredb@immanent.net>
author | arpi |
---|---|
date | Sat, 28 Dec 2002 14:04:54 +0000 |
parents | fb88ccbc5ccc |
children | a879b231b7e3 |
rev | line source |
---|---|
616 | 1 #ifndef __MPLAYER_SUBREADER_H |
2 #define __MPLAYER_SUBREADER_H | |
258 | 3 |
4 extern int sub_uses_time; | |
5 extern int sub_errs; | |
6 extern int sub_num; // number of subtitle structs | |
8361
2202c00001e3
overlapping subtitles support is now optional, can be disabled (-nooverlapsub)
arpi
parents:
7982
diff
changeset
|
7 extern int suboverlap_enabled; |
2912 | 8 |
9 // subtitle formats | |
10 #define SUB_INVALID -1 | |
11 #define SUB_MICRODVD 0 | |
12 #define SUB_SUBRIP 1 | |
13 #define SUB_SUBVIEWER 2 | |
14 #define SUB_SAMI 3 | |
15 #define SUB_VPLAYER 4 | |
16 #define SUB_RT 5 | |
17 #define SUB_SSA 6 | |
18 #define SUB_DUNNOWHAT 7 // FIXME what format is it ? | |
19 #define SUB_MPSUB 8 | |
20 #define SUB_AQTITLE 9 | |
6012 | 21 #define SUB_SUBVIEWER2 10 |
6076
eff64fb1ffea
patch fixes broken detecniou of AQTitle subtiles and adds support for subtitles created by subrip 0.9 - by Jiri.Svoboda@seznam.cz
arpi
parents:
6012
diff
changeset
|
22 #define SUB_SUBRIP09 11 |
7982
eac680483e6c
JACOSub is another subtitling format, whose specifications are at:
arpi
parents:
7460
diff
changeset
|
23 #define SUB_JACOSUB 12 |
2912 | 24 |
25 // One of the SUB_* constant above | |
26 extern int sub_format; | |
27 | |
7215
065387d29573
increased SUB_MAX_TEXT by Piotr Krukowiecki <piotr@pingu.ii.uj.edu.pl>
alex
parents:
6792
diff
changeset
|
28 #define SUB_MAX_TEXT 10 |
258 | 29 |
30 typedef struct { | |
31 | |
32 int lines; | |
33 | |
34 unsigned long start; | |
35 unsigned long end; | |
36 | |
37 char *text[SUB_MAX_TEXT]; | |
38 } subtitle; | |
39 | |
4064
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
40 subtitle* sub_read_file (char *filename, float pts); |
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
41 char * sub_filename(char *path, char * fname); |
2050 | 42 void list_sub_file(subtitle* subs); |
6792 | 43 void dump_srt(subtitle* subs, float fps); |
4064
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
44 void dump_mpsub(subtitle* subs, float fps); |
7460 | 45 void dump_microdvd(subtitle* subs, float fps); |
8451 | 46 void dump_jacosub(subtitle* subs, float fps); |
47 void dump_sami(subtitle* subs, float fps); | |
3543 | 48 void sub_free( subtitle * subs ); |
4064
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
49 void find_sub(subtitle* subtitles,int key); |
8365
423a19edc0a4
This patch makes it possible to navigate among the subtitles while
arpi
parents:
8361
diff
changeset
|
50 void step_sub(subtitle *subtitles, float pts, int movement); |
818 | 51 #endif |