Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3reader.cpp41 uint32_t header, size_t *frame_size, in parseHeader() argument
44 *frame_size = 0; in parseHeader()
123 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseHeader()
169 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseHeader()
173 *frame_size = tmp * bitrate / sampling_rate + padding; in parseHeader()
293 size_t frame_size; in resync() local
296 header, &frame_size, in resync()
307 off64_t test_pos = pos + frame_size; in resync()
370 size_t frame_size; in init() local
371 return parseHeader(header, &frame_size, &mSampleRate, in init()
[all …]
/frameworks/av/media/extractors/mp3/
DMP3Extractor.cpp145 size_t frame_size; in Resync() local
148 header, &frame_size, in Resync()
161 off64_t test_pos = pos + frame_size; in Resync()
304 size_t frame_size; in MP3Extractor() local
309 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
310 pos += frame_size; in MP3Extractor()
319 size_t frame_size; in MP3Extractor() local
324 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
532 size_t frame_size; in read() local
550 header, &frame_size, &sample_rate, NULL, in read()
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/fuzzer/
Dmp3_dec_fuzzer.cpp31 static bool parseMp3Header(uint32_t header, size_t *frame_size, in parseMp3Header() argument
34 *frame_size = 0; in parseMp3Header()
81 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseMp3Header()
111 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseMp3Header()
114 *frame_size = tmp * bitrate / sampling_rate + padding; in parseMp3Header()
/frameworks/av/media/libstagefright/foundation/
Davc_utils.cpp619 uint32_t header, size_t *frame_size, in GetMPEGAudioFrameSize() argument
622 *frame_size = 0; in GetMPEGAudioFrameSize()
703 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in GetMPEGAudioFrameSize()
749 *frame_size = 144000 * bitrate / sampling_rate + padding; in GetMPEGAudioFrameSize()
753 *frame_size = tmp * bitrate / sampling_rate + padding; in GetMPEGAudioFrameSize()
/frameworks/av/media/codec2/components/mp3/
DC2SoftMp3Dec.cpp166 static bool parseMp3Header(uint32_t header, size_t *frame_size, in parseMp3Header() argument
171 *frame_size = 0; in parseMp3Header()
217 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseMp3Header()
257 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseMp3Header()
260 *frame_size = tmp * bitrate / sampling_rate + padding; in parseMp3Header()
DC2SoftMp3Dec.h25 bool parseMp3Header(uint32_t header, size_t *frame_size,
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp893 size_t frame_size; in findMP3Header() local
897 if (GetMPEGAudioFrameSize(code, &frame_size, NULL, NULL, NULL)) { in findMP3Header()
952 size_t frame_size; in mp3FrameRead() local
956 if (!GetMPEGAudioFrameSize(header, &frame_size, in mp3FrameRead()
963 mBufferGroup->acquire_buffer(&buffer, false /* nonblocking */, frame_size /* requested size */); in mp3FrameRead()
964 buffer->set_range(0, frame_size); in mp3FrameRead()
967 ALOGV("MP3 frame %zu frame->range_length() %zu", frame_size, frame->range_length()); in mp3FrameRead()
969 if (frame_size > frame->range_length()) { in mp3FrameRead()
973 size_t needSize = frame_size - frame->range_length(); in mp3FrameRead()
1011 memcpy(data, (uint8_t*)(frame->data()) + offset, frame_size); in mp3FrameRead()
[all …]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
Davc_utils.h99 uint32_t header, size_t *frame_size,