Skip to content

Commit

Permalink
[Decode] Refine slice command size for Decode
Browse files Browse the repository at this point in the history
Move into platform-specific packet: AVC/VP8/MPEG2
  • Loading branch information
zhijie-zh authored and intel-mediadev committed Dec 24, 2024
1 parent b57dcff commit 1eb157e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2023, Intel Corporation
* Copyright (c) 2021-2024, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -49,6 +49,8 @@ class VvcDecodeSlicePkt : public DecodeSubPacket, public Itf::ParSetting
if (m_hwInterface != nullptr)
{
m_vvcpItf = std::static_pointer_cast<mhw::vdbox::vvcp::Itf>(m_hwInterface->GetVvcpInterfaceNext());
m_vdencItf = std::static_pointer_cast<mhw::vdbox::vdenc::Itf>(m_hwInterface->GetVdencInterfaceNext());
m_miItf = std::static_pointer_cast<mhw::mi::Itf>(m_hwInterface->GetMiInterfaceNext());
}
}
}
Expand Down Expand Up @@ -135,12 +137,14 @@ class VvcDecodeSlicePkt : public DecodeSubPacket, public Itf::ParSetting
MHW_SETPAR_DECL_HDR(VVCP_BSD_OBJECT);
MHW_SETPAR_DECL_HDR(VVCP_TILE_CODING);

VvcPipeline * m_vvcPipeline = nullptr;
std::shared_ptr<Itf> m_vvcpItf = nullptr;
VvcBasicFeature * m_vvcBasicFeature = nullptr;
DecodeAllocator * m_allocator = nullptr;
DecodeSubPacket * m_vvcCpSubPkt = nullptr; //!< Pointer to VVC CP packet
CodechalHwInterfaceNext *m_hwInterface = nullptr;
VvcPipeline * m_vvcPipeline = nullptr;
std::shared_ptr<Itf> m_vvcpItf = nullptr;
std::shared_ptr<mhw::mi::Itf> m_miItf = nullptr;
std::shared_ptr<mhw::vdbox::vdenc::Itf> m_vdencItf = nullptr;
VvcBasicFeature * m_vvcBasicFeature = nullptr;
DecodeAllocator * m_allocator = nullptr;
DecodeSubPacket * m_vvcCpSubPkt = nullptr; //!< Pointer to VVC CP packet
CodechalHwInterfaceNext * m_hwInterface = nullptr;

// Parameters passed from application
CodecVvcPicParams *m_vvcPicParams = nullptr; //!< Pointer to VVC picture parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ namespace decode
//!
MOS_STATUS CreateFeatureManager() override;

MOS_STATUS AllocateResources(VvcBasicFeature &basicFeature);
virtual MOS_STATUS AllocateResources(VvcBasicFeature &basicFeature);



Expand Down

0 comments on commit 1eb157e

Please sign in to comment.