/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | mp4lib_int.h | 29 Int(*writeVideoPacket)(UChar *buf, Int nbytes_required); /*write video packet out */ 31 Int bufferSize; /*total bitstream buffer size in bytes */ 32 Int byteCount; /*how many bytes already encoded*/ 34 Int bitLeft; /*number of bits left in "word" */ 36 Int oBSize; /* length of overrun buffer */ 46 Int frame; /* frame number */ 47 Int volID; /* Layer number */ 51 Int width; /* Width (multiple of 16) */ 52 Int height; /* Height (multiple of 16) */ 53 Int pitch; /* Pitch (differs from width for UMV case) */ [all …]
|
D | fastcodemb.h | 31 const Int *scale; 32 Int(*DCT)(Int block[ ], Int coeff[ ], approxDCT *); 35 Int th_app_all[8]; 36 Int th_app_odd[8]; 37 Int th_app_even[8]; 38 Int th_app_even1[8]; 39 Int th_app_even2[8]; 44 Int QPx2 ; 45 Int QP; 46 Int QPdiv2; [all …]
|
D | mp4enc_lib.h | 33 int quant_scale, Int insert); 35 PV_STATUS EncodeVopNotCoded(VideoEncData *video, UChar *bstream, Int *size, ULong modTime); 50 PV_STATUS CodeMB_H263(VideoEncData *video, approxDCT *function, Int offsetQP, Int ncoefblck[]); 52 PV_STATUS CodeMB_MPEG(VideoEncData *video, approxDCT *function, Int offsetQP, Int ncoefblck[]); 54 Int getBlockSAV(Short block[]); 55 Int Sad8x8(UChar *rec, UChar *prev, Int lx); 56 Int getBlockSum(UChar *rec, Int lx); 64 Int cal_dc_scalerENC(Int QP, Int type) ; 65 Int BlockQuantDequantH263Inter(Short *rcoeff, Short *qcoeff, struct QPstruct *QuantParam, 67 Int dctMode, Int comp, Int dummy, UChar shortHeader); [all …]
|
D | vlc_encode.h | 24 Int PutCoeff_Inter(Int run, Int level, Int last, BitstreamEncVideo *bitstream); 25 Int PutCoeff_Intra(Int run, Int level, Int last, BitstreamEncVideo *bitstream); 26 Int PutCBPY(Int cbpy, Char intra, BitstreamEncVideo *bitstream); 27 Int PutMCBPC_Inter(Int cbpc, Int mode, BitstreamEncVideo *bitstream); 28 Int PutMCBPC_Intra(Int cbpc, Int mode, BitstreamEncVideo *bitstream); 29 Int PutMV(Int mvint, BitstreamEncVideo *bitstream); 30 Int PutDCsize_chrom(Int size, BitstreamEncVideo *bitstream); 31 Int PutDCsize_lum(Int size, BitstreamEncVideo *bitstream); 32 Int PutDCsize_lum(Int size, BitstreamEncVideo *bitstream); 33 Int PutCoeff_Inter_RVLC(Int run, Int level, Int last, BitstreamEncVideo *bitstream); [all …]
|
D | rate_control.h | 25 Int Qp; 26 Int Rp; 35 Int alpha; /* weight for I frame */ 36 Int Rs; /*bit rate for the sequence (or segment) e.g., 24000 bits/sec */ 37 Int Rc; /*bits used for the current frame. It is the bit count obtained after encoding. */ 38 Int Rp; /*bits to be removed from the buffer per picture. */ 40 Int Rps; /*bit to be removed from buffer per src frame */ 45 Int Qc; /*quantization level used for the current frame. */ 46 Int Nr; /*number of P frames remaining for encoding.*/ 47 Int Rr; /*number of bits remaining for encoding this sequence (or segment).*/ [all …]
|
D | fastquant.cpp | 90 Int cal_dc_scalerENC(Int QP, Int type) in cal_dc_scalerENC() 93 Int dc_scaler; in cal_dc_scalerENC() 149 Int BlockQuantDequantH263Inter(Short *rcoeff, Short *qcoeff, struct QPstruct *QuantParam, in BlockQuantDequantH263Inter() 151 Int dctMode, Int comp, Int dummy, UChar shortHeader) in BlockQuantDequantH263Inter() 153 Int i, zz; in BlockQuantDequantH263Inter() 154 Int tmp, coeff, q_value; in BlockQuantDequantH263Inter() 155 Int QPdiv2 = QuantParam->QPdiv2; in BlockQuantDequantH263Inter() 156 Int QPx2 = QuantParam->QPx2; in BlockQuantDequantH263Inter() 157 Int Addition = QuantParam->Addition; in BlockQuantDequantH263Inter() 158 Int QPx2plus = QuantParam->QPx2plus; in BlockQuantDequantH263Inter() [all …]
|
D | sad_halfpel.cpp | 64 Int HalfPel1_SAD_MB(UChar *ref, UChar *blk, Int dmin, Int width, Int ih, Int jh) in HalfPel1_SAD_MB() 66 Int i, j; in HalfPel1_SAD_MB() 67 Int sad = 0; in HalfPel1_SAD_MB() 69 Int temp; in HalfPel1_SAD_MB() 96 Int HalfPel2_SAD_MB(UChar *ref, UChar *blk, Int dmin, Int width) in HalfPel2_SAD_MB() 98 Int i, j; in HalfPel2_SAD_MB() 99 Int sad = 0; in HalfPel2_SAD_MB() 101 Int temp; in HalfPel2_SAD_MB() 138 Int HalfPel1_SAD_Blk(UChar *ref, UChar *blk, Int dmin, Int width, Int ih, Int jh) in HalfPel1_SAD_Blk() 140 Int i, j; in HalfPel1_SAD_Blk() [all …]
|
D | findhalfpel.cpp | 34 void GenerateSearchRegion(UChar *searchPadding, UChar *ref, Int width, Int height, 35 Int ilow, Int ihigh, Int jlow, Int jhigh); 37 void InterpDiag(UChar *prev, Int lx, UChar *pred_block); 38 void InterpHorz(UChar *prev, Int lx, UChar *pred_block); 39 void InterpVert(UChar *prev, Int lx, UChar *pred_block); 45 const static Int distance_tab[9][9] = /* [hp_guess][k] */ 66 Int xpos, Int ypos, Int *xhmin, Int *yhmin, Int hp_guess) in FindHalfPelMB() 71 Int dmin, d; in FindHalfPelMB() 73 Int xh, yh; in FindHalfPelMB() 74 Int k, kmin = 0; in FindHalfPelMB() [all …]
|
D | vlc_encode.cpp | 88 typedef void (*BlockCodeCoeffPtr)(RunLevelBlock*, BitstreamEncVideo*, Int, Int, UChar) ; 90 const static Int mode_MBtype[] = 99 const static Int zigzag_inv[NCOEFF_BLOCK] = 112 const static Int zigzag_h_inv[NCOEFF_BLOCK] = 125 const static Int zigzag_v_inv[NCOEFF_BLOCK] = 142 Int PutCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream); 143 Int PutCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream); 144 Int PutCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream); 145 Int PutCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream); 146 Int PutCBPY(Int cbpy, Char intra, BitstreamEncVideo *bitstream); [all …]
|
D | dct.h | 21 const static Int ColThInter[32] = {0, 0x1C, 0x4C, 0x6C, 0x9C, 0xBC, 0xEC, 0x10C, 27 const static Int ColThIntra[32] = {0, 0x1C, 0x3C, 0x5C, 0x7C, 0x9C, 0xBC, 0xDC, 60 void idct_rowInter(Short *srce, UChar *rec, Int lx); 61 void idct_row0Inter(Short *blk, UChar *rec, Int lx); 62 void idct_row1Inter(Short *blk, UChar *rec, Int lx); 63 void idct_row2Inter(Short *blk, UChar *rec, Int lx); 64 void idct_row3Inter(Short *blk, UChar *rec, Int lx); 65 void idct_row4Inter(Short *blk, UChar *rec, Int lx); 66 void idct_row0x40Inter(Short *blk, UChar *rec, Int lx); 67 void idct_row0x20Inter(Short *blk, UChar *rec, Int lx); [all …]
|
D | fastcodemb.cpp | 50 PV_STATUS CodeMB_H263(VideoEncData *video, approxDCT *function, Int QP, Int ncoefblck[]) in CodeMB_H263() 52 Int sad, k, CBP, mbnum = video->mbnum; in CodeMB_H263() 58 Int dc_scaler = 8; in CodeMB_H263() 59 Int intra = (Mode == MODE_INTRA || Mode == MODE_INTRA_Q); in CodeMB_H263() 61 Int dctMode, DctTh1; in CodeMB_H263() 62 Int ColTh; in CodeMB_H263() 63 Int(*BlockQuantDequantH263)(Short *, Short *, struct QPstruct *, in CodeMB_H263() 64 UChar[], UChar *, UInt *, Int, Int, Int, UChar); in CodeMB_H263() 65 Int(*BlockQuantDequantH263DC)(Short *, Short *, struct QPstruct *, in CodeMB_H263() 66 UChar *, UInt *, Int, UChar); in CodeMB_H263() [all …]
|
D | motion_est.cpp | 52 const static Int tab_exclude[9][9] = // [last_loc][curr_loc] 65 const static Int refine_next[8][2] = /* [curr_k][increment] */ 76 Int i0, Int j0, Int type_pred, Int fullsearch, Int *hp_guess); 78 Int fullsearch(VideoEncData *video, Vol *currVol, UChar *ref, UChar *cur, 79 Int *imin, Int *jmin, Int ilow, Int ihigh, Int jlow, Int jhigh); 80 Int fullsearchBlk(VideoEncData *video, Vol *currVol, UChar *cent, UChar *cur, 81 Int *imin, Int *jmin, Int ilow, Int ihigh, Int jlow, Int jhigh, Int range); 82 void CandidateSelection(Int *mvx, Int *mvy, Int *num_can, Int imb, Int jmb, 83 VideoEncData *video, Int type_pred); 84 void RasterIntraUpdate(UChar *intraArray, UChar *Mode, Int totalMB, Int numRefresh); [all …]
|
D | sad.cpp | 64 Int SAD_MB_PAD1(UChar *ref, UChar *cur, Int dmin, Int lx, Int *rep); 78 Int SAD_Macroblock_C(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info) in SAD_Macroblock_C() 81 Int dmin = (ULong)dmin_lx >> 16; in SAD_Macroblock_C() 82 Int lx = dmin_lx & 0xFFFF; in SAD_Macroblock_C() 106 Int SAD_MB_HTFM_Collect(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info) in SAD_MB_HTFM_Collect() 108 Int i; in SAD_MB_HTFM_Collect() 109 Int sad = 0; in SAD_MB_HTFM_Collect() 111 Int lx4 = (dmin_lx << 2) & 0x3FFFC; in SAD_MB_HTFM_Collect() 113 Int saddata[16], tmp, tmp2; /* used when collecting flag (global) is on */ in SAD_MB_HTFM_Collect() 114 Int difmad; in SAD_MB_HTFM_Collect() [all …]
|
D | motion_comp.cpp | 24 const static Int roundtab16[] = {0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2}; 37 Int EncGetPredOutside(Int xpos, Int ypos, UChar *c_prev, UChar *rec, 38 Int width, Int height, Int rnd1); 40 void Copy_MB_from_Vop(UChar *comp, Int yChan[][NCOEFF_BLOCK], Int width); 41 void Copy_B_from_Vop(UChar *comp, Int cChan[], Int width); 42 void Copy_MB_into_Vop(UChar *comp, Int yChan[][NCOEFF_BLOCK], Int width); 43 void Copy_B_into_Vop(UChar *comp, Int cChan[], Int width); 45 Short mb[6][64], Int lx, Int lx_uv); 47 Int GetPredAdvBy0x0( 50 Int lx, /* i */ [all …]
|
D | bitstream_io.h | 30 BitstreamEncVideo *BitStreamCreateEnc(Int bufferSize); 32 PV_STATUS BitstreamPutBits(BitstreamEncVideo *stream, Int Length, UInt Value); 33 PV_STATUS BitstreamPutGT16Bits(BitstreamEncVideo *stream, Int Length, ULong Value); 35 PV_STATUS BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction); 36 Int BitstreamGetPos(BitstreamEncVideo *stream); 39 Int BitstreamShortHeaderByteAlignStuffing(BitstreamEncVideo *stream); 40 Int BitstreamMpeg4ByteAlignStuffing(BitstreamEncVideo *stream); 44 PV_STATUS BitstreamRepos(BitstreamEncVideo *bitstream, Int byteCount, Int bitCount); 45 PV_STATUS BitstreamFlushBits(BitstreamEncVideo *bitstream1, Int num_bit_left); 49 …Void BitstreamSetOverrunBuffer(BitstreamEncVideo *stream, UChar *overrunBuffer, Int oBSize, Video… [all …]
|
D | datapart_encode.cpp | 42 Int width = currVop->width; /* has to be Vop, for multiple of 16 */ in EncodeFrameDataPartMode() 43 Int lx = currVop->pitch; /* with padding */ in EncodeFrameDataPartMode() 44 Int offset = 0; in EncodeFrameDataPartMode() 45 Int ind_x, ind_y; in EncodeFrameDataPartMode() 46 Int start_packet_header = 0; in EncodeFrameDataPartMode() 48 Int QP; in EncodeFrameDataPartMode() 49 Int mbnum = 0, slice_counter = 0; in EncodeFrameDataPartMode() 50 Int num_bits, packet_size = encParams->ResyncPacketsize; in EncodeFrameDataPartMode() 54 Int numHeaderBits; in EncodeFrameDataPartMode() 56 Int ncoefblck[6] = {64, 64, 64, 64, 64, 64}; /* for FastCodeMB, 5/18/2001 */ in EncodeFrameDataPartMode() [all …]
|
D | combined_encode.cpp | 25 PV_STATUS EncodeGOBHeader(VideoEncData *video, Int GOB_number, Int quant_scale, Int bs1stream); 43 Int width = currVop->width; /* has to be Vop, for multiple of 16 */ in EncodeFrameCombinedMode() 44 Int lx = currVop->pitch; /* with padding */ in EncodeFrameCombinedMode() 45 Int offset = 0; in EncodeFrameCombinedMode() 46 Int ind_x, ind_y; in EncodeFrameCombinedMode() 47 Int start_packet_header = 0; in EncodeFrameCombinedMode() 49 Int QP; in EncodeFrameCombinedMode() 50 Int mbnum = 0, slice_counter = 0, curr_slice_counter = 0; in EncodeFrameCombinedMode() 51 Int num_bits, packet_size = encParams->ResyncPacketsize; in EncodeFrameCombinedMode() 52 Int GOB_Header_Interval = encParams->GOB_Header_Interval; in EncodeFrameCombinedMode() [all …]
|
D | rate_control.cpp | 55 Int numLayers = encParams->nLayers; in RC_Initialize() 56 Int *LayerBitRate = encParams->LayerBitRate; in RC_Initialize() 60 Int n; in RC_Initialize() 73 rc[n]->VBV_fullness = (Int)(rc[n]->Bs * 0.5); /* rc[n]->Bs */ in RC_Initialize() 78 rc[n]->TMN_TH = (Int)((float)LayerBitRate[n] / LayerFrameRate[n]); in RC_Initialize() 85 …rc[n]->max_BitVariance_num = (Int)((rc[n]->Bs - video->encParams->maxFrameSize) / 2 / (rc[n]->bitr… in RC_Initialize() 90 …rc[n]->max_BitVariance_num = (Int)((float)(rc[n]->Bs - rc[n]->VBV_fullness) / ((float)LayerBitRate… in RC_Initialize() 98 …rc[n]->TMN_TH = (Int)((float)(LayerBitRate[n] - LayerBitRate[n-1]) / (LayerFrameRate[n] - LayerFra… in RC_Initialize() 99 …rc[n]->max_BitVariance_num = (Int)((float)(rc[n]->Bs - rc[n]->VBV_fullness) * 10 / ((float)rc[n]->… in RC_Initialize() 115 …rc[n]->VBV_fullness = (Int)(rc[n]->Bs / 3.0 - rc[n]->Bs / 2.0); /* the buffer range is [-Bs/2, Bs/… in RC_Initialize() [all …]
|
D | dct.cpp | 38 Void BlockDCT_AANwSub(Short *out, UChar *cur, UChar *pred, Int width) in BlockDCT_AANwSub() 41 Int k0, k1, k2, k3, k4, k5, k6, k7; in BlockDCT_AANwSub() 42 Int round; in BlockDCT_AANwSub() 43 Int k12 = 0x022A02D4; in BlockDCT_AANwSub() 44 Int k14 = 0x0188053A; in BlockDCT_AANwSub() 45 Int abs_sum; in BlockDCT_AANwSub() 46 Int mask; in BlockDCT_AANwSub() 47 Int tmp, tmp2; in BlockDCT_AANwSub() 48 Int ColTh; in BlockDCT_AANwSub() 59 tmp = *((Int*) cur); /* contains 4 pixels */ in BlockDCT_AANwSub() [all …]
|
D | me_utils.cpp | 35 void ChooseMode_C(UChar *Mode, UChar *cur, Int lx, Int min_SAD) in ChooseMode_C() 37 Int i, j; in ChooseMode_C() 38 Int MB_mean, A, tmp, Th; in ChooseMode_C() 39 Int offset = (lx >> 2) - 4; in ChooseMode_C() 41 Int *pint = (Int *) cur, temp = 0; in ChooseMode_C() 110 void GetHalfPelMBRegion_C(UChar *cand, UChar *hmem, Int lx) in GetHalfPelMBRegion_C() 112 Int i, j; in GetHalfPelMBRegion_C() 116 Int offset = lx - 17; in GetHalfPelMBRegion_C() 166 void GetHalfPelBlkRegion(UChar *cand, UChar *hmem, Int lx) in GetHalfPelBlkRegion() 168 Int i, j; in GetHalfPelBlkRegion() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/include/ |
D | mp4enc_api.h | 29 typedef int Int; typedef 113 Int videoEncoderInit; 122 Int height; /* height for Y */ 123 Int pitch; /* stride for Y */ 138 Int packetSize; 147 Int gobHeaderInterval; 150 Int numLayers; 153 Int timeIncRes; 156 Int tickPerSrc; 159 Int encHeight[2]; [all …]
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/ |
D | Quare.kt | 30 class Quare(val width: Int, val height: Int, val depth: Int) : Parcelable { in <lambda>() 71 fun getUserMark(x: Int, y: Int): Int { in <lambda>() 75 fun setUserMark(x: Int, y: Int, v: Int) { in <lambda>() 79 fun getDataAt(x: Int, y: Int): Int { in <lambda>() 87 fun check(xSel: Int, ySel: Int): Boolean { in <lambda>() 104 fun getRowClue(y: Int): IntArray { in <lambda>() 107 fun getColumnClue(x: Int): IntArray { in <lambda>() 110 fun getClue(xSel: Int, ySel: Int): IntArray { in <lambda>() 111 val arr = ArrayList<Int>() in <lambda>() 136 override fun describeContents(): Int { in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSHeaderInfoLayout.kt | 37 defStyle: Int = 0, 38 defStyleRes: Int = 0 53 override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) { in onLayout() 68 private fun View.layoutView(pWidth: Int, pHeight: Int, offset: Int, RTL: Boolean): Int { in layoutView() 74 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure() 115 private data class Location(var left: Int, var right: Int) { 121 fun setLocationFromOffset(parentWidth: Int, offset: Int, width: Int, RTL: Boolean) { in setLocationFromOffset()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | BatteryStateSnapshot.kt | 10 val batteryLevel: Int, 13 val bucket: Int, 14 val batteryStatus: Int, 15 val severeLevelThreshold: Int, 16 val lowLevelThreshold: Int, 35 batteryLevel: Int, 38 bucket: Int, 39 batteryStatus: Int, 40 severeLevelThreshold: Int, 41 lowLevelThreshold: Int
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | ThemedBatteryDrawable.kt | 39 open class ThemedBatteryDrawable(private val context: Context, frameColor: Int) : Drawable() { in <lambda>() 71 private var intrinsicHeight: Int in <lambda>() 72 private var intrinsicWidth: Int in <lambda>() 80 private var fillColor: Int = Color.MAGENTA in <lambda>() 81 private var backgroundColor: Int = Color.MAGENTA in <lambda>() 83 private var levelColor: Int = Color.MAGENTA in <lambda>() 94 open var criticalLevel: Int = context.resources.getInteger( in <lambda>() 254 private fun batteryColorForLevel(level: Int): Int { in <lambda>() 261 private fun getColorForLevel(level: Int): Int { in <lambda>() 262 var thresh: Int in <lambda>() [all …]
|