1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 12:55:16 +00:00
mpv/audio
Kevin Mitchell b7144ad8bf audio/format: revise af_format_conversion_score
* (de)planarize -1
* pad 1 byte -8
* truncate 1 byte -1024
* float -> int 1048576 * (8 - dst_bytes)
* int -> float -512

Now the score is negative if and only if the conversion is lossy
(e.g. previously s24 -> float was given a negative (lossy) score),
However, int->float is still considered bad
(s16->float is worse than than s16->s32).

This penalizes any loss of precision more than performance / bandwidth hits.
For example, previously s24->s16p was considered equal to s24->u8.

Finally, we penalize padding more than (de)planarizing as this will
increase the output size for example with ao_lavc.
2015-09-10 23:58:09 -07:00
..
decode demux: merge extradata fields 2015-06-21 18:06:14 +02:00
filter af_lavrresample: remove unnecessary indirections 2015-09-08 22:21:19 +02:00
out ao_oss: use new sample format determination code 2015-09-10 23:39:46 +02:00
audio_buffer.c Split mpvcore/ into common/, misc/, bstr/ 2013-12-17 02:39:45 +01:00
audio_buffer.h
audio.c audio/filter: remove some useless filters 2015-09-03 23:55:36 +02:00
audio.h audio/filter: remove some useless filters 2015-09-03 23:55:36 +02:00
chmap_sel.c chmap_sel: add a mechanism for preferred conversions 2015-06-27 12:09:30 +02:00
chmap_sel.h chmap_sel: add multichannel fallback heuristic 2014-12-29 17:56:53 +01:00
chmap.c audio: output human-readable channel layouts too 2015-06-25 19:10:24 +02:00
chmap.h audio: output human-readable channel layouts too 2015-06-25 19:10:24 +02:00
fmt-conversion.c Update license headers 2015-04-13 12:10:01 +02:00
fmt-conversion.h Update license headers 2015-04-13 12:10:01 +02:00
format.c audio/format: revise af_format_conversion_score 2015-09-10 23:58:09 -07:00
format.h ao_lavc: use new sample format determination code 2015-09-10 23:38:42 +02:00
mixer.c audio: fix restoring volume 2015-07-27 15:07:51 +02:00
mixer.h audio: change range of volume option/property 2015-05-22 18:35:03 +02:00