diff options
author | wm4 <wm4@nowhere> | 2019-11-02 01:10:22 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-02 01:10:22 +0100 |
commit | 3b56f829656a43402e417847570e83a0e5b693be (patch) | |
tree | f40c5682a401b42dbcb0e88b4c82c7e63542117e /demux/demux.h | |
parent | c3cee4b9ecd2a13a35651b81158d1577c899daa1 (diff) | |
download | mpv-3b56f829656a43402e417847570e83a0e5b693be.tar.bz2 mpv-3b56f829656a43402e417847570e83a0e5b693be.tar.xz |
zimg: add semi-planar repacker
This is for formats like nv12 (including p010, nv24, etc.). Might be
important for hardware decoding. Previously, this would have forced a
libswscale fallback.
The genericism makes this only slightly more complicated. The main
complication is due to the fact that mixing planar and packed stuff is
insane (thanks, Nvidia).
P010 output will actually happily set any of the 6 bit "padding" LSB,
that are normally supposed to be 0 (for unpadded data there is P016).
Scaling happens with 16 bit precision. Not going to bother adding an
extra packer which zeros them out, or with shifting them in
packing/unpacking. Lets just hope nobody notices.
Diffstat (limited to 'demux/demux.h')
0 files changed, 0 insertions, 0 deletions