/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | header.cpp | 319 AVCSliceHeader *sliceHdr = video->sliceHdr; in EncodeSliceHeader() local 328 status = ue_v(stream, sliceHdr->first_mb_in_slice); in EncodeSliceHeader() 334 status = ue_v(stream, sliceHdr->slice_type); in EncodeSliceHeader() 341 status = ue_v(stream, sliceHdr->pic_parameter_set_id); in EncodeSliceHeader() 343 … status = BitstreamWriteBits(stream, currSPS->log2_max_frame_num_minus4 + 4, sliceHdr->frame_num); in EncodeSliceHeader() 353 status = ue_v(stream, sliceHdr->idr_pic_id); in EncodeSliceHeader() 359 sliceHdr->pic_order_cnt_lsb); in EncodeSliceHeader() 361 if (currPPS->pic_order_present_flag && !sliceHdr->field_pic_flag) in EncodeSliceHeader() 363 status = se_v(stream, sliceHdr->delta_pic_order_cnt_bottom); /* 32 bits */ in EncodeSliceHeader() 368 status = se_v(stream, sliceHdr->delta_pic_order_cnt[0]); /* 32 bits */ in EncodeSliceHeader() [all …]
|
D | init.cpp | 32 AVCSliceHeader *sliceHdr = video->sliceHdr; in SetEncodeParam() local 470 sliceHdr->disable_deblocking_filter_idc = encParam->disable_db_idc; in SetEncodeParam() 476 sliceHdr->slice_alpha_c0_offset_div2 = encParam->alpha_offset; in SetEncodeParam() 482 sliceHdr->slice_beta_offset_div_2 = encParam->beta_offset; in SetEncodeParam() 486 sliceHdr->idr_pic_id = 0; in SetEncodeParam() 490 sliceHdr->idr_pic_id = (uint)(-1); /* start with zero */ in SetEncodeParam() 492 sliceHdr->field_pic_flag = FALSE; in SetEncodeParam() 493 sliceHdr->bottom_field_flag = FALSE; /* won't be used anyway */ in SetEncodeParam() 494 video->MbaffFrameFlag = (seqParam->mb_adaptive_frame_field_flag && !sliceHdr->field_pic_flag); in SetEncodeParam() 704 AVCSliceHeader *sliceHdr = video->sliceHdr; in InitFrame() local [all …]
|
D | slice.cpp | 26 AVCSliceHeader *sliceHdr = video->sliceHdr; in AVCEncodeSlice() local 35 video->mbNum = CurrMbAddr = sliceHdr->first_mb_in_slice;// * (1+video->MbaffFrameFlag); in AVCEncodeSlice() 690 AVCSliceHeader *sliceHdr = video->sliceHdr; in mb_pred() local 712 max_ref_idx = sliceHdr->num_ref_idx_l0_active_minus1; in mb_pred() 717 if (sliceHdr->num_ref_idx_l0_active_minus1 > 0) in mb_pred() 731 max_ref_idx = sliceHdr->num_ref_idx_l1_active_minus1; in mb_pred() 736 if (sliceHdr->num_ref_idx_l1_active_minus1 > 0) in mb_pred() 776 AVCSliceHeader *sliceHdr = video->sliceHdr; in sub_mb_pred() local 805 max_ref_idx = sliceHdr->num_ref_idx_l0_active_minus1; in sub_mb_pred() 811 if ((sliceHdr->num_ref_idx_l0_active_minus1 > 0 /*|| currMB->mb_field_decoding_flag*/) && in sub_mb_pred() [all …]
|
D | avcenc_api.cpp | 116 …video->sliceHdr = (AVCSliceHeader*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCSliceHeader), DEFA… in PVAVCEncInitialize() 117 if (video->sliceHdr == NULL) in PVAVCEncInitialize() 344 video->sliceHdr->idr_pic_id++; in PVAVCEncSetInput() 345 if (video->sliceHdr->idr_pic_id > 65535) // range check in PVAVCEncSetInput() 347 video->sliceHdr->idr_pic_id = 0; // reset in PVAVCEncSetInput() 495 video->PrevRefFrameNum = video->sliceHdr->frame_num; in PVAVCEncodeNAL() 649 if (video->sliceHdr != NULL) in PVAVCCleanUpEncoder() 651 avcHandle->CBAVC_Free(userData, video->sliceHdr); in PVAVCCleanUpEncoder()
|
D | rate_control.cpp | 53 AVCSliceHeader *sliceHdr = video->sliceHdr; in RCDetermineFrameNum() local 75 sliceHdr->slice_type = AVC_I_ALL_SLICE; in RCDetermineFrameNum() 123 sliceHdr->slice_type = AVC_I_ALL_SLICE; in RCDetermineFrameNum() 130 sliceHdr->slice_type = AVC_P_ALL_SLICE; in RCDetermineFrameNum()
|
D | avcenc_lib.h | 195 …reordering(AVCCommonObj *video, AVCEncBitstream *stream, AVCSliceHeader *sliceHdr, int slice_type); 204 …Status dec_ref_pic_marking(AVCCommonObj *video, AVCEncBitstream *stream, AVCSliceHeader *sliceHdr);
|
D | motion_est.cpp | 317 && ((rateCtrl->frame_rate < 5.0) || (video->sliceHdr->frame_num > MIN_GOP))) in AVCMotionEstimation() 440 video->sliceHdr->slice_type = AVC_I_ALL_SLICE; in AVCMotionEstimation() 615 if (((int)video->sliceHdr->frame_num) % 30 == 1) in InitHTFM() 751 if (((int)video->sliceHdr->frame_num) % 30 == 1) in HTFMPrepareCurMB_AVC()
|
/frameworks/av/media/libstagefright/codecs/avc/common/src/ |
D | reflist.cpp | 23 AVCSliceHeader *sliceHdr = video->sliceHdr; in RefListInit() local 45 if (dpb->fs[i]->FrameNum > (int)sliceHdr->frame_num) in RefListInit() 69 if (dpb->fs[i]->FrameNum > (int)sliceHdr->frame_num) in RefListInit() 133 …video->refList0Size = AVC_MIN(video->refList0Size, (int)video->sliceHdr->num_ref_idx_l0_active_min… in RefListInit() 134 …video->refList1Size = AVC_MIN(video->refList1Size, (int)video->sliceHdr->num_ref_idx_l1_active_min… in RefListInit() 141 AVCSliceHeader *sliceHdr = video->sliceHdr; in ReOrderList() local 147 if (sliceHdr->ref_pic_list_reordering_flag_l0) in ReOrderList() 163 AVCSliceHeader *sliceHdr = video->sliceHdr; in ReorderRefPicList() local 179 num_ref_idx_lX_active_minus1 = sliceHdr->num_ref_idx_l0_active_minus1; in ReorderRefPicList() 180 remapping_of_pic_nums_idc = sliceHdr->reordering_of_pic_nums_idc_l0; in ReorderRefPicList() [all …]
|
D | dpb.cpp | 274 video->currFS->FrameNum = video->sliceHdr->frame_num; in DPBInitPic() 345 AVCSliceHeader *sliceHdr = video->sliceHdr; in StorePictureInDPB() local 373 if (sliceHdr->long_term_reference_flag == 0) in StorePictureInDPB() 386 if (sliceHdr->no_output_of_prior_pics_flag) in StorePictureInDPB() 405 if (sliceHdr->adaptive_ref_pic_marking_mode_flag == 0) in StorePictureInDPB() 411 status = adaptive_memory_marking(avcHandle, video, dpb, sliceHdr); in StorePictureInDPB() 523 …_marking(AVCHandle *avcHandle, AVCCommonObj *video, AVCDecPicBuffer *dpb, AVCSliceHeader *sliceHdr) in adaptive_memory_marking() argument 528 while (ii < MAX_DEC_REF_PIC_MARKING && sliceHdr->memory_management_control_operation[ii] != 0) in adaptive_memory_marking() 530 switch (sliceHdr->memory_management_control_operation[ii]) in adaptive_memory_marking() 533 MemMgrCtrlOp1(avcHandle, video, dpb, sliceHdr->difference_of_pic_nums_minus1[ii]); in adaptive_memory_marking() [all …]
|
D | deblock.cpp | 309 if (video->sliceHdr->disable_deblocking_filter_idc == 1) return; in DeblockMb() 311 if (video->sliceHdr->disable_deblocking_filter_idc == 2) in DeblockMb()
|
/frameworks/av/media/libstagefright/codecs/avc/common/include/ |
D | avclib_common.h | 135 …marking(AVCHandle *avcHandle, AVCCommonObj *video, AVCDecPicBuffer *dpb, AVCSliceHeader *sliceHdr);
|
D | avcint_common.h | 667 AVCSliceHeader *sliceHdr; /* slice header param syntax variables */ member
|