Lines Matching refs:format
100 /* MP3 sub format field definition : can use 11 LSBs in the same way as MP3
107 /* AMR NB/WB sub format field definition: specify frame block interleaving,
114 /* AAC sub format field definition: specify profile or bitrate for recording... */
119 /* VORBIS sub format field definition: specify quality for recording... */
124 /* Audio format consists in a main format field (upper 8 bits) and a sub format
127 * The main format indicates the main codec type. The sub format field
128 * indicates options and parameters for each format. The sub format is mainly
508 static inline bool audio_is_valid_format(audio_format_t format)
510 switch (format & AUDIO_FORMAT_MAIN_MASK) {
512 if (format != AUDIO_FORMAT_PCM_16_BIT &&
513 format != AUDIO_FORMAT_PCM_8_BIT) {
529 static inline bool audio_is_linear_pcm(audio_format_t format)
531 return ((format & AUDIO_FORMAT_MAIN_MASK) == AUDIO_FORMAT_PCM);
534 static inline size_t audio_bytes_per_sample(audio_format_t format)
538 switch (format) {