mpv/video
wm4 01869d1391 demux_lavf, ad_lavc, vd_lavc: pass codec header data directly
Instead of putting codec header data into WAVEFORMATEX and
BITMAPINFOHEADER, pass it directly via AVCodecContext. To do this, we
add mp_copy_lav_codec_headers(), which copies the codec header data
from one AVCodecContext to another (originally, the plan was to use
avcodec_copy_context() for this, but it looks like this would turn
decoder initialization into an even worse mess).

Get rid of the silly CodecID <-> codec_tag mapping. This was originally
needed for codecs.conf: codec tags were used to identify codecs, but
libavformat didn't always return useful codec tags (different file
formats can have different, overlapping tag numbers). Since we don't
go through WAVEFORMATEX etc. and pass all header data directly via
AVCodecContext, we can be absolutely sure that the codec tag mapping is
not needed anymore.

Note that this also destroys the "standard" MPlayer method of exporting
codec header data. WAVEFORMATEX and BITMAPINFOHEADER made sure that
other non-libavcodec decoders could be initialized. However, all these
decoders have been removed, so this is just cruft full of old hacks that
are not needed anymore. There's still ad_spdif and ad_mpg123, bu neither
of these need codec header data. Should we ever add non-libavcodec
decoders, better data structures without the past hacks could be added
to export the headers.
2013-02-10 17:25:57 +01:00
..
decode demux_lavf, ad_lavc, vd_lavc: pass codec header data directly 2013-02-10 17:25:57 +01:00
filter core: redo how codecs are mapped, remove codecs.conf 2013-02-10 17:25:56 +01:00
out cleanup: replace OPT_FLAG_ON and OPT_MAKE_FLAGS with OPT_FLAG 2013-02-09 00:21:17 +01:00
csputils.c
csputils.h
fmt-conversion.c build: make it work on somewhat older ffmpeg versions 2013-01-31 17:42:21 +01:00
fmt-conversion.h
image_writer.c cleanup: replace OPT_FLAG_ON and OPT_MAKE_FLAGS with OPT_FLAG 2013-02-09 00:21:17 +01:00
image_writer.h
img_format.c options: also accept ffmpeg pixel format names 2013-01-17 16:39:26 +01:00
img_format.h mp_image: remove mp_image.bpp 2013-01-13 20:04:13 +01:00
img_fourcc.h core: redo how codecs are mapped, remove codecs.conf 2013-02-10 17:25:56 +01:00
memcpy_pic.h vf_expand: support more image formats 2013-01-13 20:04:13 +01:00
mp_image.c mp_image: remove mp_image.bpp 2013-01-13 20:04:13 +01:00
mp_image.h mp_image: remove mp_image.bpp 2013-01-13 20:04:13 +01:00
mp_image_pool.c mp_image_pool: add pool to avoid frequent image reallocations 2013-01-13 17:39:32 +01:00
mp_image_pool.h mp_image_pool: add pool to avoid frequent image reallocations 2013-01-13 17:39:32 +01:00
sws_utils.c sws_utils: use libswscale for GBRP output if available 2013-01-27 13:30:53 +01:00
sws_utils.h sub: reimplement -spugauss as --sub-gauss 2012-11-25 23:40:07 +01:00
vfcap.h video/out: replace VFCAP_TIMER with vo->untimed, fix vo_image and vo_lavc 2013-01-13 20:04:10 +01:00