History

Remove tabs where a simple space is just enough

Martin Storsjö committed 11 years ago

Commit ca51ee01 parent 51efa5754 files · +769 −772Browse files

Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 54 files). Show all

Unified · Split

codec/decoder/core/src/decoder_core.cpp+60−60
@@ -329,7 +329,7 @@ int32_t ParseRefPicListReordering (PBitStringAux pBs, PSliceHeader pSh) { · 328 unmodified lines
329329 // Common syntaxs for P or B slices: list0, list1 followed if B slices used.
330330 do {
331331 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //ref_pic_list_modification_flag_l0
332− pRefPicListReordering->bRefPicListReorderingFlag[iList] = !!uiCode;
332+ pRefPicListReordering->bRefPicListReorderingFlag[iList] = !!uiCode;
333333
334334 if (pRefPicListReordering->bRefPicListReorderingFlag[iList]) {
335335 int32_t iIdx = 0;
@@ -341,7 +341,7 @@ int32_t ParseRefPicListReordering (PBitStringAux pBs, PSliceHeader pSh) { · 5 unmodified lines
341341 if ((iIdx >= MAX_REF_PIC_COUNT) || (kuiIdc > 3)) {
342342 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_INVALID_REF_REORDERING);
343343 }
344− pRefPicListReordering->sReorderingSyn[iList][iIdx].uiReorderingOfPicNumsIdc = kuiIdc;
344+ pRefPicListReordering->sReorderingSyn[iList][iIdx].uiReorderingOfPicNumsIdc = kuiIdc;
345345 if (kuiIdc == 3)
346346 break;
347347
@@ -377,12 +377,12 @@ int32_t ParseDecRefPicMarking (PWelsDecoderContext pCtx, PBitStringAux pBs, PSli · 29 unmodified lines
377377 uint32_t uiCode;
378378 if (kbIdrFlag) {
379379 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //no_output_of_prior_pics_flag
380− kpRefMarking->bNoOutputOfPriorPicsFlag = !!uiCode;
380+ kpRefMarking->bNoOutputOfPriorPicsFlag = !!uiCode;
381381 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //long_term_reference_flag
382− kpRefMarking->bLongTermRefFlag = !!uiCode;
382+ kpRefMarking->bLongTermRefFlag = !!uiCode;
383383 } else {
384384 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //adaptive_ref_pic_marking_mode_flag
385− kpRefMarking->bAdaptiveRefPicMarkingModeFlag = !!uiCode;
385+ kpRefMarking->bAdaptiveRefPicMarkingModeFlag = !!uiCode;
386386 if (kpRefMarking->bAdaptiveRefPicMarkingModeFlag) {
387387 int32_t iIdx = 0;
388388 do {
@@ -423,9 +423,9 @@ bool FillDefaultSliceHeaderExt (PSliceHeaderExt pShExt, PNalUnitHeaderExt pNalEx · 34 unmodified lines
423423 return false;
424424
425425 if (pNalExt->iNoInterLayerPredFlag || pNalExt->uiQualityId > 0)
426− pShExt->bBasePredWeightTableFlag = false;
426+ pShExt->bBasePredWeightTableFlag = false;
427427 else
428− pShExt->bBasePredWeightTableFlag = true;
428+ pShExt->bBasePredWeightTableFlag = true;
429429 pShExt->uiRefLayerDqId = (uint8_t) - 1;
430430 pShExt->uiDisableInterLayerDeblockingFilterIdc = 0;
431431 pShExt->iInterLayerSliceAlphaC0Offset = 0;
@@ -674,15 +674,15 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 242 unmodified lines
674674 const bool kbStoreRefBaseFlag = pSliceHeadExt->bStoreRefBasePicFlag;
675675 memcpy (&sBaseMarking, &pSliceHeadExt->sRefBasePicMarking, sizeof (SRefBasePicMarking)); //confirmed_safe_unsafe_usage
676676 memset (pSliceHeadExt, 0, sizeof (SSliceHeaderExt));
677− pSliceHeadExt->bStoreRefBasePicFlag = kbStoreRefBaseFlag;
677+ pSliceHeadExt->bStoreRefBasePicFlag = kbStoreRefBaseFlag;
678678 memcpy (&pSliceHeadExt->sRefBasePicMarking, &sBaseMarking, sizeof (SRefBasePicMarking)); //confirmed_safe_unsafe_usage
679679 }
680680
681− kpCurNal->sNalData.sVclNal.bSliceHeaderExtFlag = kbExtensionFlag;
681+ kpCurNal->sNalData.sVclNal.bSliceHeaderExtFlag = kbExtensionFlag;
682682
683683 // first_mb_in_slice
684684 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //first_mb_in_slice
685− pSliceHead->iFirstMbInSlice = uiCode;
685+ pSliceHead->iFirstMbInSlice = uiCode;
686686
687687 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //slice_type
688688 uiSliceType = uiCode;
@@ -710,7 +710,7 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 21 unmodified lines
710710 }
711711 }
712712
713− pSliceHead->eSliceType = static_cast <EWelsSliceType> (uiSliceType);
713+ pSliceHead->eSliceType = static_cast <EWelsSliceType> (uiSliceType);
714714
715715 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //pic_parameter_set_id
716716 iPpsId = uiCode;
@@ -776,7 +776,7 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 59 unmodified lines
776776 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_INVALID_SPS_ID);
777777 }
778778 pCtx->iSPSLastInvalidId = -1;
779− pSps = &pCtx->sSpsBuffer[pPps->iSpsId];
779+ pSps = &pCtx->sSpsBuffer[pPps->iSpsId];
780780 }
781781 pSliceHead->iPpsId = iPpsId;
782782 pSliceHead->iSpsId = pPps->iSpsId;
@@ -819,9 +819,9 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 36 unmodified lines
819819 // standard 7.4.3 idr_pic_id should be in range 0 to 65535, inclusive.
820820 WELS_CHECK_SE_UPPER_ERROR (uiCode, SLICE_HEADER_IDR_PIC_ID_MAX, "idr_pic_id", GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER,
821821 ERR_INFO_INVALID_IDR_PIC_ID));
822− pSliceHead->uiIdrPicId = uiCode; /* uiIdrPicId */
822+ pSliceHead->uiIdrPicId = uiCode; /* uiIdrPicId */
823823 #ifdef LONG_TERM_REF
824− pCtx->uiCurIdrPicId = pSliceHead->uiIdrPicId;
824+ pCtx->uiCurIdrPicId = pSliceHead->uiIdrPicId;
825825 #endif
826826 }
827827
@@ -830,21 +830,21 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 2 unmodified lines
830830 pSliceHead->iDeltaPicOrderCnt[1] = 0;
831831 if (pSps->uiPocType == 0) {
832832 WELS_READ_VERIFY (BsGetBits (pBs, pSps->iLog2MaxPocLsb, &uiCode)); //pic_order_cnt_lsb
833− pSliceHead->iPicOrderCntLsb = uiCode;
833+ pSliceHead->iPicOrderCntLsb = uiCode;
834834 if (pPps->bPicOrderPresentFlag && !pSliceHead->bFieldPicFlag) {
835835 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); //delta_pic_order_cnt_bottom
836− pSliceHead->iDeltaPicOrderCntBottom = iCode;
836+ pSliceHead->iDeltaPicOrderCntBottom = iCode;
837837 }
838838 } else if (pSps->uiPocType == 1 && !pSps->bDeltaPicOrderAlwaysZeroFlag) {
839839 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); //delta_pic_order_cnt[ 0 ]
840− pSliceHead->iDeltaPicOrderCnt[0] = iCode;
840+ pSliceHead->iDeltaPicOrderCnt[0] = iCode;
841841 if (pPps->bPicOrderPresentFlag && !pSliceHead->bFieldPicFlag) {
842842 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); //delta_pic_order_cnt[ 1 ]
843843 pSliceHead->iDeltaPicOrderCnt[1] = iCode;
844844 }
845845 }
846846
847− pSliceHead->iRedundantPicCnt = 0;
847+ pSliceHead->iRedundantPicCnt = 0;
848848 if (pPps->bRedundantPicCntPresentFlag) {
849849 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //redundant_pic_cnt
850850 // standard section 7.4.3, redundant_pic_cnt should be in range 0 to 127, inclusive.
@@ -863,12 +863,12 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 12 unmodified lines
863863 }
864864 if (bReadNumRefFlag) {
865865 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //num_ref_idx_active_override_flag
866− pSliceHead->bNumRefIdxActiveOverrideFlag = !!uiCode;
866+ pSliceHead->bNumRefIdxActiveOverrideFlag = !!uiCode;
867867 if (pSliceHead->bNumRefIdxActiveOverrideFlag) {
868868 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //num_ref_idx_l0_active_minus1
869869 WELS_CHECK_SE_UPPER_ERROR (uiCode, MAX_NUM_REF_IDX_L0_ACTIVE_MINUS1, "num_ref_idx_l0_active_minus1",
870870 GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_INVALID_NUM_REF_IDX_L0_ACTIVE_MINUS1));
871− pSliceHead->uiRefCount[0] = 1 + uiCode;
871+ pSliceHead->uiRefCount[0] = 1 + uiCode;
872872 }
873873 }
874874
@@ -894,9 +894,9 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 19 unmodified lines
894894
895895 if (kbExtensionFlag) {
896896 if (pNalHeaderExt->iNoInterLayerPredFlag || pNalHeaderExt->uiQualityId > 0)
897− pSliceHeadExt->bBasePredWeightTableFlag = false;
897+ pSliceHeadExt->bBasePredWeightTableFlag = false;
898898 else
899− pSliceHeadExt->bBasePredWeightTableFlag = true;
899+ pSliceHeadExt->bBasePredWeightTableFlag = true;
900900 }
901901
902902 if (kpCurNal->sNalHeaderExt.sNalUnitHeader.uiNalRefIdc != 0) {
@@ -907,7 +907,7 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 4 unmodified lines
907907
908908 if (kbExtensionFlag && !pSubsetSps->sSpsSvcExt.bSliceHeaderRestrictionFlag) {
909909 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //store_ref_base_pic_flag
910− pSliceHeadExt->bStoreRefBasePicFlag = !!uiCode;
910+ pSliceHeadExt->bStoreRefBasePicFlag = !!uiCode;
911911 if ((pNalHeaderExt->bUseRefBasePicFlag || pSliceHeadExt->bStoreRefBasePicFlag) && !bIdrFlag) {
912912 WelsLog (pLogCtx, WELS_LOG_WARNING,
913913 "ParseSliceHeaderSyntaxs(): bUseRefBasePicFlag or bStoreRefBasePicFlag = 1 not supported.");
@@ -948,7 +948,7 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 34 unmodified lines
948948 pSliceHead->iSliceBetaOffset = 0;
949949 if (pPps->bDeblockingFilterControlPresentFlag) {
950950 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //disable_deblocking_filter_idc
951− pSliceHead->uiDisableDeblockingFilterIdc = uiCode;
951+ pSliceHead->uiDisableDeblockingFilterIdc = uiCode;
952952 //refer to JVT-X201wcm1.doc G.7.4.3.4--2010.4.20
953953 if (pSliceHead->uiDisableDeblockingFilterIdc > 6) {
954954 WelsLog (pLogCtx, WELS_LOG_WARNING, "disable_deblock_filter_idc (%d) out of range [0, 6]",
@@ -957,19 +957,19 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 2 unmodified lines
957957 }
958958 if (pSliceHead->uiDisableDeblockingFilterIdc != 1) {
959959 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); //slice_alpha_c0_offset_div2
960− pSliceHead->iSliceAlphaC0Offset = iCode * 2;
960+ pSliceHead->iSliceAlphaC0Offset = iCode * 2;
961961 WELS_CHECK_SE_BOTH_ERROR (pSliceHead->iSliceAlphaC0Offset, SLICE_HEADER_ALPHAC0_BETA_OFFSET_MIN,
962962 SLICE_HEADER_ALPHAC0_BETA_OFFSET_MAX, "slice_alpha_c0_offset_div2 * 2", GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER,
963963 ERR_INFO_INVALID_SLICE_ALPHA_C0_OFFSET_DIV2));
964964 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); //slice_beta_offset_div2
965− pSliceHead->iSliceBetaOffset = iCode * 2;
965+ pSliceHead->iSliceBetaOffset = iCode * 2;
966966 WELS_CHECK_SE_BOTH_ERROR (pSliceHead->iSliceBetaOffset, SLICE_HEADER_ALPHAC0_BETA_OFFSET_MIN,
967967 SLICE_HEADER_ALPHAC0_BETA_OFFSET_MAX, "slice_beta_offset_div2 * 2", GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER,
968968 ERR_INFO_INVALID_SLICE_BETA_OFFSET_DIV2));
969969 }
970970 }
971971
972− bSgChangeCycleInvolved = (pPps->uiNumSliceGroups > 1 && pPps->uiSliceGroupMapType >= 3
972+ bSgChangeCycleInvolved = (pPps->uiNumSliceGroups > 1 && pPps->uiSliceGroupMapType >= 3
973973 && pPps->uiSliceGroupMapType <= 5);
974974 if (kbExtensionFlag && bSgChangeCycleInvolved)
975975 bSgChangeCycleInvolved = (bSgChangeCycleInvolved && (uiQualityId == BASE_QUALITY_ID));
@@ -978,24 +978,24 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 2 unmodified lines
978978 const int32_t kiNumBits = (int32_t)WELS_CEIL (log (static_cast<double> (1 + pPps->uiPicSizeInMapUnits /
979979 pPps->uiSliceGroupChangeRate)));
980980 WELS_READ_VERIFY (BsGetBits (pBs, kiNumBits, &uiCode)); //lice_group_change_cycle
981− pSliceHead->iSliceGroupChangeCycle = uiCode;
981+ pSliceHead->iSliceGroupChangeCycle = uiCode;
982982 } else
983− pSliceHead->iSliceGroupChangeCycle = 0;
983+ pSliceHead->iSliceGroupChangeCycle = 0;
984984 }
985985
986986 if (!kbExtensionFlag) {
987987 FillDefaultSliceHeaderExt (pSliceHeadExt, pNalHeaderExt);
988988 } else {
989989 /* Extra syntax elements newly introduced */
990− pSliceHeadExt->pSubsetSps = pSubsetSps;
990+ pSliceHeadExt->pSubsetSps = pSubsetSps;
991991
992992 if (!pNalHeaderExt->iNoInterLayerPredFlag && BASE_QUALITY_ID == uiQualityId) {
993993 //the following should be deleted for CODE_CLEAN
994994 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //ref_layer_dq_id
995− pSliceHeadExt->uiRefLayerDqId = uiCode;
995+ pSliceHeadExt->uiRefLayerDqId = uiCode;
996996 if (pSubsetSps->sSpsSvcExt.bInterLayerDeblockingFilterCtrlPresentFlag) {
997997 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //disable_inter_layer_deblocking_filter_idc
998− pSliceHeadExt->uiDisableInterLayerDeblockingFilterIdc = uiCode;
998+ pSliceHeadExt->uiDisableInterLayerDeblockingFilterIdc = uiCode;
999999 //refer to JVT-X201wcm1.doc G.7.4.3.4--2010.4.20
10001000 if (pSliceHeadExt->uiDisableInterLayerDeblockingFilterIdc > 6) {
10011001 WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "disable_inter_layer_deblock_filter_idc (%d) out of range [0, 6]",
@@ -1004,13 +1004,13 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 2 unmodified lines
10041004 }
10051005 if (pSliceHeadExt->uiDisableInterLayerDeblockingFilterIdc != 1) {
10061006 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); //inter_layer_slice_alpha_c0_offset_div2
1007− pSliceHeadExt->iInterLayerSliceAlphaC0Offset = iCode * 2;
1007+ pSliceHeadExt->iInterLayerSliceAlphaC0Offset = iCode * 2;
10081008 WELS_CHECK_SE_BOTH_ERROR (pSliceHeadExt->iInterLayerSliceAlphaC0Offset,
10091009 SLICE_HEADER_INTER_LAYER_ALPHAC0_BETA_OFFSET_MIN, SLICE_HEADER_INTER_LAYER_ALPHAC0_BETA_OFFSET_MAX,
10101010 "inter_layer_alpha_c0_offset_div2 * 2", GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER,
10111011 ERR_INFO_INVALID_SLICE_ALPHA_C0_OFFSET_DIV2));
10121012 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); //inter_layer_slice_beta_offset_div2
1013− pSliceHeadExt->iInterLayerSliceBetaOffset = iCode * 2;
1013+ pSliceHeadExt->iInterLayerSliceBetaOffset = iCode * 2;
10141014 WELS_CHECK_SE_BOTH_ERROR (pSliceHeadExt->iInterLayerSliceBetaOffset, SLICE_HEADER_INTER_LAYER_ALPHAC0_BETA_OFFSET_MIN,
10151015 SLICE_HEADER_INTER_LAYER_ALPHAC0_BETA_OFFSET_MAX, "inter_layer_slice_beta_offset_div2 * 2",
10161016 GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_INVALID_SLICE_BETA_OFFSET_DIV2));
@@ -1021,7 +1021,7 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 4 unmodified lines
10211021 pSliceHeadExt->uiRefLayerChromaPhaseYPlus1 = pSubsetSps->sSpsSvcExt.uiSeqRefLayerChromaPhaseYPlus1;
10221022
10231023 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //constrained_intra_resampling_flag
1024− pSliceHeadExt->bConstrainedIntraResamplingFlag = !!uiCode;
1024+ pSliceHeadExt->bConstrainedIntraResamplingFlag = !!uiCode;
10251025
10261026 {
10271027 SPosOffset pos;
@@ -1038,7 +1038,7 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 10 unmodified lines
10381038 WelsLog (pLogCtx, WELS_LOG_WARNING, "MGS not supported.");
10391039 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_UNSUPPORTED_MGS);
10401040 } else {
1041− pSliceHeadExt->uiRefLayerDqId = (uint8_t) - 1;
1041+ pSliceHeadExt->uiRefLayerDqId = (uint8_t) - 1;
10421042 }
10431043
10441044 pSliceHeadExt->bSliceSkipFlag = false;
@@ -1055,28 +1055,28 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 10 unmodified lines
10551055
10561056 if (!pNalHeaderExt->iNoInterLayerPredFlag) {
10571057 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //slice_skip_flag
1058− pSliceHeadExt->bSliceSkipFlag = !!uiCode;
1058+ pSliceHeadExt->bSliceSkipFlag = !!uiCode;
10591059 if (pSliceHeadExt->bSliceSkipFlag) {
10601060 WelsLog (pLogCtx, WELS_LOG_WARNING, "bSliceSkipFlag == 1 not supported.");
10611061 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_UNSUPPORTED_SLICESKIP);
10621062 } else {
10631063 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //adaptive_base_mode_flag
1064− pSliceHeadExt->bAdaptiveBaseModeFlag = !!uiCode;
1064+ pSliceHeadExt->bAdaptiveBaseModeFlag = !!uiCode;
10651065 if (!pSliceHeadExt->bAdaptiveBaseModeFlag) {
10661066 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //default_base_mode_flag
1067− pSliceHeadExt->bDefaultBaseModeFlag = !!uiCode;
1067+ pSliceHeadExt->bDefaultBaseModeFlag = !!uiCode;
10681068 }
10691069 if (!pSliceHeadExt->bDefaultBaseModeFlag) {
10701070 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //adaptive_motion_prediction_flag
1071− pSliceHeadExt->bAdaptiveMotionPredFlag = !!uiCode;
1071+ pSliceHeadExt->bAdaptiveMotionPredFlag = !!uiCode;
10721072 if (!pSliceHeadExt->bAdaptiveMotionPredFlag) {
10731073 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //default_motion_prediction_flag
1074− pSliceHeadExt->bDefaultMotionPredFlag = !!uiCode;
1074+ pSliceHeadExt->bDefaultMotionPredFlag = !!uiCode;
10751075 }
10761076 }
10771077
10781078 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //adaptive_residual_prediction_flag
1079− pSliceHeadExt->bAdaptiveResidualPredFlag = !!uiCode;
1079+ pSliceHeadExt->bAdaptiveResidualPredFlag = !!uiCode;
10801080 if (!pSliceHeadExt->bAdaptiveResidualPredFlag) {
10811081 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //default_residual_prediction_flag
10821082 pSliceHeadExt->bDefaultResidualPredFlag = !!uiCode;
@@ -1084,15 +1084,15 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 1 unmodified line
10841084 }
10851085 if (pSubsetSps->sSpsSvcExt.bAdaptiveTCoeffLevelPredFlag) {
10861086 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //tcoeff_level_prediction_flag
1087− pSliceHeadExt->bTCoeffLevelPredFlag = !!uiCode;
1087+ pSliceHeadExt->bTCoeffLevelPredFlag = !!uiCode;
10881088 }
10891089 }
10901090
10911091 if (!pSubsetSps->sSpsSvcExt.bSliceHeaderRestrictionFlag) {
10921092 WELS_READ_VERIFY (BsGetBits (pBs, 4, &uiCode)); //scan_idx_start
1093− pSliceHeadExt->uiScanIdxStart = uiCode;
1093+ pSliceHeadExt->uiScanIdxStart = uiCode;
10941094 WELS_READ_VERIFY (BsGetBits (pBs, 4, &uiCode)); //scan_idx_end
1095− pSliceHeadExt->uiScanIdxEnd = uiCode;
1095+ pSliceHeadExt->uiScanIdxEnd = uiCode;
10961096 if (pSliceHeadExt->uiScanIdxStart != 0 || pSliceHeadExt->uiScanIdxEnd != 15) {
10971097 WelsLog (pLogCtx, WELS_LOG_WARNING, "uiScanIdxStart (%d) != 0 and uiScanIdxEnd (%d) !=15 not supported here",
10981098 pSliceHeadExt->uiScanIdxStart, pSliceHeadExt->uiScanIdxEnd);
@@ -1113,7 +1113,7 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 14 unmodified lines
11131113 * ppDst: succeeded VCL NAL based AVC (I/P Slice)
11141114 */
11151115 bool PrefetchNalHeaderExtSyntax (PWelsDecoderContext pCtx, PNalUnit const kppDst, PNalUnit const kpSrc) {
1116− PNalUnitHeaderExt pNalHdrExtD = NULL, pNalHdrExtS = NULL;
1116+ PNalUnitHeaderExt pNalHdrExtD = NULL, pNalHdrExtS = NULL;
11171117 PSliceHeaderExt pShExtD = NULL;
11181118 PPrefixNalUnit pPrefixS = NULL;
11191119 PSps pSps = NULL;
@@ -1502,7 +1502,7 @@ void ResetCurrentAccessUnit (PWelsDecoderContext pCtx) { · 382 unmodified lines
15021502 pCurAu->pNalUnitsList[iIdx] = t;
15031503 ++ iIdx;
15041504 }
1505− pCurAu->uiActualUnitsNum = pCurAu->uiAvailUnitsNum = kuiLeftNum;
1505+ pCurAu->uiActualUnitsNum = pCurAu->uiAvailUnitsNum = kuiLeftNum;
15061506 }
15071507 }
15081508
@@ -2098,22 +2098,22 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 589 unmodified lines
20982098 int16_t iLastIdD = -1, iLastIdQ = -1;
20992099 int16_t iCurrIdD = 0, iCurrIdQ = 0;
21002100 uint8_t uiNalRefIdc = 0;
2101− bool bFreshSliceAvailable =
2102− true; // Another fresh slice comingup for given dq layer, for multiple slices in case of header parts of slices sometimes loss over error-prone channels, 8/14/2008
2101+ bool bFreshSliceAvailable =
2102+ true; // Another fresh slice comingup for given dq layer, for multiple slices in case of header parts of slices sometimes loss over error-prone channels, 8/14/2008
21032103
21042104 //update pCurDqLayer at the starting of AU decoding
21052105 if (pCtx->bInitialDqLayersMem) {
2106− pCtx->pCurDqLayer = pCtx->pDqLayersList[0];
2106+ pCtx->pCurDqLayer = pCtx->pDqLayersList[0];
21072107 }
21082108
21092109 InitCurDqLayerData (pCtx, pCtx->pCurDqLayer);
21102110
21112111 pNalCur = pCurAu->pNalUnitsList[iIdx];
21122112 while (iIdx <= iEndIdx) {
2113− PDqLayer dq_cur = pCtx->pCurDqLayer;
2113+ PDqLayer dq_cur = pCtx->pCurDqLayer;
21142114 SLayerInfo pLayerInfo;
2115− PSliceHeaderExt pShExt = NULL;
2116− PSliceHeader pSh = NULL;
2115+ PSliceHeaderExt pShExt = NULL;
2116+ PSliceHeader pSh = NULL;
21172117
21182118 if (pCtx->pDec == NULL) {
21192119 pCtx->pDec = PrefetchPic (pCtx->pPicBuff[0]);
@@ -2191,8 +2191,8 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 71 unmodified lines
21912191 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_FMO_INIT_FAIL);
21922192 }
21932193
2194− bFreshSliceAvailable = (iCurrIdD != iLastIdD
2195− || iCurrIdQ != iLastIdQ); // do not need condition of (first_mb == 0) due multiple slices might be disorder
2194+ bFreshSliceAvailable = (iCurrIdD != iLastIdD
2195+ || iCurrIdQ != iLastIdQ); // do not need condition of (first_mb == 0) due multiple slices might be disorder
21962196
21972197 WelsDqLayerDecodeStart (pCtx, pNalCur, pLayerInfo.pSps, pLayerInfo.pPps);
21982198
@@ -2279,15 +2279,15 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 80 unmodified lines
22792279 fprintf (stderr, "cur_frame : %d\tiCurrIdD : %d\n ",
22802280 dq_cur->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.iFrameNum, iCurrIdD);
22812281 #endif//#if !CODEC_FOR_TESTBED
2282− iLastIdD = iCurrIdD;
2283− iLastIdQ = iCurrIdQ;
2282+ iLastIdD = iCurrIdD;
2283+ iLastIdQ = iCurrIdQ;
22842284
22852285 //pNalUnitsList overflow.
22862286 ++ iIdx;
22872287 if (iIdx <= iEndIdx) {
2288− pNalCur = pCurAu->pNalUnitsList[iIdx];
2288+ pNalCur = pCurAu->pNalUnitsList[iIdx];
22892289 } else {
2290− pNalCur = NULL;
2290+ pNalCur = NULL;
22912291 }
22922292
22932293 if (pNalCur == NULL ||
@@ -2346,7 +2346,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 52 unmodified lines
23462346
23472347 // need update frame_num due current frame is well decoded
23482348 if (pCurAu->pNalUnitsList[pCurAu->uiStartPos]->sNalHeaderExt.sNalUnitHeader.uiNalRefIdc > 0)
2349− pCtx->iPrevFrameNum = pSh->iFrameNum;
2349+ pCtx->iPrevFrameNum = pSh->iFrameNum;
23502350 if (pCtx->bLastHasMmco5)
23512351 pCtx->iPrevFrameNum = 0;
23522352 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t