HomeSort by relevance Sort by last modified time
    Searched refs:frameSize (Results 1 - 25 of 85) sorted by null

1 2 3 4

  /cts/apps/CtsVerifier/jni/audioquality/
MeasureRms.cpp 68 int frameSize = (int)(0.5 + (sampleRate * frameDur));
69 int numFrames = numSamples / frameSize;
81 short* p_data = pcm + (frame * frameSize);
83 for (i = 0, sumSampleSquares = 0.0; i < frameSize; ++i) {
87 sumSampleSquares /= frameSize;
94 *duration = frameSize * numFrames / sampleRate;
111 short* p_data = pcm + (frame * frameSize);
113 for (i = 0, sumSampleSquares = 1.0; i < frameSize; ++i) {
117 sumSampleSquares /= frameSize;
157 *duration = frameSize * (frame - onset) / sampleRate
    [all...]
LinearityTest.cpp 64 int frameSize = int(0.5 + (sampleRate * rmsFrameSize));
65 int numFrames = 1 + ((numSamples - frameSize) / frameStep);
75 int limit = (frame * frameStep) + frameSize;
84 *peakRms = sqrt(maxEnergy / frameSize);
  /external/webkit/Source/WebKit/chromium/src/
WebImageSkia.cpp 63 const IntSize frameSize = source.frameSizeAtIndex(i);
64 if (WebSize(frameSize) == desiredSize) {
69 const int frameArea = frameSize.width() * frameSize.height();
WebImageCG.cpp 64 const IntSize frameSize = source.frameSizeAtIndex(i);
65 if (WebSize(frameSize) == desiredSize) {
69 const int frameArea = frameSize.width() * frameSize.height();
  /frameworks/base/media/libstagefright/
AMRExtractor.cpp 92 size_t frameSize = isWide ? kFrameSizeWB[FT] : kFrameSizeNB[FT];
95 frameSize = (frameSize + 7) / 8 + 1;
97 return frameSize;
101 off64_t offset, bool isWide, size_t *frameSize) {
109 *frameSize = getFrameSize(isWide, FT);
110 if (*frameSize == 0) {
138 size_t frameSize, numFrames = 0;
143 if (getFrameSizeByOffset(source, offset, mIsWide, &frameSize) != OK) {
153 offset += frameSize;
    [all...]
AACExtractor.cpp 99 size_t frameSize = 0;
120 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5;
124 if (headSize > frameSize) {
131 return frameSize;
161 size_t frameSize = 0;
166 if ((frameSize = getAdtsFrameLength(source, offset, NULL)) == 0) {
172 offset += frameSize;
286 size_t frameSize, frameSizeWithoutHeader, headerSize;
287 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) {
297 frameSizeWithoutHeader = frameSize - headerSize
    [all...]
VBRISeeker.cpp 48 size_t frameSize;
50 if (!GetMPEGAudioFrameSize(tmp, &frameSize, &sampleRate)) {
  /system/media/wilhelm/src/android/
AacBqToPcmCbRenderer.cpp 39 size_t frameSize = 0;
56 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5;
63 if (headSize > frameSize) {
64 SL_LOGE("AacBqToPcmCbRenderer::getAdtsFrameSize() returns 0 (frameSize %u < headSize %u)",
65 frameSize, headSize);
69 SL_LOGV("AacBqToPcmCbRenderer::getAdtsFrameSize() returns %u", frameSize);
71 return frameSize;
86 size_t frameSize = 0;
94 if ((frameSize = getAdtsFrameSize((uint8_t *)data, offset, size)) == 0) {
99 offset += frameSize;
    [all...]
  /system/media/wilhelm/src/android/util/
AacAdtsExtractor.cpp 49 size_t frameSize = 0;
74 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5;
81 if (headSize > frameSize) {
82 SL_LOGE("AacAdtsExtractor:: getFrameSize() returns 0 (frameSize %u < headSize %u)",
83 frameSize, headSize);
87 //SL_LOGV("AacAdtsExtractor:: getFrameSize() returns %u", frameSize);
89 return frameSize;
130 size_t frameSize = 0;
135 if ((frameSize = getFrameSize(mDataSource, offset)) == 0) {
136 // Usually frameSize == 0 due to EOS is benign (and getFrameSize() doesn't SL_LOGE)
    [all...]
  /external/srec/srec/include/
fpi_tgt.h 51 #define NEXT_FRAME_POINTER(PKT,X) (((X) + (PKT)->frameSize) & (PKT)->stackMask)
52 #define PREV_FRAME_POINTER(PKT,X) (((X) - (PKT)->frameSize) & (PKT)->stackMask)
54 #define POINTER_GAP(PKT, LEAD, LAG) ((((LEAD) - (LAG)) & (PKT)->stackMask)/(PKT)->frameSize)
57 #define NEXT_FRAME_POINTER(PKT,X) ((X) >= (PKT)->lastFrameInStack ? (PKT)->frameStack : (X) + (PKT)->frameSize)
58 #define PREV_FRAME_POINTER(PKT,X) ((X) <= (PKT)->frameStack ? (PKT)->lastFrameInStack : (X) - (PKT)->frameSize)
61 #define POINTER_GAP(PKT, LEAD, LAG) ((LEAD) >= (LAG) ? ((LEAD) - (LAG))/(PKT)->frameSize : ((PKT)->featuresInStack + (LEAD) - (LAG))/(PKT)->frameSize)
82 int frameSize; /* How many data items per frame? */
  /frameworks/base/cmds/stagefright/
SineSource.cpp 71 size_t frameSize = mNumChannels * sizeof(int16_t);
72 size_t numFramesPerBuffer = buffer->size() / frameSize;
95 buffer->set_range(0, numFramesPerBuffer * frameSize);
  /system/media/mca/filterfw/java/android/filterfw/core/
CachedFrameManager.java 101 int frameSize = frame.getFormat().getSize();
102 if (frameSize > mStorageCapacity) {
107 int newStorageSize = mStorageSize + frameSize;
110 newStorageSize = mStorageSize + frameSize;
  /frameworks/base/media/libstagefright/rtsp/
AAMRAssembler.cpp 93 size_t frameSize = isWide ? kFrameSizeWB[FT] : kFrameSizeNB[FT];
96 frameSize = (frameSize + 7) / 8 + 1;
98 return frameSize;
194 size_t frameSize = getFrameSize(mIsWide, (toc >> 3) & 0x0f);
196 if (offset + frameSize - 1 > buffer->size()) {
207 buffer->data() + offset, frameSize - 1);
209 offset += frameSize - 1;
210 dstOffset += frameSize - 1;
  /external/webkit/Source/WebCore/platform/graphics/
BitmapImage.cpp 41 static int frameBytes(const IntSize& frameSize)
43 return frameSize.width() * frameSize.height() * 4;
137 const IntSize frameSize(index ? m_source.frameSizeAtIndex(index) : m_size);
138 if (frameSize != m_size)
141 int deltaBytes = frameBytes(frameSize);
184 IntSize frameSize = m_source.frameSizeAtIndex(m_currentFrame);
186 return frameSize;
  /packages/apps/Camera/src/com/android/camera/panorama/
PanoUtil.java 46 final int frameSize = width * height;
49 int uvp = frameSize + (j >> 1) * width, u = 0, v = 0;
  /external/proguard/src/proguard/gui/splash/
SplashPanel.java 208 Dimension frameSize = frame.getSize();
209 frame.setLocation((screenSize.width - frameSize.width) / 2,
210 (screenSize.height - frameSize.height) / 2);
  /packages/apps/Camera/jni/
feature_mos_jni.cpp 211 int frameSize = width * height;
214 ImageType ovp = yvu24+frameSize;
215 ImageType oup = yvu24+frameSize+frameSize;
220 int uvp = frameSize + (j >> 1) * width;
242 int frameSize = width * height;
245 ImageType ovp = yvu24 + frameSize;
246 ImageType oup = yvu24 + frameSize + frameSize;
248 memcpy(yvu24, yuv420sp, frameSize * sizeof(unsigned char))
    [all...]
  /external/speex/libspeex/
modes.h 118 int frameSize; /**< Size of frames used for encoding */
137 int frameSize; /**< Size of frames used for encoding */
nb_celp.c 132 st->frameSize = mode->frameSize;
133 st->nbSubframes=mode->frameSize/mode->subframeSize;
135 st->windowSize = st->frameSize+st->subframeSize;
159 st->winBuf = (spx_word16_t*)speex_alloc((st->windowSize-st->frameSize)*sizeof(spx_word16_t));
161 st->excBuf = (spx_word16_t*)speex_alloc((mode->frameSize+mode->pitchEnd+2)*sizeof(spx_word16_t));
163 st->swBuf = (spx_word16_t*)speex_alloc((mode->frameSize+mode->pitchEnd+2)*sizeof(spx_word16_t));
295 SPEEX_MOVE(st->excBuf, st->excBuf+st->frameSize, st->max_pitch+2);
296 SPEEX_MOVE(st->swBuf, st->swBuf+st->frameSize, st->max_pitch+2);
299 highpass(in, in, st->frameSize, (st->isWideband?HIGHPASS_WIDEBAND:HIGHPASS_NARROWBAND)|HIGHPASS_INPUT, st->mem_hp)
    [all...]
nb_celp.h 53 int frameSize; /**< Size of frames */
127 int frameSize; /**< Size of frames */
  /frameworks/base/media/libstagefright/codecs/amrnb/dec/
SoftAMR.cpp 253 size_t frameSize = kFrameSizeWB[FT];
256 frameSize = (frameSize + 7) / 8 + 1;
258 return frameSize;
327 size_t frameSize = getFrameSize(mode);
328 CHECK_GE(inHeader->nFilledLen, frameSize);
353 numBytesRead = frameSize;
  /external/webkit/Source/WebKit/mac/WebView/
WebDynamicScrollBarsView.mm 293 NSSize frameSize = [self frame].size;
295 // When in HiDPI with a scale factor > 1, the visibleSize and frameSize may be non-integral values,
301 frameSize.width = ceilf(frameSize.width);
302 frameSize.height = ceilf(frameSize.height);
306 if (newHasHorizontalScroller && !_private->inUpdateScrollersLayoutPass && documentSize.height <= frameSize.height && documentSize.width <= frameSize.width)
312 if (newHasVerticalScroller && !_private->inUpdateScrollersLayoutPass && documentSize.height <= frameSize.height && documentSize.width <= frameSize.width
    [all...]
  /hardware/libhardware_legacy/include/hardware_legacy/
AudioHardwareInterface.h 72 uint32_t frameSize() const { return popcount(channels())*((format()==AUDIO_FORMAT_PCM_16_BIT)?sizeof(int16_t):sizeof(int8_t)); }
141 uint32_t frameSize() const { return AudioSystem::popCount(channels())*((format()==AudioSystem::PCM_16_BIT)?sizeof(int16_t):sizeof(int8_t)); }
  /frameworks/base/include/private/media/
AudioTrackShared.h 79 // NOTE: audio_track_cblk_t::frameSize is not equal to AudioTrack::frameSize() for
80 // 8 bit PCM data: in this case, mCblk->frameSize is based on a sample size of
83 uint8_t frameSize;
  /frameworks/media/libvideoeditor/vss/src/
M4VSS3GPP_Clip.c     [all...]

Completed in 477 milliseconds

1 2 3 4