Searched refs:audio_format (Results 1 - 11 of 11) sorted by relevance

/haiku-fatelf/src/add-ons/media/plugins/avi_reader/libOpenDML/
H A DFallbackIndex.cpp116 pts = frame[stream_index] * 1000000LL / stream->audio_format->frames_per_sec;
122 if (stream->audio_format->format_tag != 0x0001) {
124 if (stream->audio_format->block_align >= 960) {
129 frame[stream_index] += (uint64)(ceil((double)size / (double)stream->audio_format->block_align)) * stream->frames_per_sec_scale;
132 frame[stream_index] += (uint64)(ceil((double)size / (double)stream->audio_format->block_align)) * stream->audio_format->frames_per_sec / stream->audio_format->avg_bytes_per_sec;
140 sample_size = stream->audio_format->bits_per_sample * stream->audio_format->channels / 8;
H A DOpenDMLIndex.cpp170 *pts = *lastFrame * 1000000LL / stream->audio_format->frames_per_sec;
176 if (stream->audio_format->format_tag != 0x0001) {
178 if (stream->audio_format->block_align >= 960) {
183 *lastFrame += (uint64)(ceil((double)size / (double)stream->audio_format->block_align)) * stream->frames_per_sec_scale;
186 *lastFrame += (uint64)(ceil((double)size / (double)stream->audio_format->block_align)) * stream->audio_format->frames_per_sec / stream->audio_format->avg_bytes_per_sec;
194 sample_size = stream->audio_format->bits_per_sample * stream->audio_format->channels / 8;
H A DStandardIndex.cpp163 pts = frame[stream_index] * 1000000LL / stream->audio_format->frames_per_sec;
169 if (stream->audio_format->format_tag != 0x0001) {
171 if (stream->audio_format->block_align >= 960) {
176 frame[stream_index] += (uint64)(ceil((double)size / (double)stream->audio_format->block_align)) * stream->frames_per_sec_scale;
179 frame[stream_index] += (uint64)(ceil((double)size / (double)stream->audio_format->block_align)) * stream->audio_format->frames_per_sec / stream->audio_format->avg_bytes_per_sec;
187 sample_size = stream->audio_format->bits_per_sample * stream->audio_format->channels / 8;
H A DOpenDMLParser.cpp52 audio_format(NULL),
238 if (stream->audio_format->format_tag == 0x0001
250 } else if (stream->audio_format->avg_bytes_per_sec) {
251 stream->frames_per_sec_rate = stream->audio_format->avg_bytes_per_sec;
266 if (stream->audio_format->format_tag == 0x0001) { // RAW PCM
267 if (stream->audio_format->avg_bytes_per_sec) {
269 = (stream->duration * stream->audio_format->avg_bytes_per_sec)
278 stream->frames_per_sec_rate = stream->audio_format->avg_bytes_per_sec;
283 // stream->frames_per_sec_rate = stream->audio_format->frames_per_sec;
285 stream->frame_count = stream->duration * stream->audio_format
[all...]
H A DOpenDMLParser.h51 wave_format_ex* audio_format; member in class:OpenDMLStream
H A DOpenDMLFile.cpp456 if (!fParser->StreamInfo(stream_index)->audio_format)
460 return fParser->StreamInfo(stream_index)->audio_format;
/haiku-fatelf/src/add-ons/media/plugins/mp4_reader/
H A Dmp4_reader.cpp182 const AudioMetaData *audio_format = theFileReader->AudioFormat(cookie->stream); local
183 if (!audio_format) {
190 cookie->frame_count = theFileReader->GetFrameCount(cookie->stream) * audio_format->FrameSize;
192 cookie->frame_size = audio_format->FrameSize;
198 audio_format->SampleSize * audio_format->NoOfChannels / 8;
207 cookie->bytes_per_sec_rate = stream_header->rate * audio_format->SampleSize
208 * audio_format->NoOfChannels / 8;
225 if (audio_format->compression == AUDIO_NONE
226 || audio_format
553 const AudioMetaData *audio_format = theFileReader->AudioFormat(cookie->stream); local
[all...]
/haiku-fatelf/src/add-ons/media/plugins/mov_reader/
H A Dmov_reader.cpp169 const AudioMetaData *audio_format = theFileReader->AudioFormat(cookie->stream); local
170 if (!audio_format) {
176 codecID = B_BENDIAN_TO_HOST_INT32(audio_format->compression);
185 cookie->bytes_per_sec_rate = stream_header->rate * audio_format->SampleSize * audio_format->NoOfChannels / 8;
191 cookie->bytes_per_sec_rate = stream_header->rate * audio_format->SampleSize * audio_format->NoOfChannels / 8;
196 } else if (audio_format->BufferSize) {
197 cookie->bytes_per_sec_rate = audio_format->BufferSize;
199 cookie->frames_per_sec_rate = audio_format
456 const AudioMetaData *audio_format = theFileReader->AudioFormat(cookie->stream); local
[all...]
/haiku-fatelf/headers/private/audio/
H A Daudio_driver.h22 /* arg = ptr to struct audio_format */
38 typedef struct audio_format { struct
46 } audio_format; typedef in typeref:struct:audio_format
/haiku-fatelf/src/add-ons/media/plugins/avi_reader/
H A Davi_reader.cpp179 const wave_format_ex *audio_format = fFile->AudioFormat(cookie->stream); local
180 if (!audio_format) {
195 cookie->bytes_per_second = audio_format->avg_bytes_per_sec;
196 cookie->sample_size = stream_header->sample_size == 0 ? audio_format->bits_per_sample / 8 * audio_format->channels : stream_header->sample_size;
198 if (audio_format->format_tag == 0x0001) {
204 format->u.raw_audio.frame_rate = audio_format->frames_per_sec;
205 format->u.raw_audio.channel_count = audio_format->channels;
206 if (audio_format->bits_per_sample <= 8)
208 else if (audio_format
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/audio/cmedia/
H A Dcmedia_pci.h33 typedef struct audio_format cmedia_pci_audio_format;

Completed in 108 milliseconds