Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
DomxVCM4P2_QuantInvIntra_I.c74 OMX_INT QP, in omxVCM4P2_QuantInvIntra_I() argument
85 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr); in omxVCM4P2_QuantInvIntra_I()
101 if (QP >= 1 && QP <= 4) in omxVCM4P2_QuantInvIntra_I()
105 else if (QP >= 5 && QP <= 8) in omxVCM4P2_QuantInvIntra_I()
107 dcScaler = 2 * QP; in omxVCM4P2_QuantInvIntra_I()
109 else if (QP >= 9 && QP <= 24) in omxVCM4P2_QuantInvIntra_I()
111 dcScaler = QP + 8; in omxVCM4P2_QuantInvIntra_I()
115 dcScaler = (2 * QP) - 16; in omxVCM4P2_QuantInvIntra_I()
121 if (QP >= 1 && QP <= 4) in omxVCM4P2_QuantInvIntra_I()
125 else if (QP >= 5 && QP <= 24) in omxVCM4P2_QuantInvIntra_I()
[all …]
DomxVCM4P2_QuantIntra_I.c76 OMX_U8 QP, in omxVCM4P2_QuantIntra_I() argument
90 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr); in omxVCM4P2_QuantIntra_I()
114 if (QP >= 1 && QP <= 4) in omxVCM4P2_QuantIntra_I()
118 else if (QP >= 5 && QP <= 8) in omxVCM4P2_QuantIntra_I()
120 dcScaler = 2 * QP; in omxVCM4P2_QuantIntra_I()
122 else if (QP >= 9 && QP <= 24) in omxVCM4P2_QuantIntra_I()
124 dcScaler = QP + 8; in omxVCM4P2_QuantIntra_I()
128 dcScaler = (2 * QP) - 16; in omxVCM4P2_QuantIntra_I()
133 if (QP >= 1 && QP <= 4) in omxVCM4P2_QuantIntra_I()
137 else if (QP >= 5 && QP <= 24) in omxVCM4P2_QuantIntra_I()
[all …]
DomxVCM4P2_QuantInvInter_I.c75 OMX_INT QP in omxVCM4P2_QuantInvInter_I() argument
83 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr); in omxVCM4P2_QuantInvInter_I()
92 if (QP & 0x1) in omxVCM4P2_QuantInvInter_I()
94 pSrcDst[coeffCount] = (2* armAbs(pSrcDst[coeffCount]) + 1) * QP; in omxVCM4P2_QuantInvInter_I()
100 * QP - 1; in omxVCM4P2_QuantInvInter_I()
DomxVCM4P2_QuantInter_I.c73 OMX_U8 QP, in omxVCM4P2_QuantInter_I() argument
86 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr); in omxVCM4P2_QuantInter_I()
111 - (QP/2))/(2 * QP); in omxVCM4P2_QuantInter_I()
DomxVCM4P2_TransRecBlockCoef_inter.c80 OMX_U8 QP, in omxVCM4P2_TransRecBlockCoef_inter() argument
100 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr); in omxVCM4P2_TransRecBlockCoef_inter()
105 QP, in omxVCM4P2_TransRecBlockCoef_inter()
115 QP); in omxVCM4P2_TransRecBlockCoef_inter()
DomxVCM4P2_DecodeBlockCoef_Inter.c88 OMX_INT QP, in omxVCM4P2_DecodeBlockCoef_Inter() argument
106 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr); in omxVCM4P2_DecodeBlockCoef_Inter()
118 QP); in omxVCM4P2_DecodeBlockCoef_Inter()
/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 …]
Dchv_filter.cpp189 int QP = 1; in CombinedHorzVertFilter() local
207 QP = QP_store[(brwidth>>2) + (mbc>>1)]; /* QP is per MB based value */ in CombinedHorzVertFilter()
223 if (chr) QP = QP_store[jVal0]; in CombinedHorzVertFilter()
236 if (((jVal2 > 0) && (jVal2 < (QP << 1))) in CombinedHorzVertFilter()
237 … || ((jVal2 < 0) && (jVal2 > -(QP << 1)))) /* (D-C) compared with 2QP */ in CombinedHorzVertFilter()
293 if (((jVal2 > 0) && (jVal2 < (QP))) in CombinedHorzVertFilter()
294 … || ((jVal2 < 0) && (jVal2 > -(QP)))) /* (C-B) compared with QP */ in CombinedHorzVertFilter()
339 if (chr) QP = QP_store[jVal0]; in CombinedHorzVertFilter()
352 if (((jVal2 > 0) && (jVal2 < (QP << 1))) in CombinedHorzVertFilter()
353 || ((jVal2 < 0) && (jVal2 > -(QP << 1)))) in CombinedHorzVertFilter()
[all …]
Dchvr_filter.cpp37 int QP = 1; in CombinedHorzVertRingFilter() local
77 QP = QP_store[(brwidth>>2) + (mbc>>1)]; in CombinedHorzVertRingFilter()
109 QP = QP_store[index]; in CombinedHorzVertRingFilter()
128 if ((a3_0 > KThH || a3_0 < -KThH) && a3_0<QP && a3_0> -QP) in CombinedHorzVertRingFilter()
190 if (PV_ABS(a3_0) < (QP << 3)) in CombinedHorzVertRingFilter()
268 QP = QP_store[index]; in CombinedHorzVertRingFilter()
288 if ((a3_0 > KThH || a3_0 < -KThH) && a3_0<QP && a3_0> -QP) in CombinedHorzVertRingFilter()
347 if (PV_ABS(a3_0) < (QP << 3)) in CombinedHorzVertRingFilter()
437 QP = QP_store[index]; in CombinedHorzVertRingFilter()
442 max_diff = (QP >> 2) + 4; in CombinedHorzVertRingFilter()
[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()
/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 …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
DomxVCM4P2_QuantInvInter_I_s.s78 QP RN 1 label
95 TST QP,#1
98 SUBEQ QP1,QP,#1 ;// QP1=QP if QP is odd , QP1=QP-1 if QP is even
99 MOVNE QP1,QP
111 SMLABBNE X2,QP,X2,QP1 ;// X2=2*absval(first val)*QP+QP if QP is odd
119 SMLABBNE X3,QP,X3,QP1
130 SMLABBNE X2,QP,X2,QP1
138 SMLABBNE X3,QP,X3,QP1
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
DomxVCM4P10_TransformDequantChromaDCFromPair.c46 OMX_INT QP in DequantChromaDC2x2() argument
49 int Shift = (QP/6)-1 ; in DequantChromaDC2x2()
50 int Scale = armVCM4P10_VMatrix[QP%6][0]; in DequantChromaDC2x2()
129 OMX_INT QP in omxVCM4P10_TransformDequantChromaDCFromPair() argument
136 armRetArgErrIf(QP<0, OMX_Sts_BadArgErr); in omxVCM4P10_TransformDequantChromaDCFromPair()
137 armRetArgErrIf(QP>51, OMX_Sts_BadArgErr); in omxVCM4P10_TransformDequantChromaDCFromPair()
141 DequantChromaDC2x2(pDst, QP); in omxVCM4P10_TransformDequantChromaDCFromPair()
DomxVCM4P10_DequantTransformResidualFromPairAndAdd.c46 OMX_INT QP in DequantLumaAC4x4() argument
49 const OMX_U8 *pVRow = &armVCM4P10_VMatrix[QP%6][0]; in DequantLumaAC4x4()
50 int Shift = QP / 6; in DequantLumaAC4x4()
112 OMX_INT QP, in omxVCM4P10_DequantTransformResidualFromPairAndAdd() argument
126 armRetArgErrIf(AC!=0 && (QP<0), OMX_Sts_BadArgErr); in omxVCM4P10_DequantTransformResidualFromPairAndAdd()
127 armRetArgErrIf(AC!=0 && (QP>51), OMX_Sts_BadArgErr); in omxVCM4P10_DequantTransformResidualFromPairAndAdd()
141 DequantLumaAC4x4(pDelta, QP); in omxVCM4P10_DequantTransformResidualFromPairAndAdd()
DomxVCM4P10_TransformDequantLumaDCFromPair.c46 OMX_INT QP in DequantLumaDC4x4() argument
49 int Shift = (QP/6)-2 ; in DequantLumaDC4x4()
50 int Scale = armVCM4P10_VMatrix[QP%6][0]; in DequantLumaDC4x4()
145 OMX_INT QP in omxVCM4P10_TransformDequantLumaDCFromPair() argument
152 armRetArgErrIf(QP<0, OMX_Sts_BadArgErr); in omxVCM4P10_TransformDequantLumaDCFromPair()
153 armRetArgErrIf(QP>51, OMX_Sts_BadArgErr); in omxVCM4P10_TransformDequantLumaDCFromPair()
158 DequantLumaDC4x4(pDst, QP); in omxVCM4P10_TransformDequantLumaDCFromPair()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p2/src/
DomxVCM4P2_QuantInvInter_I_s.s77 QP RN 1 label
119 ADD doubleQP,QP,QP ;// doubleQP= 2*QP
122 TST QP,#1
124 SUBEQ QP,QP,#1
125 VMOV dQP10,QP ;// If QP is even then QP1=QP-1 else QP1=QP
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/
DomxVCM4P10_DequantTransformResidualFromPairAndAdd_s.s53 QP RN 1 label
91 LDRSB QPmod,[pQPmod,QP] ;// (QP%6) * 6
92 LDRSB shift,[pQPdiv,QP] ;// Shift = QP / 6
198 QP RN 1 label
236 LDRSB QPmod,[pQPmod,QP] ;// (QP%6) * 6
237 LDRSB shift,[pQPdiv,QP] ;// Shift = QP / 6
363 QP RN 1 ;//Load from stack label
409 M_LDR QP,QPOnStack ;// Set up r1 for DequantLumaAC4x4

12