rotrevrep

gstreamer-player-1.0 vapi

Dec 25th, 2015
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 9.03 KB | None | 0 0
  1. /* gstreamer-player-1.0.vapi generated by vapigen, do not modify. */
  2.  
  3. [CCode (cprefix = "Gst", gir_namespace = "GstPlayer", gir_version = "1.0", lower_case_cprefix = "gst_")]
  4. namespace Gst {
  5.     [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_get_type ()")]
  6.     public class Player : Gst.Object {
  7.         [CCode (has_construct_function = false)]
  8.         public Player ();
  9.         [CCode (has_construct_function = false)]
  10.         public Player.full (owned Gst.PlayerVideoRenderer? video_renderer, owned Gst.PlayerSignalDispatcher? signal_dispatcher);
  11.         public double get_color_balance (Gst.PlayerColorBalanceType type);
  12.         public Gst.PlayerAudioInfo get_current_audio_track ();
  13.         public unowned Gst.PlayerSubtitleInfo get_current_subtitle_track ();
  14.         public Gst.PlayerVideoInfo get_current_video_track ();
  15.         public string get_current_visualization ();
  16.         public Gst.ClockTime get_duration ();
  17.         public Gst.PlayerMediaInfo get_media_info ();
  18.         public bool get_mute ();
  19.         public Gst.Element get_pipeline ();
  20.         public Gst.ClockTime get_position ();
  21.         public uint get_position_update_interval ();
  22.         public double get_rate ();
  23.         public string get_subtitle_uri ();
  24.         public string get_uri ();
  25.         public double get_volume ();
  26.         public bool has_color_balance ();
  27.         public void pause ();
  28.         public void play ();
  29.         public void seek (Gst.ClockTime position);
  30.         public bool set_audio_track (int stream_index);
  31.         public void set_audio_track_enabled (bool enabled);
  32.         public void set_color_balance (Gst.PlayerColorBalanceType type, double value);
  33.         public void set_mute (bool val);
  34.         public void set_position_update_interval (uint interval);
  35.         public void set_rate (double rate);
  36.         public bool set_subtitle_track (int stream_index);
  37.         public void set_subtitle_track_enabled (bool enabled);
  38.         public bool set_subtitle_uri (string uri);
  39.         public void set_uri (string uri);
  40.         public bool set_video_track (int stream_index);
  41.         public void set_video_track_enabled (bool enabled);
  42.         public bool set_visualization (string name);
  43.         public void set_visualization_enabled (bool enabled);
  44.         public void set_volume (double val);
  45.         public void stop ();
  46.         public Gst.PlayerAudioInfo current_audio_track { owned get; }
  47.         public Gst.PlayerSubtitleInfo current_subtitle_track { get; }
  48.         public Gst.PlayerVideoInfo current_video_track { owned get; }
  49.         public uint64 duration { get; }
  50.         public Gst.PlayerMediaInfo media_info { owned get; }
  51.         public bool mute { get; set; }
  52.         public Gst.Element pipeline { owned get; }
  53.         public uint64 position { get; }
  54.         public uint position_update_interval { get; set; }
  55.         public double rate { get; set; }
  56.         public Gst.PlayerSignalDispatcher signal_dispatcher { construct; }
  57.         [NoAccessorMethod]
  58.         public string suburi { owned get; set; }
  59.         public string uri { owned get; set; }
  60.         public Gst.PlayerVideoRenderer video_renderer { construct; }
  61.         public double volume { get; set; }
  62.         public signal void buffering (int object);
  63.         public signal void duration_changed (uint64 object);
  64.         public signal void end_of_stream ();
  65.         public signal void error (GLib.Error object);
  66.         public signal void media_info_updated (Gst.PlayerMediaInfo object);
  67.         public signal void mute_changed ();
  68.         public signal void position_updated (uint64 object);
  69.         public signal void seek_done (uint64 object);
  70.         public signal void state_changed (Gst.PlayerState object);
  71.         public signal void video_dimensions_changed (int object, int p0);
  72.         public signal void volume_changed ();
  73.         public signal void warning (GLib.Error object);
  74.     }
  75.     [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_audio_info_get_type ()")]
  76.     public class PlayerAudioInfo : Gst.PlayerStreamInfo {
  77.         [CCode (has_construct_function = false)]
  78.         protected PlayerAudioInfo ();
  79.         public int get_bitrate ();
  80.         public int get_channels ();
  81.         public unowned string get_language ();
  82.         public int get_max_bitrate ();
  83.         public int get_sample_rate ();
  84.     }
  85.     [CCode (cheader_filename = "gst/player/player.h", lower_case_csuffix = "player_g_main_context_signal_dispatcher", type_id = "gst_player_g_main_context_signal_dispatcher_get_type ()")]
  86.     public class PlayerGMainContextSignalDispatcher : GLib.Object, Gst.PlayerSignalDispatcher {
  87.         [CCode (has_construct_function = false, type = "GstPlayerSignalDispatcher*")]
  88.         public Gst.PlayerGMainContextSignalDispatcher (GLib.MainContext? application_context);
  89.         [NoAccessorMethod]
  90.         public GLib.MainContext application_context { owned get; construct; }
  91.     }
  92.     [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_media_info_get_type ()")]
  93.     public class PlayerMediaInfo : GLib.Object {
  94.         [CCode (has_construct_function = false)]
  95.         protected PlayerMediaInfo ();
  96.         public unowned string get_container_format ();
  97.         public Gst.ClockTime get_duration ();
  98.         public unowned Gst.Sample get_image_sample ();
  99.         public unowned GLib.List<Gst.PlayerStreamInfo> get_stream_list ();
  100.         public unowned Gst.TagList get_tags ();
  101.         public unowned string get_title ();
  102.         public unowned string get_uri ();
  103.         [CCode (cname = "gst_player_get_audio_streams")]
  104.         public unowned GLib.List<Gst.PlayerAudioInfo> get_audio_streams();
  105.         [CCode (cname = "gst_player_get_video_streams")]
  106.         public unowned GLib.List<Gst.PlayerVideoInfo> get_video_streams();
  107.         [CCode (cname = "gst_player_get_subtitle_streams")]
  108.         public unowned GLib.List<Gst.PlayerSubtitleInfo> get_subtitle_streams();
  109.         public bool is_seekable ();
  110.     }
  111.     [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_stream_info_get_type ()")]
  112.     public abstract class PlayerStreamInfo : GLib.Object {
  113.         [CCode (has_construct_function = false)]
  114.         protected PlayerStreamInfo ();
  115.         public unowned Gst.Caps get_caps ();
  116.         public unowned string get_codec ();
  117.         public int get_index ();
  118.         public unowned string get_stream_type ();
  119.         public unowned Gst.TagList get_tags ();
  120.     }
  121.     [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_subtitle_info_get_type ()")]
  122.     public class PlayerSubtitleInfo : Gst.PlayerStreamInfo {
  123.         [CCode (has_construct_function = false)]
  124.         protected PlayerSubtitleInfo ();
  125.         public unowned string get_language ();
  126.     }
  127.     [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_video_info_get_type ()")]
  128.     public class PlayerVideoInfo : Gst.PlayerStreamInfo {
  129.         [CCode (has_construct_function = false)]
  130.         protected PlayerVideoInfo ();
  131.         public int get_bitrate ();
  132.         public void get_framerate (int fps_n, int fps_d);
  133.         public int get_height ();
  134.         public int get_max_bitrate ();
  135.         public void get_pixel_aspect_ratio (out uint par_n, out uint par_d);
  136.         public int get_width ();
  137.     }
  138.     [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_video_overlay_video_renderer_get_type ()")]
  139.     public class PlayerVideoOverlayVideoRenderer : GLib.Object, Gst.PlayerVideoRenderer {
  140.         [CCode (has_construct_function = false, type = "GstPlayerVideoRenderer*")]
  141.         public PlayerVideoOverlayVideoRenderer (void* window_handle);
  142.         public void* window_handle { get; set construct; }
  143.     }
  144.    
  145.     static PlayerVisualization** player_visualizations_get();
  146.     static void player_visualizations_free (PlayerVisualization** array);
  147.        
  148.     public static PlayerVisualization[] player_get_visualizations() {
  149.         int i = 0;
  150.         var visu = player_visualizations_get();
  151.         Gst.PlayerVisualization[] array = new Gst.PlayerVisualization[0];
  152.         while (visu[i] != null) {
  153.             array += visu[i]->copy();
  154.             i++;
  155.         }
  156.         player_visualizations_free (visu);
  157.         return array;
  158.     }
  159.    
  160.     [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_visualization_get_type ()")]
  161.     [Compact]
  162.     public class PlayerVisualization {
  163.         public weak string description;
  164.         public weak string name;
  165.     }
  166.     [CCode (cheader_filename = "gst/player/player.h", type_cname = "GstPlayerSignalDispatcherInterface", type_id = "gst_player_signal_dispatcher_get_type ()")]
  167.     public interface PlayerSignalDispatcher : GLib.Object {
  168.         [NoWrapper]
  169.         public abstract void dispatch (Gst.Player player, owned Gst.PlayerSignalDispatcherFunc emitter);
  170.     }
  171.     [CCode (cheader_filename = "gst/player/player.h", type_cname = "GstPlayerVideoRendererInterface", type_id = "gst_player_video_renderer_get_type ()")]
  172.     public interface PlayerVideoRenderer : GLib.Object {
  173.         [NoWrapper]
  174.         public abstract Gst.Element create_video_sink (Gst.Player player);
  175.     }
  176.     [CCode (cheader_filename = "gst/player/player.h", cprefix = "GST_PLAYER_COLOR_BALANCE_", type_id = "gst_player_color_balance_type_get_type ()")]
  177.     public enum PlayerColorBalanceType {
  178.         HUE,
  179.         BRIGHTNESS,
  180.         SATURATION,
  181.         CONTRAST;
  182.         public unowned string get_name();
  183.     }
  184.     [CCode (cheader_filename = "gst/player/player.h", cprefix = "GST_PLAYER_STATE_", type_id = "gst_player_state_get_type ()")]
  185.     public enum PlayerState {
  186.         STOPPED,
  187.         BUFFERING,
  188.         PAUSED,
  189.         PLAYING;
  190.         public unowned string get_name();
  191.     }
  192.     [CCode (cheader_filename = "gst/player/player.h", cprefix = "GST_PLAYER_ERROR_")]
  193.     public errordomain PlayerError {
  194.         FAILED;
  195.         public unowned string get_name();
  196.     }
  197.     [CCode (cheader_filename = "gst/player/player.h", has_target = false)]
  198.     public delegate void PlayerSignalDispatcherFunc (void* data);
  199. }
Add Comment
Please, Sign In to add comment