~ubuntu-branches/ubuntu/precise/gst0.10-python/precise

« back to all changes in this revision

Viewing changes to gst/base.defs

Tags: upstream-0.10.8
Import upstream version 0.10.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  (gtype-id "GST_TYPE_COLLECT_PADS")
36
36
)
37
37
 
38
 
(define-object PushSrc
 
38
(define-object DataQueue
39
39
  (in-module "Gst")
40
 
  (parent "GstBaseSrc")
41
 
  (c-name "GstPushSrc")
42
 
  (gtype-id "GST_TYPE_PUSH_SRC")
 
40
  (parent "GObject")
 
41
  (c-name "GstDataQueue")
 
42
  (gtype-id "GST_TYPE_DATA_QUEUE")
43
43
)
44
44
 
 
45
; PushSrc doesn't work due to limitations in the code generator, so disable
 
46
;(define-object PushSrc
 
47
;  (in-module "Gst")
 
48
;  (parent "GstBaseSrc")
 
49
;  (c-name "GstPushSrc")
 
50
;  (gtype-id "GST_TYPE_PUSH_SRC")
 
51
;)
 
52
 
45
53
;; Enumerations and flags ...
46
54
 
47
55
; (define-flags BaseSrcFlags
202
210
  (return-type "gboolean")
203
211
)
204
212
 
 
213
(define-method query_latency
 
214
  (of-object "GstBaseSink")
 
215
  (c-name "gst_base_sink_query_latency")
 
216
  (return-type "gboolean")
 
217
  (parameters
 
218
    '("gboolean*" "live")
 
219
    '("gboolean*" "upstream_live")
 
220
    '("GstClockTime*" "min_latency")
 
221
    '("GstClockTime*" "max_latency")
 
222
  )
 
223
)
 
224
 
 
225
(define-method get_latency
 
226
  (of-object "GstBaseSink")
 
227
  (c-name "gst_base_sink_get_latency")
 
228
  (return-type "GstClockTime")
 
229
)
 
230
 
205
231
(define-virtual get_caps
206
232
  (of-object "GstBaseSink")
207
233
  (return-type "GstCaps*")
275
301
  )
276
302
)
277
303
 
 
304
(define-virtual activate_pull
 
305
  (of-object "GstBaseSink")
 
306
  (return-type "gboolean")
 
307
  (parameters
 
308
   '("gboolean" "active")
 
309
  )
 
310
)
 
311
 
 
312
(define-virtual fixate
 
313
  (of-object "GstBaseSink")
 
314
  (return-type "none")
 
315
  (parameters
 
316
   '("GstCaps*" "caps")
 
317
  )
 
318
)
 
319
 
 
320
(define-virtual unlock_stop
 
321
  (of-object "GstBaseSink")
 
322
  (return-type "gboolean")
 
323
)
 
324
 
278
325
;; From ../gstreamer/libs/gst/base/gstbasesrc.h
279
326
 
280
327
(define-function gst_base_src_get_type
312
359
  )
313
360
)
314
361
 
 
362
(define-method query_latency
 
363
  (of-object "GstBaseSrc")
 
364
  (c-name "gst_base_src_query_latency")
 
365
  (return-type "gboolean")
 
366
  (parameters
 
367
    '("gboolean*" "live")
 
368
    '("GstClockTime*" "min_latency")
 
369
    '("GstClockTime*" "max_latency")
 
370
  )
 
371
)
 
372
 
315
373
(define-virtual get_caps
316
374
  (of-object "GstBaseSrc")
317
375
  (return-type "GstCaps*")
412
470
  (return-type "gboolean")
413
471
)
414
472
 
 
473
(define-virtual fixate
 
474
  (of-object "GstBaseSrc")
 
475
  (return-type "none")
 
476
  (parameters
 
477
   '("GstCaps*" "caps")
 
478
  )
 
479
)
 
480
 
 
481
(define-virtual unlock_stop
 
482
  (of-object "GstBaseSrc")
 
483
  (return-type "gboolean")
 
484
)
 
485
 
 
486
(define-virtual prepare_seek_segment
 
487
  (of-object "GstBaseSrc")
 
488
  (return-type "gboolean")
 
489
  (parameters
 
490
   '("GstEvent*" "seek")
 
491
   '("GstSegment*" "segment")
 
492
  )
 
493
)
 
494
 
 
495
 
415
496
;; From ../gstreamer/libs/gst/base/gstbasetransform.h
416
497
 
417
498
(define-function gst_base_transform_get_type
570
651
  )
571
652
)
572
653
 
 
654
(define-virtual src_event
 
655
  (of-object "GstBaseTransform")
 
656
  (return-type "gboolean")
 
657
  (parameters
 
658
   '("GstEvent*" "event")
 
659
  )
 
660
)
573
661
 
574
662
;; From ../gstreamer/libs/gst/base/gstcollectpads.h
575
663
 
604
692
  )
605
693
)
606
694
 
 
695
(define-method add_pad_full
 
696
  (of-object "GstCollectPads")
 
697
  (c-name "gst_collect_pads_add_pad_full")
 
698
  (return-type "GstCollectData*")
 
699
  (parameters
 
700
    '("GstPad*" "pad")
 
701
    '("guint" "size")
 
702
    '("GstCollectDataDestroyNotify" "destroy_notify")
 
703
  )
 
704
)
 
705
 
607
706
(define-method remove_pad
608
707
  (of-object "GstCollectPads")
609
708
  (c-name "gst_collect_pads_remove_pad")
708
807
 
709
808
;; From ../gstreamer/libs/gst/base/gstpushsrc.h
710
809
 
711
 
(define-function gst_push_src_get_type
712
 
  (c-name "gst_push_src_get_type")
713
 
  (return-type "GType")
714
 
)
 
810
;(define-function gst_push_src_get_type
 
811
;  (c-name "gst_push_src_get_type")
 
812
;  (return-type "GType")
 
813
;)
715
814
 
716
 
(define-virtual create
717
 
  (of-object "GstPushSrc")
718
 
  (return-type "GstFlowReturn")
719
 
  (parameters
720
 
   '("GstBuffer**" "buf")
721
 
  )
722
 
)
 
815
;(define-virtual create
 
816
;  (of-object "GstPushSrc")
 
817
;  (return-type "GstFlowReturn")
 
818
;  (parameters
 
819
;   '("GstBuffer**" "buf")
 
820
;  )
 
821
;)
723
822
 
724
823
 
725
824
 
754
853
    '("GstTypeFindProbability*" "prob")
755
854
  )
756
855
)
 
856
 
 
857
;; From gstdataqueue.h
 
858
 
 
859
(define-function gst_data_queue_get_type
 
860
  (c-name "gst_data_queue_get_type")
 
861
  (return-type "GType")
 
862
)
 
863
 
 
864
(define-function gst_data_queue_new
 
865
  (c-name "gst_data_queue_new")
 
866
  (is-constructor-of "GstDataQueue")
 
867
  (return-type "GstDataQueue*")
 
868
  (parameters
 
869
    '("GstDataQueueCheckFullFunction" "checkfull")
 
870
    '("gpointer" "checkdata")
 
871
  )
 
872
)
 
873
 
 
874
(define-method push
 
875
  (of-object "GstDataQueue")
 
876
  (c-name "gst_data_queue_push")
 
877
  (return-type "gboolean")
 
878
  (parameters
 
879
    '("GstDataQueueItem*" "item")
 
880
  )
 
881
)
 
882
 
 
883
(define-method pop
 
884
  (of-object "GstDataQueue")
 
885
  (c-name "gst_data_queue_pop")
 
886
  (return-type "gboolean")
 
887
  (parameters
 
888
    '("GstDataQueueItem**" "item")
 
889
  )
 
890
)
 
891
 
 
892
(define-method flush
 
893
  (of-object "GstDataQueue")
 
894
  (c-name "gst_data_queue_flush")
 
895
  (return-type "none")
 
896
)
 
897
 
 
898
(define-method set_flushing
 
899
  (of-object "GstDataQueue")
 
900
  (c-name "gst_data_queue_set_flushing")
 
901
  (return-type "none")
 
902
  (parameters
 
903
    '("gboolean" "flushing")
 
904
  )
 
905
)
 
906
 
 
907
(define-method drop_head
 
908
  (of-object "GstDataQueue")
 
909
  (c-name "gst_data_queue_drop_head")
 
910
  (return-type "gboolean")
 
911
  (parameters
 
912
    '("GType" "type")
 
913
  )
 
914
)
 
915
 
 
916
(define-method is_full
 
917
  (of-object "GstDataQueue")
 
918
  (c-name "gst_data_queue_is_full")
 
919
  (return-type "gboolean")
 
920
)
 
921
 
 
922
(define-method is_empty
 
923
  (of-object "GstDataQueue")
 
924
  (c-name "gst_data_queue_is_empty")
 
925
  (return-type "gboolean")
 
926
)
 
927
 
 
928
(define-method get_level
 
929
  (of-object "GstDataQueue")
 
930
  (c-name "gst_data_queue_get_level")
 
931
  (return-type "none")
 
932
  (parameters
 
933
    '("GstDataQueueSize*" "level")
 
934
  )
 
935
)
 
936
 
 
937
(define-method limits_changed
 
938
  (of-object "GstDataQueue")
 
939
  (c-name "gst_data_queue_limits_changed")
 
940
  (return-type "none")
 
941
)
 
942
 
 
943