Home
last modified time | relevance | path

Searched refs:new_buf (Results 1 – 25 of 49) sorted by relevance

12

/third_party/ffmpeg/tests/checkasm/
Dflacdsp.c62 LOCAL_ALIGNED_16(uint8_t, new_buf, [BUF_SIZE*MAX_CHANNELS]); in checkasm_check_flacdsp()
65 …uint8_t *new_src[] = { &new_buf[BUF_SIZE*0], &new_buf[BUF_SIZE*1], &new_buf[BUF_SIZE*2], &new_buf[… in checkasm_check_flacdsp()
66 … &new_buf[BUF_SIZE*4], &new_buf[BUF_SIZE*5], &new_buf[BUF_SIZE*6], &new_buf[BUF_SIZE*7] }; in checkasm_check_flacdsp()
Dalacdsp.c38 new_buf[i] = r; \
45 LOCAL_ALIGNED_16(int32_t, new_buf, [BUF_SIZE*MAX_CHANNELS]); in check_decorrelate_stereo()
47 int32_t *new[2] = { &new_buf[BUF_SIZE*0], &new_buf[BUF_SIZE*1] }; in check_decorrelate_stereo()
88 LOCAL_ALIGNED_16(int32_t, new_buf, [BUF_SIZE*MAX_CHANNELS*2]); in check_append_extra_bits()
90 int32_t *new[2] = { &new_buf[BUF_SIZE*0], &new_buf[BUF_SIZE*1] }; in check_append_extra_bits()
92 int32_t *new_ebb[2] = { &new_buf[BUF_SIZE*2], &new_buf[BUF_SIZE*3] }; in check_append_extra_bits()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dradeon_video.c90 struct rvid_buffer *new_buf, unsigned new_size) in si_vid_resize_buffer() argument
94 unsigned bytes = MIN2(new_buf->res->buf->size, new_size); in si_vid_resize_buffer()
95 struct rvid_buffer old_buf = *new_buf; in si_vid_resize_buffer()
98 if (!si_vid_create_buffer(screen, new_buf, new_size, new_buf->usage)) in si_vid_resize_buffer()
105 dst = ws->buffer_map(ws, new_buf->res->buf, cs, PIPE_MAP_WRITE | RADEON_MAP_TEMPORARY); in si_vid_resize_buffer()
115 ws->buffer_unmap(ws, new_buf->res->buf); in si_vid_resize_buffer()
123 si_vid_destroy_buffer(new_buf); in si_vid_resize_buffer()
124 *new_buf = old_buf; in si_vid_resize_buffer()
/third_party/mesa3d/src/gallium/drivers/r600/
Dradeon_video.c89 struct rvid_buffer *new_buf, unsigned new_size) in rvid_resize_buffer() argument
93 unsigned bytes = MIN2(new_buf->res->buf->size, new_size); in rvid_resize_buffer()
94 struct rvid_buffer old_buf = *new_buf; in rvid_resize_buffer()
97 if (!rvid_create_buffer(screen, new_buf, new_size, new_buf->usage)) in rvid_resize_buffer()
105 dst = ws->buffer_map(ws, new_buf->res->buf, cs, in rvid_resize_buffer()
116 ws->buffer_unmap(ws, new_buf->res->buf); in rvid_resize_buffer()
124 rvid_destroy_buffer(new_buf); in rvid_resize_buffer()
125 *new_buf = old_buf; in rvid_resize_buffer()
/third_party/lwip/src/core/distributed_net/
Ddistributed_net_core.c209 void *new_buf = mem_malloc(new_buf_len); in distributed_net_recvfrom() local
210 if (new_buf == NULL) { in distributed_net_recvfrom()
218 …lwip_recvfrom_internal(sock, new_buf, new_buf_len, flags, (struct sockaddr *)&addr_from, &addr_fro… in distributed_net_recvfrom()
220 mem_free(new_buf); in distributed_net_recvfrom()
225 (void)memcpy_s(buf, buf_len, new_buf, ret); in distributed_net_recvfrom()
231 mem_free(new_buf); in distributed_net_recvfrom()
237 mem_free(new_buf); in distributed_net_recvfrom()
242 udp_data *data = (udp_data *)new_buf; in distributed_net_recvfrom()
255 mem_free(new_buf); in distributed_net_recvfrom()
/third_party/alsa-utils/bat/
Dsignal.c91 float *new_buf = NULL; in reorder() local
96 new_buf = (float *) malloc(bytes); in reorder()
97 if (new_buf == NULL) { in reorder()
102 memcpy(new_buf, val, bytes); in reorder()
106 new_buf[c * frames + i]; in reorder()
107 free(new_buf); in reorder()
/third_party/ltp/utils/sctp/lib/
Daddrs.c49 char *new_buf; in sctp_getaddrs() local
70 new_buf = realloc(getaddrs, bufsize+4096); in sctp_getaddrs()
71 if (!new_buf) { in sctp_getaddrs()
76 getaddrs = (struct sctp_getaddrs*)new_buf; in sctp_getaddrs()
/third_party/lwip/
D0062-drop-netbuf-in-recv_udp-to-fix-mem-overflow.patch21 @@ -655,7 +655,11 @@ netconn_recv_data(struct netconn *conn, void **new_buf, u8_t apiflags)
33 @@ -827,6 +831,16 @@ netconn_recv_udp_raw_netbuf(struct netconn *conn, struct netbuf **new_buf)
34 return netconn_recv_data(conn, (void **)new_buf, 0);
39 +netconn_recv_udp_raw_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags)
43 + return netconn_recv_data(conn, (void **)new_buf, apiflags);
161 err_t netconn_recv(struct netconn *conn, struct netbuf **new_buf);
162 err_t netconn_recv_udp_raw_netbuf(struct netconn *conn, struct netbuf **new_buf);
163 …err_t netconn_recv_udp_raw_netbuf_flags(struct netconn *conn, struct netbuf **new_buf, u8_t apif…
165 +err_t netconn_recv_udp_raw_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags…
167 err_t netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf);
[all …]
/third_party/lwip/src/api/
Dapi_lib.c579 netconn_recv_data(struct netconn *conn, void **new_buf, u8_t apiflags) in netconn_recv_data() argument
584 LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;); in netconn_recv_data()
585 *new_buf = NULL; in netconn_recv_data()
670 *new_buf = buf; in netconn_recv_data()
703 netconn_recv_data_tcp(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags) in netconn_recv_data_tcp() argument
727 err = netconn_recv_data(conn, (void **)new_buf, apiflags); in netconn_recv_data_tcp()
734 buf = *new_buf; in netconn_recv_data_tcp()
782 netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf) in netconn_recv_tcp_pbuf() argument
787 return netconn_recv_data_tcp(conn, new_buf, 0); in netconn_recv_tcp_pbuf()
803 netconn_recv_tcp_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags) in netconn_recv_tcp_pbuf_flags() argument
[all …]
/third_party/gstreamer/gstplugins_base/ext/vorbis/
Dgstvorbistag.c103 GstBuffer *new_buf; in gst_vorbis_tag_parse_packet() local
129 new_buf = in gst_vorbis_tag_parse_packet()
132 gst_buffer_copy_into (new_buf, buffer, GST_BUFFER_COPY_TIMESTAMPS, 0, -1); in gst_vorbis_tag_parse_packet()
138 return GST_VORBIS_PARSE_CLASS (parent_class)->parse_packet (parse, new_buf); in gst_vorbis_tag_parse_packet()
/third_party/libfuse/example/
Dioctl.c50 void *new_buf; in fioc_resize() local
55 new_buf = realloc(fioc_buf, new_size); in fioc_resize()
56 if (!new_buf && new_size) in fioc_resize()
60 memset(new_buf + fioc_size, 0, new_size - fioc_size); in fioc_resize()
62 fioc_buf = new_buf; in fioc_resize()
Dcuse.c65 void *new_buf; in cusexmp_resize() local
70 new_buf = realloc(cusexmp_buf, new_size); in cusexmp_resize()
71 if (!new_buf && new_size) in cusexmp_resize()
75 memset(new_buf + cusexmp_size, 0, new_size - cusexmp_size); in cusexmp_resize()
77 cusexmp_buf = new_buf; in cusexmp_resize()
/third_party/gstreamer/gstplugins_bad/ext/kate/
Dgstkatetag.c270 GstBuffer *new_buf; in gst_kate_tag_parse_packet() local
328 new_buf = in gst_kate_tag_parse_packet()
331 gst_buffer_copy_into (new_buf, buffer, GST_BUFFER_COPY_TIMESTAMPS, 0, -1); in gst_kate_tag_parse_packet()
338 gst_buffer_resize (new_buf, 0, gst_buffer_get_size (new_buf) - 1); in gst_kate_tag_parse_packet()
340 buffer = new_buf; in gst_kate_tag_parse_packet()
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_screen_buffer.c116 struct pb_buffer *new_buf; in r300_buffer_transfer_map() local
119 new_buf = r300->rws->buffer_create(r300->rws, rbuf->b.width0, in r300_buffer_transfer_map()
123 if (new_buf) { in r300_buffer_transfer_map()
126 rbuf->buf = new_buf; in r300_buffer_transfer_map()
/third_party/lwip/src/include/lwip/
Dapi.h334 err_t netconn_recv(struct netconn *conn, struct netbuf **new_buf);
335 err_t netconn_recv_udp_raw_netbuf(struct netconn *conn, struct netbuf **new_buf);
336 err_t netconn_recv_udp_raw_netbuf_flags(struct netconn *conn, struct netbuf **new_buf, u8_t apifl…
337 err_t netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf);
338 err_t netconn_recv_tcp_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags);
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi.c57 char *new_buf; in svga_shader_expand() local
61 new_buf = REALLOC(emit->buf, emit->size, newsize); in svga_shader_expand()
63 new_buf = NULL; in svga_shader_expand()
65 if (!new_buf) { in svga_shader_expand()
73 emit->ptr = new_buf + (emit->ptr - emit->buf); in svga_shader_expand()
74 emit->buf = new_buf; in svga_shader_expand()
/third_party/skia/third_party/externals/libwebp/src/utils/
Dbit_writer_utils.c27 uint8_t* new_buf; in BitWriterResize() local
40 new_buf = (uint8_t*)WebPSafeMalloc(1ULL, new_size); in BitWriterResize()
41 if (new_buf == NULL) { in BitWriterResize()
47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize()
50 bw->buf_ = new_buf; in BitWriterResize()
/third_party/gstreamer/gstreamer/gst/
Dgstbufferlist.c373 GstBuffer *new_buf; in gst_buffer_list_get_writable() local
386 new_buf = gst_buffer_copy (list->buffers[idx]); in gst_buffer_list_get_writable()
387 gst_mini_object_add_parent (GST_MINI_OBJECT_CAST (new_buf), in gst_buffer_list_get_writable()
390 list->buffers[idx] = new_buf; in gst_buffer_list_get_writable()
392 return new_buf; in gst_buffer_list_get_writable()
/third_party/gstreamer/gstplugins_bad/sys/winscreencap/
Dgstdx9screencapsrc.c454 GstBuffer *new_buf; in gst_dx9screencapsrc_create() local
602 new_buf = gst_buffer_new_and_alloc (new_buf_size); in gst_dx9screencapsrc_create()
603 gst_buffer_map (new_buf, &map, GST_MAP_WRITE); in gst_dx9screencapsrc_create()
612 gst_buffer_unmap (new_buf, &map); in gst_dx9screencapsrc_create()
617 GST_BUFFER_TIMESTAMP (new_buf) = buf_time; in gst_dx9screencapsrc_create()
618 GST_BUFFER_DURATION (new_buf) = buf_dur; in gst_dx9screencapsrc_create()
623 *buf = new_buf; in gst_dx9screencapsrc_create()
Dgstgdiscreencapsrc.c410 GstBuffer *new_buf; in gst_gdiscreencapsrc_create() local
431 new_buf = gst_buffer_new_and_alloc (new_buf_size); in gst_gdiscreencapsrc_create()
504 GST_BUFFER_TIMESTAMP (new_buf) = buf_time; in gst_gdiscreencapsrc_create()
505 GST_BUFFER_DURATION (new_buf) = buf_dur; in gst_gdiscreencapsrc_create()
508 gst_gdiscreencapsrc_screen_capture (src, new_buf); in gst_gdiscreencapsrc_create()
512 *buf = new_buf; in gst_gdiscreencapsrc_create()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-arraybuffer-prototype.c140 lit_utf8_byte_t *new_buf = ecma_arraybuffer_get_buffer (new_arraybuffer_p); in ecma_builtin_arraybuffer_prototype_object_slice() local
142 memcpy (new_buf, old_buf + start, new_len); in ecma_builtin_arraybuffer_prototype_object_slice()
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/
Dgstnvdec.c1397 GstBuffer *new_buf; in gst_nvdec_handle_h264_buffer() local
1456 new_buf = gst_buffer_new (); in gst_nvdec_handle_h264_buffer()
1463 new_buf = gst_buffer_append (new_buf, gst_buffer_ref (self->sps_nals[i])); in gst_nvdec_handle_h264_buffer()
1473 new_buf = gst_buffer_append (new_buf, gst_buffer_ref (self->pps_nals[i])); in gst_nvdec_handle_h264_buffer()
1477 new_buf = gst_buffer_append (new_buf, gst_buffer_ref (buffer)); in gst_nvdec_handle_h264_buffer()
1482 return new_buf; in gst_nvdec_handle_h264_buffer()
1534 GstBuffer *new_buf; in gst_nvdec_handle_h265_buffer() local
1597 new_buf = gst_buffer_new (); in gst_nvdec_handle_h265_buffer()
1603 new_buf = gst_buffer_append (new_buf, gst_buffer_ref (self->vps_nals[i])); in gst_nvdec_handle_h265_buffer()
1613 new_buf = gst_buffer_append (new_buf, gst_buffer_ref (self->sps_nals[i])); in gst_nvdec_handle_h265_buffer()
[all …]
/third_party/gstreamer/gstreamer/tests/check/gst/
Dgstminiobject.c378 GstBuffer *new_buf; in my_foo_get_property() local
382 new_buf = gst_buffer_new_and_alloc (1024); in my_foo_get_property()
383 g_value_set_boxed (value, GST_MINI_OBJECT (new_buf)); in my_foo_get_property()
384 gst_buffer_unref (new_buf); in my_foo_get_property()
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11deinterlace.cpp1287 GstBuffer *new_buf = NULL; in gst_d3d11_deinterlace_ensure_input_buffer() local
1298 gst_buffer_pool_acquire_buffer (self->fallback_in_pool, &new_buf, in gst_d3d11_deinterlace_ensure_input_buffer()
1306 if (!gst_d3d11_buffer_copy_into (new_buf, input, &self->in_info)) { in gst_d3d11_deinterlace_ensure_input_buffer()
1308 gst_buffer_unref (new_buf); in gst_d3d11_deinterlace_ensure_input_buffer()
1314 dmem = (GstD3D11Memory *) gst_buffer_peek_memory (new_buf, 0); in gst_d3d11_deinterlace_ensure_input_buffer()
1319 gst_buffer_unref (new_buf); in gst_d3d11_deinterlace_ensure_input_buffer()
1328 (GST_BASE_TRANSFORM_CAST (self), input, new_buf); in gst_d3d11_deinterlace_ensure_input_buffer()
1332 return new_buf; in gst_d3d11_deinterlace_ensure_input_buffer()
1497 GstBuffer *new_buf = NULL; in gst_d3d11_deinterlace_ensure_output_buffer() local
1505 gst_buffer_pool_acquire_buffer (self->fallback_out_pool, &new_buf, in gst_d3d11_deinterlace_ensure_output_buffer()
[all …]
/third_party/python/Modules/_io/
Dbytesio.c108 PyObject *new_buf; in unshare_buffer() local
112 new_buf = PyBytes_FromStringAndSize(NULL, size); in unshare_buffer()
113 if (new_buf == NULL) in unshare_buffer()
115 memcpy(PyBytes_AS_STRING(new_buf), PyBytes_AS_STRING(self->buf), in unshare_buffer()
117 Py_SETREF(self->buf, new_buf); in unshare_buffer()

12