Home
last modified time | relevance | path

Searched refs:frameSize (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DIvfReader.java108 int frameSize = mFrameSizes[frameIndex]; in readFrame() local
111 byte[] frame = new byte[frameSize]; in readFrame()
170 int frameSize = changeEndianness(mIvfFile.readInt()); in readFrameMetadata() local
172 mFrameSizes[i] = frameSize; in readFrameMetadata()
174 frameHead += FRAME_HEADER_SIZE + frameSize; in readFrameMetadata()
DAudioTrackLatencyTest.java647 int frameSize = TrackBufferSizeChecker.getFrameSize(); in testTrackBufferSize() local
648 TrackBufferSizeChecker.checkBadSize(-4 * frameSize); in testTrackBufferSize()
650 TrackBufferSizeChecker.checkSmallSize(i * frameSize); in testTrackBufferSize()
651 TrackBufferSizeChecker.checkBadSize(3 + (i * frameSize)); in testTrackBufferSize()
DAudioTrackTest.java1922 final int frameSize = AudioHelper.frameSizeFromFormat(format); in testPlayChannelIndexStreamBuffer() local
1925 final int bufferSize = frameCount * frameSize; in testPlayChannelIndexStreamBuffer()
1974 Math.min(bufferSize - written, frameSize * kBatchFrames), in testPlayChannelIndexStreamBuffer()
2056 final int frameSize = in doTestTimestamp() local
2088 ByteBuffer data = ByteBuffer.allocate(frameCount * frameSize); in doTestTimestamp()
2089 data.order(java.nio.ByteOrder.nativeOrder()).limit(frameCount * frameSize); in doTestTimestamp()
2103 framesWritten += data.limit() / frameSize; in doTestTimestamp()
2350 final int frameSize = AudioHelper.frameSizeFromFormat(format); in testVariableSpeedPlayback() local
2353 .setBufferSizeInBytes(frameCount * frameSize) in testVariableSpeedPlayback()
DAudioRecordTest.java695 final int frameSize = AudioHelper.frameSizeFromFormat(format); in testSynchronizedRecord() local
698 .setBufferSizeInBytes(frameCount * frameSize) in testSynchronizedRecord()
912 final int frameSize = in createAudioRecord() local
915 assertTrue(record.getBufferSizeInFrames() * frameSize >= bufferSizeInBytes); in createAudioRecord()
DVolumeShaperTest.java179 final int frameSize = AudioHelper.frameSizeFromFormat(format); in createSineAudioTrack() local
183 .setBufferSizeInBytes(frameCount * frameSize) in createSineAudioTrack()
DVpxCodecTestBase.java1599 int frameSize = params.frameWidth * params.frameHeight * 3 / 2; in encodeSimulcast() local
1600 srcFrame[i] = new byte[frameSize]; in encodeSimulcast()
/cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/
Dfifo.c28 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, in audio_utils_fifo_init() argument
32 ALOG_ASSERT(fifo != NULL && frameCount > 0 && frameSize > 0 && buffer != NULL); in audio_utils_fifo_init()
36 fifo->mFrameSize = frameSize; in audio_utils_fifo_init()
Dfifo.h54 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize,
/cts/tests/tests/media/libaudiojni/
Daudio-track-native.cpp383 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioTrackNative_nativeTest() local
387 void *buffer = calloc(framesPerBuffer * numBuffers, frameSize); in Java_android_media_cts_AudioTrackNative_nativeTest()
393 track.write((char *)buffer + i * (framesPerBuffer * frameSize), in Java_android_media_cts_AudioTrackNative_nativeTest()
394 framesPerBuffer * frameSize); in Java_android_media_cts_AudioTrackNative_nativeTest()
Daudio-record-native.cpp445 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioRecordNative_nativeTest() local
449 void *buffer = calloc(framesPerBuffer * numBuffers, frameSize); in Java_android_media_cts_AudioRecordNative_nativeTest()
458 size_t size = framesPerBuffer * numBuffers * frameSize; in Java_android_media_cts_AudioRecordNative_nativeTest()
/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiViewTest.java496 Size frameSize = null; in testSharedSurfaceYUVImageReaderSwitch() local
502 frameSize = yuvSizes[0]; in testSharedSurfaceYUVImageReaderSwitch()
508 if ((yuvFormat != -1) && (frameSize.getWidth() > 0) && in testSharedSurfaceYUVImageReaderSwitch()
509 (frameSize.getHeight() > 0)) { in testSharedSurfaceYUVImageReaderSwitch()
511 frameSize); in testSharedSurfaceYUVImageReaderSwitch()
524 Size frameSize) throws Exception { in testSharedSurfaceYUVImageReaderSwitch() argument
536 imageReaders[i] = ImageReader.newInstance(frameSize.getWidth(), frameSize.getHeight(), in testSharedSurfaceYUVImageReaderSwitch()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java803 Size frameSize = videoDecoder.getSize(); in analyzeVideo() local
805 if (frameSize.width != meta.frameWidth || frameSize.height != meta.frameHeight) { in analyzeVideo()
817 Mat camMat = cameraMatrix(fc, new Size(frameSize.width/2, frameSize.height/2)); in analyzeVideo()
889 if (error < REPROJECTION_THREASHOLD_RATIO * frameSize.height) { in analyzeVideo()
/cts/apps/CtsVerifier/jni/audio_loopback/
Dsles.cpp320 size_t frameSize = pSles->channels * sizeof(short); in slesCreateServer() local
323 audio_utils_fifo_init(&(pSles->fifo), FIFO_FRAMES, frameSize, pSles->fifoBuffer); in slesCreateServer()
337 audio_utils_fifo_init(&(pSles->fifo2), FIFO2_FRAMES, frameSize, pSles->fifo2Buffer); in slesCreateServer()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...