• Home
  • Raw
  • Download

Lines Matching refs:chromaprint

68 GST_ELEMENT_REGISTER_DEFINE_CUSTOM (chromaprint, chromaprint_element_init);
124 gst_chromaprint_reset (GstChromaprint * chromaprint) in gst_chromaprint_reset() argument
126 if (chromaprint->fingerprint) { in gst_chromaprint_reset()
127 chromaprint_dealloc (chromaprint->fingerprint); in gst_chromaprint_reset()
128 chromaprint->fingerprint = NULL; in gst_chromaprint_reset()
131 chromaprint->nsamples = 0; in gst_chromaprint_reset()
132 chromaprint->duration = 0; in gst_chromaprint_reset()
133 chromaprint->record = TRUE; in gst_chromaprint_reset()
137 gst_chromaprint_create_fingerprint (GstChromaprint * chromaprint) in gst_chromaprint_create_fingerprint() argument
141 if (chromaprint->duration <= 3) in gst_chromaprint_create_fingerprint()
144 GST_DEBUG_OBJECT (chromaprint, in gst_chromaprint_create_fingerprint()
146 chromaprint->duration); in gst_chromaprint_create_fingerprint()
148 chromaprint_finish (chromaprint->context); in gst_chromaprint_create_fingerprint()
149 chromaprint_get_fingerprint (chromaprint->context, &chromaprint->fingerprint); in gst_chromaprint_create_fingerprint()
150 chromaprint->record = FALSE; in gst_chromaprint_create_fingerprint()
152 g_object_notify ((GObject *) chromaprint, "fingerprint"); in gst_chromaprint_create_fingerprint()
155 chromaprint->fingerprint, NULL); in gst_chromaprint_create_fingerprint()
157 gst_pad_push_event (GST_BASE_TRANSFORM_SRC_PAD (chromaprint), in gst_chromaprint_create_fingerprint()
162 gst_chromaprint_init (GstChromaprint * chromaprint) in gst_chromaprint_init() argument
164 gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (chromaprint), TRUE); in gst_chromaprint_init()
166 chromaprint->context = chromaprint_new (CHROMAPRINT_ALGORITHM_DEFAULT); in gst_chromaprint_init()
167 chromaprint->fingerprint = NULL; in gst_chromaprint_init()
168 chromaprint->max_duration = DEFAULT_MAX_DURATION; in gst_chromaprint_init()
169 gst_chromaprint_reset (chromaprint); in gst_chromaprint_init()
175 GstChromaprint *chromaprint = GST_CHROMAPRINT (object); in gst_chromaprint_finalize() local
177 chromaprint->record = FALSE; in gst_chromaprint_finalize()
179 if (chromaprint->context) { in gst_chromaprint_finalize()
180 chromaprint_free (chromaprint->context); in gst_chromaprint_finalize()
181 chromaprint->context = NULL; in gst_chromaprint_finalize()
184 if (chromaprint->fingerprint) { in gst_chromaprint_finalize()
185 chromaprint_dealloc (chromaprint->fingerprint); in gst_chromaprint_finalize()
186 chromaprint->fingerprint = NULL; in gst_chromaprint_finalize()
195 GstChromaprint *chromaprint = GST_CHROMAPRINT (trans); in gst_chromaprint_transform_ip() local
207 if (!chromaprint->record) in gst_chromaprint_transform_ip()
218 if (chromaprint->nsamples == 0) { in gst_chromaprint_transform_ip()
219 chromaprint_start (chromaprint->context, rate, channels); in gst_chromaprint_transform_ip()
221 chromaprint->nsamples += nsamples; in gst_chromaprint_transform_ip()
222 chromaprint->duration = chromaprint->nsamples / rate; in gst_chromaprint_transform_ip()
224 chromaprint_feed (chromaprint->context, (gint16 *) map_info.data, in gst_chromaprint_transform_ip()
227 if (chromaprint->duration >= chromaprint->max_duration in gst_chromaprint_transform_ip()
228 && !chromaprint->fingerprint) { in gst_chromaprint_transform_ip()
229 gst_chromaprint_create_fingerprint (chromaprint); in gst_chromaprint_transform_ip()
241 GstChromaprint *chromaprint = GST_CHROMAPRINT (trans); in gst_chromaprint_sink_event() local
248 gst_chromaprint_reset (chromaprint); in gst_chromaprint_sink_event()
251 if (!chromaprint->fingerprint) { in gst_chromaprint_sink_event()
252 gst_chromaprint_create_fingerprint (chromaprint); in gst_chromaprint_sink_event()
266 GstChromaprint *chromaprint = GST_CHROMAPRINT (object); in gst_chromaprint_set_property() local
270 chromaprint->max_duration = g_value_get_uint (value); in gst_chromaprint_set_property()
282 GstChromaprint *chromaprint = GST_CHROMAPRINT (object); in gst_chromaprint_get_property() local
286 g_value_set_string (value, chromaprint->fingerprint); in gst_chromaprint_get_property()
289 g_value_set_uint (value, chromaprint->max_duration); in gst_chromaprint_get_property()
322 return GST_ELEMENT_REGISTER (chromaprint, plugin); in plugin_init()
327 chromaprint,