Frank Barchard 942c508448 BT.2020 Full Range yuvconstants
new color util to compute constants needed based on white point.

[ RUN      ] LibYUVColorTest.TestFullYUVV
hist	      -2	      -1	       0	       1	       2
red	       0	 1627136	13670144	 1479936	       0
green	  319285	 3456836	 9243059	 3440771	  317265
blue	       0	 1561088	14202112	 1014016	       0

Bug: libyuv:877, b/178283356
Change-Id: If432ebfab76b01302fdb416a153c4f26ca0832d6
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2678859
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: richard winterton <rrwinterton@gmail.com>
2021-02-06 00:26:55 +00:00
build_overrides [build] Remove obsolete gn flag 2021-01-26 20:16:56 +00:00
docs Remove M420 and refactor NV12ToI420 2020-05-26 18:48:00 +00:00
include BT.2020 Full Range yuvconstants 2021-02-06 00:26:55 +00:00
source BT.2020 Full Range yuvconstants 2021-02-06 00:26:55 +00:00
tools_libyuv Fix libyuv deps autoroll and roll chromium deps. 2020-09-15 06:21:24 +00:00
unit_test BT.2020 Full Range yuvconstants 2021-02-06 00:26:55 +00:00
util BT.2020 Full Range yuvconstants 2021-02-06 00:26:55 +00:00
.clang-format clang-format libyuv 2016-11-07 17:37:23 -08:00
.gitignore Update to r1732 for more robust jpeg 2019-07-01 22:32:36 +00:00
.gn Allowing C++14 in libyuv. 2019-09-17 17:53:26 +00:00
.vpython Fix libyuv deps autoroll and roll chromium deps. 2020-09-15 06:21:24 +00:00
Android.bp MJPGToNV12 added and build files sorted 2020-10-28 16:24:38 +00:00
Android.mk MJPGToNV12 added and build files sorted 2020-10-28 16:24:38 +00:00
AUTHORS Revert "Allow negative height when ConvertToI420/ARGB is called with NV12/NV21" 2018-06-01 00:19:40 +00:00
BUILD.gn PlaneScale, UVScale and ARGBScale test 3x and 4x down sample. 2020-10-28 20:41:59 +00:00
cleanup_links.py Use DEPS for all dependencies + add PRESUBMIT.py 2017-02-03 11:36:53 +00:00
CM_linux_packages.cmake Add installer builds to cmake for linux 2017-01-26 23:05:17 +00:00
CMakeLists.txt Make the gflags library optional in the CMake build 2018-03-31 00:40:15 +00:00
codereview.settings Make Gerrit the default for libyuv code reviews 2017-01-24 18:34:48 +00:00
DEPS Fix libyuv bots. 2021-01-28 19:09:46 +00:00
download_vs_toolchain.py Roll chromium_revision 260824:262938 + fix binutils. Since it's not possible to have platform-specific hooks executing, binutils must be downloaded for all platforms in order for the download.py hook to execute properly on non-unix platforms. 2014-04-11 23:40:41 +00:00
libyuv.gni libyuv:loongson optimize compare/row/scale/rotate files with mmi. 2018-07-20 22:53:04 +00:00
LICENSE Update Copyright notice to follow new chromium conventions. 2012-08-08 19:04:24 +00:00
linux.mk MJPGToNV12 added and build files sorted 2020-10-28 16:24:38 +00:00
OWNERS Replace phoglund in libyuv OWNERS wth mbonadei 2020-04-17 09:16:26 +00:00
PATENTS LibYuv: Adding PATENT and LICENSE files 2011-10-25 16:15:49 +00:00
PRESUBMIT.py Fix PRESUBMIT.py. 2021-02-03 11:16:34 +00:00
public.mk use unix line endings 2018-06-20 23:19:59 +00:00
pylintrc Use DEPS for all dependencies + add PRESUBMIT.py 2017-02-03 11:36:53 +00:00
README.chromium BT.2020 Full Range yuvconstants 2021-02-06 00:26:55 +00:00
README.md README: fix doc links 2018-08-13 18:28:55 +00:00
winarm.mk NV12 Copy, include scale_uv.h 2020-12-08 18:54:16 +00:00

libyuv is an open source project that includes YUV scaling and conversion functionality.

  • Scale YUV to prepare content for compression, with point, bilinear or box filter.
  • Convert to YUV from webcam formats for compression.
  • Convert to RGB formats for rendering/effects.
  • Rotate by 90/180/270 degrees to adjust for mobile devices in portrait mode.
  • Optimized for SSSE3/AVX2 on x86/x64.
  • Optimized for Neon on Arm.
  • Optimized for MSA on Mips.

Development

See Getting started for instructions on how to get started developing.

You can also browse the docs directory for more documentation.