Skip to content

Commit

Permalink
[HEVC/AV1] Update BT2020 VUI header setting
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie-zh authored and gfxVPLsdm committed Jun 3, 2024
1 parent 8f1b7a1 commit c2136e2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions _studio/shared/include/mfx_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,21 @@ namespace options //MSDK API options verification utilities
return CheckOrZero(opt, (T)other...);
}

template <class T>
inline bool CheckOrSetDefault(T& opt, T dflt)
{
opt = T(dflt);
return true;
}

template <class T, T val, T... other>
inline bool CheckOrSetDefault(T & opt, T dflt)
{
if (opt == val)
return false;
return CheckOrSetDefault<T, other...>(opt, dflt);
}

template <class T, class U>
inline bool CheckMaxOrZero(T & opt, U max)
{
Expand Down

0 comments on commit c2136e2

Please sign in to comment.