Home
last modified time | relevance | path

Searched refs:mbnum (Results 1 – 20 of 20) sorted by relevance

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Ddatapart_decode.cpp48 int mbnum; in DecodeFrameDataPartMode() local
72 mbnum = slice_counter = 0; in DecodeFrameDataPartMode()
79 video->mbnum = mbnum; in DecodeFrameDataPartMode()
80 …video->mbnum_row = PV_GET_ROW(mbnum, nMBPerRow); /* This is needed if nbnum is read from the pa… in DecodeFrameDataPartMode()
81 video->mbnum_col = mbnum - video->mbnum_row * nMBPerRow; in DecodeFrameDataPartMode()
98 while ((status = PV_ReadVideoPacketHeader(video, &mbnum)) == PV_FAIL) in DecodeFrameDataPartMode()
108 mbnum = nTotalMB; in DecodeFrameDataPartMode()
111 if (mbnum > video->mbnum + 1) in DecodeFrameDataPartMode()
113 ConcealPacket(video, video->mbnum, mbnum, slice_counter); in DecodeFrameDataPartMode()
116 if (mbnum >= nTotalMB) in DecodeFrameDataPartMode()
[all …]
Dconceal.cpp38 int mbnum; in ConcealTexture_I() local
46 for (mbnum = mb_start; mbnum < mb_stop; mbnum++) in ConcealTexture_I()
48 video->mbnum = mbnum; in ConcealTexture_I()
49 video->mbnum_row = PV_GET_ROW(mbnum, video->nMBPerRow); in ConcealTexture_I()
50 video->mbnum_col = mbnum - video->mbnum_row * video->nMBPerRow; in ConcealTexture_I()
51 video->sliceNo[mbnum] = (uint8) slice_counter; in ConcealTexture_I()
52 QP = video->QPMB[mbnum]; in ConcealTexture_I()
59 QP = video->QPMB[mbnum-1]; in ConcealTexture_I()
62 ConcealPacket(video, mbnum, mb_stop, slice_counter); in ConcealTexture_I()
63 video->mbnum = mb_stop - 1; in ConcealTexture_I()
[all …]
Ddcac_prediction.cpp39 int mbnum = video->mbnum; in doDCACPrediction() local
45 int16 *QP_store = video->QPMB + mbnum; in doDCACPrediction()
46 int QP = video->QPMB[mbnum]; in doDCACPrediction()
51 typeDCStore *DC_store = video->predDC + mbnum; in doDCACPrediction()
55 uint ACpred_flag = (uint) video->acPredFlag[mbnum]; in doDCACPrediction()
79 if (!comp && x_pos && !(video->headerInfo.Mode[mbnum-1]&INTRA_MASK)) /* not intra */ in doDCACPrediction()
83 if (!comp && y_pos && !(video->headerInfo.Mode[mbnum-nMBPerRow]&INTRA_MASK)) /* not intra */ in doDCACPrediction()
110 up_bnd = Pos0[comp] && slice_nb[mbnum] == slice_nb[mbnum-nMBPerRow]; in doDCACPrediction()
118 left_bnd = Pos1[comp] && slice_nb[mbnum] == slice_nb[mbnum-1]; in doDCACPrediction()
126 up_bnd = Pos0[comp] && slice_nb[mbnum] == slice_nb[mbnum-nMBPerRow]; in doDCACPrediction()
[all …]
Dcombined_decode.cpp45 int mbnum; in DecodeFrameCombinedMode() local
114 mbnum = slice_counter = 0; in DecodeFrameCombinedMode()
122 mb_start = mbnum; in DecodeFrameCombinedMode()
147 video->mbnum = mbnum; in DecodeFrameCombinedMode()
148 video->mbnum_row = PV_GET_ROW(mbnum, nMBPerRow); in DecodeFrameCombinedMode()
149 video->mbnum_col = mbnum - video->mbnum_row * nMBPerRow; in DecodeFrameCombinedMode()
151 video->sliceNo[mbnum] = (uint8) slice_counter; in DecodeFrameCombinedMode()
160 video->mbnum = mb_start; in DecodeFrameCombinedMode()
166 QPMB[mbnum] = QP; in DecodeFrameCombinedMode()
168 if (Mode[mbnum] != MODE_SKIPPED) in DecodeFrameCombinedMode()
[all …]
Dpost_filter.cpp43 int mbnum, strength, A_D, d1_2, d1, d2, A, B, C, D, b_size; in H263_Deblock() local
46 mbnum = 0; in H263_Deblock()
71 if (mode[mbnum] != MODE_SKIPPED) in H263_Deblock()
74 strength = STRENGTH_tab[QP_store[mbnum]]; in H263_Deblock()
143 mbnum++; in H263_Deblock()
155 mbnum = nMBPerRow; in H263_Deblock()
160 if (mode[mbnum] != MODE_SKIPPED || mode[mbnum - nMBPerRow] != MODE_SKIPPED) in H263_Deblock()
163 if (mode[mbnum] != MODE_SKIPPED) in H263_Deblock()
165 … strength = STRENGTH_tab[(annex_T ? MQ_chroma_QP_table[QP_store[mbnum]] : QP_store[mbnum])]; in H263_Deblock()
169 …th = STRENGTH_tab[(annex_T ? MQ_chroma_QP_table[QP_store[mbnum - nMBPerRow]] : QP_store[mbnum - n… in H263_Deblock()
[all …]
Dvlc_dequant.cpp57 int mbnum = video->mbnum; in VlcDequantMpegIntraBlock() local
58 uint CBP = video->headerInfo.CBP[mbnum]; in VlcDequantMpegIntraBlock()
59 int QP = video->QPMB[mbnum]; in VlcDequantMpegIntraBlock()
60 typeDCStore *DC = video->predDC + mbnum; in VlcDequantMpegIntraBlock()
64 uint ACpred_flag = (uint) video->acPredFlag[mbnum]; in VlcDequantMpegIntraBlock()
390 int mbnum = video->mbnum; in VlcDequantMpegInterBlock() local
391 int QP = video->QPMB[mbnum]; in VlcDequantMpegInterBlock()
508 int mbnum = video->mbnum; in VlcDequantH263IntraBlock() local
509 uint CBP = video->headerInfo.CBP[mbnum]; in VlcDequantH263IntraBlock()
510 int QP = video->QPMB[mbnum]; in VlcDequantH263IntraBlock()
[all …]
Dpacket_util.cpp55 int mbnum = (int) BitstreamReadBits16(stream, nbits); in PV_ReadVideoPacketHeader() local
56 if (mbnum < 0) { in PV_ReadVideoPacketHeader()
59 *next_MB = mbnum; in PV_ReadVideoPacketHeader()
65 *next_MB = video->mbnum + 1; in PV_ReadVideoPacketHeader()
219 *next_MB = video->mbnum + 1; in PV_H263SliceHeader()
Dvlc_decode.cpp370 int mbnum = video->mbnum; in mv_prediction() local
386 if (mbnum_col > 0 && slice_nb[mbnum] == slice_nb[mbnum-1]) in mv_prediction()
408 if (slice_nb[mbnum] == slice_nb[mbnum-nMBPerRow]) in mv_prediction()
414 if (mbnum_col < nMBPerRow - 1 && slice_nb[mbnum] == slice_nb[mbnum-nMBPerRow+1]) in mv_prediction()
Dmb_motion_comp.cpp136 int mbnum = video->mbnum; in MBMotionComp() local
184 mode = video->headerInfo.Mode[mbnum]; in MBMotionComp()
Dmp4lib_int.h233 int mbnum; /* Macroblock number */ member
Dmp4dec_lib.h279 void CopyVopMB(Vop *curr, uint8 *prev, int mbnum, int width, int height);
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dcombined_encode.cpp50 Int mbnum = 0, slice_counter = 0, curr_slice_counter = 0; in EncodeFrameCombinedMode() local
117 QP = QPMB[mbnum]; /* Get quant_scale */ in EncodeFrameCombinedMode()
128 video->mbnum = mbnum; in EncodeFrameCombinedMode()
129 QP = QPMB[mbnum]; /* always read new QP */ in EncodeFrameCombinedMode()
132 video->sliceNo[mbnum] = curr_slice_counter; /* Update MB slice number */ in EncodeFrameCombinedMode()
134 video->sliceNo[mbnum] = slice_counter; in EncodeFrameCombinedMode()
145 video->sliceNo[mbnum] = slice_counter; /* Update MB slice number*/ in EncodeFrameCombinedMode()
148 status = EncodeVideoPacketHeader(video, mbnum, video->QP_prev, 0); in EncodeFrameCombinedMode()
206 mbnum++; in EncodeFrameCombinedMode()
278 Int mbnum = video->mbnum, slice_counter = video->sliceNo[mbnum]; /* get current MB location */ in EncodeSliceCombinedMode() local
[all …]
Ddatapart_encode.cpp49 Int mbnum = 0, slice_counter = 0; in EncodeFrameDataPartMode() local
103 video->mbnum = mbnum; in EncodeFrameDataPartMode()
104 video->sliceNo[mbnum] = slice_counter; /* Update MB slice number */ in EncodeFrameDataPartMode()
105 QP = QPMB[mbnum]; /* always read new QP */ in EncodeFrameDataPartMode()
116 video->sliceNo[mbnum] = slice_counter; /* Update MB slice number*/ in EncodeFrameDataPartMode()
119 status = EncodeVideoPacketHeader(video, mbnum, video->QP_prev, 0); in EncodeFrameDataPartMode()
167 mbnum++; in EncodeFrameDataPartMode()
225 Int mbnum = video->mbnum, slice_counter = video->sliceNo[mbnum]; /* get current MB location */ in EncodeSliceDataPartMode() local
226 Int firstMB = mbnum; in EncodeSliceDataPartMode()
227 Int start_packet_header = (mbnum != 0); in EncodeSliceDataPartMode()
[all …]
Dvlc_encode.cpp891 UChar Mode = video->headerInfo.Mode[video->mbnum]; in MBVlcEncodeDataPar_I_VOP()
894 Int mbnum = video->mbnum; in MBVlcEncodeDataPar_I_VOP() local
906 CBP = video->headerInfo.CBP[mbnum]; in MBVlcEncodeDataPar_I_VOP()
909 …dquant = video->QPMB[mbnum] - video->QP_prev; /* 3/15/01, QP_prev may not equal QPMB[mbnum-1] if m… in MBVlcEncodeDataPar_I_VOP()
911 video->QP_prev = video->QPMB[mbnum]; in MBVlcEncodeDataPar_I_VOP()
948 BitstreamPut1Bits(bs2, video->acPredFlag[video->mbnum]); /* ac_pred_flag */ in MBVlcEncodeDataPar_I_VOP()
979 Int mbnum = video->mbnum; in MBVlcEncodeDataPar_P_VOP() local
980 UChar Mode = video->headerInfo.Mode[mbnum]; in MBVlcEncodeDataPar_P_VOP()
981 Int QP_tmp = video->QPMB[mbnum]; in MBVlcEncodeDataPar_P_VOP()
999 QP_tmp = video->QPMB[mbnum-1]; in MBVlcEncodeDataPar_P_VOP()
[all …]
Dmotion_est.cpp155 Int mbnum, offset; in MotionEstimation() local
186 mbnum = 0; in MotionEstimation()
193 video->mbnum = mbnum; in MotionEstimation()
194 mot_mb = mot[mbnum]; in MotionEstimation()
200 mbnum++; in MotionEstimation()
266 mbnum = j * mbwidth + start_i; in MotionEstimation()
270 video->mbnum = mbnum; in MotionEstimation()
271 mot_mb = mot[mbnum]; in MotionEstimation()
272 mode_mb = Mode + mbnum; in MotionEstimation()
295 … fprintf(fp_debug, "#%d (%d,%d,%d) : ", mbnum, mot_mb[0].x, mot_mb[0].y, mot_mb[0].sad); in MotionEstimation()
[all …]
Dfastcodemb.cpp52 Int sad, k, CBP, mbnum = video->mbnum; in CodeMB_H263() local
54 UChar Mode = video->headerInfo.Mode[mbnum]; in CodeMB_H263()
143 sad = video->mot[mbnum][k+1].sad; in CodeMB_H263()
248 video->headerInfo.CBP[mbnum] = CBP; /* 5/18/2001 */ in CodeMB_H263()
281 Int sad, k, CBP, mbnum = video->mbnum; in CodeMB_MPEG() local
283 UChar Mode = video->headerInfo.Mode[mbnum]; in CodeMB_MPEG()
370 sad = video->mot[mbnum][k+1].sad; in CodeMB_MPEG()
469 video->headerInfo.CBP[mbnum] = CBP; /* 5/18/2001 */ in CodeMB_MPEG()
Dvop.cpp92 video->mbnum = 0; in EncodeVop()
205 if (video->mbnum == 0) in EncodeSlice()
219 if (video->mbnum == 0) in EncodeSlice()
252 if (video->mbnum >= currVol->nTotalMB && status != PV_END_OF_BUF) /* end of Vop */ in EncodeSlice()
Dmp4lib_int.h405 Int mbnum; /* Macroblock number */ member
Dmotion_comp.cpp102 Int mbnum = video->mbnum; //mb index in getMotionCompensatedMB() local
103 MOT *mot = video->mot[mbnum]; in getMotionCompensatedMB()
108 Int mode = video->headerInfo.Mode[mbnum]; /* get mode */ in getMotionCompensatedMB()
Dmp4enc_api.cpp1906 if (video->mbnum >= currVol->nTotalMB && !video->end_of_buf) in PVEncodeSlice()