this limitation of the number of MBs is removed in dynamic slice mode
Unified · Split
| @@ -418,12 +418,6 @@ int32_t ParamValidationExt (SLogContext* pLogCtx, SWelsSvcCodingParam* pCodingPa · 417 unmodified lines | |||
| 418 | pSpatialLayer->sSliceCfg.sSliceArgument.uiSliceSizeConstraint = pCodingParam->uiMaxNalSize - NAL_HEADER_ADD_0X30BYTES; | 418 | pSpatialLayer->sSliceCfg.sSliceArgument.uiSliceSizeConstraint = pCodingParam->uiMaxNalSize - NAL_HEADER_ADD_0X30BYTES; |
| 419 | } | 419 | } |
| 420 | 420 | ||
| 421 | // considering the coding efficient and performance, iCountMbNum constraint by MIN_NUM_MB_PER_SLICE condition of multi-pSlice mode settting | ||
| 422 | if (iMbWidth * iMbHeight <= MIN_NUM_MB_PER_SLICE) { | ||
| 423 | pSpatialLayer->sSliceCfg.uiSliceMode = SM_SINGLE_SLICE; | ||
| 424 | pSpatialLayer->sSliceCfg.sSliceArgument.uiSliceNum = 1; | ||
| 425 | break; | ||
| 426 | } | ||
| 427 | } | 421 | } |
| 428 | break; | 422 | break; |
| 429 | default: { | 423 | default: { |