Lines Matching refs:klass
194 gst_nonstream_audio_decoder_class_init (GstNonstreamAudioDecoderClass * klass);
196 GstNonstreamAudioDecoderClass * klass);
259 dec, GstNonstreamAudioDecoderClass * klass);
372 gst_nonstream_audio_decoder_class_init (GstNonstreamAudioDecoderClass * klass) in gst_nonstream_audio_decoder_class_init() argument
377 object_class = G_OBJECT_CLASS (klass); in gst_nonstream_audio_decoder_class_init()
378 element_class = GST_ELEMENT_CLASS (klass); in gst_nonstream_audio_decoder_class_init()
380 gst_nonstream_audio_decoder_parent_class = g_type_class_peek_parent (klass); in gst_nonstream_audio_decoder_class_init()
394 klass->seek = NULL; in gst_nonstream_audio_decoder_class_init()
395 klass->tell = NULL; in gst_nonstream_audio_decoder_class_init()
397 klass->load_from_buffer = NULL; in gst_nonstream_audio_decoder_class_init()
398 klass->load_from_custom = NULL; in gst_nonstream_audio_decoder_class_init()
400 klass->get_main_tags = NULL; in gst_nonstream_audio_decoder_class_init()
402 klass->get_current_subsong = NULL; in gst_nonstream_audio_decoder_class_init()
403 klass->set_current_subsong = NULL; in gst_nonstream_audio_decoder_class_init()
405 klass->get_num_subsongs = NULL; in gst_nonstream_audio_decoder_class_init()
406 klass->get_subsong_duration = NULL; in gst_nonstream_audio_decoder_class_init()
407 klass->get_subsong_tags = NULL; in gst_nonstream_audio_decoder_class_init()
408 klass->set_subsong_mode = NULL; in gst_nonstream_audio_decoder_class_init()
410 klass->set_num_loops = NULL; in gst_nonstream_audio_decoder_class_init()
411 klass->get_num_loops = NULL; in gst_nonstream_audio_decoder_class_init()
413 klass->decode = NULL; in gst_nonstream_audio_decoder_class_init()
415 klass->negotiate = in gst_nonstream_audio_decoder_class_init()
418 klass->decide_allocation = in gst_nonstream_audio_decoder_class_init()
420 klass->propose_allocation = in gst_nonstream_audio_decoder_class_init()
424 klass->loads_from_sinkpad = TRUE; in gst_nonstream_audio_decoder_class_init()
466 GstNonstreamAudioDecoderClass * klass) in gst_nonstream_audio_decoder_init() argument
489 gst_element_class_get_pad_template (GST_ELEMENT_CLASS (klass), "src"); in gst_nonstream_audio_decoder_init()
500 if (klass->loads_from_sinkpad) { in gst_nonstream_audio_decoder_init()
504 gst_element_class_get_pad_template (GST_ELEMENT_CLASS (klass), "sink"); in gst_nonstream_audio_decoder_init()
538 GstNonstreamAudioDecoderClass *klass = in gst_nonstream_audio_decoder_set_property() local
547 g_assert (klass->get_supported_output_modes); in gst_nonstream_audio_decoder_set_property()
549 if ((klass->get_supported_output_modes (dec) & (1u << new_output_mode)) == in gst_nonstream_audio_decoder_set_property()
565 if (klass->set_output_mode != NULL) { in gst_nonstream_audio_decoder_set_property()
566 if (klass->set_output_mode (dec, new_output_mode, &cur_position)) in gst_nonstream_audio_decoder_set_property()
613 if (klass->set_subsong_mode != NULL) { in gst_nonstream_audio_decoder_set_property()
614 if (klass->set_subsong_mode (dec, new_subsong_mode, &cur_position)) in gst_nonstream_audio_decoder_set_property()
651 if (klass->set_num_loops != NULL) { in gst_nonstream_audio_decoder_set_property()
652 if (!(klass->set_num_loops (dec, new_num_loops))) in gst_nonstream_audio_decoder_set_property()
739 GstNonstreamAudioDecoderClass *klass = in gst_nonstream_audio_decoder_change_state() local
751 if (!(klass->loads_from_sinkpad) && !(dec->loaded_mode)) { in gst_nonstream_audio_decoder_change_state()
755 g_assert (klass->load_from_custom != NULL); in gst_nonstream_audio_decoder_change_state()
866 GstNonstreamAudioDecoderClass *klass; in gst_nonstream_audio_decoder_sink_query() local
869 klass = GST_NONSTREAM_AUDIO_DECODER_GET_CLASS (dec); in gst_nonstream_audio_decoder_sink_query()
874 if (klass->propose_allocation != NULL) in gst_nonstream_audio_decoder_sink_query()
875 res = klass->propose_allocation (dec, query); in gst_nonstream_audio_decoder_sink_query()
1001 GstNonstreamAudioDecoderClass *klass; in gst_nonstream_audio_decoder_src_query() local
1004 klass = GST_NONSTREAM_AUDIO_DECODER_GET_CLASS (dec); in gst_nonstream_audio_decoder_src_query()
1050 if (klass->tell == NULL) { in gst_nonstream_audio_decoder_src_query()
1061 pos = klass->tell (dec); in gst_nonstream_audio_decoder_src_query()
1089 if (klass->seek == NULL) { in gst_nonstream_audio_decoder_src_query()
1171 GstNonstreamAudioDecoderClass *klass; in gst_nonstream_audio_decoder_negotiate() local
1174 klass = GST_NONSTREAM_AUDIO_DECODER_GET_CLASS (dec); in gst_nonstream_audio_decoder_negotiate()
1177 if (klass->negotiate != NULL) in gst_nonstream_audio_decoder_negotiate()
1178 res = klass->negotiate (dec); in gst_nonstream_audio_decoder_negotiate()
1190 GstNonstreamAudioDecoderClass *klass; in gst_nonstream_audio_decoder_negotiate_default() local
1200 klass = GST_NONSTREAM_AUDIO_DECODER_CLASS (G_OBJECT_GET_CLASS (dec)); in gst_nonstream_audio_decoder_negotiate_default()
1224 g_assert (klass->decide_allocation != NULL); in gst_nonstream_audio_decoder_negotiate_default()
1225 res = klass->decide_allocation (dec, query); in gst_nonstream_audio_decoder_negotiate_default()
1318 GstNonstreamAudioDecoderClass *klass; in gst_nonstream_audio_decoder_load_from_buffer() local
1321 klass = GST_NONSTREAM_AUDIO_DECODER_CLASS (G_OBJECT_GET_CLASS (dec)); in gst_nonstream_audio_decoder_load_from_buffer()
1322 g_assert (klass->load_from_buffer != NULL); in gst_nonstream_audio_decoder_load_from_buffer()
1331 klass->load_from_buffer (dec, buffer, dec->current_subsong, in gst_nonstream_audio_decoder_load_from_buffer()
1351 GstNonstreamAudioDecoderClass *klass; in gst_nonstream_audio_decoder_load_from_custom() local
1354 klass = GST_NONSTREAM_AUDIO_DECODER_CLASS (G_OBJECT_GET_CLASS (dec)); in gst_nonstream_audio_decoder_load_from_custom()
1355 g_assert (klass->load_from_custom != NULL); in gst_nonstream_audio_decoder_load_from_custom()
1364 klass->load_from_custom (dec, dec->current_subsong, dec->subsong_mode, in gst_nonstream_audio_decoder_load_from_custom()
1383 GstNonstreamAudioDecoderClass *klass = in gst_nonstream_audio_decoder_finish_load() local
1404 if (klass->get_num_subsongs != NULL) in gst_nonstream_audio_decoder_finish_load()
1406 klass->get_num_subsongs (dec)); in gst_nonstream_audio_decoder_finish_load()
1410 if (klass->get_current_subsong != NULL) { in gst_nonstream_audio_decoder_finish_load()
1412 dec->current_subsong = klass->get_current_subsong (dec); in gst_nonstream_audio_decoder_finish_load()
1417 if (klass->get_subsong_duration != NULL) { in gst_nonstream_audio_decoder_finish_load()
1420 duration = klass->get_subsong_duration (dec, dec->current_subsong); in gst_nonstream_audio_decoder_finish_load()
1426 if (klass->get_subsong_tags != NULL) { in gst_nonstream_audio_decoder_finish_load()
1431 tags = klass->get_subsong_tags (dec, dec->current_subsong); in gst_nonstream_audio_decoder_finish_load()
1463 gst_nonstream_audio_decoder_update_toc (dec, klass); in gst_nonstream_audio_decoder_finish_load()
1514 GstNonstreamAudioDecoderClass *klass = in gst_nonstream_audio_decoder_switch_to_subsong() local
1518 if (klass->set_current_subsong == NULL) { in gst_nonstream_audio_decoder_switch_to_subsong()
1550 if (klass->get_num_subsongs) { in gst_nonstream_audio_decoder_switch_to_subsong()
1551 guint num_subsongs = klass->get_num_subsongs (dec); in gst_nonstream_audio_decoder_switch_to_subsong()
1581 if (klass->loads_from_sinkpad) in gst_nonstream_audio_decoder_switch_to_subsong()
1593 if (!(klass->set_current_subsong (dec, new_subsong, &new_position))) { in gst_nonstream_audio_decoder_switch_to_subsong()
1600 if (klass->tell) in gst_nonstream_audio_decoder_switch_to_subsong()
1601 new_position = klass->tell (dec); in gst_nonstream_audio_decoder_switch_to_subsong()
1624 if (klass->loads_from_sinkpad) in gst_nonstream_audio_decoder_switch_to_subsong()
1631 if (klass->get_subsong_duration != NULL) in gst_nonstream_audio_decoder_switch_to_subsong()
1632 new_subsong_duration = klass->get_subsong_duration (dec, new_subsong); in gst_nonstream_audio_decoder_switch_to_subsong()
1640 if (klass->get_subsong_tags != NULL) { in gst_nonstream_audio_decoder_switch_to_subsong()
1641 GstTagList *subsong_tags = klass->get_subsong_tags (dec, new_subsong); in gst_nonstream_audio_decoder_switch_to_subsong()
1691 GstNonstreamAudioDecoderClass * klass) in gst_nonstream_audio_decoder_update_toc() argument
1702 if (klass->get_num_subsongs == NULL) in gst_nonstream_audio_decoder_update_toc()
1705 num_subsongs = klass->get_num_subsongs (dec); in gst_nonstream_audio_decoder_update_toc()
1713 if (klass->get_main_tags) { in gst_nonstream_audio_decoder_update_toc()
1714 GstTagList *main_tags = klass->get_main_tags (dec); in gst_nonstream_audio_decoder_update_toc()
1726 (klass->get_subsong_duration != in gst_nonstream_audio_decoder_update_toc()
1727 NULL) ? klass->get_subsong_duration (dec, i) : GST_CLOCK_TIME_NONE; in gst_nonstream_audio_decoder_update_toc()
1729 (klass->get_subsong_tags != NULL) ? klass->get_subsong_tags (dec, in gst_nonstream_audio_decoder_update_toc()
1840 GstNonstreamAudioDecoderClass *klass = in gst_nonstream_audio_decoder_do_seek() local
1843 if (klass->seek == NULL) { in gst_nonstream_audio_decoder_do_seek()
1901 if (klass->loads_from_sinkpad) in gst_nonstream_audio_decoder_do_seek()
1944 res = klass->seek (dec, &new_position); in gst_nonstream_audio_decoder_do_seek()
1964 if (klass->loads_from_sinkpad) in gst_nonstream_audio_decoder_do_seek()
2001 GstNonstreamAudioDecoderClass *klass = in gst_nonstream_audio_decoder_add_main_tags() local
2004 if (!klass->get_main_tags) in gst_nonstream_audio_decoder_add_main_tags()
2014 main_tags = klass->get_main_tags (dec); in gst_nonstream_audio_decoder_add_main_tags()
2041 GstNonstreamAudioDecoderClass *klass; in gst_nonstream_audio_decoder_output_task() local
2042 klass = GST_NONSTREAM_AUDIO_DECODER_CLASS (G_OBJECT_GET_CLASS (dec)); in gst_nonstream_audio_decoder_output_task()
2043 g_assert (klass->decode != NULL); in gst_nonstream_audio_decoder_output_task()
2048 if (!(klass->decode (dec, &outbuf, &num_samples))) { in gst_nonstream_audio_decoder_output_task()