Lines Matching refs:pSlHParams

392         H264_SLICE_HEADER_PARAMS *pSlHParams, IMG_BOOL __maybe_unused bCabacEnabled)  in tng__insert_prefix_nal_header()  argument
396 …tng__H264_writebits_startcode_prefix_element(pMTX_Header, aui32ElementPointers, pSlHParams->ui8Sta… in tng__insert_prefix_nal_header()
410 if (pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE) { in tng__insert_prefix_nal_header()
426 if (pSlHParams->SliceFrame_Type == SLHP_B_SLICEFRAME_TYPE) { in tng__insert_prefix_nal_header()
786 H264_SLICE_HEADER_PARAMS *pSlHParams, in tng__H264ES_writebits_slice_header() argument
792 …tng__H264_writebits_startcode_prefix_element(pMTX_Header, aui32ElementPointers, pSlHParams->ui8Sta… in tng__H264ES_writebits_slice_header()
803 … ((pSlHParams->bReferencePicture) << 5) | // nal_ref_idc (2 bits) in tng__H264ES_writebits_slice_header()
804 …((pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE ? 5 : 1)), // nal_unit_tpye (5 bits) … in tng__H264ES_writebits_slice_header()
814 …ementPointers, (IMG_UINT32)((pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE) ? SLHP_I_SLI… in tng__H264ES_writebits_slice_header()
818pSlHParams->Frame_Num_DO, … in tng__H264ES_writebits_slice_header()
822 if (pSlHParams->bPiCInterlace) { in tng__H264ES_writebits_slice_header()
824 …tng__write_upto8bits_elements(pMTX_Header, aui32ElementPointers, pSlHParams->bFieldType, 1); // bo… in tng__H264ES_writebits_slice_header()
827 if (pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE) in tng__H264ES_writebits_slice_header()
828 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->Idr_Pic_Id); // idr_pic_id ue(v) in tng__H264ES_writebits_slice_header()
830 if (pSlHParams->bPiCInterlace) in tng__H264ES_writebits_slice_header()
831 …lements(pMTX_Header, aui32ElementPointers, (pSlHParams->Picture_Num_DO + pSlHParams->bFieldType), in tng__H264ES_writebits_slice_header()
833 …te_upto8bits_elements(pMTX_Header, aui32ElementPointers, pSlHParams->Picture_Num_DO, pSlHParams->l… in tng__H264ES_writebits_slice_header()
836 if (pSlHParams->SliceFrame_Type == SLHP_B_SLICEFRAME_TYPE) in tng__H264ES_writebits_slice_header()
837 …tng__write_upto8bits_elements(pMTX_Header, aui32ElementPointers, pSlHParams->direct_spatial_mv_pre… in tng__H264ES_writebits_slice_header()
838 …if (pSlHParams->SliceFrame_Type == SLHP_P_SLICEFRAME_TYPE || pSlHParams->SliceFrame_Type == SLHP_B… in tng__H264ES_writebits_slice_header()
839 …if (pSlHParams->SliceFrame_Type == SLHP_P_SLICEFRAME_TYPE && pSlHParams->num_ref_idx_l0_active_min… in tng__H264ES_writebits_slice_header()
842 … tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->num_ref_idx_l0_active_minus1); in tng__H264ES_writebits_slice_header()
847 …if (pSlHParams->SliceFrame_Type != SLHP_I_SLICEFRAME_TYPE && pSlHParams->SliceFrame_Type != SLHP_I… in tng__H264ES_writebits_slice_header()
848 if ((pSlHParams->diff_ref_pic_num[0] || pSlHParams->bRefIsLongTermRef[0]) in tng__H264ES_writebits_slice_header()
849 …|| ((pSlHParams->diff_ref_pic_num[1] || pSlHParams->bRefIsLongTermRef[1]) && (pSlHParams->num_ref_… in tng__H264ES_writebits_slice_header()
853 if (pSlHParams->bRefIsLongTermRef[0]) { in tng__H264ES_writebits_slice_header()
855 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->uRefLongTermRefNum[0]); // long_te… in tng__H264ES_writebits_slice_header()
856 } else if (pSlHParams->diff_ref_pic_num[0] == 0) { in tng__H264ES_writebits_slice_header()
860 } else if (pSlHParams->diff_ref_pic_num[0] < 0) { in tng__H264ES_writebits_slice_header()
862 …tng__generate_ue(pMTX_Header, aui32ElementPointers, -pSlHParams->diff_ref_pic_num[0] - 1); // abs_… in tng__H264ES_writebits_slice_header()
865 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->diff_ref_pic_num[0] - 1); // abs_d… in tng__H264ES_writebits_slice_header()
868 …if ((pSlHParams->diff_ref_pic_num[1] || pSlHParams->bRefIsLongTermRef[1]) && pSlHParams->SliceFram… in tng__H264ES_writebits_slice_header()
869 if (pSlHParams->bRefIsLongTermRef[1]) { in tng__H264ES_writebits_slice_header()
871 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->uRefLongTermRefNum[1]); // long_te… in tng__H264ES_writebits_slice_header()
872 } else if (pSlHParams->diff_ref_pic_num[1] < 0) { in tng__H264ES_writebits_slice_header()
874 …tng__generate_ue(pMTX_Header, aui32ElementPointers, -pSlHParams->diff_ref_pic_num[1] - 1); // abs_… in tng__H264ES_writebits_slice_header()
877 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->diff_ref_pic_num[1] - 1); // abs_d… in tng__H264ES_writebits_slice_header()
885 if (pSlHParams->SliceFrame_Type == SLHP_B_SLICEFRAME_TYPE) { in tng__H264ES_writebits_slice_header()
886 if (pSlHParams->diff_ref_pic_num[1] || pSlHParams->bRefIsLongTermRef[1]) { in tng__H264ES_writebits_slice_header()
890 if (pSlHParams->bRefIsLongTermRef[1]) { in tng__H264ES_writebits_slice_header()
892 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->uRefLongTermRefNum[1]); // long_te… in tng__H264ES_writebits_slice_header()
893 } else if (pSlHParams->diff_ref_pic_num[1] < 0) { in tng__H264ES_writebits_slice_header()
895 …tng__generate_ue(pMTX_Header, aui32ElementPointers, -pSlHParams->diff_ref_pic_num[1] - 1); // abs_… in tng__H264ES_writebits_slice_header()
898 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->diff_ref_pic_num[1] - 1); // abs_d… in tng__H264ES_writebits_slice_header()
905 if (pSlHParams->weighted_pred_flag && in tng__H264ES_writebits_slice_header()
906 …((pSlHParams->SliceFrame_Type == SLHP_P_SLICEFRAME_TYPE) || (pSlHParams->SliceFrame_Type == SLHP_B… in tng__H264ES_writebits_slice_header()
907 && (pSlHParams->weighted_bipred_idc == 1)) { in tng__H264ES_writebits_slice_header()
909 tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->luma_log2_weight_denom); in tng__H264ES_writebits_slice_header()
910 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->chroma_log2_weight_denom); // Alwa… in tng__H264ES_writebits_slice_header()
911 …for (i = 0; i < (pSlHParams->SliceFrame_Type == SLHP_B_SLICEFRAME_TYPE ? 2 : (pSlHParams->num_ref_… in tng__H264ES_writebits_slice_header()
912 …tng__write_upto8bits_elements(pMTX_Header, aui32ElementPointers, pSlHParams->luma_weight_l0_flag[i… in tng__H264ES_writebits_slice_header()
913 if (pSlHParams->luma_weight_l0_flag[i]) { in tng__H264ES_writebits_slice_header()
914 tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->luma_weight_l0[i]); in tng__H264ES_writebits_slice_header()
915 tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->luma_offset_l0[i]); in tng__H264ES_writebits_slice_header()
917 …tng__write_upto8bits_elements(pMTX_Header, aui32ElementPointers, pSlHParams->chroma_weight_l0_flag… in tng__H264ES_writebits_slice_header()
918 if (pSlHParams->chroma_weight_l0_flag[i]) { in tng__H264ES_writebits_slice_header()
919 … tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->chromaB_weight_l0[i]); in tng__H264ES_writebits_slice_header()
920 … tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->chromaB_offset_l0[i]); in tng__H264ES_writebits_slice_header()
921 … tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->chromaR_weight_l0[i]); in tng__H264ES_writebits_slice_header()
922 … tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->chromaR_offset_l0[i]); in tng__H264ES_writebits_slice_header()
927 if (pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE) { in tng__H264ES_writebits_slice_header()
929 …tng__write_upto8bits_elements(pMTX_Header, aui32ElementPointers, pSlHParams->bIsLongTermRef ? 1 : … in tng__H264ES_writebits_slice_header()
930 } else if (pSlHParams->bReferencePicture) { in tng__H264ES_writebits_slice_header()
931 if (pSlHParams->bIsLongTermRef) { in tng__H264ES_writebits_slice_header()
940 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->uLongTermRefNum); … in tng__H264ES_writebits_slice_header()
948 if (bCabacEnabled && ((SLHP_P_SLICEFRAME_TYPE == pSlHParams->SliceFrame_Type) || in tng__H264ES_writebits_slice_header()
949 (SLHP_B_SLICEFRAME_TYPE == pSlHParams->SliceFrame_Type))) { in tng__H264ES_writebits_slice_header()
959 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->Disable_Deblocking_Filter_Idc); //… in tng__H264ES_writebits_slice_header()
960 if (pSlHParams->Disable_Deblocking_Filter_Idc != 1) { in tng__H264ES_writebits_slice_header()
961 …tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->iDebAlphaOffsetDiv2); //slice_alph… in tng__H264ES_writebits_slice_header()
962 …tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->iDebBetaOffsetDiv2); //slice_beta_… in tng__H264ES_writebits_slice_header()
972 H264_SLICE_HEADER_PARAMS *pSlHParams, in tng__H264_getelements_skip_P_slice() argument
988 tng__H264ES_writebits_slice_header(mtx_hdr, aui32ElementPointers, pSlHParams, bCabacEnabled); in tng__H264_getelements_skip_P_slice()
1035 H264_SLICE_HEADER_PARAMS *pSlHParams, in tng__H264_getelements_slice_header() argument
1050 … tng__H264ES_writebits_slice_header(pMTX_Header, aui32ElementPointers, pSlHParams, bCabacEnabled); in tng__H264_getelements_slice_header()
3096 H264_SLICE_HEADER_PARAMS *pSlHParams, in tng__H264ES_notforsims_writebits_extension_sliceheader() argument
3103 …tng__H264_writebits_startcode_prefix_element(pMTX_Header, aui32ElementPointers, pSlHParams->ui8Sta… in tng__H264ES_notforsims_writebits_extension_sliceheader()
3125 if (pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3127 } else if ((pSlHParams->SliceFrame_Type == SLHP_P_SLICEFRAME_TYPE) && bIsIDR) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3155 …ementPointers, (IMG_UINT32)((pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE) ? SLHP_I_SLI… in tng__H264ES_notforsims_writebits_extension_sliceheader()
3163 if ((pSlHParams->bPiCInterlace) || (pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE)) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3167 if (pSlHParams->bPiCInterlace) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3176 if ((pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE) || (bIsIDR)) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3184 if (pSlHParams->SliceFrame_Type == SLHP_B_SLICEFRAME_TYPE) in tng__H264ES_notforsims_writebits_extension_sliceheader()
3187 if (pSlHParams->SliceFrame_Type == SLHP_P_SLICEFRAME_TYPE) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3190 } else if (pSlHParams->SliceFrame_Type == SLHP_B_SLICEFRAME_TYPE) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3196 …if (pSlHParams->SliceFrame_Type != SLHP_I_SLICEFRAME_TYPE && pSlHParams->SliceFrame_Type != SLHP_I… in tng__H264ES_notforsims_writebits_extension_sliceheader()
3202 if (pSlHParams->SliceFrame_Type == SLHP_B_SLICEFRAME_TYPE) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3211 if ((pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE) || (bIsIDR)) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3221 if (bCabacEnabled && ((SLHP_P_SLICEFRAME_TYPE == pSlHParams->SliceFrame_Type) || in tng__H264ES_notforsims_writebits_extension_sliceheader()
3222 (SLHP_B_SLICEFRAME_TYPE == pSlHParams->SliceFrame_Type))) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3233 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->Disable_Deblocking_Filter_Idc); //… in tng__H264ES_notforsims_writebits_extension_sliceheader()
3234 if (pSlHParams->Disable_Deblocking_Filter_Idc != 1) { in tng__H264ES_notforsims_writebits_extension_sliceheader()
3235 …tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->iDebAlphaOffsetDiv2); //slice_alph… in tng__H264ES_notforsims_writebits_extension_sliceheader()
3236 …tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->iDebBetaOffsetDiv2); //slice_beta_… in tng__H264ES_notforsims_writebits_extension_sliceheader()
3248 H264_SLICE_HEADER_PARAMS *pSlHParams, in tng__H264ES_notforsims_writebits_slice_header() argument
3254 if (pSlHParams->ui16MvcViewIdx == (IMG_UINT16)(NON_MVC_VIEW)) { in tng__H264ES_notforsims_writebits_slice_header()
3256 } else if (pSlHParams->ui16MvcViewIdx == MVC_BASE_VIEW_IDX) { in tng__H264ES_notforsims_writebits_slice_header()
3258 pSlHParams, bCabacEnabled); in tng__H264ES_notforsims_writebits_slice_header()
3263 pSlHParams, bCabacEnabled, bIsIDR); in tng__H264ES_notforsims_writebits_slice_header()
3267 …tng__H264_writebits_startcode_prefix_element(pMTX_Header, aui32ElementPointers, pSlHParams->ui8Sta… in tng__H264ES_notforsims_writebits_slice_header()
3284 …tng__write_upto8bits_elements(pMTX_Header, aui32ElementPointers, ((pSlHParams->SliceFrame_Type == … in tng__H264ES_notforsims_writebits_slice_header()
3294 …ementPointers, (IMG_UINT32)((pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE) ? SLHP_I_SLI… in tng__H264ES_notforsims_writebits_slice_header()
3296 if (pSlHParams->ui16MvcViewIdx != (IMG_UINT16)(NON_MVC_VIEW)) in tng__H264ES_notforsims_writebits_slice_header()
3297 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->ui16MvcViewIdx); // pic_parameter… in tng__H264ES_notforsims_writebits_slice_header()
3303 if ((pSlHParams->bPiCInterlace) || (pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE)) { in tng__H264ES_notforsims_writebits_slice_header()
3306 if (pSlHParams->bPiCInterlace) { in tng__H264ES_notforsims_writebits_slice_header()
3312 if (pSlHParams->SliceFrame_Type == SLHP_IDR_SLICEFRAME_TYPE) in tng__H264ES_notforsims_writebits_slice_header()
3318 if (pSlHParams->SliceFrame_Type == SLHP_B_SLICEFRAME_TYPE) in tng__H264ES_notforsims_writebits_slice_header()
3321 if (pSlHParams->SliceFrame_Type == SLHP_P_SLICEFRAME_TYPE) { in tng__H264ES_notforsims_writebits_slice_header()
3323 } else if (pSlHParams->SliceFrame_Type == SLHP_B_SLICEFRAME_TYPE) { in tng__H264ES_notforsims_writebits_slice_header()
3328 if (pSlHParams->SliceFrame_Type != SLHP_I_SLICEFRAME_TYPE && in tng__H264ES_notforsims_writebits_slice_header()
3329 pSlHParams->SliceFrame_Type != SLHP_IDR_SLICEFRAME_TYPE) { in tng__H264ES_notforsims_writebits_slice_header()
3331 if (pSlHParams->SliceFrame_Type == SLHP_B_SLICEFRAME_TYPE) in tng__H264ES_notforsims_writebits_slice_header()
3340 if (pSlHParams->bReferencePicture && pSlHParams->bIsLongTermRef) { in tng__H264ES_notforsims_writebits_slice_header()
3361 if (bCabacEnabled && ((SLHP_P_SLICEFRAME_TYPE == pSlHParams->SliceFrame_Type) || in tng__H264ES_notforsims_writebits_slice_header()
3362 (SLHP_B_SLICEFRAME_TYPE == pSlHParams->SliceFrame_Type))) { in tng__H264ES_notforsims_writebits_slice_header()
3372 …tng__generate_ue(pMTX_Header, aui32ElementPointers, pSlHParams->Disable_Deblocking_Filter_Idc); //… in tng__H264ES_notforsims_writebits_slice_header()
3374 if (pSlHParams->Disable_Deblocking_Filter_Idc != 1) { in tng__H264ES_notforsims_writebits_slice_header()
3375 …tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->iDebAlphaOffsetDiv2); //slice_alph… in tng__H264ES_notforsims_writebits_slice_header()
3376 …tng__generate_se(pMTX_Header, aui32ElementPointers, pSlHParams->iDebBetaOffsetDiv2); //slice_beta_… in tng__H264ES_notforsims_writebits_slice_header()