Bug 1210357 - Handle VP9 colorspace BT.709 r=mattwoodrow,bas.schouten
This commit is contained in:
@@ -807,6 +807,16 @@ BufferTextureHost::GetFormat() const
|
||||
return mFormat;
|
||||
}
|
||||
|
||||
YUVColorSpace
|
||||
BufferTextureHost::GetYUVColorSpace() const
|
||||
{
|
||||
if (mFormat == gfx::SurfaceFormat::YUV) {
|
||||
const YCbCrDescriptor& desc = mDescriptor.get_YCbCrDescriptor();
|
||||
return desc.yUVColorSpace();
|
||||
}
|
||||
return YUVColorSpace::UNKNOWN;
|
||||
}
|
||||
|
||||
bool
|
||||
BufferTextureHost::MaybeUpload(nsIntRegion *aRegion)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user