annotate sub/av_sub.h @ 32718:1fc2df65b915

Add return_check() helper function and use it to simplify some checks.
author diego
date Thu, 20 Jan 2011 12:44:08 +0000
parents f4822d5572f5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32457
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
1 /*
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
2 * This file is part of MPlayer.
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
3 *
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
7 * (at your option) any later version.
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
8 *
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
12 * GNU General Public License for more details.
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
13 *
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License along
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
17 */
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
18
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
19 #ifndef MPLAYER_AV_SUB_H
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
20 #define MPLAYER_AV_SUB_H
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
21
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
22 #include <stdint.h>
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
23
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
24 struct sh_sub;
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
25
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
26 void reset_avsub(struct sh_sub *sh);
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
27 int decode_avsub(struct sh_sub *sh, uint8_t **data, int *size,
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
28 double *pts, double *endpts);
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
29
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
30 #endif /* MPLAYER_AV_SUB_H */