Home
last modified time | relevance | path

Searched refs:frame_bytes (Results 1 - 8 of 8) sorted by relevance

/third_party/ffmpeg/libavcodec/
H A Dutils.c617 uint8_t * extradata, int frame_size, int frame_bytes) in get_audio_frame_duration()
620 int framecount = (ba > 0 && frame_bytes / ba > 0) ? frame_bytes / ba : 1; in get_audio_frame_duration()
623 if (bps > 0 && ch > 0 && frame_bytes > 0 && ch < 32768 && bps < 32768) in get_audio_frame_duration()
624 return (frame_bytes * 8LL) / (bps * ch); in get_audio_frame_duration()
686 if (frame_bytes > 0) { in get_audio_frame_duration()
687 /* calc from frame_bytes only */ in get_audio_frame_duration()
689 return 240 * (frame_bytes / 32); in get_audio_frame_duration()
691 return 256 * (frame_bytes / 64); in get_audio_frame_duration()
693 return 160 * (frame_bytes / 2 in get_audio_frame_duration()
615 get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba, uint32_t tag, int bits_per_coded_sample, int64_t bitrate, uint8_t * extradata, int frame_size, int frame_bytes) get_audio_frame_duration() argument
824 av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes) av_get_audio_frame_duration() argument
842 av_get_audio_frame_duration2(AVCodecParameters *par, int frame_bytes) av_get_audio_frame_duration2() argument
[all...]
H A Dopus.c98 int frame_bytes, i; in ff_opus_parse_packet() local
127 frame_bytes = end - ptr; in ff_opus_parse_packet()
128 if (frame_bytes > MAX_FRAME_SIZE) in ff_opus_parse_packet()
131 pkt->frame_size[0] = frame_bytes; in ff_opus_parse_packet()
146 frame_bytes = end - ptr; in ff_opus_parse_packet()
147 if (frame_bytes & 1 || frame_bytes >> 1 > MAX_FRAME_SIZE) in ff_opus_parse_packet()
150 pkt->frame_size[0] = frame_bytes >> 1; in ff_opus_parse_packet()
152 pkt->frame_size[1] = frame_bytes >> 1; in ff_opus_parse_packet()
160 frame_bytes in ff_opus_parse_packet()
[all...]
H A Dcodec_par.h240 int av_get_audio_frame_duration2(AVCodecParameters *par, int frame_bytes);
H A Dflacenc.c1330 int frame_bytes, out_bytes, ret; in flac_encode_frame() local
1371 frame_bytes = encode_frame(s); in flac_encode_frame()
1375 if (frame_bytes < 0 || frame_bytes > s->max_framesize) { in flac_encode_frame()
1377 frame_bytes = encode_frame(s); in flac_encode_frame()
1378 if (frame_bytes < 0) { in flac_encode_frame()
1380 return frame_bytes; in flac_encode_frame()
1384 if ((ret = ff_get_encode_buffer(avctx, avpkt, frame_bytes, 0)) < 0) in flac_encode_frame()
H A Davcodec.h3136 * @param frame_bytes size of the frame, or 0 if unknown
3140 int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes);
/third_party/skia/third_party/externals/libwebp/src/mux/
H A Dmuxedit.c100 uint8_t* frame_bytes; in CreateFrameData() local
107 frame_bytes = (uint8_t*)WebPSafeMalloc(1ULL, frame_size); in CreateFrameData()
108 if (frame_bytes == NULL) return WEBP_MUX_MEMORY_ERROR; in CreateFrameData()
110 PutLE24(frame_bytes + 0, info->x_offset / 2); in CreateFrameData()
111 PutLE24(frame_bytes + 3, info->y_offset / 2); in CreateFrameData()
113 PutLE24(frame_bytes + 6, width - 1); in CreateFrameData()
114 PutLE24(frame_bytes + 9, height - 1); in CreateFrameData()
115 PutLE24(frame_bytes + 12, info->duration); in CreateFrameData()
116 frame_bytes[15] = in CreateFrameData()
120 frame->bytes = frame_bytes; in CreateFrameData()
[all...]
/third_party/alsa-lib/test/
H A Dlatency.c420 int frame_bytes = (snd_pcm_format_physical_width(format) / 8) * channels; in readbuf() local
424 buf += r * frame_bytes; in readbuf()
440 int frame_bytes = (snd_pcm_format_physical_width(format) / 8) * channels; in writebuf() local
450 buf += r * frame_bytes; in writebuf()
/third_party/ffmpeg/libavformat/
H A Dnutenc.c227 int frame_bytes; in build_frame_code() local
231 frame_bytes = par->block_align; in build_frame_code()
234 frame_bytes = frame_size * (int64_t)par->bit_rate / (8 * par->sample_rate); in build_frame_code()
242 ft->size_mul = frame_bytes + 2; in build_frame_code()
243 ft->size_lsb = frame_bytes + pred; in build_frame_code()
245 ft->header_idx = find_header_idx(s, par, frame_bytes + pred, key_frame); in build_frame_code()

Completed in 13 milliseconds