diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-08-16 18:21:21 +0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-09-18 21:04:46 +0200 |
commit | 44d8ec9272ad265aae02b064a0c5f4a80db5a107 (patch) | |
tree | c7a7b311f0022c26cc783f6020bf0c50f90395ef /sub/av_sub.h | |
parent | 435d7c97c900a53adedcca32b07bb4a9a5f890d3 (diff) | |
download | mpv-44d8ec9272ad265aae02b064a0c5f4a80db5a107.tar.bz2 mpv-44d8ec9272ad265aae02b064a0c5f4a80db5a107.tar.xz |
sd_lavc: use subtitle framework for former av_sub.c code
Change libavcodec subtitle decoding code (used for some bitmap
subtitle types) to use the same decoding framework as sd_ass. The
functionality that was previously in av_sub.c and was directly called
from mplayer.c is now in sd_lavc.c.
Conflicts:
mplayer.c
sub/av_sub.h
sub/sd_lavc.c
Merged from mplayer2. The remaining use of is_av_sub() is replaced by
a check whether a subtitle decoder is active, which should give the
same results.
Diffstat (limited to 'sub/av_sub.h')
-rw-r--r-- | sub/av_sub.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/sub/av_sub.h b/sub/av_sub.h deleted file mode 100644 index ee6205c87d..0000000000 --- a/sub/av_sub.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of MPlayer. - * - * MPlayer is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * MPlayer is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with MPlayer; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#ifndef MPLAYER_AV_SUB_H -#define MPLAYER_AV_SUB_H - -#include <stdint.h> - -struct sh_sub; - -void reset_avsub(struct sh_sub *sh); -int decode_avsub(struct sh_sub *sh, uint8_t *data, int size, - double pts, double endpts); -bool is_av_sub(int type); - -#endif /* MPLAYER_AV_SUB_H */ |