1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00
mpv/libmpdemux
wm4 9c02ae7e95 demuxer: introduce a general stream struct
There are different C types for each stream type: sh_video for video,
sh_audio for audio, sh_sub for sub. There is no type that handles all
stream types in a generic way. Instead, there's a macro SH_COMMON, that
is used to define common fields for all 3 stream structs. Accessing
the common fields is hard if you want to be independent from the stream
type.

Introduce an actual generic stream struct (struct sh_stream), which is
supposed to unify all 3 stream types one day. Once all fields defined
by SH_COMMON have been moved into sh_stream, the transition is complete.

Move some fields into sh_stream, and rewrite osd_show_tracks to use
them.
2012-08-03 13:25:41 +02:00
..
asf.h Change <endian.h> include to <sys/types.h> 2012-07-31 23:37:56 +02:00
asfguid.h asfguid.h: Use AV_RL32 also in x86 2010-11-02 04:14:20 +02:00
asfheader.c build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
asfheader.h Add header for asf_check_header, read_asf_header; avoids forward declarations. 2010-02-17 23:45:01 +00:00
aviheader.c aviheader.c: silence a warning 2012-02-29 02:49:48 +02:00
aviheader.h Change <endian.h> include to <sys/types.h> 2012-07-31 23:37:56 +02:00
aviprint.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
aviprint.h Declare public function print_vprp() in aviprint.h. 2010-02-21 23:36:36 +00:00
demux_asf.c demux, vd_ffmpeg: fix demux keyframe flag, set AV_PKT_FLAG_KEY 2012-07-25 01:10:30 +03:00
demux_audio.c demux_audio: always enable parsing for audio streams 2012-08-03 03:50:35 +02:00
demux_avi.c Remove some demuxers and decoders 2012-07-30 22:14:32 +02:00
demux_avs.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
demux_avs.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
demux_cue.c core: add new support for reading .cue files 2012-01-18 04:25:19 +01:00
demux_demuxers.c demux_demuxers: fix seeking bug (--audiofile) 2011-10-23 03:29:42 +03:00
demux_edl.c EDL: add support for new EDL file format 2011-04-05 06:26:17 +03:00
demux_gif.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
demux_lavf.c demuxer: introduce a general stream struct 2012-08-03 13:25:41 +02:00
demux_mf.c demux_mf: add j2c and jpc as jpeg2k, add tiff extension as tif image 2012-08-03 01:43:44 +02:00
demux_mkv.c demuxer: introduce a general stream struct 2012-08-03 13:25:41 +02:00
demux_mng.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
demux_nemesi.c demux_nemesi: Remove a pointless if 2010-11-02 04:16:46 +02:00
demux_packet.h demux, vd_ffmpeg: fix demux keyframe flag, set AV_PKT_FLAG_KEY 2012-07-25 01:10:30 +03:00
demux_rawaudio.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
demux_rawdv.c Replace 'q' printf length modifier by 'll' 2012-08-03 01:31:00 +02:00
demux_rawvideo.c Add standard license header to all files in libmpdemux. 2009-05-08 21:51:13 +00:00
demux_real.c demux_real: set aspect ratio 2012-08-03 02:21:17 +02:00
demux_real.h Add separate header for real_fix_timestamp(); avoids forward declarations. 2010-02-17 22:22:51 +00:00
demux_realaud.c demux, vd_ffmpeg: fix demux keyframe flag, set AV_PKT_FLAG_KEY 2012-07-25 01:10:30 +03:00
demux_rtp_codec.cpp Update Libav API uses 2012-02-01 22:46:27 +02:00
demux_rtp_internal.h configure, build: remove --disable-libav support 2011-12-11 07:48:26 +02:00
demux_rtp.cpp demux_rtp: fix compilation with new LIVE555 libraries 2012-08-03 01:53:45 +02:00
demux_rtp.h Remove pointless #ifdef checks for DEMUXER_H, which is never set. 2010-02-27 12:48:11 +00:00
demux_viv.c cleanup: fix mp_dbg() format string warnings 2011-07-01 03:37:34 +03:00
demuxer.c demuxer: introduce a general stream struct 2012-08-03 13:25:41 +02:00
demuxer.h demuxer: introduce a general stream struct 2012-08-03 13:25:41 +02:00
ebml.c Update Libav API uses 2012-02-01 22:46:27 +02:00
ebml.h demux_mkv: simplify subtitle type recognition 2011-03-31 03:44:37 +03:00
extension.c Remove some demuxers and decoders 2012-07-30 22:14:32 +02:00
genres.h spelling fixes 2010-11-02 04:15:03 +02:00
matroska.h demux_mkv: support Blu-ray subtitles 2011-03-31 03:44:37 +03:00
mf.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
mf.h Add standard license header to all files in libmpdemux. 2009-05-08 21:51:13 +00:00
mp3_hdr.c mp3_hdr: cleanups 2012-08-03 03:34:38 +02:00
mp3_hdr.h mp3_hdr.h: fix mp_check_mp3_header() 2010-12-16 06:22:19 +02:00
mp_taglists.c demux_lavf: use Libav RIFF tag lists directly 2012-02-01 22:46:27 +02:00
mp_taglists.h demux_lavf: use Libav RIFF tag lists directly 2012-02-01 22:46:27 +02:00
mpeg_packetizer.c Remove dead code 2012-08-01 17:07:35 +02:00
mpeg_packetizer.h Remove dead code 2012-08-01 17:07:35 +02:00
ms_hdr.h Change <endian.h> include to <sys/types.h> 2012-07-31 23:37:56 +02:00
qtpalette.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
stheader.h demuxer: introduce a general stream struct 2012-08-03 13:25:41 +02:00
video.c Remove dead code 2012-08-01 17:07:35 +02:00