Home
last modified time | relevance | path

Searched refs:QP (Results 1 – 17 of 17) sorted by relevance

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dcal_dc_scaler.cpp151 int QP, in cal_dc_scaler() argument
165 if (QP > 0 && QP < 5) dc_scaler = 8; in cal_dc_scaler()
166 else if (QP > 4 && QP < 9) dc_scaler = 2 * QP; in cal_dc_scaler()
167 else if (QP > 8 && QP < 25) dc_scaler = QP + 8; in cal_dc_scaler()
168 else dc_scaler = 2 * QP - 16; in cal_dc_scaler()
172 if (QP > 0 && QP < 5) dc_scaler = 8; in cal_dc_scaler()
173 else if (QP > 4 && QP < 25) dc_scaler = (QP + 13) >> 1; in cal_dc_scaler()
174 else dc_scaler = QP - 6; in cal_dc_scaler()
Dcombined_decode.cpp49 int16 QP, *QPMB = video->QPMB; in DecodeFrameCombinedMode() local
116 QP = video->currVop->quantizer; in DecodeFrameCombinedMode()
129 video->QP_CHR = MQ_chroma_QP_table[QP]; in DecodeFrameCombinedMode()
133 video->QP_CHR = QP; /* ANNEX_T */ in DecodeFrameCombinedMode()
155 status = GetMBheader(video, &QP); in DecodeFrameCombinedMode()
166 QPMB[mbnum] = QP; in DecodeFrameCombinedMode()
325 QP = video->currVop->quantizer; in DecodeFrameCombinedMode()
345 PV_STATUS GetMBheader(VideoDecData *video, int16 *QP) in GetMBheader() argument
469 *QP += DQ_tab[DQUANT]; in GetMBheader()
471 if (*QP < 1) *QP = 1; in GetMBheader()
[all …]
Dvlc_dequant.cpp59 int QP = video->QPMB[mbnum]; in VlcDequantMpegIntraBlock() local
148 temp = (int32)datablock[k] * qmat[k] * QP; in VlcDequantMpegIntraBlock()
193 temp = (int32)dcac_col[j] * qmat[k] * QP; in VlcDequantMpegIntraBlock()
209 temp = (int32)datablock[k] * qmat[k] * QP; in VlcDequantMpegIntraBlock()
242 temp = (int32)dcac_row[j] * qmat[k] * QP; in VlcDequantMpegIntraBlock()
259 temp = (int32)datablock[k] * qmat[k] * QP; in VlcDequantMpegIntraBlock()
298 temp = (int32)datablock[k] * qmat[k] * QP; in VlcDequantMpegIntraBlock()
314 temp = (int32)datablock[k] * qmat[k] * QP; in VlcDequantMpegIntraBlock()
391 int QP = video->QPMB[mbnum]; in VlcDequantMpegInterBlock() local
445 temp = (-(int32)(2 * run_level.level + 1) * qmat[k] * QP + 15) >> 4; /* 03/23/01 */ in VlcDequantMpegInterBlock()
[all …]
Ddatapart_decode.cpp145 int16 QP, *QPMB = video->QPMB; in DecodeDataPart_I_VideoPacket() local
154 QP = video->currVop->quantizer; in DecodeDataPart_I_VideoPacket()
175 status = GetMBheaderDataPart_DQUANT_DC(video, &QP); in DecodeDataPart_I_VideoPacket()
188 QPMB[mbnum] = QP; in DecodeDataPart_I_VideoPacket()
310 int16 QP, *QPMB = video->QPMB; in DecodeDataPart_P_VideoPacket() local
406 QP = video->currVop->quantizer; in DecodeDataPart_P_VideoPacket()
416 QPMB[mbnum] = QP; /* 03/01/01 */ in DecodeDataPart_P_VideoPacket()
444 status = GetMBheaderDataPart_DQUANT_DC(video, &QP); in DecodeDataPart_P_VideoPacket()
448 QPMB[mbnum] = QP; in DecodeDataPart_P_VideoPacket()
516 PV_STATUS GetMBheaderDataPart_DQUANT_DC(VideoDecData *video, int16 *QP) in GetMBheaderDataPart_DQUANT_DC() argument
[all …]
Dconceal.cpp40 int16 QP; in ConcealTexture_I() local
52 QP = video->QPMB[mbnum]; in ConcealTexture_I()
54 GetMBheaderDataPart_DQUANT_DC(video, &QP); in ConcealTexture_I()
59 QP = video->QPMB[mbnum-1]; in ConcealTexture_I()
60 …if (intra_dc_vlc_thr == 7 || QP >= intra_dc_vlc_thr*2 + 11) /* if switched then conceal from prev… in ConcealTexture_I()
Ddcac_prediction.cpp46 int QP = video->QPMB[mbnum]; in doDCACPrediction() local
47 int QP_half = QP >> 1; in doDCACPrediction()
146 if (QP_tmp == QP) in doDCACPrediction()
158 … q_block[i] = (val < 0) ? (int16)((val - QP_half) / QP) : (int16)((val + QP_half) / QP); in doDCACPrediction()
175 if (QP_tmp == QP) in doDCACPrediction()
187 … q_block[i<<3] = (val < 0) ? (int16)((val - QP_half) / QP) : (int16)((val + QP_half) / QP); in doDCACPrediction()
Dmp4dec_lib.h81 int cal_dc_scaler(int QP, int type);
103 PV_STATUS GetMBheader(VideoDecData *video, int16 *QP);
109 PV_STATUS GetMBheaderDataPart_DQUANT_DC(VideoDecData *video, int16 *QP);
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dfastquant.cpp90 Int cal_dc_scalerENC(Int QP, Int type) in cal_dc_scalerENC() argument
96 if (QP > 0 && QP < 5) in cal_dc_scalerENC()
98 else if (QP > 4 && QP < 9) in cal_dc_scalerENC()
99 dc_scaler = 2 * QP; in cal_dc_scalerENC()
100 else if (QP > 8 && QP < 25) in cal_dc_scalerENC()
101 dc_scaler = QP + 8; in cal_dc_scalerENC()
103 dc_scaler = 2 * QP - 16; in cal_dc_scalerENC()
107 if (QP > 0 && QP < 5) in cal_dc_scalerENC()
109 else if (QP > 4 && QP < 25) in cal_dc_scalerENC()
110 dc_scaler = (QP + 13) / 2; in cal_dc_scalerENC()
[all …]
Dfastcodemb.cpp50 PV_STATUS CodeMB_H263(VideoEncData *video, approxDCT *function, Int QP, Int ncoefblck[]) in CodeMB_H263() argument
80 Int offset = QP >> 5; /* QP is combined offset and QP */ in CodeMB_H263()
88 QP = QP & 0x1F; in CodeMB_H263()
91 QuantParam.QPx2 = QP << 1; in CodeMB_H263()
92 QuantParam.QP = QP; in CodeMB_H263()
93 QuantParam.QPdiv2 = QP >> 1; in CodeMB_H263()
95 QuantParam.Addition = QP - 1 + (QP & 0x1); in CodeMB_H263()
111 dc_scaler = cal_dc_scalerENC(QP, 1); /* luminance blocks */ in CodeMB_H263()
114 ColTh = ColThIntra[QP]; in CodeMB_H263()
125 ColTh = ColThInter[QP]; in CodeMB_H263()
[all …]
Dfastcodemb.h45 Int QP; member
52 void initCodeMB(approxDCT *function, Int QP);
53 PV_STATUS CodeMB_H263(VideoEncData *video, approxDCT *function, Int QP, Int ncoefblck[], Int offset…
54 PV_STATUS CodeMB_MPEG(VideoEncData *video, approxDCT *function, Int QP, Int ncoefblck[], Int offset…
67 Int cal_dc_scalerENC(Int QP, Int type) ;
82 Int BlockQuantDequantMPEGInter(Int *rcoeff, Int *qcoeff, Int QP, Int *qmat,
86 Int BlockQuantDequantMPEGIntra(Int *rcoeff, Int *qcoeff, Int QP, Int *qmat,
90 Int BlockQuantDequantMPEGDCInter(Int *rcoeff, Int *qcoeff, Int QP, Int *qmat,
93 Int BlockQuantDequantMPEGDCIntra(Int *rcoeff, Int *qcoeff, Int QP, Int *qmat,
Dfastquant_inline.h99 __inline int32 aan_dc_scale(int32 coeff, int32 QP) in aan_dc_scale() argument
102 if (coeff < 0) coeff += (QP >> 1); in aan_dc_scale()
103 else coeff -= (QP >> 1); in aan_dc_scale()
124 __inline int32 coeff_dequant_mpeg(int32 q_value, int32 stepsize, int32 QP, int32 tmp) in coeff_dequant_mpeg() argument
131 stepsize *= QP; in coeff_dequant_mpeg()
243 __inline int32 coeff_dequant_mpeg(int32 q_value, int32 stepsize, int32 QP, int32 tmp) in coeff_dequant_mpeg() argument
250 smulbb stepsize, stepsize, QP in coeff_dequant_mpeg()
340 __inline int32 coeff_dequant_mpeg(int32 q_value, int32 stepsize, int32 QP, int32 tmp) in coeff_dequant_mpeg() argument
347 mul stepsize, stepsize, QP in coeff_dequant_mpeg()
379 __inline int32 aan_dc_scale(int32 coeff, int32 QP) in aan_dc_scale() argument
[all …]
Dcombined_encode.cpp49 Int QP; in EncodeFrameCombinedMode() local
117 QP = QPMB[mbnum]; /* Get quant_scale */ in EncodeFrameCombinedMode()
119 … status = EncodeGOBHeader(video, slice_counter, QP, 0); //ind_y /* Encode GOB Header */ in EncodeFrameCombinedMode()
129 QP = QPMB[mbnum]; /* always read new QP */ in EncodeFrameCombinedMode()
159 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck); in EncodeFrameCombinedMode()
275 Int QP; in EncodeSliceCombinedMode() local
315 QPMB[0] = video->QP_prev = QP = currVop->quantizer; in EncodeSliceCombinedMode()
322 QP = QPMB[mbnum]; in EncodeSliceCombinedMode()
373 … status = EncodeGOBHeader(video, slice_counter, QP, 1); //ind_y /* Encode GOB Header */ in EncodeSliceCombinedMode()
407 QP = QPMB[mbnum]; /* always read new QP */ in EncodeSliceCombinedMode()
[all …]
Ddatapart_encode.cpp48 Int QP; in EncodeFrameDataPartMode() local
105 QP = QPMB[mbnum]; /* always read new QP */ in EncodeFrameDataPartMode()
130 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck); in EncodeFrameDataPartMode()
222 Int QP; in EncodeSliceDataPartMode() local
259 QPMB[0] = video->QP_prev = QP = currVop->quantizer; in EncodeSliceDataPartMode()
268 QP = QPMB[mbnum]; in EncodeSliceDataPartMode()
321 QP = QPMB[mbnum]; /* always read new QP */ in EncodeSliceDataPartMode()
341 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck); in EncodeSliceDataPartMode()
Dmp4enc_lib.h64 Int cal_dc_scalerENC(Int QP, Int type) ;
80 Int BlockQuantDequantMPEGInter(Short *rcoeff, Short *qcoeff, Int QP, Int *qmat,
84 Int BlockQuantDequantMPEGIntra(Short *rcoeff, Short *qcoeff, Int QP, Int *qmat,
88 Int BlockQuantDequantMPEGDCInter(Short *rcoeff, Short *qcoeff, Int QP, Int *qmat,
91 Int BlockQuantDequantMPEGDCIntra(Short *rcoeff, Short *qcoeff, Int QP, Int *qmat,
Dmp4lib_int.h255 Int QP; member
266 Int QP; /* quantization level for current frame, = rc->Qc*/ member
465 Int QP; member
Drate_control.cpp245 pMP->QP = currVop->quantizer; in RC_VopQPSetting()
274 pMP->pRDSamples[pMP->framePos][counter_samples].QP = pMP->QP; in SaveRDSamples()
318 pMP->sum_QP += pMP->QP; in RC_VopUpdateStat()
746 prev_QP = pMP->pRDSamples[j][0].QP; in calculateQuantizer_Multipass()
752 prev_QP = pMP->pRDSamples[j][i].QP; in calculateQuantizer_Multipass()
875 pMP->sum_QP -= pMP->QP; in updateRC_PostProc()
Dvlc_encode.cpp2002 Int cal_dc_scalerENC(Int QP, Int type) ;
2007 if(tmp<0) tmp = (tmp-(QP/2))/QP;\
2008 else tmp = (tmp+(QP/2))/QP;\
2028 UChar QP = video->QPMB[mbnum]; in DCACPred() local
2130 if (comp == 0) dc_scale = cal_dc_scalerENC(QP, 1) ; in DCACPred()
2131 if (comp == 4) dc_scale = cal_dc_scalerENC(QP, 2) ; in DCACPred()
2218 if (QPtmp != QP) in DCACPred()
2240 if (QPtmp != QP) in DCACPred()
2265 if (QPtmp != QP) in DCACPred()
2289 if (QPtmp != QP) in DCACPred()
[all …]