Skip to content

Commit

Permalink
[Decode] Move definition to base class and more refinements
Browse files Browse the repository at this point in the history
Refine class structures and names
  • Loading branch information
zhijie-zh authored and intel-mediadev committed Dec 30, 2024
1 parent 2def795 commit bd6cef8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_hcp_itf.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,16 @@ class Itf
return eStatus;
}

inline uint32_t GetOpLength(uint32_t uiLength)
{
#define __CODEGEN_MAX(_a, _b) (((_a) > (_b)) ? (_a) : (_b))
#define __CODEGEN_BITFIELD(l, h) (h) - (l) + 1
#define __CODEGEN_OP_LENGTH_BIAS 2
#define __CODEGEN_OP_LENGTH(x) (uint32_t)((__CODEGEN_MAX(x, __CODEGEN_OP_LENGTH_BIAS)) - __CODEGEN_OP_LENGTH_BIAS)

return __CODEGEN_OP_LENGTH(uiLength);
}

protected:
RowStoreCache m_hevcDatRowStoreCache = {};
RowStoreCache m_hevcDfRowStoreCache = {};
Expand Down

0 comments on commit bd6cef8

Please sign in to comment.