mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 02:47:31 +09:00
Issue #2101 - Part 5: Add ColorRange support to video decoders
This commit is contained in:
parent
b5f9e9abb6
commit
e59e8c3b2c
5 changed files with 10 additions and 0 deletions
|
|
@ -246,6 +246,8 @@ AOMDecoder::DoDecode(MediaRawData* aSample)
|
|||
LOG("Unhandled colorspace %d", img->mc);
|
||||
break;
|
||||
}
|
||||
b.mColorRange = img->range == AOM_CR_FULL_RANGE ? ColorRange::FULL
|
||||
: ColorRange::LIMITED;
|
||||
|
||||
RefPtr<VideoData> v =
|
||||
VideoData::CreateAndCopyData(mInfo,
|
||||
|
|
|
|||
|
|
@ -173,6 +173,7 @@ VPXDecoder::DoDecode(MediaRawData* aSample)
|
|||
return YUVColorSpace::BT601;
|
||||
}
|
||||
}();
|
||||
// TODO: need a newer libvpx to support full color range
|
||||
|
||||
RefPtr<VideoData> v =
|
||||
VideoData::CreateAndCopyData(mInfo,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue