summaryrefslogtreecommitdiffstats
path: root/audio/chmap_sel.h
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2015-09-10 20:52:04 -0700
committerKevin Mitchell <kevmitch@gmail.com>2015-09-10 23:58:09 -0700
commitb7144ad8bfbdf686a0fca4b639a6564c397c030f (patch)
tree5761546ff7ede274a9547e7b48a496859889aaaa /audio/chmap_sel.h
parent269f271b7373091790be61fe38e37eb2c8cb98f8 (diff)
downloadmpv-b7144ad8bfbdf686a0fca4b639a6564c397c030f.tar.bz2
mpv-b7144ad8bfbdf686a0fca4b639a6564c397c030f.tar.xz
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.
Diffstat (limited to 'audio/chmap_sel.h')
0 files changed, 0 insertions, 0 deletions