Lines Matching refs:avail
245 guint avail, MHF, mh_id; in gst_rtp_j2k_depay_flush_pu() local
250 avail = gst_adapter_available (rtpj2kdepay->pu_adapter); in gst_rtp_j2k_depay_flush_pu()
251 if (avail == 0) in gst_rtp_j2k_depay_flush_pu()
257 GST_DEBUG_OBJECT (rtpj2kdepay, "flushing PU of size %u", avail); in gst_rtp_j2k_depay_flush_pu()
262 packets = gst_adapter_take_list (rtpj2kdepay->pu_adapter, avail); in gst_rtp_j2k_depay_flush_pu()
277 mheader = gst_adapter_take_buffer (rtpj2kdepay->pu_adapter, avail); in gst_rtp_j2k_depay_flush_pu()
292 guint avail, mh_id; in gst_rtp_j2k_depay_flush_tile() local
305 avail = gst_adapter_available (rtpj2kdepay->t_adapter); in gst_rtp_j2k_depay_flush_tile()
306 if (avail == 0) in gst_rtp_j2k_depay_flush_tile()
311 GST_DEBUG_OBJECT (rtpj2kdepay, "flushing tile of size %u", avail); in gst_rtp_j2k_depay_flush_tile()
326 gst_adapter_copy (rtpj2kdepay->t_adapter, end, avail - 2, 2); in gst_rtp_j2k_depay_flush_tile()
329 packets = gst_adapter_take_list (rtpj2kdepay->t_adapter, avail); in gst_rtp_j2k_depay_flush_tile()
344 nPsot = avail - 2; in gst_rtp_j2k_depay_flush_tile()
346 nPsot = avail; in gst_rtp_j2k_depay_flush_tile()
397 guint avail; in gst_rtp_j2k_depay_flush_frame() local
407 avail = gst_adapter_available (rtpj2kdepay->f_adapter); in gst_rtp_j2k_depay_flush_frame()
408 if (avail == 0) in gst_rtp_j2k_depay_flush_frame()
411 if (avail > 2) { in gst_rtp_j2k_depay_flush_frame()
416 gst_adapter_copy (rtpj2kdepay->f_adapter, end, avail - 2, 2); in gst_rtp_j2k_depay_flush_frame()
429 avail += 2; in gst_rtp_j2k_depay_flush_frame()
432 GST_DEBUG_OBJECT (rtpj2kdepay, "pushing buffer of %u bytes", avail); in gst_rtp_j2k_depay_flush_frame()
433 outbuf = gst_adapter_take_buffer (rtpj2kdepay->f_adapter, avail); in gst_rtp_j2k_depay_flush_frame()