mirror of
https://github.com/mpv-player/mpv
synced 2024-11-07 01:47:00 +01:00
ac266da658
Use the video decoder chroma location flags and render chroma locations other than centered. Until now, we've always used the intuitive and obvious centered chroma location, but H.264 uses something else. FFmpeg provides a small overview in libavcodec/avcodec.h: ----------- /** * X X 3 4 X X are luma samples, * 1 2 1-6 are possible chroma positions * X X 5 6 X 0 is undefined/unknown position */ enum AVChromaLocation{ AVCHROMA_LOC_UNSPECIFIED = 0, AVCHROMA_LOC_LEFT = 1, ///< mpeg2/4, h264 default AVCHROMA_LOC_CENTER = 2, ///< mpeg1, jpeg, h263 AVCHROMA_LOC_TOPLEFT = 3, ///< DV AVCHROMA_LOC_TOP = 4, AVCHROMA_LOC_BOTTOMLEFT = 5, AVCHROMA_LOC_BOTTOM = 6, AVCHROMA_LOC_NB , ///< Not part of ABI }; ----------- The visual difference is literally minimal, but since videophiles apparently consider this detail as quality mark of a video renderer, support it anyway. We don't bother with chroma locations other than centered and left, though. Not sure about correctness, but it's probably ok. |
||
---|---|---|
.. | ||
pullup.c | ||
pullup.h | ||
vf_crop.c | ||
vf_delogo.c | ||
vf_divtc.c | ||
vf_dlopen.c | ||
vf_dlopen.h | ||
vf_down3dright.c | ||
vf_dsize.c | ||
vf_eq.c | ||
vf_expand.c | ||
vf_flip.c | ||
vf_format.c | ||
vf_gradfun.c | ||
vf_hqdn3d.c | ||
vf_ilpack.c | ||
vf_lavfi.c | ||
vf_mirror.c | ||
vf_noformat.c | ||
vf_noise.c | ||
vf_phase.c | ||
vf_pp.c | ||
vf_pullup.c | ||
vf_rotate.c | ||
vf_scale.c | ||
vf_screenshot.c | ||
vf_softpulldown.c | ||
vf_stereo3d.c | ||
vf_sub.c | ||
vf_swapuv.c | ||
vf_unsharp.c | ||
vf_vo.c | ||
vf_yadif.c | ||
vf.c | ||
vf.h |