/frameworks/av/include/private/media/ |
H A D | VideoFrame.h | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 37 FILE *in = fopen(url, "r"); local 38 if (!in) { 41 fseek(in, 0, SEEK_END); 42 mSize = ftell(in); // Allocating buffer of size equals to the external file size. 44 fclose(in); 50 rewind(in); 51 if (fread(mData, 1, mSize, in) != mSize) { // Read failed. 57 fclose(in); [all...] |
/frameworks/av/libvideoeditor/vss/common/inc/ |
H A D | M4VD_Tools.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 33 M4OSA_MemAddr8 in; member in struct:__anon185
|
H A D | M4VIFI_FiltersAPI.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 93 * sizes (in pixels) are luma plane sizes, the 3 pointers point 94 * to the Y, U and V buffers which store data in planar format. 100 M4VIFI_UInt32 u_width; /**< Width of luma in pixel unit */ 101 M4VIFI_UInt32 u_height; /**< Height of luma in pixel unit */ 118 X positioning is expressed in percentage vs the main 126 Y positioning is expressed in percentage vs the main 283 /** Modify HLS in RGB565 */ 286 /** Modify HLS in BGR56 [all...] |
/frameworks/av/libvideoeditor/vss/src/ |
H A D | M4VD_EXTERNAL_BitstreamParser.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 134 parsingCtxt.in = (M4OSA_Int8 *)pVol; 139 while (parsingCtxt.in - start < aVolSize)
|
H A D | M4VD_Tools.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 40 //M4OSA_memcpy( (M4OSA_MemAddr8)&(parsingCtxt->stream_byte), parsingCtxt->in, 42 parsingCtxt->stream_byte = (unsigned char)(parsingCtxt->in)[0]; 43 parsingCtxt->in++; 44 //fread(&stream_byte, sizeof(unsigned char),1,in);
|
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
H A D | VideoEditorVideoDecoder.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 276 parsingCtxt.in = (M4OSA_MemAddr8) pVol; 281 while (parsingCtxt.in - start < aVolSize) { 1440 * and in the transcoding phrase, this video frame will be encoded 1592 ALOGV("VIDEOEDITOR_VIDEO_render Frame in the past");
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
H A D | EffectBundle.cpp | 6 * you may not use this file except in compliance with the License. 11 * Unless required by applicable law or agreed to in writing, software 36 "null pointer returned by %s in %s\n\n\n\n", callingFunc, calledFunc);\ 40 "bad alignment returned by %s in %s\n\n\n\n", callingFunc, calledFunc);\ 44 "bad number of samples returned by %s in %s\n\n\n\n", callingFunc, calledFunc);\ 48 "out of range returned by %s in %s\n", callingFunc, calledFunc);\ 241 // If this is the first create in this session 243 ALOGV("\tEffectCreate - This is the first effect in current sessionId %d sessionNo %d", 285 /* Saved strength is used to return the exact strength that was used in the set to the get 426 // Disable effect, in thi 2629 LVM_INT16 *in = (LVM_INT16 *)inBuffer->raw; local [all...] |
/frameworks/av/media/libeffects/testlibs/ |
H A D | AudioBiquadFilter.cpp | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 65 void AudioBiquadFilter::process(const audio_sample_t in[], audio_sample_t out[], argument 67 (this->*mCurProcessFunc)(in, out, frameCount); 139 void AudioBiquadFilter::process_bypass(const audio_sample_t * in, argument 142 // The common case is in-place processing, because this is what the EQ does. 143 if (CC_UNLIKELY(in != out)) { 144 memcpy(out, in, frameCount * mNumChannels * sizeof(audio_sample_t)); 148 void AudioBiquadFilter::process_normal_mono(const audio_sample_t * in, argument 162 audio_sample_t x0 = *(in 182 process_transition_normal_mono(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument 191 process_transition_bypass_mono(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument 200 process_normal_multi(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument 240 process_transition_normal_multi(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument 249 process_transition_bypass_multi(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument [all...] |
H A D | AudioBiquadFilter.h | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 30 // Filter can operate in an enabled (active) or disabled (bypassed) states. 44 // sampleRate Sample rate, in Hz. 49 // sampleRate Sample rate, in Hz. 54 // happens immediately and might cause discontinuities in the output. 59 // This change happens immediately and might cause discontinuities in the 68 // introducing discontinuities in the output. Otherwise, 73 // samples. Processing can be done in-place, by passing the same buffer as 75 // in Th [all...] |
H A D | AudioPeakingFilter.h | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 29 // in the output, even when changing parameters abruptly. 43 // sampleRate The input/output sample rate, in Hz. 49 // sampleRate The input/output sample rate, in Hz. 63 // This value will be remembered even if the filter is in disabled() state. 64 // millibel Gain value in millibel (1/100 of decibel). 67 // Gets the gain, in millibel, as set. 71 // This value will be remembered even if the filter is in disabled() state. 72 // cents Bandwidth value in cent 104 process(const audio_sample_t in[], audio_sample_t out[], int frameCount) argument [all...] |
H A D | AudioShelvingFilter.h | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 29 // in the output, even when changing parameters abruptly. 50 // sampleRate The input/output sample rate, in Hz. 56 // sampleRate The input/output sample rate, in Hz. 69 // This value will be remembered even if the filter is in disabled() state. 70 // millibel Gain value in millibel (1/100 of decibel). 73 // Gets the gain, in millibel, as set. 78 // This value will be remembered even if the filter is in disabled() state. 79 // millihertz Frequency value in mH 98 process(const audio_sample_t in[], audio_sample_t out[], int frameCount) argument [all...] |
H A D | EffectsMath.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 24 // for integers in the range 0 to 63 (i = ai5*2^5 + ai4*2^4 + ai3*2^3 + ai2*2^2 + ai1*2^1 + ai0*2^0) 111 int32_t Effects_Sqrt(int32_t in) argument 119 if (in == 0) return 0; 121 if (in >= 0x10000000) 124 in -= 0x10000000; 127 j = 32 - __builtin_clz(in); 134 if (in >= tmp) 137 in [all...] |
H A D | EffectsMath.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 146 /* the max positive gain used in the synth for EG1 */ 147 /* SYNTH_FULL_SCALE_EG1_GAIN must match the value in the dls2eas 181 // in certain conditions because we store b1 as a 1.15 value. 223 /* use CENTS_TO_DENTS to convert a value in cents to dents */ 228 For gain, the LFO generates a value that modulates in terms 230 the LFO value in dB to a linear gain. Normally, we would use 231 linear gain = 10^x, where x = LFO value in dB / 20. 239 2^x, but it actually assumes that the input is in cent [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | TestPlayerStub.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 24 class MediaPlayerBase; // in media/MediaPlayerInterface.h 36 // TestPlayerStub::setDataSource loads the library in the test url. 2 46 // typical usage in a java test: 96 virtual status_t invoke(const android::Parcel& in, android::Parcel *out) { argument 97 return mPlayer->invoke(in, out);
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | block_switch.c | 5 ** you may not use this file except in compliance with the License. 10 ** Unless required by applicable law or agreed to in writing, software 34 IIRFilter(const Word16 in, const Word32 coeff[], Word32 states[]); 37 SrchMaxWithIndex(const Word32 *in, Word16 *index, Word16 n); 92 /* Attack in Window 0 */ {1, 3, 3, 1}, 93 /* Attack in Window 1 */ {1, 1, 3, 3}, 94 /* Attack in Window 2 */ {2, 1, 3, 2}, 95 /* Attack in Window 3 */ {3, 1, 3, 1}, 96 /* Attack in Window 4 */ {3, 1, 1, 3}, 97 /* Attack in Windo 249 SrchMaxWithIndex(const Word32 in[], Word16 *index, Word16 n) argument 339 IIRFilter(const Word16 in, const Word32 coeff[], Word32 states[]) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | vad1.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 50 round function in C standard library. 104 in -- array of type Word16 -- input signal 167 Word16 in[], /* i : input signal */ 189 temp1 = shr(in[4*i+0], 2, pOverflow); 196 temp2 = shr(in[4*i+1], 2, pOverflow); 207 temp2 = shr(in[4*i+2], 2, pOverflow); 214 temp2 = shr(in[4*i+3], 2, pOverflow); 465 Purpose : Calculate signal level in 166 first_filter_stage( Word16 in[], Word16 out[], Word16 data[], Flag *pOverflow ) argument 613 filter_bank( vadState1 *st, Word16 in[], Word16 level[], Flag *pOverflow ) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | agc.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 91 in = input signal (Word16) 126 Word16 in[], // i : input signal (length l_trm) 133 temp = shr (in[0], 2); 138 temp = shr (in[i], 2); 169 Word16 in[], /* i : input signal (length l_trm) */ 181 temp = in[i] >> 2; 196 in = input signal (Word16) 229 CALL energy_old ( in 168 energy_old( Word16 in[], Word16 l_trm, Flag *pOverflow ) argument 258 energy_old_Wrapper(Word16 in[], Word16 l_trm, Flag *pOverflow) argument 370 energy_new( Word16 in[], Word16 l_trm, Flag *pOverflow ) argument 478 energy_new_Wrapper(Word16 in[], Word16 l_trm, Flag *pOverflow) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | wb_vad.c | 5 ** you may not use this file except in compliance with the License. 10 ** Unless required by applicable law or agreed to in writing, software 37 * ilog2(Word32 in) = -1024*log10(in * 2^-31)/log10(2), where in = [1, 2^31-1] 43 * When input is in the range of [1,2^16], max error is 0.0380%. 128 * Purpose : Calculate signal level in a sub-band. Level is calculated 174 * the signal in each band 180 Word16 in[], /* i : input frame */ 190 tmp_buf[i] = in[ 178 filter_bank( VadVars * st, Word16 in[], Word16 level[] ) argument [all...] |
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | avcenc_lib.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 45 \param "coef_cost" "Pointer to the coefficient cost to be filled in and returned." 83 This function interprets the encoding parameters provided by users in encParam. 84 The results are kept in AVCEncObject, AVCSeqParamSet, AVCPicParamSet and AVCSliceHeader. 129 in the queue to encode, AVCENC_POC_FAIL or AVCENC_CONSECUTIVE_NONREF for POC 230 \param "buf_size" "The size of the buffer in bytes." 232 \param "oBSize" "Size of overrun buffer in bytes." 250 \param "nBits" "Number of bits in the codeword." 296 \param "curL" "Pointer to the current MB origin in reconstructe [all...] |
H A D | motion_comp.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 268 void eHorzInterp1MC(uint8 *in, int inpitch, uint8 *out, int outpitch, argument 281 p_ref = in; 286 dx = ((dx >> 1) ? -3 : -4); /* use in 3/4 pel */ 558 void eHorzInterp2MC(int *in, int inpitch, uint8 *out, int outpitch, argument 569 p_ref = in; 574 dx = ((dx >> 1) ? -3 : -4); /* use in 3/4 pel */ 717 void eHorzInterp3MC(uint8 *in, int inpitch, int *out, int outpitch, argument 727 p_ref = in; 781 eVertInterp1MC(uint8 *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight, int dy) argument 1083 eVertInterp2MC(uint8 *in, int inpitch, int *out, int outpitch, int blkwidth, int blkheight) argument 1148 eVertInterp3MC(int *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight, int dy) argument 1649 eFullPelMC(uint8 *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight) argument [all...] |
/frameworks/av/media/libstagefright/codecs/g711/dec/ |
H A D | SoftG711.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 254 int16_t *out, const uint8_t *in, size_t inSize) { 256 int32_t x = *in++; 280 int16_t *out, const uint8_t *in, size_t inSize) { 282 int32_t x = *in++; 253 DecodeALaw( int16_t *out, const uint8_t *in, size_t inSize) argument 279 DecodeMLaw( int16_t *out, const uint8_t *in, size_t inSize) argument
|
H A D | SoftG711.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 54 static void DecodeALaw(int16_t *out, const uint8_t *in, size_t inSize); 55 static void DecodeMLaw(int16_t *out, const uint8_t *in, size_t inSize);
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/asm/ |
H A D | pvmp3_dct_16_gcc.s | 5 @ you may not use this file except in compliance with the License. 10 @ Unless required by applicable law or agreed to in writing, software
|
H A D | pvmp3_dct_9_arm.s | 5 ; you may not use this file except in compliance with the License. 10 ; Unless required by applicable law or agreed to in writing, software
|
H A D | pvmp3_dct_9_gcc.s | 5 @ you may not use this file except in compliance with the License. 10 @ Unless required by applicable law or agreed to in writing, software
|