Home
last modified time | relevance | path

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

12

/hardware/google/av/media/sfplugin/
DSkipCutBuffer.cpp38 size_t frameSize = num16BitChannels * 2; in SkipCutBuffer() local
39 if (skip > INT32_MAX / frameSize || cut > INT32_MAX / frameSize in SkipCutBuffer()
40 || cut * frameSize > INT32_MAX - 4096) { in SkipCutBuffer()
45 skip *= frameSize; in SkipCutBuffer()
46 cut *= frameSize; in SkipCutBuffer()
/hardware/interfaces/camera/device/3.4/default/
DExternalCameraDevice.cpp872 v4l2_frmsizeenum frameSize { in getCandidateSupportedFormatsLocked() local
875 for (; TEMP_FAILURE_RETRY(ioctl(fd, VIDIOC_ENUM_FRAMESIZES, &frameSize)) == 0; in getCandidateSupportedFormatsLocked()
876 ++frameSize.index) { in getCandidateSupportedFormatsLocked()
877 if (frameSize.type == V4L2_FRMSIZE_TYPE_DISCRETE) { in getCandidateSupportedFormatsLocked()
878 ALOGV("index:%d, format:%c%c%c%c, w %d, h %d", frameSize.index, in getCandidateSupportedFormatsLocked()
883 frameSize.discrete.width, frameSize.discrete.height); in getCandidateSupportedFormatsLocked()
886 if (frameSize.discrete.height > frameSize.discrete.width) { in getCandidateSupportedFormatsLocked()
890 if (frameSize.discrete.width < minStreamSize.width in getCandidateSupportedFormatsLocked()
891 || frameSize.discrete.height < minStreamSize.height) { in getCandidateSupportedFormatsLocked()
895 .width = frameSize.discrete.width, in getCandidateSupportedFormatsLocked()
[all …]
/hardware/google/av/media/codecs/amr_nb_wb/
DC2SoftAmrDec.cpp231 size_t frameSize = getFrameSize(isWide, FM); in calculateNumFrames() local
232 if (frameSize == 0) { in calculateNumFrames()
235 if ((inSize - k) >= frameSize) { in calculateNumFrames()
236 input += frameSize; in calculateNumFrames()
237 k += frameSize; in calculateNumFrames()
240 frameSizeList->push_back(frameSize); in calculateNumFrames()
/hardware/google/av/media/eco/tests/
DEcoSessionTest.cpp310 int32_t frameSize; in TEST_F() local
311 EXPECT_TRUE(info.findInt32(FRAME_SIZE_BYTES, &frameSize) == ECODataStatus::OK); in TEST_F()
312 EXPECT_EQ(frameSize, 56); in TEST_F()
347 EXPECT_TRUE(info.findInt32(FRAME_SIZE_BYTES, &frameSize) == ECODataStatus::OK); in TEST_F()
348 EXPECT_EQ(frameSize, 56); in TEST_F()
383 EXPECT_TRUE(info.findInt32(FRAME_SIZE_BYTES, &frameSize) == ECODataStatus::OK); in TEST_F()
384 EXPECT_EQ(frameSize, 56); in TEST_F()
407 EXPECT_TRUE(info.findInt32(FRAME_SIZE_BYTES, &frameSize) == ECODataStatus::OK); in TEST_F()
408 EXPECT_EQ(frameSize, 56); in TEST_F()
/hardware/google/av/media/codecs/aac/
DC2SoftAacDec.cpp444 >= mStreamInfo->frameSize * mStreamInfo->numChannels) { in drainRingBuffer()
451 int numSamples = numFrames * (mStreamInfo->frameSize * mStreamInfo->numChannels); in drainRingBuffer()
664 (mStreamInfo->frameSize * mStreamInfo->numChannels)) { in process()
696 mStreamInfo->frameSize * sizeof(int16_t) * mStreamInfo->numChannels; in process()
700 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in process()
711 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in process()
854 if (avail > mStreamInfo->frameSize * mStreamInfo->numChannels) { in onFlush_sm()
855 avail = mStreamInfo->frameSize * mStreamInfo->numChannels; in onFlush_sm()
887 int32_t tmpOutBufferSamples = mStreamInfo->frameSize * mStreamInfo->numChannels; in drainDecoder()
/hardware/interfaces/audio/core/all-versions/default/
DStreamOut.cpp325 Return<void> StreamOut::prepareForWriting(uint32_t frameSize, uint32_t framesCount, in prepareForWriting() argument
345 if (frameSize == 0 || framesCount == 0) { in prepareForWriting()
346 ALOGE("Null frameSize (%u) or framesCount (%u)", frameSize, framesCount); in prepareForWriting()
350 if (frameSize > Stream::MAX_BUFFER_SIZE / framesCount) { in prepareForWriting()
351 ALOGE("Buffer too big: %u*%u bytes > MAX_BUFFER_SIZE (%u)", frameSize, framesCount, in prepareForWriting()
356 std::unique_ptr<DataMQ> tempDataMQ(new DataMQ(frameSize * framesCount, true /* EventFlag */)); in prepareForWriting()
DStreamIn.cpp340 Return<void> StreamIn::prepareForReading(uint32_t frameSize, uint32_t framesCount, in prepareForReading() argument
360 if (frameSize == 0 || framesCount == 0) { in prepareForReading()
361 ALOGE("Null frameSize (%u) or framesCount (%u)", frameSize, framesCount); in prepareForReading()
366 if (frameSize > Stream::MAX_BUFFER_SIZE / framesCount) { in prepareForReading()
367 ALOGE("Buffer too big: %u*%u bytes > MAX_BUFFER_SIZE (%u)", frameSize, framesCount, in prepareForReading()
372 std::unique_ptr<DataMQ> tempDataMQ(new DataMQ(frameSize * framesCount, true /* EventFlag */)); in prepareForReading()
/hardware/libhardware_legacy/include/hardware_legacy/
DAudioHardwareInterface.h71 uint32_t frameSize() const { return audio_channel_count_from_out_mask(channels())* in frameSize() function
153 uint32_t frameSize() const { return audio_channel_count_from_in_mask(channels())* in frameSize() function
/hardware/interfaces/audio/core/all-versions/default/include/core/default/
DStream.h128 Return<void> createMmapBuffer(int32_t minSizeFrames, size_t frameSize,
153 Return<void> StreamMmap<T>::createMmapBuffer(int32_t minSizeFrames, size_t frameSize, in createMmapBuffer() argument
173 hidl_memory("audio_buffer", hidlHandle, frameSize * halInfo.buffer_size_frames); in createMmapBuffer()
DStreamIn.h103 Return<void> prepareForReading(uint32_t frameSize, uint32_t framesCount,
DStreamOut.h103 Return<void> prepareForWriting(uint32_t frameSize, uint32_t framesCount,
/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/
DAudioPrimaryHidlHalTest.cpp81 size_t frameSize = stream->getFrameSize(); in TEST_P() local
82 size_t frameCount = stream->getBufferSize() / frameSize; in TEST_P()
84 frameSize, frameCount, [&](auto r, auto& c, auto& d, auto&, auto&) { in TEST_P()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/
Ddecoder_driver_test.c1095 long frameSize=0; in Read_Buffer_From_DAT_File() local
1119 frameSize = atoi(inputFrameSize); in Read_Buffer_From_DAT_File()
1121 DEBUG_PRINT ("\n Frame Size is %ld",frameSize); in Read_Buffer_From_DAT_File()
1125 bytes_read = fread(dataptr, 1, frameSize, inputBufferFile); in Read_Buffer_From_DAT_File()
1127 if (bytes_read == 0 || bytes_read < frameSize ) { in Read_Buffer_From_DAT_File()
Domx_vdec_test.cpp557 int frameSize; in process_current_command() local
1979 int frameSize=0; in Play_Decoder() local
2381 frameSize = Read_Buffer_From_RCV_File_Seq_Layer(pInputBufHdrs[0]); in Play_Decoder()
2382 pInputBufHdrs[0]->nFilledLen = frameSize; in Play_Decoder()
2384 "frameSize %d\n", frameSize); in Play_Decoder()
2422 if ((frameSize = Read_Buffer(pInputBufHdrs[i])) <= 0 ) { in Play_Decoder()
2424 pInputBufHdrs[i]->nFilledLen = frameSize; in Play_Decoder()
2434 pInputBufHdrs[i]->nFilledLen = frameSize; in Play_Decoder()
2828 long frameSize=0; in Read_Buffer_From_DAT_File() local
2852 frameSize = atoi(inputFrameSize); in Read_Buffer_From_DAT_File()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/
Ddecoder_driver_test.c1166 long frameSize=0; in Read_Buffer_From_DAT_File() local
1186 frameSize = atoi(inputFrameSize); in Read_Buffer_From_DAT_File()
1188 DEBUG_PRINT ("\n Frame Size is %d",frameSize); in Read_Buffer_From_DAT_File()
1192 bytes_read = fread(dataptr, 1, frameSize, inputBufferFile); in Read_Buffer_From_DAT_File()
1194 if(bytes_read == 0 || bytes_read < frameSize ) { in Read_Buffer_From_DAT_File()
Domx_vdec_test.cpp420 int frameSize; in process_current_command() local
1771 int frameSize=0; in Play_Decoder() local
2122 frameSize = Read_Buffer_From_RCV_File_Seq_Layer(pInputBufHdrs[0]); in Play_Decoder()
2123 pInputBufHdrs[0]->nFilledLen = frameSize; in Play_Decoder()
2125 "frameSize %d\n", frameSize); in Play_Decoder()
2168 if((frameSize = Read_Buffer(pInputBufHdrs[i])) <= 0 ){ in Play_Decoder()
2170 pInputBufHdrs[i]->nFilledLen = frameSize; in Play_Decoder()
2180 pInputBufHdrs[i]->nFilledLen = frameSize; in Play_Decoder()
2587 long frameSize=0; in Read_Buffer_From_DAT_File() local
2610 frameSize = atoi(inputFrameSize); in Read_Buffer_From_DAT_File()
[all …]
/hardware/google/av/media/codecs/mp3/
DC2SoftMp3Dec.cpp292 size_t frameSize; in calculateOutSize() local
296 if (!parseMp3Header(U32_AT(header + totalInSize), &frameSize, in calculateOutSize()
301 totalInSize += frameSize; in calculateOutSize()
/hardware/libhardware_legacy/audio/
DA2dpAudioInterface.h90 …virtual uint32_t latency() const { return ((1000*bufferSize())/frameSize())/sampleRate() + 200;… in latency()
DAudioDumpInterface.cpp286 usleep((((bytes * 1000) / frameSize()) / sampleRate()) * 1000); in write()
457 usleep((((bytes * 1000) / frameSize()) / sampleRate()) * 1000); in read()
/hardware/interfaces/audio/2.0/
DIStreamIn.hal100 * @param frameSize the size of a single frame, in bytes.
114 prepareForReading(uint32_t frameSize, uint32_t framesCount)
DIStream.hal28 * @return frameSize frame size in bytes.
30 getFrameSize() generates (uint64_t frameSize);
DIStreamOut.hal94 * @param frameSize the size of a single frame, in bytes.
107 prepareForWriting(uint32_t frameSize, uint32_t framesCount)
/hardware/interfaces/audio/4.0/
DIStreamIn.hal106 * @param frameSize the size of a single frame, in bytes.
120 prepareForReading(uint32_t frameSize, uint32_t framesCount)
/hardware/interfaces/audio/6.0/
DIStreamIn.hal106 * @param frameSize the size of a single frame, in bytes.
120 prepareForReading(uint32_t frameSize, uint32_t framesCount)
/hardware/interfaces/audio/5.0/
DIStreamIn.hal106 * @param frameSize the size of a single frame, in bytes.
120 prepareForReading(uint32_t frameSize, uint32_t framesCount)

12