Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #1678

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Test #1678

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,35 @@ namespace encode
return MOS_STATUS_SUCCESS;

}
MOS_STATUS EncodeHevcVdencFeatureManagerXe_Lpm_Plus::CheckFeatures(void* params)
{
ENCODE_FUNC_CALL();

int a[1];
a[2]=3;
std::cout<<a[0]<<std::endl;
if (m_osInterface->osStreamState->component == COMPONENT_Encode)
{
m_osInterface->pfnSetLatestVirtualNode(m_osInterface, MOS_GPU_NODE_MAX);
}
EncoderParams *encodeParams = (EncoderParams *)params;

auto m_basicFeature = dynamic_cast<HevcBasicFeature *>(GetFeature(FeatureIDs::basicFeature));
ENCODE_CHK_NULL_RETURN(m_basicFeature);

PCODEC_HEVC_ENCODE_SEQUENCE_PARAMS hevcSeqParams =
static_cast<PCODEC_HEVC_ENCODE_SEQUENCE_PARAMS>(encodeParams->pSeqParams);
ENCODE_CHK_NULL_RETURN(hevcSeqParams);
PCODEC_HEVC_ENCODE_PICTURE_PARAMS hevcPicParams =

this, m_allocator, m_hwInterface, constSettings);
ENCODE_CHK_STATUS_RETURN(RegisterFeatures(HevcFeatureIDs::vdencLplaAnalysisFeature, lplaAnalysis));

HEVCVdencLplaEnc *lplaEnc = MOS_New(HEVCVdencLplaEnc, this, m_allocator, m_hwInterface, constSettings);
RegisterFeatures(HevcFeatureIDs::hevcVdencLplaEncFeature, lplaEnc);

return MOS_STATUS_SUCCESS;
}
MOS_STATUS Av1VdencPktXe_M_Base::RegisterPostCdef()
{
MOS_ALLOC_GFXRES_PARAMS allocParamsForBuffer2D;
Expand Down Expand Up @@ -546,6 +574,21 @@ namespace encode
}
else
{
uint8_t dummyIdx1 = 0;
RUN_FEATURE_INTERFACE_RETURN(Av1EncodeTile, Av1FeatureIDs::encodeTile, GetDummyIdx, dummyIdx1);
for (auto i = 0; i < dummyIdx1; i++)
{
ENCODE_CHK_STATUS_RETURN(AddOneTileCommands(
cmdBuffer,
0,
i));
}
ENCODE_CHK_STATUS_RETURN(AddOneTileCommands(
cmdBuffer,
0,
dummyIdx,
1));

if(numTileRows != 1) // dual encode only support column based workload submission
{
ENCODE_ASSERTMESSAGE("dual encode cannot support multi rows submission yet.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ HevcEncodeCqp::HevcEncodeCqp(

m_hcpItf = std::static_pointer_cast<mhw::vdbox::hcp::Itf>(hwInterface->GetHcpInterfaceNext());
ENCODE_CHK_NULL_NO_STATUS_RETURN(m_hcpItf);

int a[16];
std::cout<<a[idx]<<std::endl;
}

MOS_STATUS HevcEncodeCqp::Init(void *settings)
Expand Down Expand Up @@ -102,6 +105,9 @@ MOS_STATUS HevcEncodeCqp::Update(void *params)
m_picQPY = hevcPicParams->QpY;
m_transformSkipEnable = hevcPicParams->transform_skip_enabled_flag;

int a[16];
std::cout<<a[m_picQPY]<<std::endl;

m_saoEnable = hevcSeqParams->SAO_enabled_flag;
if (m_saoEnable)
{
Expand Down