Home
last modified time | relevance | path

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

/frameworks/av/media/module/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/libs/binary_translation/backend/include/berberis/backend/
Dcode_emitter.h48 CodeEmitter(MachineCode* mc, uint32_t frame_size) in CodeEmitter() argument
50 frame_size_{frame_size}, in CodeEmitter()
55 CodeEmitter(MachineCode* mc, uint32_t frame_size, size_t max_ids, Arena* arena) in CodeEmitter() argument
57 frame_size_{frame_size}, in CodeEmitter()
74 [[nodiscard]] uint32_t frame_size() const { return frame_size_; } in frame_size() function
/frameworks/libs/binary_translation/code_gen_lib/include/berberis/code_gen_lib/
Dcode_gen_lib.h35 void EmitAllocStackFrame(Assembler* as, uint32_t frame_size);
36 void EmitFreeStackFrame(Assembler* as, uint32_t frame_size);
49 void EmitAllocStackFrame(x86_64::Assembler* as, uint32_t frame_size);
50 void EmitFreeStackFrame(x86_64::Assembler* as, uint32_t frame_size);
/frameworks/av/media/module/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/module/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/libs/binary_translation/code_gen_lib/
Dcode_gen_lib_riscv64_to_x86_64.cc182 void EmitAllocStackFrame(x86_64::Assembler* as, uint32_t frame_size) { in EmitAllocStackFrame() argument
183 if (frame_size > config::kFrameSizeAtTranslatedCode) { in EmitAllocStackFrame()
184 uint32_t extra_size = AlignUp(frame_size - config::kFrameSizeAtTranslatedCode, in EmitAllocStackFrame()
190 void EmitFreeStackFrame(x86_64::Assembler* as, uint32_t frame_size) { in EmitFreeStackFrame() argument
191 if (frame_size > config::kFrameSizeAtTranslatedCode) { in EmitFreeStackFrame()
192 uint32_t extra_size = AlignUp(frame_size - config::kFrameSizeAtTranslatedCode, in EmitFreeStackFrame()
/frameworks/av/media/module/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/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/module/codecs/mp3dec/src/
Dpvmp3_framedecoder.cpp159 uint32_t header, size_t *frame_size, in parseHeader() argument
162 *frame_size = 0; in parseHeader()
241 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseHeader()
287 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseHeader()
291 *frame_size = tmp * bitrate / sampling_rate + padding; in parseHeader()
/frameworks/libs/binary_translation/backend/x86_64/
Dcode_emit.cc262 EmitFreeStackFrame(as, as->frame_size()); in Emit()
288 EmitFreeStackFrame(as, as->frame_size()); in Emit()
326 EmitAllocStackFrame(as, as->frame_size()); in Emit()
/frameworks/av/media/module/foundation/include/media/stagefright/foundation/
Davc_utils.h99 uint32_t header, size_t *frame_size,
/frameworks/av/media/module/extractors/mkv/
DMatroskaExtractor.cpp906 size_t frame_size; in findMP3Header() local
910 if (GetMPEGAudioFrameSize(code, &frame_size, NULL, NULL, NULL)) { in findMP3Header()
965 size_t frame_size; in mp3FrameRead() local
969 if (!GetMPEGAudioFrameSize(header, &frame_size, in mp3FrameRead()
976 mBufferGroup->acquire_buffer(&buffer, false /* nonblocking */, frame_size /* requested size */); in mp3FrameRead()
977 buffer->set_range(0, frame_size); in mp3FrameRead()
980 ALOGV("MP3 frame %zu frame->range_length() %zu", frame_size, frame->range_length()); in mp3FrameRead()
982 if (frame_size > frame->range_length()) { in mp3FrameRead()
986 size_t needSize = frame_size - frame->range_length(); in mp3FrameRead()
1026 memcpy(data, (uint8_t*)(frame->data()) + offset, frame_size); in mp3FrameRead()
[all …]