Home
last modified time | relevance | path

Searched refs:toread (Results 1 – 6 of 6) sorted by relevance

/third_party/pulseaudio/src/pulsecore/
Dsrbchannel.c135 int toread; in pa_srbchannel_read() local
136 void *ptr = pa_ringbuffer_peek(&sr->rb_read, &toread); in pa_srbchannel_read()
138 if ((size_t) toread > l) in pa_srbchannel_read()
139 toread = l; in pa_srbchannel_read()
141 if (toread == 0) in pa_srbchannel_read()
144 memcpy(data, ptr, toread); in pa_srbchannel_read()
146 if (pa_ringbuffer_drop(&sr->rb_read, toread)) { in pa_srbchannel_read()
153 isread += toread; in pa_srbchannel_read()
154 data = (uint8_t*) data + toread; in pa_srbchannel_read()
155 l -= toread; in pa_srbchannel_read()
/third_party/gstreamer/gstreamer/libs/gst/base/
Dgstbitreader.h149 guint toread = MIN (nbits, 8 - bit); \
151 ret <<= toread; \
152 ret |= (data[byte] & (0xff >> bit)) >> (8 - toread - bit); \
154 bit += toread; \
159 nbits -= toread; \
/third_party/ffmpeg/libavformat/
Drtmppkt.c174 int ret, toread; in rtmp_packet_read_one_chunk() local
268 toread = FFMIN(size, chunk_size); in rtmp_packet_read_one_chunk()
269 if (ffurl_read_complete(h, p->data + p->offset, toread) != toread) { in rtmp_packet_read_one_chunk()
273 size -= toread; in rtmp_packet_read_one_chunk()
274 p->read += toread; in rtmp_packet_read_one_chunk()
275 p->offset += toread; in rtmp_packet_read_one_chunk()
/third_party/gstreamer/gstplugins_good/sys/v4l2/
Dgstv4l2bufferpool.c1871 gint toread; in gst_v4l2_do_read() local
1873 toread = obj->info.size; in gst_v4l2_do_read()
1875 GST_LOG_OBJECT (pool, "reading %d bytes into buffer %p", toread, buf); in gst_v4l2_do_read()
1883 amount = obj->read (obj->video_fd, map.data, toread); in gst_v4l2_do_read()
1885 if (amount == toread) { in gst_v4l2_do_read()
1914 toread, obj->videodev), GST_ERROR_SYSTEM); in gst_v4l2_do_read()
/third_party/libsnd/src/
Dwavlike.c1249 exif_fill_and_sink (SF_PRIVATE *psf, char* buf, size_t bufsz, size_t toread) in exif_fill_and_sink() argument
1255 if (toread < bufsz) in exif_fill_and_sink()
1256 bufsz = toread ; in exif_fill_and_sink()
1260 if (bytesread == bufsz && toread > bufsz) in exif_fill_and_sink()
1261 bytesread += psf_binheader_readf (psf, "j", toread - bufsz) ; in exif_fill_and_sink()
/third_party/gstreamer/gstplugins_good/gst/matroska/
Dmatroska-demux.c2143 guint toread = chunk; in gst_matroska_demux_search_cluster() local
2148 toread = newpos; in gst_matroska_demux_search_cluster()
2159 ret = gst_pad_pull_range (demux->common.sinkpad, newpos, toread, &buf); in gst_matroska_demux_search_cluster()