Home
last modified time | relevance | path

Searched refs:num_frames (Results 1 – 25 of 63) sorted by relevance

123

/third_party/ffmpeg/libavformat/
Drtpenc_xiph.c79 av_assert1(s->num_frames <= s->max_frames_per_packet); in ff_rtp_send_xiph()
80 if (s->num_frames > 0 && in ff_rtp_send_xiph()
82 s->num_frames == s->max_frames_per_packet || in ff_rtp_send_xiph()
87 s->num_frames = 0; in ff_rtp_send_xiph()
91 if (0 == s->num_frames) in ff_rtp_send_xiph()
93 s->num_frames++; in ff_rtp_send_xiph()
97 *q++ = s->num_frames; in ff_rtp_send_xiph()
99 if (s->num_frames > 1) in ff_rtp_send_xiph()
108 } else if (s->num_frames) { in ff_rtp_send_xiph()
115 s->num_frames = 0; in ff_rtp_send_xiph()
Drtpenc_amr.c40 if (s->num_frames && in ff_rtp_send_amr()
41 (s->num_frames == s->max_frames_per_packet || in ff_rtp_send_amr()
45 int header_size = s->num_frames + 1; in ff_rtp_send_amr()
52 s->num_frames = 0; in ff_rtp_send_amr()
55 if (!s->num_frames) { in ff_rtp_send_amr()
61 s->buf[1 + s->num_frames - 1] |= 0x80; in ff_rtp_send_amr()
65 s->buf[1 + s->num_frames++] = buff[0] & 0x7C; in ff_rtp_send_amr()
Drtpenc_aac.c43 if (s->num_frames && in ff_rtp_send_aac()
44 (s->num_frames == s->max_frames_per_packet || in ff_rtp_send_aac()
48 int au_size = s->num_frames * 2; in ff_rtp_send_aac()
59 s->num_frames = 0; in ff_rtp_send_aac()
61 if (s->num_frames == 0) { in ff_rtp_send_aac()
67 p = s->buf + s->num_frames++ * 2 + 2; in ff_rtp_send_aac()
Dargo_brp.c61 uint32_t num_frames; member
68 uint32_t num_frames; member
216 bvid->num_frames = AV_RL32(buf + 0); in argo_brp_read_header()
221 if (bvid->num_frames == 0) in argo_brp_read_header()
232 st->nb_frames = bvid->num_frames; in argo_brp_read_header()
259 mask->num_frames = AV_RL32(buf + 0); in argo_brp_read_header()
263 st->nb_frames = mask->num_frames; in argo_brp_read_header()
406 … pkt->duration = av_rescale_rnd(1, st->duration, shdr->extradata.bvid.num_frames, AV_ROUND_UP); in argo_brp_read_packet()
Drtpenc.c491 if (s->num_frames > 0 && in rtp_send_ilbc()
495 s->num_frames = 0; in rtp_send_ilbc()
498 if (!s->num_frames) { in rtp_send_ilbc()
504 s->num_frames++; in rtp_send_ilbc()
509 if (s->num_frames == s->max_frames_per_packet) { in rtp_send_ilbc()
511 s->num_frames = 0; in rtp_send_ilbc()
/third_party/gstreamer/gstplugins_base/gst/audiomixer/
Dgstaudiomixer.c290 GstBuffer * outbuf, guint out_offset, guint num_frames) in gst_audiomixer_aggregate_one_buffer() argument
314 num_frames * bpf, out_offset * bpf, in_offset * bpf); in gst_audiomixer_aggregate_one_buffer()
322 num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
327 num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
332 num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
337 num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
342 num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
347 num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
352 num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
357 num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/siren/
Dgstsirenenc.c149 guint i, size, num_frames; in gst_siren_enc_handle_frame() local
170 num_frames = size / 640; in gst_siren_enc_handle_frame()
174 in_size = num_frames * 640; in gst_siren_enc_handle_frame()
176 out_size = num_frames * 40; in gst_siren_enc_handle_frame()
178 GST_LOG_OBJECT (enc, "we have %u frames, %u in, %u out", num_frames, in_size, in gst_siren_enc_handle_frame()
192 for (i = 0; i < num_frames; i++) { in gst_siren_enc_handle_frame()
193 GST_LOG_OBJECT (enc, "Encoding frame %u/%u", i, num_frames); in gst_siren_enc_handle_frame()
Dgstsirendec.c171 guint i, size, num_frames; in gst_siren_dec_handle_frame() local
189 num_frames = size / 40; in gst_siren_dec_handle_frame()
193 in_size = num_frames * 40; in gst_siren_dec_handle_frame()
195 out_size = num_frames * 640; in gst_siren_dec_handle_frame()
197 GST_LOG_OBJECT (dec, "we have %u frames, %u in, %u out", num_frames, in_size, in gst_siren_dec_handle_frame()
211 for (i = 0; i < num_frames; i++) { in gst_siren_dec_handle_frame()
212 GST_LOG_OBJECT (dec, "Decoding frame %u/%u", i, num_frames); in gst_siren_dec_handle_frame()
/third_party/flutter/skia/third_party/externals/libwebp/examples/
Danim_diff.c79 for (i = 1; i < img->num_frames; ++i) { in MinimizeAnimationFrames()
97 if (i + 1 < img->num_frames) { in MinimizeAnimationFrames()
99 (img->num_frames - i - 1) * sizeof(*img->frames)); in MinimizeAnimationFrames()
101 --img->num_frames; in MinimizeAnimationFrames()
136 const int is_multi_frame_image = (img1->num_frames > 1); in CompareAnimatedImagePair()
143 ok = CompareValues(img1->num_frames, img2->num_frames, in CompareAnimatedImagePair()
164 for (i = 0; i < img1->num_frames; ++i) { in CompareAnimatedImagePair()
Dwebpmux.c1030 int num_frames; in Process() local
1033 err = WebPMuxNumChunks(mux, WEBP_CHUNK_ANMF, &num_frames); in Process()
1038 if (num_frames == 0) { in Process()
1048 durations = (int*)malloc((size_t)num_frames * sizeof(*durations)); in Process()
1050 for (i = 0; i < num_frames; ++i) durations[i] = -1; in Process()
1068 end = num_frames; in Process()
1073 } else if (start > num_frames) { in Process()
1074 start = num_frames; in Process()
1077 if (end == 0 || end > num_frames) end = num_frames; in Process()
1081 assert(k >= 1 && k <= num_frames); in Process()
[all …]
Danim_util.c51 static int AllocateFrames(AnimatedImage* const image, uint32_t num_frames) { in AllocateFrames() argument
57 const uint64_t total_size = (uint64_t)num_frames * rgba_size * sizeof(*mem); in AllocateFrames()
58 const uint64_t total_frame_size = (uint64_t)num_frames * sizeof(*frames); in AllocateFrames()
72 image->num_frames = num_frames; in AllocateFrames()
74 for (i = 0; i < num_frames; ++i) { in AllocateFrames()
87 image->num_frames = 0; in ClearAnimatedImage()
/third_party/skia/third_party/externals/libwebp/examples/
Danim_diff.c79 for (i = 1; i < img->num_frames; ++i) { in MinimizeAnimationFrames()
97 if (i + 1 < img->num_frames) { in MinimizeAnimationFrames()
99 (img->num_frames - i - 1) * sizeof(*img->frames)); in MinimizeAnimationFrames()
101 --img->num_frames; in MinimizeAnimationFrames()
136 const int is_multi_frame_image = (img1->num_frames > 1); in CompareAnimatedImagePair()
143 ok = CompareValues(img1->num_frames, img2->num_frames, in CompareAnimatedImagePair()
164 for (i = 0; i < img1->num_frames; ++i) { in CompareAnimatedImagePair()
Dwebpmux.c1065 int num_frames; in Process() local
1068 err = WebPMuxNumChunks(mux, WEBP_CHUNK_ANMF, &num_frames); in Process()
1073 if (num_frames == 0) { in Process()
1083 durations = (int*)WebPMalloc((size_t)num_frames * sizeof(*durations)); in Process()
1085 for (i = 0; i < num_frames; ++i) durations[i] = -1; in Process()
1103 end = num_frames; in Process()
1108 } else if (start > num_frames) { in Process()
1109 start = num_frames; in Process()
1112 if (end == 0 || end > num_frames) end = num_frames; in Process()
1116 assert(k >= 1 && k <= num_frames); in Process()
[all …]
Danim_util.c51 static int AllocateFrames(AnimatedImage* const image, uint32_t num_frames) { in AllocateFrames() argument
57 const uint64_t total_size = (uint64_t)num_frames * rgba_size * sizeof(*mem); in AllocateFrames()
58 const uint64_t total_frame_size = (uint64_t)num_frames * sizeof(*frames); in AllocateFrames()
72 image->num_frames = num_frames; in AllocateFrames()
74 for (i = 0; i < num_frames; ++i) { in AllocateFrames()
87 image->num_frames = 0; in ClearAnimatedImage()
/third_party/skia/third_party/externals/angle2/src/tests/restricted_traces/
Dretrace_restricted_traces.py162 num_frames = get_num_frames(trace)
167 max_steps = min(args.limit, num_frames) if args.limit else num_frames
175 'ANGLE_CAPTURE_FRAME_END': str(num_frames + 1),
199 print('Capturing "%s" (%d frames)...' % (trace, num_frames))
/third_party/gstreamer/gstplugins_good/gst/level/
Dgstlevel.c516 filter->num_frames = 0; in gst_level_start()
618 guint num_frames; in gst_level_transform_ip() local
648 filter->num_frames = 0; in gst_level_transform_ip()
654 num_frames = num_int_samples / channels; in gst_level_transform_ip()
655 while (num_frames > 0) { in gst_level_transform_ip()
656 block_size = filter->interval_frames - filter->num_frames; in gst_level_transform_ip()
657 block_size = MIN (block_size, num_frames); in gst_level_transform_ip()
673 filter->decay_peak_age[i] += GST_FRAMES_TO_CLOCK_TIME (num_frames, rate); in gst_level_transform_ip()
720 filter->num_frames += block_size; in gst_level_transform_ip()
721 num_frames -= block_size; in gst_level_transform_ip()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/sbc/
Dgstsbcdec.c74 guint num_frames, i; in gst_sbc_dec_handle_frame() local
91 num_frames = in_map.size / dec->frame_len; in gst_sbc_dec_handle_frame()
92 output_size = num_frames * dec->samples_per_frame * sizeof (gint16); in gst_sbc_dec_handle_frame()
101 for (i = 0; i < num_frames; ++i) { in gst_sbc_dec_handle_frame()
/third_party/gstreamer/gstplugins_bad/ext/openaptx/
Dgstopenaptxdec.c77 guint num_frames; in gst_openaptx_dec_handle_frame() local
100 num_frames = input_size / frame_len; in gst_openaptx_dec_handle_frame()
104 ++num_frames; in gst_openaptx_dec_handle_frame()
106 output_size = num_frames * APTX_SAMPLES_PER_FRAME * APTX_SAMPLE_SIZE; in gst_openaptx_dec_handle_frame()
/third_party/gstreamer/gstplugins_good/gst/spectrum/
Dgstspectrum.c261 spectrum->num_frames = 0; in gst_spectrum_flush()
856 if (spectrum->num_frames == 0) in gst_spectrum_transform_ip()
864 fft_todo = nfft - (spectrum->num_frames % nfft); in gst_spectrum_transform_ip()
865 msg_todo = spectrum->frames_todo - spectrum->num_frames; in gst_spectrum_transform_ip()
885 spectrum->num_frames += block_size; in gst_spectrum_transform_ip()
887 have_full_interval = (spectrum->num_frames == spectrum->frames_todo); in gst_spectrum_transform_ip()
891 (spectrum->num_frames % nfft == 0), have_full_interval); in gst_spectrum_transform_ip()
895 if ((spectrum->num_frames % nfft == 0) || in gst_spectrum_transform_ip()
908 spectrum->num_frames, spectrum->frames_per_interval, in gst_spectrum_transform_ip()
934 gst_util_uint64_scale (spectrum->num_frames, GST_SECOND, rate); in gst_spectrum_transform_ip()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/videoframe_audiolevel/
Dgstvideoframe-audiolevel.c448 guint num_frames, frames; in update_rms_from_buffer() local
474 num_frames = num_int_samples / channels; in update_rms_from_buffer()
475 frames = num_frames; in update_rms_from_buffer()
477 if (num_frames > 0) { in update_rms_from_buffer()
485 in_data += num_frames * bps; in update_rms_from_buffer()
487 self->total_frames += num_frames; in update_rms_from_buffer()
684 guint num_frames = in gst_videoframe_audiolevel_asink_chain() local
686 bytes = num_frames * GST_AUDIO_INFO_BPF (&self->ainfo); in gst_videoframe_audiolevel_asink_chain()
699 self->total_frames += num_frames; in gst_videoframe_audiolevel_asink_chain()
/third_party/libunwind/include/
Dlibunwind-dynamic.h197 #define _U_dyn_op_pop_frames(op, qp, when, num_frames) \ argument
198 (*(op) = _U_dyn_op (UNW_DYN_POP_FRAMES, (qp), (when), 0, (num_frames)))
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Dgstaudioaggregator.h205 guint num_frames);
208 GstBuffer * outbuf, guint out_offset, guint num_frames);
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Drawaudioparse.c186 guint i, num_frames; in push_data_and_check_output() local
192 num_frames = map_info.size / bpf; in push_data_and_check_output()
195 for (i = 0; i < num_frames; ++i) { in push_data_and_check_output()
/third_party/gstreamer/gstreamer/tools/
Dgst-launch.c168 guint num_frames;
195 s->num_frames = s->num_keyframes = s->num_dltframes = 0;
242 s->avg_keyframe_gap = (d + s->num_frames * s->avg_keyframe_gap) /
243 (s->num_frames + 1);
257 s->num_frames++;
280 if (s->num_frames) {
293 gst_print (" frame/keyframe rate = %u / %u = ", s->num_frames,
296 gst_print ("%lf\n", s->num_frames / (gdouble) s->num_keyframes);
/third_party/gstreamer/gstplugins_bad/tests/examples/codecparsers/
Dparse-vp8.c48 guint32 num_frames; member
94 if (!gst_byte_reader_get_uint32_le (&br, &ivf_hdr->num_frames)) in parse_ivf_file_header()
106 g_print (" %-32s : %u\n", "num_frames", ivf_hdr->num_frames); in parse_ivf_file_header()

123