/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | avcenc_lib.h | 48 int dct_luma(AVCEncObject *encvid, int blkidx, uint8 *cur, uint8 *org, int *coef_cost); 58 void MBInterIdct(AVCCommonObj *video, uint8 *curL, AVCMacroblock *currMB, int picPitch); 68 void dct_luma_16x16(AVCEncObject *encvid, uint8 *curL, uint8 *orgL); 79 void dct_chroma(AVCEncObject *encvid, uint8 *curC, uint8 *orgC, int cr); 235 AVCEnc_Status BitstreamEncInit(AVCEncBitstream *bitstream, uint8 *buffer, int buf_size, 236 uint8 *overrunBuffer, int oBSize); 302 bool IntraDecision(int *min_cost, uint8 *cur, int pitch, bool ave); 312 void MBIntraSearch(AVCEncObject *encvid, int mbnum, uint8 *curL, int picPitch); 329 void find_cost_16x16(AVCEncObject *encvid, uint8 *orgY, int *min_cost); 340 int cost_i16(uint8 *org, int org_pitch, uint8 *pred, int min_cost); [all …]
|
D | avcenc_int.h | 90 const uint8 COEFF_COST[2][16] = 133 uint8 *bitstreamBuffer; /* pointer to buffer memory */ 139 …uint8 *overrunBuffer; /* extra output buffer to prevent current skip due to output buffer overr… 337 int (*SAD_MB_HalfPel[4])(uint8*, uint8*, int, void *); 338 int (*SAD_Macroblock)(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info); 376 …uint8 *overrunBuffer; /* extra output buffer to prevent current skip due to output buffer overr… 398 uint8 pred_i16[AVCNumI16PredMode][256]; /* save prediction for MB */ 399 uint8 pred_i4[AVCNumI4PredMode][16]; /* save prediction for blk */ 400 uint8 pred_ic[AVCNumIChromaMode][128]; /* for 2 chroma */ 411 uint8 *hpel_cand[9]; /* pointer to half-pel position */ [all …]
|
D | sad_mb_offset.h | 24 __inline int32 sad_mb_offset3(uint8 *ref, uint8 *blk, int lx, int dmin) in sad_mb_offset3() 26 __inline int32 sad_mb_offset2(uint8 *ref, uint8 *blk, int lx, int dmin) in sad_mb_offset3() 28 __inline int32 sad_mb_offset1(uint8 *ref, uint8 *blk, int lx, int dmin) in sad_mb_offset3() 127 __inline int32 sad_mb_offset3(uint8 *ref, uint8 *blk, int lx, int dmin, int32 x8) in sad_mb_offset3() 129 __inline int32 sad_mb_offset2(uint8 *ref, uint8 *blk, int lx, int dmin, int32 x8) in sad_mb_offset3() 131 __inline int32 sad_mb_offset1(uint8 *ref, uint8 *blk, int lx, int dmin, int32 x8) in sad_mb_offset3() 219 __inline int32 sad_mb_offset3(uint8 *ref, uint8 *blk, int lx, int dmin) in sad_mb_offset3() 221 __inline int32 sad_mb_offset2(uint8 *ref, uint8 *blk, int lx, int dmin) in sad_mb_offset3() 223 __inline int32 sad_mb_offset1(uint8 *ref, uint8 *blk, int lx, int dmin) in sad_mb_offset3()
|
D | sad_halfpel.cpp | 68 int AVCSAD_MB_HalfPel_Cxhyh(uint8 *ref, uint8 *blk, int dmin_rx, void *extra_info) in AVCSAD_MB_HalfPel_Cxhyh() 74 uint8 *kk, *p1, *p2, *p3, *p4; in AVCSAD_MB_HalfPel_Cxhyh() 109 int AVCSAD_MB_HalfPel_Cyh(uint8 *ref, uint8 *blk, int dmin_rx, void *extra_info) in AVCSAD_MB_HalfPel_Cyh() 115 uint8 *kk, *p1, *p2; in AVCSAD_MB_HalfPel_Cyh() 145 int AVCSAD_MB_HalfPel_Cxh(uint8 *ref, uint8 *blk, int dmin_rx, void *extra_info) in AVCSAD_MB_HalfPel_Cxh() 151 uint8 *kk, *p1; in AVCSAD_MB_HalfPel_Cxh() 181 int AVCAVCSAD_MB_HP_HTFM_Collectxhyh(uint8 *ref, uint8 *blk, int dmin_rx, void *extra_info) in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() 185 uint8 *p1, *p2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() 263 int AVCAVCSAD_MB_HP_HTFM_Collectyh(uint8 *ref, uint8 *blk, int dmin_rx, void *extra_info) in AVCAVCSAD_MB_HP_HTFM_Collectyh() 267 uint8 *p1, *p2; in AVCAVCSAD_MB_HP_HTFM_Collectyh() [all …]
|
D | findhalfpel.cpp | 41 int AVCFindHalfPelMB(AVCEncObject *encvid, uint8 *cur, AVCMV *mot, uint8 *ncand, in AVCFindHalfPelMB() 47 uint8* cand; in AVCFindHalfPelMB() 49 uint8 *mvbits = encvid->mvbits; in AVCFindHalfPelMB() 52 uint8 *subpel_pred = (uint8*) encvid->subpel_pred; // all 16 sub-pel positions in AVCFindHalfPelMB() 53 uint8 **hpel_cand = (uint8**) encvid->hpel_cand; /* half-pel position */ in AVCFindHalfPelMB() 133 void GenerateHalfPelPred(uint8* subpel_pred, uint8 *ncand, int lx) in GenerateHalfPelPred() 136 uint8 *ref; in GenerateHalfPelPred() 137 uint8 *dst; in GenerateHalfPelPred() 138 uint8 tmp8; in GenerateHalfPelPred() 443 void VertInterpWClip(uint8 *dst, uint8 *ref) in VertInterpWClip() [all …]
|
D | vlc_encode.cpp | 98 const static uint8 MapCBP2code[48][2] = 127 const static uint8 totCoeffTrailOne[3][4][17][2] = in ce_TotalCoeffTrailingOnes() 196 const static uint8 totCoeffTrailOneChrom[4][5][2] = in ce_TotalCoeffTrailingOnesChromaDC() 217 const static uint8 lenTotalZeros[15][16] = in ce_TotalZeros() 236 const static uint8 codTotalZeros[15][16] = in ce_TotalZeros() 268 const static uint8 lenTotalZerosChromaDC[3][4] = in ce_TotalZerosChromaDC() 275 const static uint8 codTotalZerosChromaDC[3][4] = in ce_TotalZerosChromaDC() 296 const static uint8 lenRunBefore[7][16] = in ce_RunBefore() 307 const static uint8 codRunBefore[7][16] = in ce_RunBefore()
|
D | motion_comp.cpp | 26 static void (*const eChromaMC_SIMD[8])(uint8 *, int , int , int , uint8 *, int, int , int) = 49 uint8 *curL, *curCb, *curCr; in AVCMBMotionComp() 50 uint8 *ref_l, *ref_Cb, *ref_Cr; in AVCMBMotionComp() 51 uint8 *predBlock, *predCb, *predCr; in AVCMBMotionComp() 121 void eLumaMotionComp(uint8 *ref, int picpitch, int picheight, in eLumaMotionComp() 123 uint8 *pred, int pred_pitch, in eLumaMotionComp() 130 uint8 *ref2; in eLumaMotionComp() 190 void eCreateAlign(uint8 *ref, int picpitch, int y_pos, in eCreateAlign() 191 uint8 *out, int blkwidth, int blkheight) in eCreateAlign() 268 void eHorzInterp1MC(uint8 *in, int inpitch, uint8 *out, int outpitch, in eHorzInterp1MC() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | mp4dec_lib.h | 95 void BlockIDCT(uint8 *dst, uint8 *pred, int16 *blk, int width, int nzcoefs, 96 uint8 *bitmapcol, uint8 bitmaprow); 134 uint8 *cu_prev, /* i */ 135 uint8 *cv_prev, /* i */ 136 uint8 *pred_block, /* i */ 147 uint8 *c_prev, /* i */ 148 uint8 *pred_block, /* i */ 161 uint8 *c_prev, /* i */ 162 uint8 *pred_block, /* i */ 177 uint8 *pp_dec_u, /* i/o */ [all …]
|
D | mp4lib_int.h | 38 uint8 *bitstreamBuffer; /* pointer to buffer memory */ 50 uint8 text_1; /* texture_complexity_estimation_set_1 */ 51 uint8 text_2; /* texture_complexity_estimation_set_2 */ 52 uint8 mc; /* motion_compensation_complexity */ 137 uint8 pred_block[384]; /* prediction block, Aug 3,2005 */ 138 uint8 bitmapcol[6][8]; 139 uint8 bitmaprow[6]; 150 uint8 *Mode; /* Modes INTRA/INTER/etc. */ 151 uint8 *CBP; /* MCBPC/CBPY stuff */ 182 uint8 run; [all …]
|
D | chv_filter.cpp | 177 uint8 *rec, in CombinedHorzVertFilter() 182 uint8 *pp_mod) in CombinedHorzVertFilter() 190 uint8 *ptr, *ptr_e; in CombinedHorzVertFilter() 241 *(ptr - width) = (uint8)(jVal0); /* C */ in CombinedHorzVertFilter() 242 *ptr = (uint8)(jVal0); /* D */ in CombinedHorzVertFilter() 252 … *(ptr - (width << 1)) = (uint8)jVal0; /* store B */ in CombinedHorzVertFilter() 253 *(ptr + width) = (uint8)jVal1; /* store E */ in CombinedHorzVertFilter() 259 … *(ptr - (width << 1)) = (uint8)jVal0; /* store B */ in CombinedHorzVertFilter() 260 *(ptr + width) = (uint8)jVal1; /* store E */ in CombinedHorzVertFilter() 271 *(ptr - (width << 1) - width) = (uint8)(jVal0); in CombinedHorzVertFilter() [all …]
|
D | idct.h | 48 void idctrow0(int16 *blk, uint8 *pred, uint8 *dst, int width); 49 void idctrow1(int16 *blk, uint8 *pred, uint8 *dst, int width); 50 void idctrow2(int16 *blk, uint8 *pred, uint8 *dst, int width); 51 void idctrow3(int16 *blk, uint8 *pred, uint8 *dst, int width); 52 void idctrow4(int16 *blk, uint8 *pred, uint8 *dst, int width);
|
D | block_idct.cpp | 123 static void idctrow(int16 *blk, uint8 *pred, uint8 *dst, int width); 154 static void (*const idctrowVCA[10])(int16*, uint8*, uint8*, int) = 177 static void (*const idctrowVCA2[8])(int16*, uint8*, uint8*, int) = 261 uint8 *bitmapcol = mblock->bitmapcol[comp]; in BlockIDCT_intra() 262 uint8 bitmaprow = mblock->bitmaprow[comp]; in BlockIDCT_intra() 307 void idct_intra(int *block, uint8 *comp, int width); in BlockIDCT_intra() 311 void idctref_intra(int *block, uint8 *comp, int width); in BlockIDCT_intra() 323 void Copy_Blk_to_Vop(uint8 *dst, uint8 *pred, int width) in Copy_Blk_to_Vop() 349 uint8 *dst, /* destination */ in BlockIDCT() 350 uint8 *pred, /* prediction block, pitch 16 */ in BlockIDCT() [all …]
|
D | datapart_decode.cpp | 141 uint8 *Mode = video->headerInfo.Mode; in DecodeDataPart_I_VideoPacket() 173 Mode[mbnum] = (uint8)(MBtype = MBtype_mode[MCBPC & 7]); in DecodeDataPart_I_VideoPacket() 174 video->headerInfo.CBP[mbnum] = (uint8)((MCBPC >> 4) & 3); in DecodeDataPart_I_VideoPacket() 187 video->sliceNo[mbnum] = (uint8) slice_counter; in DecodeDataPart_I_VideoPacket() 241 video->acPredFlag[mbnum] = (uint8) BitstreamRead1Bits(stream); in DecodeDataPart_I_VideoPacket() 254 video->headerInfo.CBP[mbnum] |= (uint8)(CBPY << 2); in DecodeDataPart_I_VideoPacket() 306 uint8 *Mode = video->headerInfo.Mode; in DecodeDataPart_P_VideoPacket() 318 uint8 *pbyte; in DecodeDataPart_P_VideoPacket() 348 video->sliceNo[video->mbnum] = (uint8) slice_counter; in DecodeDataPart_P_VideoPacket() 427 video->acPredFlag[mbnum] = (uint8) BitstreamRead1Bits_INLINE(stream); in DecodeDataPart_P_VideoPacket() [all …]
|
D | adaptive_smooth_no_mmx.cpp | 213 uint8 *Rec_Y, /* i/o */ in AdaptiveSmooth_NoMMX() 231 uint8 pelu; in AdaptiveSmooth_NoMMX() 232 uint8 pelc; in AdaptiveSmooth_NoMMX() 233 uint8 pell; in AdaptiveSmooth_NoMMX() 234 uint8 *pelp; in AdaptiveSmooth_NoMMX() 235 uint8 oldrow[15]; in AdaptiveSmooth_NoMMX() 238 uint8 *Rec_Y_ptr; in AdaptiveSmooth_NoMMX() 408 *Rec_Y_ptr++ = (uint8) sum; in AdaptiveSmooth_NoMMX()
|
D | pvdec_api.cpp | 36 extern uint8 IMEM_sliceNo[QCIF_MBS]; 37 extern uint8 IMEM_acPredFlag[QCIF_MBS]; 38 extern uint8 IMEM_headerInfo_Mode[QCIF_MBS]; 39 extern uint8 IMEM_headerInfo_CBP[QCIF_MBS]; 53 extern uint8 IMEM_pstprcTypCur[6*QCIF_MBS]; 54 extern uint8 IMEM_pstprcTypPrv[6*QCIF_MBS]; 75 OSCL_EXPORT_REF Bool PVInitVideoDecoder(VideoDecControls *decCtrl, uint8 *volbuf[], in PVInitVideoDecoder() 395 video->sliceNo = (uint8 *)(IMEM_sliceNo); in PVAllocVideoData() 398 video->acPredFlag = (uint8 *)(IMEM_acPredFlag); in PVAllocVideoData() 408 video->headerInfo.Mode = (uint8 *)(IMEM_headerInfo_Mode); in PVAllocVideoData() [all …]
|
D | pp_semaphore_luma.cpp | 112 uint8 pp_semaphore_luma( in pp_semaphore_luma() 115 uint8 *pp_dec_y, /* i/o */ in pp_semaphore_luma() 116 uint8 *pstprcTypPrv, /* i */ in pp_semaphore_luma() 130 uint8 *pp_prev1, *pp_prev2, *pp_prev3, *pp_prev4; in pp_semaphore_luma() 131 uint8 msk_deblock = 0; /* 11/3/00 */ in pp_semaphore_luma()
|
D | chvr_filter.cpp | 24 uint8 *rec, in CombinedHorzVertRingFilter() 29 uint8 *pp_mod) in CombinedHorzVertRingFilter() 39 uint8 *ptr, *ptr_c, *ptr_n; in CombinedHorzVertRingFilter() 147 *(ptr_c) = (uint8) delta; in CombinedHorzVertRingFilter() 159 *ptr_c = (uint8)(delta); in CombinedHorzVertRingFilter() 229 *(ptr - w1) = (uint8)(*(ptr - w1) - delta); in CombinedHorzVertRingFilter() 230 *(ptr) = (uint8)(*(ptr) + delta); in CombinedHorzVertRingFilter() 307 *(ptr_c) = (uint8) delta; in CombinedHorzVertRingFilter() 317 *ptr_c = (uint8)(delta); in CombinedHorzVertRingFilter() 386 *(ptr - 1) = (uint8)(*(ptr - 1) - delta); in CombinedHorzVertRingFilter() [all …]
|
D | pp_semaphore_chroma_inter.cpp | 114 uint8 *pp_dec_u, /* i/o */ in pp_semaphore_chroma_inter() 115 uint8 *pstprcTypPrv, /* i */ in pp_semaphore_chroma_inter() 122 uint8 msk_deblock /* i */ in pp_semaphore_chroma_inter() 129 uint8 *pp_prev1, *pp_prev2, *pp_prev3, *pp_prev4; in pp_semaphore_chroma_inter()
|
D | combined_decode.cpp | 50 uint8 *Mode = video->headerInfo.Mode; in DecodeFrameCombinedMode() 151 video->sliceNo[mbnum] = (uint8) slice_counter; in DecodeFrameCombinedMode() 349 uint8 *Mode = video->headerInfo.Mode; in GetMBheader() 408 Mode[mbnum] = (uint8)(MBtype = MBtype_mode[MCBPC & 7]); in GetMBheader() 416 video->acPredFlag[mbnum] = (uint8) BitstreamRead1Bits(stream); in GetMBheader() 448 video->acPredFlag[mbnum] = (uint8) BitstreamRead1Bits_INLINE(stream); in GetMBheader() 462 video->headerInfo.CBP[mbnum] = (uint8)(CBPY << 2 | (CBPC & 3)); in GetMBheader() 549 uint8 *pp_mod[6]; 650 *pp_mod[comp] = (uint8) PostProcSemaphore(dataBlock); 683 *pp_mod[comp] = (uint8)((ncoeffs[comp] > 3) ? 4 : 0); [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/include/ |
D | mp4dec_api.h | 64 uint8 *data; /* pointer to output YUV buffer */ 80 int (*readBitstreamData)(uint8 *buf, int nbytes_required, void *appData); 83 uint8 *outputFrame; 91 uint8 *volbuf[2]; /* maximum of 2 layers for now */ 122 uint8 *yChan; /* The Y component frame the user can copy a new reference to */ 123 uint8 *uChan; /* The U component frame the user can copy a new reference to */ 124 uint8 *vChan; /* The V component frame the user can copy a new reference to */ 125 uint8 *currentVop; /* The Vop for video the user can copy a new reference to */ 150 …OSCL_IMPORT_REF Bool PVInitVideoDecoder(VideoDecControls *decCtrl, uint8 *volbuf[], int32 *volb… 154 OSCL_IMPORT_REF void PVSetReferenceYUV(VideoDecControls *decCtrl, uint8 *refYUV); [all …]
|
/frameworks/av/media/libstagefright/codecs/avc/common/include/ |
D | avcint_common.h | 485 uint8 *Sl; /* derived from base_dpb in AVCFrameStore */ 486 uint8 *Scb; /* for complementary fields, YUV are interlaced */ 487 uint8 *Scr; /* Sl of top_field and bottom_fields will be one line apart and the 516 uint8 *base_dpb; /* base pointer for the YCbCr */ 554 uint8 *decoded_picture_buffer; /* actual memory */ 596 …uint8 nz_coeff[NUM_BLKS_IN_MB]; /* [blk_y][blk_x], Chroma is [4..5][0...3], see predict_nnz() fun… 615 uint8 *pred_block; /* pointer to prediction block, could point to a frame */ 617 uint8 pred[688]; /* for prediction */ 625 uint8 *intra_pred_top; /* a row of pixel for intra prediction */ 626 uint8 intra_pred_left[17]; /* a column of pixel for intra prediction */ [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_getbits.cpp | 116 uint8 Elem; /* Needs to be same type as pInput->pBuffer */ in getNbits() 117 uint8 Elem1; in getNbits() 118 uint8 Elem2; in getNbits() 119 uint8 Elem3; in getNbits() 164 uint8 Elem; /* Needs to be same type as pInput->pBuffer */ in getUpTo9bits() 165 uint8 Elem1; in getUpTo9bits() 200 uint8 Elem; /* Needs to be same type as pInput->pBuffer */ in getUpTo17bits() 201 uint8 Elem1; in getUpTo17bits() 202 uint8 Elem2; in getUpTo17bits() 233 uint8 get1bit(tmp3Bits *ptBitStream) /* number of bits to read from the bit stream */ in get1bit() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
D | colorspace.cpp | 22 typedef uint8_t uint8; typedef 30 uint8 channel[4]; 34 static const uint8 kRed = 0; 35 static const uint8 kGreen = 1; 36 static const uint8 kBlue = 2; 37 static const uint8 kAlpha = 3; 58 uint8* const pInput = static_cast<uint8*>(env->GetDirectBufferAddress(input)); in JNI_COLORSPACE_METHOD() 63 uint8* pInY = pInput; in JNI_COLORSPACE_METHOD() 64 uint8* pInU = pInput + size; in JNI_COLORSPACE_METHOD() 65 uint8* pInV = pInput + size + size / 4; in JNI_COLORSPACE_METHOD()
|
/frameworks/av/media/libstagefright/codecs/avc/common/src/ |
D | deblock.cpp | 59 static void DeblockMb(AVCCommonObj *video, int mb_x, int mb_y, uint8 *SrcY, uint8 *SrcU, uint8 *Src… 61 static void GetStrength_Edge0(uint8 *Strength, AVCMacroblock* MbP, AVCMacroblock* MbQ, int dir); 62 static void GetStrength_VerticalEdges(uint8 *Strength, AVCMacroblock* MbQ); 63 static void GetStrength_HorizontalEdges(uint8 Strength[12], AVCMacroblock* MbQ); 64 static void EdgeLoop_Luma_vertical(uint8* SrcPtr, uint8 *Strength, int Alpha, int Beta, int *clipTa… 65 static void EdgeLoop_Luma_horizontal(uint8* SrcPtr, uint8 *Strength, int Alpha, int Beta, int *clip… 66 static void EdgeLoop_Chroma_vertical(uint8* SrcPtr, uint8 *Strength, int Alpha, int Beta, int *clip… 67 static void EdgeLoop_Chroma_horizontal(uint8* SrcPtr, uint8 *Strength, int Alpha, int Beta, int *cl… 79 uint8 *SrcY, *SrcU, *SrcV; in DeblockPicture() 116 uint8 *predCb, *predCr, *pred_block; in MBInLoopDeblock() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | mime_io.cpp | 156 const uint8 toc_byte[16] = {0x04, 0x0C, 0x14, 0x1C, 0x24, 0x2C, 0x34, 0x3C, 529 void mime_unsorting(uint8 unsorted_bits[], in mime_unsorting() 533 uint8 quality, in mime_unsorting() 539 uint8 temp = 0; in mime_unsorting() 540 uint8 *unsorted_bits_ptr = (uint8*)unsorted_bits; in mime_unsorting()
|