Lines Matching defs:frame_bytes
3173 int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
3185 if (bps > 0 && ch > 0 && frame_bytes > 0 && ch < 32768 && bps < 32768)
3186 return (frame_bytes * 8LL) / (bps * ch);
3238 if (frame_bytes > 0) {
3239 /* calc from frame_bytes only */
3241 return 240 * (frame_bytes / 32);
3243 return 256 * (frame_bytes / 64);
3245 return 160 * (frame_bytes / 20);
3247 return 240 * (frame_bytes / 24);
3250 /* calc from frame_bytes and bits_per_coded_sample */
3252 return frame_bytes * 8 / bps;
3256 /* calc from frame_bytes and channels */
3259 return frame_bytes / (9 * ch) * 16;
3261 return frame_bytes / (16 * ch) * 28;
3264 return (frame_bytes - 4 * ch) * 2 / ch;
3266 return (frame_bytes - 4) * 2 / ch;
3268 return (frame_bytes - 8) * 2 / ch;
3270 return (frame_bytes / 128) * 224 / ch;
3272 return (frame_bytes - 6 - ch) / ch;
3274 return (frame_bytes - 8) / ch;
3276 return (frame_bytes - 2 * ch) / ch;
3278 return 3 * frame_bytes / ch;
3280 return 6 * frame_bytes / ch;
3282 return 2 * (frame_bytes / (5 * ch));
3285 return 4 * frame_bytes / ch;
3289 /* calc from frame_bytes, channels, and codec_tag */
3292 return frame_bytes / ch;
3294 return frame_bytes * 2 / ch;
3299 /* calc from frame_bytes, channels, and block_align */
3300 int blocks = frame_bytes / ba;
3318 /* calc from frame_bytes, channels, and bits_per_coded_sample */
3323 return 2 * (frame_bytes / ((bps * 2 / 8) * ch));
3327 return frame_bytes / ((FFALIGN(ch, 2) * bps) / 8);
3329 return 2 * (frame_bytes / ((bps + 4) / 4)) / ch;