Searched refs:QP (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dcal_dc_scaler.cpp151 int QP,
165 if (QP > 0 && QP < 5) dc_scaler = 8;
166 else if (QP > 4 && QP < 9) dc_scaler = 2 * QP;
167 else if (QP > 8 && QP < 25) dc_scaler = QP + 8;
168 else dc_scaler = 2 * QP
150 cal_dc_scaler( int QP, int type) argument
[all...]
H A Dcombined_decode.cpp49 int16 QP, *QPMB = video->QPMB; local
116 QP = video->currVop->quantizer;
129 video->QP_CHR = MQ_chroma_QP_table[QP];
133 video->QP_CHR = QP; /* ANNEX_T */
155 status = GetMBheader(video, &QP);
165 /* Store the QP value for later use in AC prediction */
166 QPMB[mbnum] = QP;
325 QP = video->currVop->quantizer;
345 PV_STATUS GetMBheader(VideoDecData *video, int16 *QP) argument
469 *QP
537 int16 QP = video->QPMB[mbnum]; local
[all...]
H A Dchv_filter.cpp158 QP_store: pointer to the array of QP corresponding to the decoded frame.
167 To differentiate real and fake edge, it then check the difference with QP to
189 int QP = 1; local
207 QP = QP_store[(brwidth>>2) + (mbc>>1)]; /* QP is per MB based value */
223 if (chr) QP = QP_store[jVal0];
236 if (((jVal2 > 0) && (jVal2 < (QP << 1)))
237 || ((jVal2 < 0) && (jVal2 > -(QP << 1)))) /* (D-C) compared with 2QP */
281 }/* a3_0 > 2QP */
466 int QP = 1; local
[all...]
H A Dchvr_filter.cpp37 int QP = 1; local
77 QP = QP_store[(brwidth>>2) + (mbc>>1)];
109 QP = QP_store[index];
128 if ((a3_0 > KThH || a3_0 < -KThH) && a3_0<QP && a3_0> -QP)
190 if (PV_ABS(a3_0) < (QP << 3))
268 QP = QP_store[index];
288 if ((a3_0 > KThH || a3_0 < -KThH) && a3_0<QP && a3_0> -QP)
347 if (PV_ABS(a3_0) < (QP <<
[all...]
H A Dvlc_dequant.cpp59 int QP = video->QPMB[mbnum]; local
148 temp = (int32)datablock[k] * qmat[k] * QP;
193 temp = (int32)dcac_col[j] * qmat[k] * QP;
209 temp = (int32)datablock[k] * qmat[k] * QP;
242 temp = (int32)dcac_row[j] * qmat[k] * QP;
259 temp = (int32)datablock[k] * qmat[k] * QP;
298 temp = (int32)datablock[k] * qmat[k] * QP;
314 temp = (int32)datablock[k] * qmat[k] * QP;
391 int QP = video->QPMB[mbnum]; local
445 temp = (-(int32)(2 * run_level.level + 1) * qmat[k] * QP
510 int QP = video->QPMB[mbnum]; local
812 int16 QP = video->QPMB[mbnum]; local
1073 int QP = video->QPMB[mbnum]; local
[all...]
H A Dconceal.cpp35 int16 QP; local
47 QP = video->QPMB[mbnum];
49 GetMBheaderDataPart_DQUANT_DC(video, &QP);
54 QP = video->QPMB[mbnum-1];
55 if (intra_dc_vlc_thr == 7 || QP >= intra_dc_vlc_thr*2 + 11) /* if switched then conceal from previous frame */
H A Ddatapart_decode.cpp145 int16 QP, *QPMB = video->QPMB; local
154 QP = video->currVop->quantizer;
175 status = GetMBheaderDataPart_DQUANT_DC(video, &QP);
188 QPMB[mbnum] = QP;
310 int16 QP, *QPMB = video->QPMB; local
406 QP = video->currVop->quantizer;
416 QPMB[mbnum] = QP; /* 03/01/01 */
444 status = GetMBheaderDataPart_DQUANT_DC(video, &QP);
448 QPMB[mbnum] = QP;
516 PV_STATUS GetMBheaderDataPart_DQUANT_DC(VideoDecData *video, int16 *QP) argument
623 int QP = video->QPMB[mbnum]; local
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DomxVCM4P2_QuantInvIntra_I.c35 * QP - quantization parameter (quantizer_scale)
52 * - QP <= 0 or QP >=31
59 OMX_INT QP,
70 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr);
86 if (QP >= 1 && QP <= 4)
90 else if (QP >= 5 && QP <
57 omxVCM4P2_QuantInvIntra_I( OMX_S16 * pSrcDst, OMX_INT QP, OMXVCM4P2VideoComponent videoComp, OMX_INT shortVideoHeader ) argument
[all...]
H A DomxVCM4P2_QuantIntra_I.c33 * QP - quantization parameter (quantizer_scale).
55 * - QP <= 0 or QP >= 32.
61 OMX_U8 QP,
75 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr);
99 if (QP >= 1 && QP <= 4)
103 else if (QP >= 5 && QP <
59 omxVCM4P2_QuantIntra_I( OMX_S16 * pSrcDst, OMX_U8 QP, OMX_INT blockIndex, OMX_INT shortVideoHeader ) argument
[all...]
H A DomxVCM4P2_QuantInvInter_I.c36 * QP - quantization parameter (quantizer_scale)
53 * - QP <= 0 or QP >=31
60 OMX_INT QP
68 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr);
77 if (QP & 0x1)
79 pSrcDst[coeffCount] = (2* armAbs(pSrcDst[coeffCount]) + 1) * QP;
85 * QP - 1;
H A DomxVCM4P2_QuantInter_I.c34 * QP - quantization parameter (quantizer_scale)
52 * - QP <= 0 or QP >= 32.
58 OMX_U8 QP,
71 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr);
96 - (QP/2))/(2 * QP);
56 omxVCM4P2_QuantInter_I( OMX_S16 * pSrcDst, OMX_U8 QP, OMX_INT shortVideoHeader ) argument
H A DomxVCM4P2_TransRecBlockCoef_inter.c36 * QP - quantization parameter.
57 * - QP <= 0 or QP >= 32.
65 OMX_U8 QP,
85 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr);
90 QP,
100 QP);
61 omxVCM4P2_TransRecBlockCoef_inter( const OMX_S16 *pSrc, OMX_S16 * pDst, OMX_S16 * pRec, OMX_U8 QP, OMX_INT shortVideoHeader ) argument
H A DomxVCM4P2_DecodeBlockCoef_Inter.c42 * QP - quantization parameter
64 * - QP <= 0.
73 OMX_INT QP,
91 armRetArgErrIf(((QP <= 0) || (QP >= 32)), OMX_Sts_BadArgErr);
103 QP);
69 omxVCM4P2_DecodeBlockCoef_Inter( const OMX_U8 ** ppBitStream, OMX_INT * pBitOffset, OMX_S16 * pDst, OMX_INT QP, OMX_INT shortVideoHeader ) argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
H A DomxVCM4P10_TransformDequantChromaDCFromPair.c31 OMX_INT QP
34 int Shift = (QP/6)-1 ;
35 int Scale = armVCM4P10_VMatrix[QP%6][0];
94 * QP - Quantization parameter QpC
107 * - QP is not in the range of [0-51].
114 OMX_INT QP
121 armRetArgErrIf(QP<0, OMX_Sts_BadArgErr);
122 armRetArgErrIf(QP>51, OMX_Sts_BadArgErr);
126 DequantChromaDC2x2(pDst, QP);
H A DomxVCM4P10_DequantTransformResidualFromPairAndAdd.c31 OMX_INT QP
34 const OMX_U8 *pVRow = &armVCM4P10_VMatrix[QP%6][0];
35 int Shift = QP / 6;
70 * QP - QP Quantization parameter. It should be QpC in chroma 4x4 block
97 OMX_INT QP,
111 armRetArgErrIf(AC!=0 && (QP<0), OMX_Sts_BadArgErr);
112 armRetArgErrIf(AC!=0 && (QP>51), OMX_Sts_BadArgErr);
126 DequantLumaAC4x4(pDelta, QP);
90 omxVCM4P10_DequantTransformResidualFromPairAndAdd( const OMX_U8 **ppSrc, const OMX_U8 *pPred, const OMX_S16 *pDC, OMX_U8 *pDst, OMX_INT predStep, OMX_INT dstStep, OMX_INT QP, OMX_INT AC ) argument
H A DomxVCM4P10_TransformDequantLumaDCFromPair.c31 OMX_INT QP
34 int Shift = (QP/6)-2 ;
35 int Scale = armVCM4P10_VMatrix[QP%6][0];
110 * QP - Quantization parameter QpY
123 * - QP is not in the range of [0-51].
130 OMX_INT QP
137 armRetArgErrIf(QP<0, OMX_Sts_BadArgErr);
138 armRetArgErrIf(QP>51, OMX_Sts_BadArgErr);
141 /*InvTransformDequantLumaDC4x4(pDst, QP);*/
143 DequantLumaDC4x4(pDst, QP);
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
H A DomxVCM4P2_QuantInvInter_I_s.s32 ; * [in] QP quantization parameter (quantiser_scale)
47 ; * - If QP <= 0.
64 QP RN 1 label
81 TST QP,#1
84 SUBEQ QP1,QP,#1 ;// QP1=QP if QP is odd , QP1=QP-1 if QP is even
85 MOVNE QP1,QP
[all...]
H A DomxVCM4P2_DecodeBlockCoef_Inter.c44 * [in] QP quantization parameter
60 * - *pBitOffset exceeds [0,7], QP <= 0;
69 OMX_INT QP,
90 QP);
65 omxVCM4P2_DecodeBlockCoef_Inter( const OMX_U8 ** ppBitStream, OMX_INT * pBitOffset, OMX_S16 * pDst, OMX_INT QP, OMX_INT shortVideoHeader ) argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p2/src/
H A DomxVCM4P2_DecodeBlockCoef_Inter.c44 * [in] QP quantization parameter
60 * - *pBitOffset exceeds [0,7], QP <= 0;
69 OMX_INT QP,
90 QP);
65 omxVCM4P2_DecodeBlockCoef_Inter( const OMX_U8 ** ppBitStream, OMX_INT * pBitOffset, OMX_S16 * pDst, OMX_INT QP, OMX_INT shortVideoHeader ) argument
H A DomxVCM4P2_QuantInvInter_I_s.s32 ; * [in] QP quantization parameter (quantiser_scale)
47 ; * - If QP <= 0.
63 QP RN 1 label
105 ADD doubleQP,QP,QP ;// doubleQP= 2*QP
108 TST QP,#1
110 SUBEQ QP,QP,#1
111 VMOV dQP10,QP ;// I
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dfastcodemb.h45 Int QP; member in struct:QPstruct
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,
H A Dfastcodemb.cpp33 /* QP Combined offset from the origin to the current */
34 /* macroblock and QP for current MB. */
50 PV_STATUS CodeMB_H263(VideoEncData *video, approxDCT *function, Int QP, Int ncoefblck[]) argument
80 Int offset = QP >> 5; /* QP is combined offset and QP */
88 QP = QP & 0x1F;
91 QuantParam.QPx2 = QP << 1;
92 QuantParam.QP
279 CodeMB_MPEG(VideoEncData *video, approxDCT *function, Int QP, Int ncoefblck[]) argument
[all...]
H A Dfastquant.cpp90 Int cal_dc_scalerENC(Int QP, Int type) argument
96 if (QP > 0 && QP < 5)
98 else if (QP > 4 && QP < 9)
99 dc_scaler = 2 * QP;
100 else if (QP > 8 && QP < 25)
101 dc_scaler = QP + 8;
103 dc_scaler = 2 * QP
446 Int QP = QuantParam->QP; local
544 BlockQuantDequantMPEGInter(Short *rcoeff, Short *qcoeff, Int QP, Int *qmat, UChar bitmapcol[ ], UChar *bitmaprow, UInt *bitmapzz, Int dctMode, Int comp, Int dc_scaler) argument
673 BlockQuantDequantMPEGIntra(Short *rcoeff, Short *qcoeff, Int QP, Int *qmat, UChar bitmapcol[ ], UChar *bitmaprow, UInt *bitmapzz, Int dctMode, Int comp, Int dc_scaler) argument
852 BlockQuantDequantMPEGDCInter(Short *rcoeff, Short *qcoeff, Int QP, Int *qmat, UChar bitmapcol[ ], UChar *bitmaprow, UInt *bitmapzz, Int dummy) argument
919 BlockQuantDequantMPEGDCIntra(Short *rcoeff, Short *qcoeff, Int QP, Int *qmat, UChar bitmapcol[ ], UChar *bitmaprow, UInt *bitmapzz, Int dc_scaler) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/
H A DomxVCM4P10_TransformDequantChromaDCFromPair_s.s30 QP RN 2 label
97 LDR pQPDivTable, =armVCM4P10_QPDivTable ;// QP Division look-up-table base pointer
98 LDR pQPModTable, =armVCM4P10_VMatrixQPModTable ;// QP Modulo look-up-table base pointer
103 LDRSB Shift, [pQPDivTable, QP] ;// Shift = pQPDivTable[QP]
104 LDRSB Scale, [pQPModTable, QP] ;// Scale = pQPModTable[QP]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src/
H A DomxVCM4P10_TransformDequantChromaDCFromPair_s.s33 QP RN 2 label
107 LDR pQPDivTable, =armVCM4P10_QPDivTable ;// QP Division look-up-table base pointer
108 LDR pQPModTable, =armVCM4P10_VMatrixQPModTable ;// QP Modulo look-up-table base pointer
113 LDRSB Shift, [pQPDivTable, QP] ;// Shift = pQPDivTable[QP]
114 LDRSB Scale, [pQPModTable, QP] ;// Scale = pQPModTable[QP]

Completed in 325 milliseconds

12