Lines Matching refs:wvparse
113 gst_wavpack_parse_reset (GstWavpackParse * wvparse) in gst_wavpack_parse_reset() argument
115 wvparse->channels = -1; in gst_wavpack_parse_reset()
116 wvparse->channel_mask = 0; in gst_wavpack_parse_reset()
117 wvparse->sample_rate = -1; in gst_wavpack_parse_reset()
118 wvparse->width = -1; in gst_wavpack_parse_reset()
119 wvparse->total_samples = 0; in gst_wavpack_parse_reset()
120 wvparse->sent_codec_tag = FALSE; in gst_wavpack_parse_reset()
124 gst_wavpack_parse_init (GstWavpackParse * wvparse) in gst_wavpack_parse_init() argument
126 gst_wavpack_parse_reset (wvparse); in gst_wavpack_parse_init()
127 GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (wvparse)); in gst_wavpack_parse_init()
128 GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (wvparse)); in gst_wavpack_parse_init()
140 GstWavpackParse *wvparse = GST_WAVPACK_PARSE (parse); in gst_wavpack_parse_start() local
144 gst_wavpack_parse_reset (wvparse); in gst_wavpack_parse_start()
147 gst_base_parse_set_min_frame_size (GST_BASE_PARSE (wvparse), in gst_wavpack_parse_start()
151 gst_base_parse_set_has_timing_info (GST_BASE_PARSE_CAST (wvparse), TRUE); in gst_wavpack_parse_start()
152 gst_base_parse_set_syncable (GST_BASE_PARSE_CAST (wvparse), TRUE); in gst_wavpack_parse_start()
451 GstWavpackParse *wvparse = GST_WAVPACK_PARSE (parse); in gst_wavpack_parse_handle_frame() local
487 gst_wavpack_parse_frame_header (wvparse, buf, 0, &wph); in gst_wavpack_parse_handle_frame()
496 gst_wavpack_parse_frame_metadata (wvparse, buf, 0, &wph, &wpi); in gst_wavpack_parse_handle_frame()
504 GST_LOG_OBJECT (wvparse, "checking next frame syncword; " in gst_wavpack_parse_handle_frame()
509 GST_DEBUG_OBJECT (wvparse, "... but not sufficient data"); in gst_wavpack_parse_handle_frame()
514 GST_DEBUG_OBJECT (wvparse, "0x%x not OK", word); in gst_wavpack_parse_handle_frame()
522 GST_LOG_OBJECT (wvparse, "checking frame at offset %d (0x%x)", in gst_wavpack_parse_handle_frame()
529 gst_wavpack_parse_frame_header (wvparse, buf, frmsize, &wph); in gst_wavpack_parse_handle_frame()
534 gst_wavpack_parse_frame_metadata (wvparse, buf, off, &wph, &wpi); in gst_wavpack_parse_handle_frame()
557 if (G_UNLIKELY (wvparse->sample_rate != rate || wvparse->channels != chans in gst_wavpack_parse_handle_frame()
558 || wvparse->width != width || wvparse->channel_mask != mask)) { in gst_wavpack_parse_handle_frame()
571 mask = gst_wavpack_get_default_channel_mask (wvparse->channels); in gst_wavpack_parse_handle_frame()
578 GST_WARNING_OBJECT (wvparse, "Failed to determine channel layout"); in gst_wavpack_parse_handle_frame()
591 wvparse->sample_rate = rate; in gst_wavpack_parse_handle_frame()
592 wvparse->channels = chans; in gst_wavpack_parse_handle_frame()
593 wvparse->width = width; in gst_wavpack_parse_handle_frame()
594 wvparse->channel_mask = mask; in gst_wavpack_parse_handle_frame()
596 if (wvparse->total_samples) { in gst_wavpack_parse_handle_frame()
597 GST_DEBUG_OBJECT (wvparse, "setting duration"); in gst_wavpack_parse_handle_frame()
598 gst_base_parse_set_duration (GST_BASE_PARSE (wvparse), in gst_wavpack_parse_handle_frame()
599 GST_FORMAT_TIME, gst_util_uint64_scale_int (wvparse->total_samples, in gst_wavpack_parse_handle_frame()
600 GST_SECOND, wvparse->sample_rate), 0); in gst_wavpack_parse_handle_frame()
612 GST_LOG_OBJECT (wvparse, "skipping %d", *skipsize); in gst_wavpack_parse_handle_frame()
617 GST_LOG_OBJECT (wvparse, "need at least %u", frmsize); in gst_wavpack_parse_handle_frame()