mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Issue #2101 - Part 4: Add color range support to gfx/ycbcr
Loosely based on current mozilla code https://hg.mozilla.org/mozilla-central/file/25a8668d92431d469b443f0f2030328bab754aea/gfx/ycbcr/yuv_convert.cpp
This commit is contained in:
parent
a4d1f57b9e
commit
b5f9e9abb6
6 changed files with 128 additions and 78 deletions
|
|
@ -672,6 +672,7 @@ struct PlanarYCbCrData {
|
|||
gfx::IntSize mPicSize;
|
||||
StereoMode mStereoMode;
|
||||
YUVColorSpace mYUVColorSpace;
|
||||
ColorRange mColorRange;
|
||||
|
||||
gfx::IntRect GetPictureRect() const {
|
||||
return gfx::IntRect(mPicX, mPicY,
|
||||
|
|
@ -684,7 +685,7 @@ struct PlanarYCbCrData {
|
|||
, mCbChannel(nullptr), mCrChannel(nullptr)
|
||||
, mCbCrStride(0), mCbCrSize(0, 0) , mCbSkip(0), mCrSkip(0)
|
||||
, mPicX(0), mPicY(0), mPicSize(0, 0), mStereoMode(StereoMode::MONO)
|
||||
, mYUVColorSpace(YUVColorSpace::BT601)
|
||||
, mYUVColorSpace(YUVColorSpace::BT601), mColorRange(ColorRange::LIMITED)
|
||||
{}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue