Home
last modified time | relevance | path

Searched refs:frameSize (Results 1 – 15 of 15) 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.java648 int frameSize = TrackBufferSizeChecker.getFrameSize(); in testTrackBufferSize() local
649 TrackBufferSizeChecker.checkBadSize(-4 * frameSize); in testTrackBufferSize()
651 TrackBufferSizeChecker.checkSmallSize(i * frameSize); in testTrackBufferSize()
652 TrackBufferSizeChecker.checkBadSize(3 + (i * frameSize)); in testTrackBufferSize()
DAudioTrackTest.java2002 final int frameSize = AudioHelper.frameSizeFromFormat(format); in testPlayChannelIndexStreamBuffer() local
2005 final int bufferSize = frameCount * frameSize; in testPlayChannelIndexStreamBuffer()
2054 Math.min(bufferSize - written, frameSize * kBatchFrames), in testPlayChannelIndexStreamBuffer()
2136 final int frameSize = in doTestTimestamp() local
2174 final ByteBuffer data = ByteBuffer.allocate(frameCount * frameSize); in doTestTimestamp()
2175 data.order(java.nio.ByteOrder.nativeOrder()).limit(frameCount * frameSize); in doTestTimestamp()
2189 framesWritten += data.limit() / frameSize; in doTestTimestamp()
2383 final int frameSize = AudioHelper.frameSizeFromFormat(format); in testVariableSpeedPlayback() local
2386 .setBufferSizeInBytes(frameCount * frameSize) in testVariableSpeedPlayback()
DAudioRecordTest.java715 final int frameSize = AudioHelper.frameSizeFromFormat(format); in testSynchronizedRecord() local
718 .setBufferSizeInBytes(frameCount * frameSize) in testSynchronizedRecord()
1052 final int frameSize = in createAudioRecord() local
1055 assertTrue(record.getBufferSizeInFrames() * frameSize >= bufferSizeInBytes); in createAudioRecord()
DVolumeShaperTest.java178 final int frameSize = AudioHelper.frameSizeFromFormat(format); in createSineAudioTrack() local
182 .setBufferSizeInBytes(frameCount * frameSize) in createSineAudioTrack()
DVpxCodecTestBase.java1622 int frameSize = params.frameWidth * params.frameHeight * 3 / 2; in encodeSimulcast() local
1623 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/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DStreamRecorder.java123 final int frameSize = in open_internal() local
125 final int bufferSizeInBytes = frameSize * 64; // Some, non-critical value in open_internal()
/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiViewTest.java516 Size frameSize = null; in testSharedSurfaceYUVImageReaderSwitch() local
522 frameSize = yuvSizes[0]; in testSharedSurfaceYUVImageReaderSwitch()
528 if ((yuvFormat != -1) && (frameSize.getWidth() > 0) && in testSharedSurfaceYUVImageReaderSwitch()
529 (frameSize.getHeight() > 0)) { in testSharedSurfaceYUVImageReaderSwitch()
531 frameSize, /*blockMaxAcquired*/ false); in testSharedSurfaceYUVImageReaderSwitch()
533 frameSize, /*blockMaxAcquired*/ true); in testSharedSurfaceYUVImageReaderSwitch()
546 Size frameSize, boolean blockMaxAcquired) throws Exception { in testSharedSurfaceYUVImageReaderSwitch() argument
558 imageReaders[i] = ImageReader.newInstance(frameSize.getWidth(), frameSize.getHeight(), in testSharedSurfaceYUVImageReaderSwitch()
/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.cpp471 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioRecordNative_nativeTest() local
475 void *buffer = calloc(framesPerBuffer * numBuffers, frameSize); in Java_android_media_cts_AudioRecordNative_nativeTest()
484 size_t size = framesPerBuffer * numBuffers * frameSize; in Java_android_media_cts_AudioRecordNative_nativeTest()
/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/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java804 Size frameSize = videoDecoder.getSize(); in analyzeVideo() local
806 if (frameSize.width != meta.frameWidth || frameSize.height != meta.frameHeight) { in analyzeVideo()
820 Mat camMat = cameraMatrix(fc, new Size(frameSize.width/2, frameSize.height/2)); in analyzeVideo()
/cts/tests/media/jni/
DNativeCodecEncoderTest.cpp110 int frameSize = ySize + uSize * 2; in convertyuv420ptoyuv420sp() local
111 int totalFrames = mInputLength / frameSize; in convertyuv420ptoyuv420sp()
123 frameBase += frameSize; in convertyuv420ptoyuv420sp()