Anything in this directory is imported from third party sources with minimal changes.
See LICENSE
file of respective subdirectories of this directory for license information.
This subdirectory contains source code imported from libyuv as of def473f501acbd652cd4593fd2a90a067e8c9f1a
, with
modifications intended to keep them relatively small and simple.
When importing source code from upstream libyuv, the following changes must be done:
- Source hierarchy is to be kept the same as in libyuv.
- The only APIs that are called by libavif for scaling are
ScalePlane()
andScalePlane_12()
. Anything else must be left out. - In function
ScalePlane()
andScalePlane_16()
, only theScalePlaneVertical()
,CopyPlane()
,ScalePlaneBox()
,ScalePlaneUp2_Linear()
,ScalePlaneUp2_Bilinear()
,ScalePlaneBilinearUp()
,ScalePlaneBilinearDown()
andScalePlaneSimple()
paths (and their_16
equivalents) from libyuv must be kept; any other paths are to be stripped out (including SIMD). - The commit hash of libyuv from where the files got imported in this README.md file must be updated.
LIBYUV_API
must be removed from any and all imported functions as these files are always built static.- Replace .cc file extension by .c.