Skip to content

Commit fa5a304

Browse files
committed
[Av1e/lib] Enable ARGB
1 parent 852fa9f commit fa5a304

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

_studio/mfx_lib/encode_hw/av1/agnostic/base/av1ehw_base_iddi.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ class IDDI
6262
virtual void ResetState(const FeatureBlocks& blocks, TPushRS Push) override = 0;
6363

6464
virtual mfxStatus SetDDIID(const mfxU16 bitDepth
65-
, const mfxU16 chromFormat
66-
, const mfxU32 fourCC
67-
, const mfxU16 targetChromaForamt) = 0;
65+
, const mfxU16 chromFormat) = 0;
6866
};
6967

7068
} //Base

_studio/mfx_lib/encode_hw/av1/linux/base/av1ehw_base_va_lin.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ using namespace AV1EHW;
2929
using namespace AV1EHW::Base;
3030
using namespace AV1EHW::Linux::Base;
3131

32-
mfxStatus DDI_VA::SetDDIID(const mfxU16 bitDepth, const mfxU16 chromFormat, const mfxU32 /*fourCC*/, const mfxU16/* targetChromaFormat*/)
32+
mfxStatus DDI_VA::SetDDIID(const mfxU16 bitDepth, const mfxU16 chromFormat)
3333
{
3434
MFX_CHECK(!m_vaid, MFX_ERR_NONE);
3535

@@ -114,19 +114,17 @@ void DDI_VA::Query1NoCaps(const FeatureBlocks& /*blocks*/, TPushQ1 Push)
114114

115115
m_hw = Glob::VideoCore::Get(strg).GetHWType();
116116
const mfxU16 bitDepth = m_pDefaults->base.GetBitDepthLuma(*m_pDefaults);
117-
const mfxU16 chromaFormat = par.mfx.FrameInfo.ChromaFormat;
118-
const mfxU32 fourCC = par.mfx.FrameInfo.FourCC;
119117
const mfxU16 profile = par.mfx.CodecProfile;
120118
const mfxExtCodingOption3* pCO3 = ExtBuffer::Get(m_pDefaults->mvp);
121-
mfxU16 targetChromaFormat = MFX_CHROMAFORMAT_YUV420;
119+
mfxU16 targetChromaFormat = m_pDefaults->base.GetTargetChromaFormatPlus1(*m_pDefaults) - 1;;
122120

123121
SetIf(targetChromaFormat, profile == MFX_PROFILE_AV1_HIGH, MFX_CHROMAFORMAT_YUV444);
124122
if (pCO3)
125123
{
126124
SetIf(targetChromaFormat, !pCO3->TargetChromaFormatPlus1, pCO3->TargetChromaFormatPlus1 - 1);
127125
}
128126

129-
MFX_SAFE_CALL(SetDDIID(bitDepth, chromaFormat, fourCC, targetChromaFormat));
127+
MFX_SAFE_CALL(SetDDIID(bitDepth, targetChromaFormat));
130128

131129
return MFX_ERR_NONE;
132130
});
@@ -398,6 +396,7 @@ mfxStatus DDI_VA::QueryCaps()
398396
MFX_CHECK_STS(sts);
399397

400398
m_caps.ChromaSupportFlags.fields.i420 = !!(AV(VAConfigAttribRTFormat) & VA_RT_FORMAT_YUV420);
399+
m_caps.ChromaSupportFlags.fields.RGB = !!(AV(VAConfigAttribRTFormat) & VA_RT_FORMAT_RGB32);
401400

402401
m_caps.BitDepthSupportFlags.fields.eight_bits = !!(AV(VAConfigAttribRTFormat) & VA_RT_FORMAT_YUV420);
403402
m_caps.BitDepthSupportFlags.fields.ten_bits = !!(AV(VAConfigAttribRTFormat) & VA_RT_FORMAT_YUV420_10BPP);

_studio/mfx_lib/encode_hw/av1/linux/base/av1ehw_base_va_lin.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ class DDI_VA
5959
virtual void SetDefaults(const FeatureBlocks& blocks, TPushSD Push) override;
6060

6161
virtual mfxStatus SetDDIID(const mfxU16 bitDepth
62-
, const mfxU16 chromFormat
63-
, const mfxU32 fourCC
64-
, const mfxU16 targetChromaFormat) override;
62+
, const mfxU16 chromFormat) override;
6563

6664
mfxStatus CreateVABuffers(
6765
const std::list<DDIExecParam>& par

0 commit comments

Comments
 (0)