summaryrefslogtreecommitdiffstats
path: root/sub/osd_state.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-04 23:32:02 +0100
committerwm4 <wm4@nowhere>2014-11-05 01:41:35 +0100
commit9548f6394380f98ffdc27a917f7e26dfd12bbfe8 (patch)
tree6a3161885128128dd8e83be16bcbf827a515a83f /sub/osd_state.h
parent3a50bbf563ce627dcbfcb23c0f33df2a5a4e00f0 (diff)
downloadmpv-9548f6394380f98ffdc27a917f7e26dfd12bbfe8.tar.bz2
mpv-9548f6394380f98ffdc27a917f7e26dfd12bbfe8.tar.xz
video: handle endian detection in a more generic way
FFmpeg has only a AV_PIX_FMT_FLAG_BE flag, not a LE one, which causes problems for us: we want to have the LE flag too, so code can actually detect whether a format is non-native endian. Basically, we want to reconstruct the LE/BE suffix all AV_PIX_FMT_*s have. Doing this is hard due to the (messed up) way AVPixFmtDescriptor works. The worst is AV_PIX_FMT_RGB444: this group of formats describe an endian-independent access (since no component actually spans 2 bytes, you only need byte accesses with a fixed offset), so we have to go through some pain.
Diffstat (limited to 'sub/osd_state.h')
0 files changed, 0 insertions, 0 deletions