Lines Matching refs:pps
402 MPP_RET h265e_set_pps(H265eCtx *ctx, H265ePps *pps, H265eSps *sps) in h265e_set_pps() argument
406 pps->m_bConstrainedIntraPred = codec->const_intra_pred; in h265e_set_pps()
407 pps->m_PPSId = 0; in h265e_set_pps()
408 pps->m_SPSId = 0; in h265e_set_pps()
409 pps->m_picInitQPMinus26 = 0; in h265e_set_pps()
410 pps->m_useDQP = 1; in h265e_set_pps()
411 pps->m_maxCuDQPDepth = codec->trans_cfg.diff_cu_qp_delta_depth; in h265e_set_pps()
412 pps->m_minCuDQPSize = (sps->m_maxCUSize >> pps->m_maxCuDQPDepth); in h265e_set_pps()
414 pps->m_sps = sps; in h265e_set_pps()
415 pps->m_bSliceChromaQpFlag = 0; in h265e_set_pps()
416 pps->m_chromaCbQpOffset = codec->trans_cfg.cb_qp_offset; in h265e_set_pps()
418 pps->m_chromaCrQpOffset = codec->trans_cfg.cb_qp_offset; in h265e_set_pps()
420 pps->m_entropyCodingSyncEnabledFlag = 0; in h265e_set_pps()
421 pps->m_bUseWeightPred = 0; in h265e_set_pps()
422 pps->m_useWeightedBiPred = 0; in h265e_set_pps()
423 pps->m_outputFlagPresentFlag = 0; in h265e_set_pps()
424 pps->m_signHideFlag = 0; in h265e_set_pps()
425 pps->m_picInitQPMinus26 = codec->intra_qp - 26; in h265e_set_pps()
426 pps->m_LFCrossSliceBoundaryFlag = codec->lpf_acs_sli_en; in h265e_set_pps()
427 …pps->m_deblockingFilterControlPresentFlag = !codec->dblk_cfg.slice_deblocking_filter_disabled_flag; in h265e_set_pps()
428 if (pps->m_deblockingFilterControlPresentFlag) { in h265e_set_pps()
429 pps->m_deblockingFilterOverrideEnabledFlag = 0; in h265e_set_pps()
430 pps->m_picDisableDeblockingFilterFlag = 0; in h265e_set_pps()
431 if (!pps->m_picDisableDeblockingFilterFlag) { in h265e_set_pps()
432 pps->m_deblockingFilterBetaOffsetDiv2 = codec->dblk_cfg.slice_beta_offset_div2; in h265e_set_pps()
433 pps->m_deblockingFilterTcOffsetDiv2 = codec->dblk_cfg.slice_tc_offset_div2; in h265e_set_pps()
436 pps->m_deblockingFilterOverrideEnabledFlag = 0; in h265e_set_pps()
437 pps->m_picDisableDeblockingFilterFlag = 1; in h265e_set_pps()
438 pps->m_deblockingFilterBetaOffsetDiv2 = 0; in h265e_set_pps()
439 pps->m_deblockingFilterTcOffsetDiv2 = 0; in h265e_set_pps()
442 pps->m_listsModificationPresentFlag = 1; in h265e_set_pps()
443 pps->m_log2ParallelMergeLevelMinus2 = 0; in h265e_set_pps()
444 pps->m_numRefIdxL0DefaultActive = 1; in h265e_set_pps()
445 pps->m_numRefIdxL1DefaultActive = 1; in h265e_set_pps()
446 pps->m_transquantBypassEnableFlag = codec->trans_cfg.transquant_bypass_enabled_flag; in h265e_set_pps()
447 pps->m_useTransformSkip = codec->trans_cfg.transform_skip_enabled_flag; in h265e_set_pps()
449 pps->m_entropyCodingSyncEnabledFlag = 0; in h265e_set_pps()
450 pps->m_signHideFlag = 0; in h265e_set_pps()
451 pps->m_cabacInitPresentFlag = codec->entropy_cfg.cabac_init_flag; in h265e_set_pps()
452 pps->m_encCABACTableIdx = I_SLICE; in h265e_set_pps()
453 pps->m_sliceHeaderExtensionPresentFlag = 0; in h265e_set_pps()
454 pps->m_numExtraSliceHeaderBits = 0; in h265e_set_pps()
455 pps->m_tiles_enabled_flag = 0; in h265e_set_pps()
456 pps->m_bTileUniformSpacing = 0; in h265e_set_pps()
457 pps->m_nNumTileRowsMinus1 = 0; in h265e_set_pps()
458 pps->m_nNumTileColumnsMinus1 = 0; in h265e_set_pps()
459 pps->m_loopFilterAcrossTilesEnabledFlag = !codec->lpf_acs_tile_disable; in h265e_set_pps()
469 pps->m_nNumTileColumnsMinus1 = (sps->m_picWidthInLumaSamples - 1) / 1920 ; in h265e_set_pps()
473 pps->m_nNumTileColumnsMinus1 = 3; in h265e_set_pps()
476 pps->m_nNumTileColumnsMinus1 = 1; in h265e_set_pps()
479 pps->m_nNumTileColumnsMinus1 = codec->auto_tile ? 1 : 0; in h265e_set_pps()
482 if (pps->m_nNumTileColumnsMinus1) { in h265e_set_pps()
483 pps->m_tiles_enabled_flag = 1; in h265e_set_pps()
484 pps->m_bTileUniformSpacing = 1; in h265e_set_pps()
485 pps->m_loopFilterAcrossTilesEnabledFlag = !codec->lpf_acs_tile_disable; in h265e_set_pps()
488 for (index = 0; index < pps->m_nNumTileColumnsMinus1; index++) { in h265e_set_pps()
489 tile_width = (index + 1) * mb_w / (pps->m_nNumTileColumnsMinus1 + 1) - in h265e_set_pps()
490 index * mb_w / (pps->m_nNumTileColumnsMinus1 + 1); in h265e_set_pps()
491 pps->m_nTileColumnWidthArray[index] = tile_width; in h265e_set_pps()
492 pps->m_nTileRowHeightArray[index] = mb_h; in h265e_set_pps()
494 tile_width = mb_w - index * mb_w / (pps->m_nNumTileColumnsMinus1 + 1); in h265e_set_pps()
495 pps->m_nTileColumnWidthArray[index] = tile_width; in h265e_set_pps()
496 pps->m_nTileRowHeightArray[index] = mb_h; in h265e_set_pps()