! * \brief detect parameter sets are changed or not * * \param pFmo fmo context * \param kiCountNumMb (iMbWidth * iMbHeight) in Sps * \param iSliceGroupType slice group type if fmo is exactly enabled * \param iSliceGroupCount slice group count if fmo is exactly enabled * * \return true - changed or not initialized yet; false - not change at all */
| 238 | * \return true - changed or not initialized yet; false - not change at all |
| 239 | */ |
| 240 | bool FmoParamSetsChanged (PFmo pFmo, const int32_t kiCountNumMb, const int32_t kiSliceGroupType, |
| 241 | const int32_t kiSliceGroupCount) { |
| 242 | WELS_VERIFY_RETURN_IF (false, (NULL == pFmo)) |
| 243 | |
| 244 | return ((!pFmo->bActiveFlag) |
| 245 | || (kiCountNumMb != pFmo->iCountMbNum) |
| 246 | || (kiSliceGroupType != pFmo->iSliceGroupType) |
| 247 | || (kiSliceGroupCount != pFmo->iSliceGroupCount)); |
| 248 | } |
| 249 | |
| 250 | /*! |
| 251 | * \brief update/insert FMO parameter unit |