Skip to content

Commit

Permalink
[Encode] AVC VDNEC par file dump
Browse files Browse the repository at this point in the history
1. Add dump for some encode parameters
2. Add AVC VDENC command override supporting
3. Add some opcodes define for DBHV

Change-Id: Ife383c038e7a1f4a5dfd32b9e871be31036f12d0
  • Loading branch information
walter-bai authored and intel-mediadev committed Aug 1, 2019
1 parent d2c9f5f commit 6478516
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ struct EncodeAvcPar
uint8_t BFrameZeroCbfEn;
uint8_t ForceIPCMMinQP;
uint8_t IntraTr4x4Percent;
bool MultiPassHmeEnable;

// PAK Params
uint8_t RoundingIntra;
Expand Down
4 changes: 4 additions & 0 deletions media_driver/agnostic/common/codec/hal/codechal_vdenc_avc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5966,6 +5966,8 @@ MOS_STATUS CodechalVdencAvcState::DumpSeqParFile()
oss << "PFrameMaxNumImePred = " << std::dec << +m_avcPar->PFrameMaxNumImePred << std::endl;
oss << "PFrameImePredLargeSW = " << std::dec << +m_avcPar->PFrameImePredLargeSW << std::endl;
oss << "PFrameZeroCbfEn = " << std::dec << +m_avcPar->PFrameZeroCbfEn << std::endl;
oss << "DirectMode = " << std::dec << +m_avcPar->DirectMode << std::endl;
oss << "MultiPassHmeEnable = " << std::dec << +m_avcPar->MultiPassHmeEnable << std::endl;

// BRC Frame Update
oss << "Transform8x8PDisable = " << std::dec << +m_avcPar->Transform8x8PDisable << std::endl;
Expand All @@ -5985,6 +5987,8 @@ MOS_STATUS CodechalVdencAvcState::DumpSeqParFile()
oss << "BFrameMaxNumImePred = " << std::dec << +m_avcPar->BFrameMaxNumImePred << std::endl;
oss << "BFrameImePredLargeSW = " << std::dec << +m_avcPar->BFrameImePredLargeSW << std::endl;
oss << "BFrameZeroCbfEn = " << std::dec << +m_avcPar->BFrameZeroCbfEn << std::endl;
oss << "DirectMode = " << std::dec << +m_avcPar->DirectMode << std::endl;
oss << "MultiPassHmeEnable = " << std::dec << +m_avcPar->MultiPassHmeEnable << std::endl;
}

const char *fileName = m_debugInterface->CreateFileName(
Expand Down

0 comments on commit 6478516

Please sign in to comment.