home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / gst-python / 0.10 / defs / base.defs next >
Encoding:
Text File  |  2006-07-31  |  13.4 KB  |  735 lines

  1. ;; -*- scheme -*-
  2. ; object definitions ...
  3. (define-object Adapter
  4.   (in-module "Gst")
  5.   (parent "GObject")
  6.   (c-name "GstAdapter")
  7.   (gtype-id "GST_TYPE_ADAPTER")
  8. )
  9.  
  10. (define-object BaseSink
  11.   (in-module "Gst")
  12.   (parent "GstElement")
  13.   (c-name "GstBaseSink")
  14.   (gtype-id "GST_TYPE_BASE_SINK")
  15. )
  16.  
  17. (define-object BaseSrc
  18.   (in-module "Gst")
  19.   (parent "GstElement")
  20.   (c-name "GstBaseSrc")
  21.   (gtype-id "GST_TYPE_BASE_SRC")
  22. )
  23.  
  24. (define-object BaseTransform
  25.   (in-module "Gst")
  26.   (parent "GstElement")
  27.   (c-name "GstBaseTransform")
  28.   (gtype-id "GST_TYPE_BASE_TRANSFORM")
  29. )
  30.  
  31. (define-object CollectPads
  32.   (in-module "Gst")
  33.   (parent "GstObject")
  34.   (c-name "GstCollectPads")
  35.   (gtype-id "GST_TYPE_COLLECT_PADS")
  36. )
  37.  
  38. (define-object PushSrc
  39.   (in-module "Gst")
  40.   (parent "GstBaseSrc")
  41.   (c-name "GstPushSrc")
  42.   (gtype-id "GST_TYPE_PUSH_SRC")
  43. )
  44.  
  45. ;; Enumerations and flags ...
  46.  
  47. ; (define-flags BaseSrcFlags
  48. ;   (in-module "Gst")
  49. ;   (c-name "GstBaseSrcFlags")
  50. ;   (gtype-id "GST_TYPE_BASE_SRC_FLAGS")
  51. ;   (values
  52. ;     '("started" "GST_BASE_SRC_STARTED")
  53. ;     '("flag-last" "GST_BASE_SRC_FLAG_LAST")
  54. ;   )
  55. ; )
  56.  
  57.  
  58. ;; From ../gstreamer/libs/gst/base/gstadapter.h
  59.  
  60. (define-function gst_adapter_new
  61.   (c-name "gst_adapter_new")
  62.   (is-constructor-of "GstAdapter")
  63.   (return-type "GstAdapter*")
  64. )
  65.  
  66. (define-method clear
  67.   (of-object "GstAdapter")
  68.   (c-name "gst_adapter_clear")
  69.   (return-type "none")
  70. )
  71.  
  72. (define-method push
  73.   (of-object "GstAdapter")
  74.   (c-name "gst_adapter_push")
  75.   (return-type "none")
  76.   (parameters
  77.     '("GstBuffer*" "buf")
  78.   )
  79. )
  80.  
  81. (define-method peek
  82.   (of-object "GstAdapter")
  83.   (c-name "gst_adapter_peek")
  84.   (return-type "const-guint8*")
  85.   (parameters
  86.     '("guint" "size")
  87.   )
  88. )
  89.  
  90. (define-method flush
  91.   (of-object "GstAdapter")
  92.   (c-name "gst_adapter_flush")
  93.   (return-type "none")
  94.   (parameters
  95.     '("guint" "flush")
  96.   )
  97. )
  98.  
  99. (define-method take
  100.   (of-object "GstAdapter")
  101.   (c-name "gst_adapter_take")
  102.   (return-type "guint8*")
  103.   (parameters
  104.     '("guint" "nbytes")
  105.   )
  106. )
  107.  
  108. (define-method take_buffer
  109.   (of-object "GstAdapter")
  110.   (c-name "gst_adapter_take_buffer")
  111.   (return-type "GstBuffer*")
  112.   (parameters
  113.    '("guint" "nbytes")
  114.   )
  115. )
  116.  
  117. (define-method available
  118.   (of-object "GstAdapter")
  119.   (c-name "gst_adapter_available")
  120.   (return-type "guint")
  121. )
  122.  
  123. (define-method available_fast
  124.   (of-object "GstAdapter")
  125.   (c-name "gst_adapter_available_fast")
  126.   (return-type "guint")
  127. )
  128.  
  129. (define-function gst_adapter_get_type
  130.   (c-name "gst_adapter_get_type")
  131.   (return-type "GType")
  132. )
  133.  
  134.  
  135.  
  136. ;; From ../gstreamer/libs/gst/base/gstbasesink.h
  137.  
  138. (define-function gst_base_sink_get_type
  139.   (c-name "gst_base_sink_get_type")
  140.   (return-type "GType")
  141. )
  142.  
  143.  
  144. (define-method set_sync
  145.   (of-object "GstBaseSink")
  146.   (c-name "gst_base_sink_set_sync")
  147.   (return-type "none")
  148.   (parameters
  149.     '("gboolean" "sync")
  150.   )
  151. )
  152.  
  153. (define-method get_sync
  154.   (of-object "GstBaseSink")
  155.   (c-name "gst_base_sink_get_sync")
  156.   (return-type "gboolean")
  157. )
  158.  
  159. (define-method set_max_lateness
  160.   (of-object "GstBaseSink")
  161.   (c-name "gst_base_sink_set_max_lateness")
  162.   (return-type "none")
  163.   (parameters
  164.     '("gint64" "max_lateness")
  165.   )
  166. )
  167.  
  168. (define-method get_max_lateness
  169.   (of-object "GstBaseSink")
  170.   (c-name "gst_base_sink_get_max_lateness")
  171.   (return-type "gint64")
  172. )
  173.  
  174. (define-method set_qos_enabled
  175.   (of-object "GstBaseSink")
  176.   (c-name "gst_base_sink_set_qos_enabled")
  177.   (return-type "none")
  178.   (parameters
  179.     '("gboolean" "enabled")
  180.   )
  181. )
  182.  
  183. (define-method is_qos_enabled
  184.   (of-object "GstBaseSink")
  185.   (c-name "gst_base_sink_is_qos_enabled")
  186.   (return-type "gboolean")
  187. )
  188.  
  189. (define-virtual get_caps
  190.   (of-object "GstBaseSink")
  191.   (return-type "GstCaps*")
  192. )
  193.  
  194. (define-virtual set_caps
  195.   (of-object "GstBaseSink")
  196.   (return-type "gboolean")
  197.   (parameters
  198.    '("GstCaps*" "caps")
  199.   )
  200. )
  201.  
  202. (define-virtual buffer_alloc
  203.   (of-object "GstBaseSink")
  204.   (return-type "GstFlowReturn")
  205.   (parameters
  206.    '("guint64" "offset")
  207.    '("guint" "size")
  208.    '("GstCaps*" "caps")
  209.    '("GstBuffer**" "buffer")
  210.   )
  211. )
  212.  
  213. (define-virtual get_times
  214.   (of-object "GstBaseSink")
  215.   (return-type "none")
  216.   (parameters
  217.    '("GstBuffer*" "buffer")
  218.    '("GstClockTime*" "start")
  219.    '("GstClockTime*" "end")
  220.   )
  221. )
  222.  
  223. (define-virtual start
  224.   (of-object "GstBaseSink")
  225.   (return-type "gboolean")
  226. )
  227.  
  228. (define-virtual stop
  229.   (of-object "GstBaseSink")
  230.   (return-type "gboolean")
  231. )
  232.  
  233. (define-virtual unlock
  234.   (of-object "GstBaseSink")
  235.   (return-type "gboolean")
  236. )
  237.  
  238. (define-virtual event
  239.   (of-object "GstBaseSink")
  240.   (return-type "gboolean")
  241.   (parameters
  242.    '("GstEvent*" "event")
  243.   )
  244. )
  245.  
  246. (define-virtual preroll
  247.   (of-object "GstBaseSink")
  248.   (return-type "GstFlowReturn")
  249.   (parameters
  250.    '("GstBuffer*" "buffer")
  251.   )
  252. )
  253.  
  254. (define-virtual render
  255.   (of-object "GstBaseSink")
  256.   (return-type "GstFlowReturn")
  257.   (parameters
  258.    '("GstBuffer*" "buffer")
  259.   )
  260. )
  261.  
  262. ;; From ../gstreamer/libs/gst/base/gstbasesrc.h
  263.  
  264. (define-function gst_base_src_get_type
  265.   (c-name "gst_base_src_get_type")
  266.   (return-type "GType")
  267. )
  268.  
  269. (define-method set_live
  270.   (of-object "GstBaseSrc")
  271.   (c-name "gst_base_src_set_live")
  272.   (return-type "none")
  273.   (parameters
  274.     '("gboolean" "live")
  275.   )
  276. )
  277.  
  278. (define-method is_live
  279.   (of-object "GstBaseSrc")
  280.   (c-name "gst_base_src_is_live")
  281.   (return-type "gboolean")
  282. )
  283.  
  284. (define-method set_format
  285.   (of-object "GstBaseSrc")
  286.   (c-name "gst_base_src_set_format")
  287.   (return-type "none")
  288.   (parameters
  289.     '("GstFormat" "format")
  290.   )
  291. )
  292.  
  293. (define-virtual get_caps
  294.   (of-object "GstBaseSrc")
  295.   (return-type "GstCaps*")
  296. )
  297.  
  298. (define-virtual set_caps
  299.   (of-object "GstBaseSrc")
  300.   (return-type "gboolean")
  301.   (parameters
  302.    '("GstCaps*" "caps")
  303.   )
  304. )
  305.  
  306. (define-virtual negotiate
  307.   (of-object "GstBaseSrc")
  308.   (return-type "gboolean")
  309. )
  310.  
  311. (define-virtual newsegment
  312.   (of-object "GstBaseSrc")
  313.   (return-type "gboolean")
  314. )
  315.  
  316. (define-virtual start
  317.   (of-object "GstBaseSrc")
  318.   (return-type "gboolean")
  319. )
  320.  
  321. (define-virtual stop
  322.   (of-object "GstBaseSrc")
  323.   (return-type "gboolean")
  324. )
  325.  
  326. (define-virtual get_times
  327.   (of-object "GstBaseSrc")
  328.   (return-type "none")
  329.   (parameters
  330.    '("GstBuffer*" "buffer")
  331.    '("GstClockTime*" "start")
  332.    '("GstClockTime*" "end")
  333.   )
  334. )
  335.  
  336. (define-virtual get_size
  337.   (of-object "GstBaseSrc")
  338.   (return-type "gboolean")
  339.   (parameters
  340.    '("guint64*" "size")
  341.   )
  342. )
  343.  
  344. (define-virtual is_seekable
  345.   (of-object "GstBaseSrc")
  346.   (return-type "gboolean")
  347. )
  348.  
  349. (define-virtual unlock
  350.   (of-object "GstBaseSrc")
  351.   (return-type "gboolean")
  352. )
  353.  
  354. (define-virtual event
  355.   (of-object "GstBaseSrc")
  356.   (return-type "gboolean")
  357.   (parameters
  358.    '("GstEvent*" "event")
  359.   )
  360. )
  361.  
  362. (define-virtual create
  363.   (of-object "GstBaseSrc")
  364.   (return-type "GstFlowReturn")
  365.   (parameters
  366.    '("guint64" "offset")
  367.    '("guint" "size")
  368.    '("GstBuffer**" "buf")
  369.   )
  370. )
  371.  
  372. (define-virtual do_seek
  373.   (of-object "GstBaseSrc")
  374.   (return-type "gboolean")
  375.   (parameters
  376.    '("GstSegment*" "segment")
  377.   )
  378. )
  379.  
  380. (define-virtual query
  381.   (of-object "GstBaseSrc")
  382.   (return-type "gboolean")
  383.   (parameters
  384.    '("GstQuery*" "query")
  385.   )
  386. )
  387.  
  388. (define-virtual check_get_range
  389.   (of-object "GstBaseSrc")
  390.   (return-type "gboolean")
  391. )
  392.  
  393. ;; From ../gstreamer/libs/gst/base/gstbasetransform.h
  394.  
  395. (define-function gst_base_transform_get_type
  396.   (c-name "gst_base_transform_get_type")
  397.   (return-type "GType")
  398. )
  399.  
  400. (define-method set_passthrough
  401.   (of-object "GstBaseTransform")
  402.   (c-name "gst_base_transform_set_passthrough")
  403.   (return-type "none")
  404.   (parameters
  405.     '("gboolean" "passthrough")
  406.   )
  407. )
  408.  
  409. (define-method is_passthrough
  410.   (of-object "GstBaseTransform")
  411.   (c-name "gst_base_transform_is_passthrough")
  412.   (return-type "gboolean")
  413. )
  414.  
  415. (define-method set_in_place
  416.   (of-object "GstBaseTransform")
  417.   (c-name "gst_base_transform_set_in_place")
  418.   (return-type "none")
  419.   (parameters
  420.     '("gboolean" "in_place")
  421.   )
  422. )
  423.  
  424. (define-method is_in_place
  425.   (of-object "GstBaseTransform")
  426.   (c-name "gst_base_transform_is_in_place")
  427.   (return-type "gboolean")
  428. )
  429.  
  430. (define-method update_qos
  431.   (of-object "GstBaseTransform")
  432.   (c-name "gst_base_transform_update_qos")
  433.   (return-type "none")
  434.   (parameters
  435.     '("gdouble" "proportion")
  436.     '("GstClockTimeDiff" "diff")
  437.     '("GstClockTime" "timestamp")
  438.   )
  439. )
  440.  
  441. (define-method set_qos_enabled
  442.   (of-object "GstBaseTransform")
  443.   (c-name "gst_base_transform_set_qos_enabled")
  444.   (return-type "none")
  445.   (parameters
  446.     '("gboolean" "enabled")
  447.   )
  448. )
  449.  
  450. (define-method is_qos_enabled
  451.   (of-object "GstBaseTransform")
  452.   (c-name "gst_base_transform_is_qos_enabled")
  453.   (return-type "gboolean")
  454. )
  455.  
  456. (define-virtual transform_caps
  457.   (of-object "GstBaseTransform")
  458.   (return-type "GstCaps*")
  459.   (parameters
  460.    '("GstPadDirection" "direction")
  461.    '("GstCaps*" "caps")
  462.   )
  463. )
  464.  
  465. (define-virtual fixate_caps
  466.   (of-object "GstBaseTransform")
  467.   (return-type "none")
  468.   (parameters
  469.    '("GstPadDirection" "direction")
  470.    '("GstCaps*" "caps")
  471.    '("GstCaps*" "othercaps")
  472.   )
  473. )
  474.  
  475. (define-virtual transform_size
  476.   (of-object "GstBaseTransform")
  477.   (return-type "gboolean")
  478.   (parameters
  479.    '("GstPadDirection" "direction")
  480.    '("GstCaps*" "caps")
  481.    '("guint" "size")
  482.    '("GstCaps*" "othercaps")
  483.    '("guint*" "othersize")
  484.   )
  485. )
  486.  
  487. (define-virtual get_unit_size
  488.   (of-object "GstBaseTransform")
  489.   (return-type "gboolean")
  490.   (parameters
  491.    '("GstCaps*" "caps")
  492.    '("guint*" "size")
  493.   )
  494. )
  495.  
  496. (define-virtual set_caps
  497.   (of-object "GstBaseTransform")
  498.   (return-type "gboolean")
  499.   (parameters
  500.    '("GstCaps*" "incaps")
  501.    '("GstCaps*" "outcaps")
  502.   )
  503. )
  504.  
  505. (define-virtual start
  506.   (of-object "GstBaseTransform")
  507.   (return-type "gboolean")
  508. )
  509.  
  510. (define-virtual stop
  511.   (of-object "GstBaseTransform")
  512.   (return-type "gboolean")
  513. )
  514.  
  515. (define-virtual event
  516.   (of-object "GstBaseTransform")
  517.   (return-type "gboolean")
  518.   (parameters
  519.    '("GstEvent*" "event")
  520.   )
  521. )
  522.  
  523. (define-virtual transform
  524.   (of-object "GstBaseTransform")
  525.   (return-type "GstFlowReturn")
  526.   (parameters
  527.    '("GstBuffer*" "inbuf")
  528.    '("GstBuffer*" "outbuf")
  529.   )
  530. )
  531.  
  532. (define-virtual transform_ip
  533.   (of-object "GstBaseTransform")
  534.   (return-type "GstFlowReturn")
  535.   (parameters
  536.    '("GstBuffer*" "buf")
  537.   )
  538. )
  539.  
  540. (define-virtual prepare_output_buffer
  541.   (of-object "GstBaseTransform")
  542.   (return-type "GstFlowReturn")
  543.   (parameters
  544.    '("GstBuffer*" "input")
  545.    '("gint" "size")
  546.    '("GstCaps*" "caps")
  547.    '("GstBuffer**" "buf")
  548.   )
  549. )
  550.  
  551.  
  552. ;; From ../gstreamer/libs/gst/base/gstcollectpads.h
  553.  
  554. (define-function gst_collect_pads_get_type
  555.   (c-name "gst_collect_pads_get_type")
  556.   (return-type "GType")
  557. )
  558.  
  559. (define-function gst_collect_pads_new
  560.   (c-name "gst_collect_pads_new")
  561.   (is-constructor-of "GstCollectPads")
  562.   (return-type "GstCollectPads*")
  563. )
  564.  
  565. (define-method set_function
  566.   (of-object "GstCollectPads")
  567.   (c-name "gst_collect_pads_set_function")
  568.   (return-type "none")
  569.   (parameters
  570.     '("GstCollectPadsFunction" "func")
  571.     '("gpointer" "user_data")
  572.   )
  573. )
  574.  
  575. (define-method add_pad
  576.   (of-object "GstCollectPads")
  577.   (c-name "gst_collect_pads_add_pad")
  578.   (return-type "GstCollectData*")
  579.   (parameters
  580.     '("GstPad*" "pad")
  581.     '("guint" "size")
  582.   )
  583. )
  584.  
  585. (define-method remove_pad
  586.   (of-object "GstCollectPads")
  587.   (c-name "gst_collect_pads_remove_pad")
  588.   (return-type "gboolean")
  589.   (parameters
  590.     '("GstPad*" "pad")
  591.   )
  592. )
  593.  
  594. (define-method is_active
  595.   (of-object "GstCollectPads")
  596.   (c-name "gst_collect_pads_is_active")
  597.   (return-type "gboolean")
  598.   (parameters
  599.     '("GstPad*" "pad")
  600.   )
  601. )
  602.  
  603. (define-method collect
  604.   (of-object "GstCollectPads")
  605.   (c-name "gst_collect_pads_collect")
  606.   (return-type "GstFlowReturn")
  607. )
  608.  
  609. (define-method collect_range
  610.   (of-object "GstCollectPads")
  611.   (c-name "gst_collect_pads_collect_range")
  612.   (return-type "GstFlowReturn")
  613.   (parameters
  614.     '("guint64" "offset")
  615.     '("guint" "length")
  616.   )
  617. )
  618.  
  619. (define-method start
  620.   (of-object "GstCollectPads")
  621.   (c-name "gst_collect_pads_start")
  622.   (return-type "none")
  623. )
  624.  
  625. (define-method stop
  626.   (of-object "GstCollectPads")
  627.   (c-name "gst_collect_pads_stop")
  628.   (return-type "none")
  629. )
  630.  
  631. (define-method set_flushing
  632.   (of-object "GstCollectPads")
  633.   (c-name "gst_collect_pads_set_flushing")
  634.   (return-type "none")
  635.   (parameters
  636.     '("gboolean" "flushing")
  637.   )
  638. )
  639.  
  640. (define-method peek
  641.   (of-object "GstCollectPads")
  642.   (c-name "gst_collect_pads_peek")
  643.   (return-type "GstBuffer*")
  644.   (parameters
  645.     '("GstCollectData*" "data")
  646.   )
  647. )
  648.  
  649. (define-method pop
  650.   (of-object "GstCollectPads")
  651.   (c-name "gst_collect_pads_pop")
  652.   (return-type "GstBuffer*")
  653.   (parameters
  654.     '("GstCollectData*" "data")
  655.   )
  656. )
  657.  
  658. (define-method available
  659.   (of-object "GstCollectPads")
  660.   (c-name "gst_collect_pads_available")
  661.   (return-type "guint")
  662. )
  663.  
  664. (define-method read
  665.   (of-object "GstCollectPads")
  666.   (c-name "gst_collect_pads_read")
  667.   (return-type "guint")
  668.   (parameters
  669.     '("GstCollectData*" "data")
  670.     '("guint8**" "bytes")
  671.     '("guint" "size")
  672.   )
  673. )
  674.  
  675. (define-method flush
  676.   (of-object "GstCollectPads")
  677.   (c-name "gst_collect_pads_flush")
  678.   (return-type "guint")
  679.   (parameters
  680.     '("GstCollectData*" "data")
  681.     '("guint" "size")
  682.   )
  683. )
  684.  
  685.  
  686.  
  687. ;; From ../gstreamer/libs/gst/base/gstpushsrc.h
  688.  
  689. (define-function gst_push_src_get_type
  690.   (c-name "gst_push_src_get_type")
  691.   (return-type "GType")
  692. )
  693.  
  694. (define-virtual create
  695.   (of-object "GstPushSrc")
  696.   (return-type "GstFlowReturn")
  697.   (parameters
  698.    '("GstBuffer**" "buf")
  699.   )
  700. )
  701.  
  702.  
  703.  
  704. ;; From ../gstreamer/libs/gst/base/gsttypefindhelper.h
  705.  
  706. (define-function type_find_helper
  707.   (c-name "gst_type_find_helper")
  708.   (return-type "GstCaps*")
  709.   (parameters
  710.     '("GstPad*" "src")
  711.     '("guint64" "size")
  712.   )
  713. )
  714.  
  715. (define-function type_find_helper_for_buffer
  716.   (c-name "gst_type_find_helper_for_buffer")
  717.   (return-type "GstCaps*")
  718.   (parameters
  719.     '("GstObject*" "obj")
  720.     '("GstBuffer*" "buf")
  721.     '("GstTypeFindProbability*" "prob")
  722.   )
  723. )
  724.  
  725. (define-function type_find_helper_get_range
  726.   (c-name "gst_type_find_helper_get_range")
  727.   (return-type "GstCaps*")
  728.   (parameters
  729.     '("GstObject*" "obj")
  730.     '("GstTypeFindHelperGetRangeFunction" "func")
  731.     '("guint64" "size")
  732.     '("GstTypeFindProbability*" "prob")
  733.   )
  734. )
  735.