[x264-devel] Support YUYV and UYVY packed 4:2:2 raw input

Henrik Gramner git at videolan.org
Mon May 22 00:02:18 CEST 2017


x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sun Jan 29 21:38:43 2017 +0100| [dcf406978b9dda5c2b8aab80af5c1c47c78efd92] | committer: Henrik Gramner

Support YUYV and UYVY packed 4:2:2 raw input

Packed YUV is arguably more common than planar YUV when dealing with raw
4:2:2 content.

We can utilize the existing plane_copy_deinterleave() functions with some
additional minor constraints (we cannot assume any particular alignment
or overread the input buffer).

Enables assembly optimizations on x86.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=dcf406978b9dda5c2b8aab80af5c1c47c78efd92
---

 common/common.c        |  2 ++
 common/frame.c         | 10 +++++++++-
 common/mc.c            | 12 ++++++------
 common/mc.h            | 35 +++++++++++++++++++++++++++++++++++
 common/x86/mc-a2.asm   | 10 +++++-----
 common/x86/mc-c.c      | 30 ++++++++++++++++++++++--------
 encoder/encoder.c      |  3 ++-
 filters/video/resize.c |  6 ++++--
 input/input.c          |  2 ++
 tools/checkasm.c       | 27 +++++++++++++++++++++++++++
 x264.h                 | 18 ++++++++++--------
 11 files changed, 124 insertions(+), 31 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/x264.git/?a=commitdiff;h=dcf406978b9dda5c2b8aab80af5c1c47c78efd92


More information about the x264-devel mailing list