Home
last modified time | relevance | path

Searched refs:pDct (Results 1 – 22 of 22) sorted by relevance

/third_party/openh264/codec/encoder/core/src/
Dencode_mb_aux.cpp162 #define NEW_QUANT(pDct, iFF, iMF) (((iFF)+ WELS_ABS_LC(pDct))*(iMF)) >>16 argument
163 #define WELS_NEW_QUANT(pDct,iFF,iMF) WELS_ABS_LC(NEW_QUANT(pDct, iFF, iMF)) argument
164 void WelsQuant4x4_c (int16_t* pDct, const int16_t* pFF, const int16_t* pMF) { in WelsQuant4x4_c() argument
168 iSign = WELS_SIGN (pDct[i]); in WelsQuant4x4_c()
169 pDct[i] = WELS_NEW_QUANT (pDct[i], pFF[j], pMF[j]); in WelsQuant4x4_c()
170 iSign = WELS_SIGN (pDct[i + 1]); in WelsQuant4x4_c()
171 pDct[i + 1] = WELS_NEW_QUANT (pDct[i + 1], pFF[j + 1], pMF[j + 1]); in WelsQuant4x4_c()
172 iSign = WELS_SIGN (pDct[i + 2]); in WelsQuant4x4_c()
173 pDct[i + 2] = WELS_NEW_QUANT (pDct[i + 2], pFF[j + 2], pMF[j + 2]); in WelsQuant4x4_c()
174 iSign = WELS_SIGN (pDct[i + 3]); in WelsQuant4x4_c()
[all …]
Ddecode_mb_aux.cpp127 void WelsDequantIHadamard2x2Dc (int16_t* pDct, const uint16_t kuiMF) { in WelsDequantIHadamard2x2Dc() argument
128 const int16_t kiSumU = pDct[0] + pDct[2]; in WelsDequantIHadamard2x2Dc()
129 const int16_t kiDelU = pDct[0] - pDct[2]; in WelsDequantIHadamard2x2Dc()
130 const int16_t kiSumD = pDct[1] + pDct[3]; in WelsDequantIHadamard2x2Dc()
131 const int16_t kiDelD = pDct[1] - pDct[3]; in WelsDequantIHadamard2x2Dc()
133 pDct[0] = ((kiSumU + kiSumD) * kuiMF) >> 1; in WelsDequantIHadamard2x2Dc()
134 pDct[1] = ((kiSumU - kiSumD) * kuiMF) >> 1; in WelsDequantIHadamard2x2Dc()
135 pDct[2] = ((kiDelU + kiDelD) * kuiMF) >> 1; in WelsDequantIHadamard2x2Dc()
136 pDct[3] = ((kiDelU - kiDelD) * kuiMF) >> 1; in WelsDequantIHadamard2x2Dc()
164 …sIDctT4Rec_c (uint8_t* pRec, int32_t iStride, uint8_t* pPred, int32_t iPredStride, int16_t* pDct) { in WelsIDctT4Rec_c() argument
[all …]
Dsvc_encode_mb.cpp62 int16_t* pBlock = pMbCache->pDct->iLumaBlock[0]; in WelsEncRecI16x16Y()
75 pFuncList->pfScan4x4 (pMbCache->pDct->iLumaI16x16Dc, aDctT4Dc); in WelsEncRecI16x16Y()
76 uiCountI16x16Dc = pFuncList->pfGetNoneZeroCount (pMbCache->pDct->iLumaI16x16Dc); in WelsEncRecI16x16Y()
154 int16_t* pBlock = pMbCache->pDct->iLumaBlock[uiI4x4Idx]; in WelsEncRecI4x4Y()
190 int16_t* pBlock = pMbCache->pDct->iLumaBlock[0]; in WelsEncInterY()
260 …int16_t* iChromaDc = pMbCache->pDct->iChromaDc[iUV - 1], *pBlock = pMbCache->pDct->iChromaBlock[ (… in WelsEncRecUV()
333 int16_t* pBlock = pMbCache->pDct->iLumaBlock[0]; in WelsTryPYskip()
369 int16_t* pBlock = pMbCache->pDct->iChromaBlock[ (iUV - 1) << 2]; in WelsTryPUVskip()
Dsvc_set_mb_syn_cabac.cpp555 int iNonZeroCount = pFuncList->pfGetNoneZeroCount (pMbCache->pDct->iLumaI16x16Dc); in WelsWriteMbResidualCabac()
557 pMbCache->pDct->iLumaI16x16Dc, 15); in WelsWriteMbResidualCabac()
566 pNonZeroCoeffCount[iIdx], pMbCache->pDct->iLumaBlock[i], 14); in WelsWriteMbResidualCabac()
575 pNonZeroCoeffCount[iIdx], pMbCache->pDct->iLumaBlock[i], 15); in WelsWriteMbResidualCabac()
584 iNonZeroCount = WelsCalNonZeroCount2x2Block (pMbCache->pDct->iChromaDc[0]); in WelsWriteMbResidualCabac()
588 pMbCache->pDct->iChromaDc[0], 3); in WelsWriteMbResidualCabac()
590 iNonZeroCount = WelsCalNonZeroCount2x2Block (pMbCache->pDct->iChromaDc[1]); in WelsWriteMbResidualCabac()
594 pMbCache->pDct->iChromaDc[1], 3); in WelsWriteMbResidualCabac()
601 … pNonZeroCoeffCount[iIdx], pMbCache->pDct->iChromaBlock[i], 14); in WelsWriteMbResidualCabac()
610 … pNonZeroCoeffCount[iIdx], pMbCache->pDct->iChromaBlock[4 + i], 14); in WelsWriteMbResidualCabac()
Dsvc_set_mb_syn_cavlc.cpp323 …if (WriteBlockResidualCavlc (pFuncList, sMbCacheInfo->pDct->iLumaI16x16Dc, 15, 1, LUMA_4x4, iC, pB… in WelsWriteMbResidual()
328 pBlock = sMbCacheInfo->pDct->iLumaBlock[0]; in WelsWriteMbResidual()
343 pBlock = sMbCacheInfo->pDct->iLumaBlock[0]; in WelsWriteMbResidual()
383 pBlock = sMbCacheInfo->pDct->iChromaDc[0]; // Cb in WelsWriteMbResidual()
394 pBlock = sMbCacheInfo->pDct->iChromaBlock[0]; // Cb in WelsWriteMbResidual()
406 pBlock = sMbCacheInfo->pDct->iChromaBlock[4]; // Cr in WelsWriteMbResidual()
Dsvc_encode_slice.cpp776 pMbCache->pDct = (SDCTCoeff*)pMa->WelsMallocz (sizeof (SDCTCoeff), "pMbCache->pDct"); in AllocMbCacheAligned()
777 WELS_VERIFY_RETURN_IF (1, (NULL == pMbCache->pDct)); in AllocMbCacheAligned()
812 if (NULL != pMbCache->pDct) { in FreeMbCache()
813 pMa->WelsFree (pMbCache->pDct, "pMbCache->pDct"); in FreeMbCache()
814 pMbCache->pDct = NULL; in FreeMbCache()
/third_party/openh264/codec/encoder/core/inc/
Dencode_mb_aux.h47 void WelsScan4x4Ac_c (int16_t* pZigValue, int16_t* pDct);
48 void WelsScan4x4Dc (int16_t* pLevel, int16_t* pDct);
49 void WelsScan4x4DcAc_c (int16_t* pLevel, int16_t* pDct);
50 int32_t WelsCalculateSingleCtr4x4_c (int16_t* pDct);
55 void WelsHadamardT4Dc_c (int16_t* pLumaDc, int16_t* pDct);
56 int32_t WelsHadamardQuant2x2_c (int16_t* pRes, const int16_t kiFF, int16_t iMF, int16_t* pDct, int1…
59 void WelsQuant4x4_c (int16_t* pDct, const int16_t* pFF, const int16_t* pMF);
60 void WelsQuant4x4Dc_c (int16_t* pDct, int16_t iFF, int16_t iMF);
61 void WelsQuantFour4x4_c (int16_t* pDct, const int16_t* pFF, const int16_t* pQpTable);
62 void WelsQuantFour4x4Max_c (int16_t* pDct, const int16_t* pF, const int16_t* pQpTable, int16_t* pMa…
[all …]
Ddecode_mb_aux.h50 void WelsDequantIHadamard2x2Dc (int16_t* pDct, const uint16_t kuiMF);
52 …ctT4RecOnMb (uint8_t* pDst, int32_t iDstStride, uint8_t* pPred, int32_t iPredStride, int16_t* pDct,
54 …lsIDctT4Rec_c (uint8_t* pRec, int32_t iStride, uint8_t* pPred, int32_t iPredStride, int16_t* pDct);
55 …ctFourT4Rec_c (uint8_t* pRec, int32_t iStride, uint8_t* pPred, int32_t iPredStride, int16_t* pDct);
63 void WelsDequant4x4_sse2 (int16_t* pDct, const uint16_t* kpMF);
64 void WelsDequantFour4x4_sse2 (int16_t* pDct, const uint16_t* kpMF);
67 …Rec_mmx (uint8_t* pRec, int32_t iStride, uint8_t* pPrediction, int32_t iPredStride, int16_t* pDct);
68 …ec_sse2 (uint8_t* pRec, int32_t iStride, uint8_t* pPrediction, int32_t iPredStride, int16_t* pDct);
69 …ec_sse2 (uint8_t* pRec, int32_t iStride, uint8_t* pPrediction, int32_t iPredStride, int16_t* pDct);
72 …ec_avx2 (uint8_t* pRec, int32_t iStride, uint8_t* pPrediction, int32_t iPredStride, int16_t* pDct);
[all …]
Dwels_func_ptr_def.h59 typedef void (*PDctFunc) (int16_t* pDct, uint8_t* pSample1, int32_t iStride1, uint8_t* pSample2, in…
67 typedef void (*PScanFunc) (int16_t* pLevel, int16_t* pDct);
68 typedef int32_t (*PCalculateSingleCtrFunc) (int16_t* pDct);
70 typedef void (*PTransformHadamard4x4Func) (int16_t* pLumaDc, int16_t* pDct);
71 typedef void (*PQuantizationFunc) (int16_t* pDct, const int16_t* pFF, const int16_t* pMF);
72 typedef void (*PQuantizationMaxFunc) (int16_t* pDct, const int16_t* pFF, const int16_t* pMF, int16_…
73 typedef void (*PQuantizationDcFunc) (int16_t* pDct, int16_t iFF, int16_t iMF);
74 typedef int32_t (*PQuantizationSkipFunc) (int16_t* pDct, int16_t iFF, int16_t iMF);
75 …nt32_t (*PQuantizationHadamardFunc) (int16_t* pRes, const int16_t kiFF, int16_t iMF, int16_t* pDct,
Dmb_cache.h116 SDCTCoeff* pDct; member
/third_party/openh264/codec/encoder/core/mips/
Dquant_mmi.c43 void WelsQuant4x4_mmi(int16_t *pDct, const int16_t* ff, const int16_t *mf) { in WelsQuant4x4_mmi() argument
88 : [pDct]"r"((short *)pDct), [ff]"r"((short *)ff), [mf]"r"((short *)mf) in WelsQuant4x4_mmi()
93 void WelsQuant4x4Dc_mmi(int16_t *pDct, const int16_t ff, int16_t mf) { in WelsQuant4x4Dc_mmi() argument
141 : [pDct]"r"((short *)pDct), [ff]"r"((short)ff), [mf]"r"((short)mf) in WelsQuant4x4Dc_mmi()
146 void WelsQuantFour4x4_mmi(int16_t *pDct, const int16_t* ff, const int16_t *mf) { in WelsQuantFour4x4_mmi() argument
304 : [pDct]"r"((short *)pDct), [ff]"r"((short *)ff), [mf]"r"((short *)mf) in WelsQuantFour4x4_mmi()
309 void WelsQuantFour4x4Max_mmi(int16_t *pDct, const int16_t*ff, in WelsQuantFour4x4Max_mmi() argument
547 : [pDct]"r"((short *)pDct), [ff]"r"((short *)ff), [mf]"r"((short *)mf), in WelsQuantFour4x4Max_mmi()
Dscore_mmi.c88 void WelsScan4x4DcAc_mmi(int16_t level[16], int16_t *pDct) { in WelsScan4x4DcAc_mmi() argument
124 : [level] "r"((short *)level), [pDct] "r"((short *)pDct) in WelsScan4x4DcAc_mmi()
131 void WelsScan4x4Ac_mmi(int16_t *zig_value, int16_t *pDct) { in WelsScan4x4Ac_mmi() argument
187 : [zig_value] "r"((short *)zig_value), [pDct] "r"((short *)pDct) in WelsScan4x4Ac_mmi()
252 int32_t WelsCalculateSingleCtr4x4_mmi(int16_t *pDct) { in WelsCalculateSingleCtr4x4_mmi() argument
316 : [pDct] "r"((short *)pDct), in WelsCalculateSingleCtr4x4_mmi()
Ddct_mmi.c220 int32_t iPredStride, int16_t* pDct) { in WelsIDctT4Rec_mmi() argument
260 [pDct]"r"((short *)pDct) in WelsIDctT4Rec_mmi()
267 int32_t iPredStride, int16_t* pDct) { in WelsIDctFourT4Rec_mmi() argument
271 MMI_Load4x8p(%[pDct], $f0, $f2, $f4, $f6, $f16, $f18, $f8, $f10, $f20, $f22) in WelsIDctFourT4Rec_mmi()
304 MMI_Load4x8p(%[pDct], $f0, $f2, $f4, $f6, $f16, $f18, $f8, $f10, $f20, $f22) in WelsIDctFourT4Rec_mmi()
331 [pDct]"+&r"((short *)pDct) in WelsIDctFourT4Rec_mmi()
340 int32_t iPredStride, int16_t* pDct) { in WelsIDctRecI16x16Dc_mmi() argument
353 %[pDct], 0x0, $f30) in WelsIDctRecI16x16Dc_mmi()
373 MMI_Load8DC($f0, $f2, $f4, $f6, $f8, $f10, $f12, $f14, $f24, %[pDct], 0x10, $f30) in WelsIDctRecI16x16Dc_mmi()
394 [pDct]"+&r"((short *)pDct) in WelsIDctRecI16x16Dc_mmi()
[all …]
/third_party/openh264/test/encoder/
DEncUT_EncoderMbAux.cpp392 #define NEW_QUANT(pDct, ff, mf) (((ff)+ WELS_ABS_LC(pDct))*(mf)) >>16 argument
393 #define WELS_NEW_QUANT(pDct,ff,mf) WELS_ABS_LC(NEW_QUANT(pDct, ff, mf)) argument
395 int16_t WelsQuant4x4MaxAnchor (int16_t* pDct, int16_t* ff, int16_t* mf) { in WelsQuant4x4MaxAnchor() argument
399 const int32_t sign = WELS_SIGN (pDct[i]); in WelsQuant4x4MaxAnchor()
400 pDct[i] = NEW_QUANT (pDct[i], ff[j], mf[j]); in WelsQuant4x4MaxAnchor()
401 max_abs = std::max(max_abs, pDct[i]); in WelsQuant4x4MaxAnchor()
402 pDct[i] = WELS_ABS_LC (pDct[i]); in WelsQuant4x4MaxAnchor()
406 void WelsQuant4x4DcAnchor (int16_t* pDct, int16_t iFF, int16_t iMF) { in WelsQuant4x4DcAnchor() argument
408 const int32_t sign = WELS_SIGN (pDct[i]); in WelsQuant4x4DcAnchor()
409 pDct[i] = WELS_NEW_QUANT (pDct[i], iFF, iMF); in WelsQuant4x4DcAnchor()
[all …]
DEncUT_EncoderMb.cpp119 void TestQuant (uint32_t qp, uint8_t* pSrc, uint8_t* pPred, int16_t* pDct, in TestQuant() argument
131 pDct[i] = pSrc[i] - pPred[i]; in TestQuant()
135 WelsQuant4x4_c (pDct, pFfI, pMf); in TestQuant()
139 int16_t iDeta = WELS_ABS (pDct[i] - pDctCompare[i]); in TestQuant()
149 pDct[i] = pSrc[i] - pPred[i]; in TestQuant()
153 WelsQuant4x4Dc_c (pDct, pFfI[0] << 1, pMf[0]>>1); in TestQuant()
157 int16_t iDeta = WELS_ABS (pDct[i] - pDctCompare[i]); in TestQuant()
167 pDct[i] = pSrc[i] - pPred[i]; in TestQuant()
171 WelsQuantFour4x4_c (pDct, pFfP, pMf); in TestQuant()
175 int16_t iDeta = WELS_ABS (pDct[i] - pDctCompare[i]); in TestQuant()
[all …]
DEncUT_Reconstruct.cpp24 ENFORCE_STACK_ALIGN_1D (int16_t, pDct, 16, 16) in TEST()
32 FillWithRandomData ((uint8_t*)pDct, 16 * 2); in TEST()
34 pDct[i] = WELS_CLIP3 (pDct[i], -4080, 4080); in TEST()
36 WelsIDctRecI16x16Dc_c (pRec[0], 16, pPred, 32, pDct); in TEST()
37 sFuncPtrList.pfIDctI16x16Dc (pRec[1], 16, pPred, 32, pDct); in TEST()
66 ENFORCE_STACK_ALIGN_1D (int16_t, pDct, 16 * 16, 16) in TEST()
74 FillWithRandomData ((uint8_t*)pDct, 16 * 16 * 2); in TEST()
77 pDct[i + j * 16] = WELS_CLIP3 (pDct[i + j * 16], -4080, 4080); in TEST()
80 WelsHadamardT4Dc_c (pLumaDc[0], pDct); in TEST()
81 sFuncPtrList.pfTransformHadamard4x4Dc (pLumaDc[1], pDct); in TEST()
[all …]
DEncUT_DecodeMbAux.cpp154 void WelsDequantHadamard2x2DcAnchor (int16_t* pDct, int16_t iMF) { in WelsDequantHadamard2x2DcAnchor() argument
155 const int16_t iSumU = pDct[0] + pDct[2]; in WelsDequantHadamard2x2DcAnchor()
156 const int16_t iDelU = pDct[0] - pDct[2]; in WelsDequantHadamard2x2DcAnchor()
157 const int16_t iSumD = pDct[1] + pDct[3]; in WelsDequantHadamard2x2DcAnchor()
158 const int16_t iDelD = pDct[1] - pDct[3]; in WelsDequantHadamard2x2DcAnchor()
159 pDct[0] = ((iSumU + iSumD) * iMF) >> 1; in WelsDequantHadamard2x2DcAnchor()
160 pDct[1] = ((iSumU - iSumD) * iMF) >> 1; in WelsDequantHadamard2x2DcAnchor()
161 pDct[2] = ((iDelU + iDelD) * iMF) >> 1; in WelsDequantHadamard2x2DcAnchor()
162 pDct[3] = ((iDelU - iDelD) * iMF) >> 1; in WelsDequantHadamard2x2DcAnchor()
/third_party/openh264/codec/encoder/core/loongarch/
Dquant_lsx.c47 void WelsQuantFour4x4Max_lsx (int16_t* pDct, const int16_t* pFF, const int16_t* pMF, int16_t* pMax)… in WelsQuantFour4x4Max_lsx() argument
65 DUP2_ARG2(__lsx_vld, pDct, 0, pDct + 8, 0, vec_pDct1, vec_pDct2); in WelsQuantFour4x4Max_lsx()
103 __lsx_vst(vec_pDct1, pDct, 0); in WelsQuantFour4x4Max_lsx()
104 __lsx_vst(vec_pDct2, pDct + 8, 0); in WelsQuantFour4x4Max_lsx()
106 pDct += 16; in WelsQuantFour4x4Max_lsx()
/third_party/openh264/codec/encoder/core/x86/
Dquant.asm78 %define pDct esp + 4
83 ; void WelsQuant4x4_sse2(int16_t *pDct, int16_t* ff, int16_t *mf);
97 ;void WelsQuant4x4Dc_sse2(int16_t *pDct, const int16_t ff, int16_t mf);
114 ; void WelsQuantFour4x4_sse2(int16_t *pDct, int16_t* ff, int16_t *mf);
134 ; void WelsQuantFour4x4Max_sse2(int16_t *pDct, int32_t* f, int16_t *mf, int16_t *max);
189 ;int32_t WelsHadamardQuant2x2_mmx(int16_t *rs, const int16_t ff, int16_t mf, int16_t * pDct, int16_…
245 ;int32_t WelsHadamardQuant2x2Skip_mmx(int16_t *pDct, int16_t ff, int16_t mf);
297 ; void WelsDequant4x4_sse2(int16_t *pDct, const uint16_t* mf);
310 ;void WelsDequantFour4x4_sse2(int16_t *pDct, const uint16_t* mf);
385 ; void WelsQuant4x4_avx2(int16_t *pDct, int16_t* ff, int16_t *mf);
[all …]
Dscore.asm171 ;void WelsScan4x4DcAc_sse2( int16_t level[16], int16_t *pDct )
203 ;void WelsScan4x4DcAc_ssse3( int16_t level[16], int16_t *pDct )
223 ;void WelsScan4x4Ac_sse2( int16_t* zig_value, int16_t* pDct )
260 ;void int32_t WelsCalculateSingleCtr4x4_sse2( int16_t *pDct );
Ddct.asm76 ;void WelsHadamardT4Dc_sse2( int16_t *luma_dc, int16_t *pDct)
/third_party/openh264/codec/common/x86/
Ddct.asm190 ; void WelsDctT4_mmx( int16_t *pDct[4], uint8_t *pix1, int32_t i_pix1, uint8_t *pix2, int32_t i_p…
216 ; void IdctResAddPred_mmx(uint8_t* pPred, int32_t iStride, int16_t* pDct);
468 ; void WelsDctFourT4_sse2(int16_t *pDct, uint8_t *pix1, int32_t i_pix1, uint8_t *pix2, int32_t i_pi…
570 ; void WelsDctT4_sse2(int16_t* pDct, uint8_t* pPixel1, int32_t iStride1, uint8_t* pPixel2, int32_t …
597 ; void IdctResAddPred_sse2(uint8_t* pPred, int32_t iStride, int16_t* pDct);
605 …IDctT4Rec_sse2(uint8_t* pRec, int32_t iStride, uint8_t* pPred, int32_t iPredStride, int16_t* pDct);
735 ; out=%1,%2,%3,%4 pDct=%5 clobber=%6
751 ; pDct=%1 data=%1,%2,%3,%4 clobber=%5
898 ; void WelsDctFourT4_avx2(int16_t* pDct, uint8_t* pPixel1, int32_t iStride1, uint8_t* pPixel2, int3…
938 ; void IdctFourResAddPred_avx2(uint8_t* pPred, int32_t iStride, const int16_t* pDct, const int8_t* …
[all …]