Home
last modified time | relevance | path

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

/frameworks/av/media/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()
300 size_t frame_size; in MP3Extractor() local
305 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
306 pos += frame_size; in MP3Extractor()
315 size_t frame_size; in MP3Extractor() local
320 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
530 size_t frame_size; in read() local
548 header, &frame_size, &sample_rate, NULL, in read()
[all …]
/frameworks/av/media/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/codec2/components/mp3/
DC2SoftMp3Dec.cpp167 static bool parseMp3Header(uint32_t header, size_t *frame_size, in parseMp3Header() argument
172 *frame_size = 0; in parseMp3Header()
218 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseMp3Header()
258 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseMp3Header()
261 *frame_size = tmp * bitrate / sampling_rate + padding; in parseMp3Header()
DC2SoftMp3Dec.h25 bool parseMp3Header(uint32_t header, size_t *frame_size,
/frameworks/av/media/libstagefright/foundation/
Davc_utils.cpp632 uint32_t header, size_t *frame_size, in GetMPEGAudioFrameSize() argument
635 *frame_size = 0; in GetMPEGAudioFrameSize()
716 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in GetMPEGAudioFrameSize()
762 *frame_size = 144000 * bitrate / sampling_rate + padding; in GetMPEGAudioFrameSize()
766 *frame_size = tmp * bitrate / sampling_rate + padding; in GetMPEGAudioFrameSize()
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp900 size_t frame_size; in findMP3Header() local
904 if (GetMPEGAudioFrameSize(code, &frame_size, NULL, NULL, NULL)) { in findMP3Header()
959 size_t frame_size; in mp3FrameRead() local
963 if (!GetMPEGAudioFrameSize(header, &frame_size, in mp3FrameRead()
970 mBufferGroup->acquire_buffer(&buffer, false /* nonblocking */, frame_size /* requested size */); in mp3FrameRead()
971 buffer->set_range(0, frame_size); in mp3FrameRead()
974 ALOGV("MP3 frame %zu frame->range_length() %zu", frame_size, frame->range_length()); in mp3FrameRead()
976 if (frame_size > frame->range_length()) { in mp3FrameRead()
980 size_t needSize = frame_size - frame->range_length(); in mp3FrameRead()
1020 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,