Bug 1763782 Part 1: Allow AV1 10-bit to be decoded. r=gfx-reviewers,jgilbert
commit82e3679eabfcf99071f20c6169bd26276bb53a36
authorBrad Werth <bwerth@mozilla.com>
Fri, 15 Apr 2022 19:03:24 +0000 (15 19:03 +0000)
committerBrad Werth <bwerth@mozilla.com>
Fri, 15 Apr 2022 19:03:24 +0000 (15 19:03 +0000)
treeb36fae785eb8e38e92a1eaac55fe25887bec1fbd
parenteaac8b063728c0f6bcb33bb8eba370a5e484e98a
Bug 1763782 Part 1: Allow AV1 10-bit to be decoded. r=gfx-reviewers,jgilbert

This decodes 10-bit AV1 into the P010 surface format. Because of the
needed bit shifting to move the 10-bits to the MSB positions, it can't use
a straight memcpy for the Y values.

Differential Revision: https://phabricator.services.mozilla.com/D143436
gfx/2d/MacIOSurface.cpp
gfx/2d/MacIOSurface.h
gfx/layers/MacIOSurfaceImage.cpp
gfx/layers/MacIOSurfaceImage.h