Home
last modified time | relevance | path

Searched refs:inbuf (Results 1 – 25 of 188) sorted by relevance

12345678

/third_party/gstreamer/gstplugins_good/tests/check/elements/
Dqtdemux.c181 GstBuffer *inbuf; in GST_START_TEST() local
219 inbuf = gst_buffer_new_and_alloc (init_mp4_len); in GST_START_TEST()
220 gst_buffer_fill (inbuf, 0, init_mp4, init_mp4_len); in GST_START_TEST()
221 GST_BUFFER_PTS (inbuf) = 0; in GST_START_TEST()
222 GST_BUFFER_OFFSET (inbuf) = 0; in GST_START_TEST()
224 fail_unless (gst_pad_chain (sinkpad, inbuf) == GST_FLOW_OK); in GST_START_TEST()
227 inbuf = gst_buffer_new_and_alloc (seg_1_moof_size); in GST_START_TEST()
228 gst_buffer_fill (inbuf, 0, seg_1_m4f, seg_1_moof_size); in GST_START_TEST()
229 GST_BUFFER_PTS (inbuf) = 0; in GST_START_TEST()
230 GST_BUFFER_OFFSET (inbuf) = 0; in GST_START_TEST()
[all …]
Ddeinterleave.c133 GstBuffer *inbuf; in GST_START_TEST() local
173 inbuf = gst_buffer_new_and_alloc (2 * 48000 * sizeof (gfloat)); in GST_START_TEST()
174 inbuf = gst_buffer_make_writable (inbuf); in GST_START_TEST()
175 gst_buffer_map (inbuf, &map, GST_MAP_WRITE); in GST_START_TEST()
181 gst_buffer_unmap (inbuf, &map); in GST_START_TEST()
183 fail_unless (gst_pad_push (mysrcpad, inbuf) == GST_FLOW_OK); in GST_START_TEST()
206 GstBuffer *inbuf; in GST_START_TEST() local
246 inbuf = gst_buffer_new_and_alloc (2 * 48000 * sizeof (gfloat)); in GST_START_TEST()
247 inbuf = gst_buffer_make_writable (inbuf); in GST_START_TEST()
248 gst_buffer_map (inbuf, &map, GST_MAP_WRITE); in GST_START_TEST()
[all …]
Dinterleave.c152 GstBuffer *inbuf; in GST_START_TEST() local
219 inbuf = gst_buffer_new_and_alloc (48000 * sizeof (gfloat)); in GST_START_TEST()
220 gst_buffer_map (inbuf, &map, GST_MAP_WRITE); in GST_START_TEST()
224 gst_buffer_unmap (inbuf, &map); in GST_START_TEST()
225 fail_unless (gst_pad_push (mysrcpads[0], inbuf) == GST_FLOW_OK); in GST_START_TEST()
228 inbuf = gst_buffer_new_and_alloc (48000 * sizeof (gfloat)); in GST_START_TEST()
229 gst_buffer_map (inbuf, &map, GST_MAP_WRITE); in GST_START_TEST()
233 gst_buffer_unmap (inbuf, &map); in GST_START_TEST()
234 fail_unless (gst_pad_push (mysrcpads[1], inbuf) == GST_FLOW_OK); in GST_START_TEST()
236 inbuf = gst_buffer_new_and_alloc (48000 * sizeof (gfloat)); in GST_START_TEST()
[all …]
Drtprtx.c252 GstBuffer *inbuf = create_rtp_buffer (master_ssrc, master_pt, seqnum); in GST_START_TEST() local
255 gst_harness_push (hsend, gst_buffer_ref (inbuf)); in GST_START_TEST()
274 compare_rtp_packets (inbuf, outbuf); in GST_START_TEST()
275 gst_buffer_unref (inbuf); in GST_START_TEST()
423 GstBuffer *outbuf, *inbuf; in GST_START_TEST() local
424 inbuf = in GST_START_TEST()
428 gst_harness_push (sender->h, gst_buffer_ref (inbuf)); in GST_START_TEST()
458 compare_rtp_packets (inbuf, outbuf); in GST_START_TEST()
459 gst_buffer_unref (inbuf); in GST_START_TEST()
661 GstBuffer *inbuf, *outbuf; in GST_START_TEST() local
[all …]
/third_party/gstreamer/gstplugins_bad/gst/jp2kdecimator/
Dgstjp2kdecimator.c76 GstObject * parent, GstBuffer * inbuf);
177 gst_jp2k_decimator_decimate_jpc (GstJP2kDecimator * self, GstBuffer * inbuf, in gst_jp2k_decimator_decimate_jpc() argument
188 if (!gst_buffer_map (inbuf, &info, GST_MAP_READ)) { in gst_jp2k_decimator_decimate_jpc()
191 gst_buffer_unref (inbuf); in gst_jp2k_decimator_decimate_jpc()
196 gst_byte_writer_init_with_size (&writer, gst_buffer_get_size (inbuf), FALSE); in gst_jp2k_decimator_decimate_jpc()
213 gst_buffer_copy_into (outbuf, inbuf, GST_BUFFER_COPY_METADATA, 0, -1); in gst_jp2k_decimator_decimate_jpc()
218 gst_buffer_get_size (inbuf), gst_buffer_get_size (outbuf), in gst_jp2k_decimator_decimate_jpc()
220 ((gdouble) gst_buffer_get_size (inbuf))); in gst_jp2k_decimator_decimate_jpc()
223 gst_buffer_unmap (inbuf, &info); in gst_jp2k_decimator_decimate_jpc()
227 gst_buffer_unref (inbuf); in gst_jp2k_decimator_decimate_jpc()
[all …]
/third_party/node/test/parallel/
Dtest-http2-max-invalid-frames.js33 let inbuf = Buffer.alloc(0); variable
37 inbuf = Buffer.concat([inbuf, chunk]);
40 if (inbuf.length < 9) return;
41 settingsFrameLength = inbuf.readIntBE(0, 3);
42 inbuf = inbuf.slice(9);
46 if (inbuf.length < settingsFrameLength) return;
47 inbuf = inbuf.slice(settingsFrameLength);
Dtest-http2-reset-flood.js38 let inbuf = Buffer.alloc(0); variable
42 inbuf = Buffer.concat([inbuf, chunk]);
45 if (inbuf.length < 9) return;
46 settingsFrameLength = inbuf.readIntBE(0, 3);
47 inbuf = inbuf.slice(9);
51 if (inbuf.length < settingsFrameLength) return;
52 inbuf = inbuf.slice(settingsFrameLength);
/third_party/ffmpeg/libavformat/
Dtls_schannel.c152 SecBuffer inbuf[2]; in tls_client_handshake_loop() local
193 … init_sec_buffer(&inbuf[0], SECBUFFER_TOKEN, av_malloc(c->enc_buf_offset), c->enc_buf_offset); in tls_client_handshake_loop()
194 init_sec_buffer(&inbuf[1], SECBUFFER_EMPTY, NULL, 0); in tls_client_handshake_loop()
195 init_sec_buffer_desc(&inbuf_desc, inbuf, 2); in tls_client_handshake_loop()
197 if (inbuf[0].pvBuffer == NULL) { in tls_client_handshake_loop()
203 memcpy(inbuf[0].pvBuffer, c->enc_buf, c->enc_buf_offset); in tls_client_handshake_loop()
214 av_freep(&inbuf[0].pvBuffer); in tls_client_handshake_loop()
257 if (inbuf[1].BufferType == SECBUFFER_EXTRA && inbuf[1].cbBuffer > 0) { in tls_client_handshake_loop()
258 if (c->enc_buf_offset > inbuf[1].cbBuffer) { in tls_client_handshake_loop()
259 memmove(c->enc_buf, (c->enc_buf + c->enc_buf_offset) - inbuf[1].cbBuffer, in tls_client_handshake_loop()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/closedcaption/
Dgstccconverter.c1469 cdp_to_cea608_cc_data (GstCCConverter * self, GstBuffer * inbuf, in cdp_to_cea608_cc_data() argument
1478 if (inbuf) { in cdp_to_cea608_cc_data()
1479 gst_buffer_map (inbuf, &in, GST_MAP_READ); in cdp_to_cea608_cc_data()
1485 gst_buffer_unmap (inbuf, &in); in cdp_to_cea608_cc_data()
1489 return cc_data_to_cea608_ccp (self, inbuf ? cc_data : NULL, cc_data_len, in cdp_to_cea608_cc_data()
1491 inbuf ? *in_fps_entry : NULL); in cdp_to_cea608_cc_data()
1495 convert_cea608_raw_cea608_s334_1a (GstCCConverter * self, GstBuffer * inbuf, in convert_cea608_raw_cea608_s334_1a() argument
1501 n = gst_buffer_get_size (inbuf); in convert_cea608_raw_cea608_s334_1a()
1518 gst_buffer_map (inbuf, &in, GST_MAP_READ); in convert_cea608_raw_cea608_s334_1a()
1529 gst_buffer_unmap (inbuf, &in); in convert_cea608_raw_cea608_s334_1a()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/removesilence/
Dgstremovesilence.c338 gst_remove_silence_transform_ip (GstBaseTransform * trans, GstBuffer * inbuf) in gst_remove_silence_transform_ip() argument
347 gst_buffer_map (inbuf, &map, GST_MAP_READ); in gst_remove_silence_transform_ip()
350 gst_buffer_unmap (inbuf, &map); in gst_remove_silence_transform_ip()
355 if (GST_BUFFER_DURATION_IS_VALID (inbuf)) { in gst_remove_silence_transform_ip()
356 filter->consecutive_silence_time += inbuf->duration; in gst_remove_silence_transform_ip()
374 if (GST_BUFFER_PTS_IS_VALID (inbuf)) { in gst_remove_silence_transform_ip()
378 G_TYPE_UINT64, GST_BUFFER_PTS (inbuf) - filter->ts_offset, NULL); in gst_remove_silence_transform_ip()
389 if (GST_BUFFER_DURATION_IS_VALID (inbuf)) { in gst_remove_silence_transform_ip()
390 filter->ts_offset += inbuf->duration; in gst_remove_silence_transform_ip()
403 if (GST_BUFFER_PTS_IS_VALID (inbuf)) { in gst_remove_silence_transform_ip()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/timecode/
Dgstavwait.c121 GstObject * parent, GstBuffer * inbuf);
123 GstObject * parent, GstBuffer * inbuf);
842 gst_avwait_vsink_chain (GstPad * pad, GstObject * parent, GstBuffer * inbuf) in gst_avwait_vsink_chain() argument
855 timestamp = GST_BUFFER_TIMESTAMP (inbuf); in gst_avwait_vsink_chain()
857 gst_buffer_unref (inbuf); in gst_avwait_vsink_chain()
868 tc_meta = gst_buffer_get_video_time_code_meta (inbuf); in gst_avwait_vsink_chain()
887 gst_buffer_unref (inbuf); in gst_avwait_vsink_chain()
905 gst_buffer_unref (inbuf); in gst_avwait_vsink_chain()
916 gst_buffer_unref (inbuf); in gst_avwait_vsink_chain()
917 inbuf = NULL; in gst_avwait_vsink_chain()
[all …]
/third_party/ffmpeg/libavfilter/
Dvf_pp.c123 static int pp_filter_frame(AVFilterLink *inlink, AVFrame *inbuf) in pp_filter_frame() argument
137 av_frame_free(&inbuf); in pp_filter_frame()
140 av_frame_copy_props(outbuf, inbuf); in pp_filter_frame()
141 outbuf->width = inbuf->width; in pp_filter_frame()
142 outbuf->height = inbuf->height; in pp_filter_frame()
144 ret = ff_qp_table_extract(inbuf, &qp_table, &qstride, NULL, NULL); in pp_filter_frame()
146 av_frame_free(&inbuf); in pp_filter_frame()
151 pp_postprocess((const uint8_t **)inbuf->data, inbuf->linesize, in pp_filter_frame()
160 av_frame_free(&inbuf); in pp_filter_frame()
Daf_aphaser.c241 static int filter_frame(AVFilterLink *inlink, AVFrame *inbuf) in filter_frame() argument
247 if (av_frame_is_writable(inbuf)) { in filter_frame()
248 outbuf = inbuf; in filter_frame()
250 outbuf = ff_get_audio_buffer(outlink, inbuf->nb_samples); in filter_frame()
252 av_frame_free(&inbuf); in filter_frame()
255 av_frame_copy_props(outbuf, inbuf); in filter_frame()
258 s->phaser(s, inbuf->extended_data, outbuf->extended_data, in filter_frame()
261 if (inbuf != outbuf) in filter_frame()
262 av_frame_free(&inbuf); in filter_frame()
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtputils.c33 foreach_metadata_copy (GstBuffer * inbuf, GstMeta ** meta, gpointer user_data) in foreach_metadata_copy() argument
48 info->transform_func (outbuf, *meta, inbuf, in foreach_metadata_copy()
60 gst_rtp_copy_meta (GstElement * element, GstBuffer * outbuf, GstBuffer * inbuf, in gst_rtp_copy_meta() argument
65 gst_buffer_foreach_meta (inbuf, foreach_metadata_copy, &data); in gst_rtp_copy_meta()
70 GstBuffer * inbuf) in gst_rtp_copy_video_meta() argument
72 gst_rtp_copy_meta (element, outbuf, inbuf, rtp_quark_meta_tag_video); in gst_rtp_copy_video_meta()
77 GstBuffer * inbuf) in gst_rtp_copy_audio_meta() argument
79 gst_rtp_copy_meta (element, outbuf, inbuf, rtp_quark_meta_tag_audio); in gst_rtp_copy_audio_meta()
89 foreach_metadata_drop (GstBuffer * inbuf, GstMeta ** meta, gpointer user_data) in foreach_metadata_drop() argument
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Daudiointerleave.c161 GstBuffer *inbuf; in GST_START_TEST() local
230 inbuf = gst_buffer_new_and_alloc (48000 * sizeof (gfloat)); in GST_START_TEST()
232 gst_buffer_map (inbuf, &map, GST_MAP_WRITE); in GST_START_TEST()
236 gst_buffer_unmap (inbuf, &map); in GST_START_TEST()
237 fail_unless (gst_pad_push (mysrcpads[0], inbuf) == GST_FLOW_OK); in GST_START_TEST()
240 inbuf = gst_buffer_new_and_alloc (48000 * sizeof (gfloat)); in GST_START_TEST()
242 gst_buffer_map (inbuf, &map, GST_MAP_WRITE); in GST_START_TEST()
246 gst_buffer_unmap (inbuf, &map); in GST_START_TEST()
247 fail_unless (gst_pad_push (mysrcpads[1], inbuf) == GST_FLOW_OK); in GST_START_TEST()
249 inbuf = gst_buffer_new_and_alloc (48000 * sizeof (gfloat)); in GST_START_TEST()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/androidmedia/
Dgstamcaudiodec.c1054 gst_amc_audio_dec_handle_frame (GstAudioDecoder * decoder, GstBuffer * inbuf) in gst_amc_audio_dec_handle_frame() argument
1074 if (inbuf) in gst_amc_audio_dec_handle_frame()
1075 inbuf = gst_buffer_ref (inbuf); in gst_amc_audio_dec_handle_frame()
1079 if (inbuf) in gst_amc_audio_dec_handle_frame()
1080 gst_buffer_unref (inbuf); in gst_amc_audio_dec_handle_frame()
1090 if (!inbuf) in gst_amc_audio_dec_handle_frame()
1093 timestamp = GST_BUFFER_PTS (inbuf); in gst_amc_audio_dec_handle_frame()
1094 duration = GST_BUFFER_DURATION (inbuf); in gst_amc_audio_dec_handle_frame()
1096 gst_buffer_map (inbuf, &minfo, GST_MAP_READ); in gst_amc_audio_dec_handle_frame()
1181 if (!GST_BUFFER_FLAG_IS_SET (inbuf, GST_BUFFER_FLAG_DELTA_UNIT)) in gst_amc_audio_dec_handle_frame()
[all …]
/third_party/gstreamer/gstplugins_base/gst/audioconvert/
Dgstaudioconvert.c133 GstBuffer * inbuf, GstBuffer * outbuf);
137 GstBuffer * outbuf, GstMeta * meta, GstBuffer * inbuf);
141 base, GstBuffer * inbuf, GstBuffer ** outbuf);
813 gst_audio_convert_transform (GstBaseTransform * base, GstBuffer * inbuf, in gst_audio_convert_transform() argument
823 if (gst_buffer_get_size (inbuf) == 0) in gst_audio_convert_transform()
826 if (inbuf != outbuf) { in gst_audio_convert_transform()
827 inbuf_writable = gst_buffer_is_writable (inbuf) in gst_audio_convert_transform()
828 && gst_buffer_n_memory (inbuf) == 1 in gst_audio_convert_transform()
829 && gst_memory_is_writable (gst_buffer_peek_memory (inbuf, 0)); in gst_audio_convert_transform()
831 if (!gst_audio_buffer_map (&srcabuf, &this->in_info, inbuf, in gst_audio_convert_transform()
[all …]
/third_party/libxml2/os400/
Dlibxmlmain.c40 char * inbuf; in main() local
58 inbuf = argv[i]; in main()
64 &inbuf, &inbytesleft, &outbuf, &outbytesleft); in main()
80 inbuf = ebcdic_argv[i]; in main()
82 iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft); in main()
/third_party/gstreamer/gstplugins_base/gst/audioresample/
Dgstaudioresample.c122 GstBuffer * inbuf, GstBuffer * outbuf);
124 GstBuffer * outbuf, GstMeta * meta, GstBuffer * inbuf);
741 gst_audio_resample_process (GstAudioResample * resample, GstBuffer * inbuf, in gst_audio_resample_process() argument
752 inbuf_writable = gst_buffer_is_writable (inbuf) in gst_audio_resample_process()
753 && gst_buffer_n_memory (inbuf) == 1 in gst_audio_resample_process()
754 && gst_memory_is_writable (gst_buffer_peek_memory (inbuf, 0)); in gst_audio_resample_process()
756 gst_audio_buffer_map (&srcabuf, &resample->in, inbuf, in gst_audio_resample_process()
775 if (GST_BUFFER_FLAG_IS_SET (inbuf, GST_BUFFER_FLAG_GAP)) { in gst_audio_resample_process()
883 gst_audio_resample_transform (GstBaseTransform * base, GstBuffer * inbuf, in gst_audio_resample_transform() argument
892 gst_buffer_get_size (inbuf), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (inbuf)), in gst_audio_resample_transform()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/fdkaac/
Dgstfdkaacenc.c425 gst_fdkaacenc_handle_frame (GstAudioEncoder * enc, GstBuffer * inbuf) in gst_fdkaacenc_handle_frame() argument
443 if (inbuf) { in gst_fdkaacenc_handle_frame()
445 inbuf = gst_buffer_copy (inbuf); in gst_fdkaacenc_handle_frame()
446 gst_buffer_map (inbuf, &imap, GST_MAP_READWRITE); in gst_fdkaacenc_handle_frame()
451 gst_buffer_map (inbuf, &imap, GST_MAP_READ); in gst_fdkaacenc_handle_frame()
492 if (err == AACENC_ENCODE_EOF && !inbuf) in gst_fdkaacenc_handle_frame()
500 if (inbuf) { in gst_fdkaacenc_handle_frame()
501 gst_buffer_unmap (inbuf, &imap); in gst_fdkaacenc_handle_frame()
503 gst_buffer_unref (inbuf); in gst_fdkaacenc_handle_frame()
504 inbuf = NULL; in gst_fdkaacenc_handle_frame()
[all …]
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgstglcolorconvertelement.c55 GstBuffer * inbuf, GstBuffer ** outbuf);
57 bt, GstBuffer * inbuf, GstBuffer * outbuf);
211 GstBuffer * inbuf, GstBuffer ** outbuf) in gst_gl_color_convert_element_prepare_output_buffer() argument
219 *outbuf = inbuf; in gst_gl_color_convert_element_prepare_output_buffer()
226 *outbuf = gst_gl_color_convert_perform (convert->convert, inbuf); in gst_gl_color_convert_element_prepare_output_buffer()
234 if (inbuf == *outbuf) in gst_gl_color_convert_element_prepare_output_buffer()
237 bclass->copy_metadata (bt, inbuf, *outbuf); in gst_gl_color_convert_element_prepare_output_buffer()
244 GstBuffer * inbuf, GstBuffer * outbuf) in gst_gl_color_convert_element_transform() argument
/third_party/gstreamer/gstreamer/libs/gst/base/
Dgstbasetransform.c304 GstBuffer * inbuf, GstBuffer ** outbuf);
306 GstBuffer * inbuf, GstBuffer * outbuf);
309 GstBuffer * outbuf, GstMeta * meta, GstBuffer * inbuf);
505 GstBuffer * outbuf, GstMeta * meta, GstBuffer * inbuf) in gst_base_transform_default_transform_meta() argument
1636 GstBuffer * inbuf, GstBuffer ** outbuf) in default_prepare_output_buffer() argument
1653 *outbuf = inbuf; in default_prepare_output_buffer()
1676 if (gst_buffer_is_writable (inbuf)) { in default_prepare_output_buffer()
1678 *outbuf = inbuf; in default_prepare_output_buffer()
1682 *outbuf = gst_buffer_copy (inbuf); in default_prepare_output_buffer()
1697 insize = gst_buffer_get_size (inbuf); in default_prepare_output_buffer()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/va/
Dgstvadeinterlace.c193 GstBuffer *buf, *inbuf; in gst_va_deinterlace_submit_input_buffer() local
214 ret = gst_va_base_transform_import_buffer (btrans, buf, &inbuf); in gst_va_deinterlace_submit_input_buffer()
221 self->history[self->hcount++] = inbuf; in gst_va_deinterlace_submit_input_buffer()
226 self->history[i] = inbuf; in gst_va_deinterlace_submit_input_buffer()
338 GstBuffer * inbuf) in gst_va_deinterlace_before_transform() argument
343 ts = GST_BUFFER_TIMESTAMP (inbuf); in gst_va_deinterlace_before_transform()
382 gst_va_deinterlace_transform (GstBaseTransform * trans, GstBuffer * inbuf, in gst_va_deinterlace_transform() argument
399 surface_flags = gst_va_buffer_get_surface_flags (inbuf, info); in gst_va_deinterlace_transform()
404 self->curr_field, surface_flags, inbuf); in gst_va_deinterlace_transform()
417 .buffer = inbuf, in gst_va_deinterlace_transform()
[all …]
/third_party/musl/libc-test/src/functional/
Diconv_open.c10 char *inbuf = "test"; in main() local
12 size_t inlen = strlen(inbuf); in main()
30 r = iconv(cd, &inbuf, &inlen, &outbuf, &outlen); in main()
38 r = iconv(cd, &inbuf, &inlen, &outbuf, &outlen); in main()
/third_party/gstreamer/gstplugins_bad/ext/aes/
Dgstaesdec.c104 GstBuffer * inbuf, GstBuffer * outbuf);
106 GstBuffer * inbuf, GstBuffer ** outbuf);
432 GstBuffer * inbuf, GstBuffer * outbuf) in gst_aes_dec_transform() argument
443 if (!gst_buffer_map (inbuf, &inmap, GST_MAP_READ)) { in gst_aes_dec_transform()
449 gst_buffer_unmap (inbuf, &inmap); in gst_aes_dec_transform()
456 ciphertext_len = gst_buffer_get_size (inbuf); in gst_aes_dec_transform()
511 gst_buffer_unmap (inbuf, &inmap); in gst_aes_dec_transform()
528 GstBuffer * inbuf, GstBuffer ** outbuf) in gst_aes_dec_prepare_output_buffer() argument
538 out_size = (gint) gst_buffer_get_size (inbuf) + in gst_aes_dec_prepare_output_buffer()
544 g_assert (gst_buffer_get_size (inbuf) > GST_AES_BLOCK_SIZE); in gst_aes_dec_prepare_output_buffer()
[all …]

12345678