public Gst.ClockTime pts;
[CCode (has_construct_function = false)]
public Buffer ();
+ [Version (since = "1.20")]
+ public unowned Gst.CustomMeta? add_custom_meta (string name);
public unowned Gst.Meta? add_meta (Gst.MetaInfo info, void* @params);
[Version (since = "1.6")]
public unowned Gst.ParentBufferMeta? add_parent_buffer_meta (Gst.Buffer @ref);
public bool find_memory (size_t offset, size_t size, out uint idx, out uint length, out size_t skip);
public bool foreach_meta (Gst.BufferForeachMetaFunc func);
public Gst.Memory? get_all_memory ();
+ [Version (since = "1.20")]
+ public unowned Gst.CustomMeta? get_custom_meta (string name);
[Version (since = "1.10")]
public Gst.BufferFlags get_flags ();
[Version (since = "1.2")]
public void parse_caps (out unowned Gst.Caps caps);
public void parse_flush_stop (out bool reset_time);
public void parse_gap (out Gst.ClockTime timestamp, out Gst.ClockTime duration);
+ [Version (since = "1.20")]
+ public void parse_gap_flags (out Gst.GapFlags flags);
[Version (since = "1.2")]
public bool parse_group_id (out uint group_id);
[Version (since = "1.18")]
[CCode (has_construct_function = false)]
[Version (since = "1.10")]
public Event.select_streams (GLib.List<string> streams);
+ [Version (since = "1.20")]
+ public void set_gap_flags (Gst.GapFlags flags);
[Version (since = "1.2")]
public void set_group_id (uint group_id);
[Version (since = "1.4")]
public struct ClockTimeDiff : int64 {
}
[CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
+ [Version (since = "1.20")]
+ public struct CustomMeta {
+ public Gst.Meta meta;
+ public unowned Gst.Structure get_structure ();
+ public bool has_name (string name);
+ }
+ [CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
public struct DebugCategory {
[Version (deprecated = true)]
public void free ();
[Version (since = "1.16")]
public uint64 get_seqnum ();
public static unowned Gst.MetaInfo? register (GLib.Type api, string impl, size_t size, [CCode (scope = "async")] Gst.MetaInitFunction init_func, [CCode (scope = "async")] Gst.MetaFreeFunction free_func, [CCode (scope = "async")] Gst.MetaTransformFunction transform_func);
+ [Version (since = "1.20")]
+ public static unowned Gst.MetaInfo? register_custom (string name, [CCode (array_length = false, array_null_terminated = true)] string[] tags, owned Gst.CustomMetaTransformFunction? transform_func);
}
[CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
public struct MetaInfo {
public weak Gst.MetaInitFunction init_func;
public weak Gst.MetaFreeFunction free_func;
public weak Gst.MetaTransformFunction transform_func;
+ [Version (since = "1.20")]
+ public bool is_custom ();
}
[CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
public struct MetaTransformCopy {
public static Gst.Format register (string nick, string description);
public GLib.Quark to_quark ();
}
+ [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_GAP_FLAG_MISSING_", type_id = "gst_gap_flags_get_type ()")]
+ [Flags]
+ [Version (since = "1.20")]
+ public enum GapFlags {
+ DATA
+ }
[CCode (cheader_filename = "gst/gst.h", cprefix = "GST_ITERATOR_ITEM_", type_id = "gst_iterator_item_get_type ()")]
public enum IteratorItem {
SKIP,
public delegate bool ControlSourceGetValue (Gst.ControlSource self, Gst.ClockTime timestamp, double value);
[CCode (cheader_filename = "gst/gst.h", has_target = false)]
public delegate bool ControlSourceGetValueArray (Gst.ControlSource self, Gst.ClockTime timestamp, Gst.ClockTime interval, uint n_values, double values);
+ [CCode (cheader_filename = "gst/gst.h", instance_pos = 5.9)]
+ [Version (since = "1.20")]
+ public delegate bool CustomMetaTransformFunction (Gst.Buffer transbuf, Gst.CustomMeta meta, Gst.Buffer buffer, GLib.Quark type, void* data);
[CCode (cheader_filename = "gst/gst.h", has_target = false)]
public delegate void DebugFuncPtr ();
[CCode (cheader_filename = "gst/gst.h", instance_pos = 1.9)]
public int get_max_errors ();
[Version (since = "1.4")]
public bool get_needs_format ();
+ [Version (since = "1.20")]
+ public bool get_needs_sync_point ();
public Gst.Video.CodecFrame get_oldest_frame ();
public Gst.Video.CodecState get_output_state ();
public bool get_packetized ();
public Gst.Caps proxy_getcaps (Gst.Caps? caps, Gst.Caps? filter);
[Version (since = "1.2.2")]
public void release_frame (owned Gst.Video.CodecFrame frame);
+ [Version (since = "1.20")]
+ public void request_sync_point (Gst.Video.CodecFrame frame, Gst.Video.DecoderRequestSyncPointFlags flags);
[NoWrapper]
public virtual bool reset (bool hard);
public void set_estimate_rate (bool enabled);
public void set_max_errors (int num);
[Version (since = "1.4")]
public void set_needs_format (bool enabled);
+ [Version (since = "1.20")]
+ public void set_needs_sync_point (bool enabled);
public Gst.Video.CodecState set_output_state (Gst.Video.Format fmt, uint width, uint height, Gst.Video.CodecState? reference);
public void set_packetized (bool packetized);
[Version (since = "1.6")]
public virtual bool stop ();
[NoWrapper]
public virtual bool transform_meta (Gst.Video.CodecFrame frame, Gst.Meta meta);
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
+ public bool discard_corrupted_frames { get; set; }
[Version (since = "1.18")]
public int max_errors { get; set; }
[NoAccessorMethod]
+ [Version (since = "1.20")]
+ public uint64 min_force_key_unit_interval { get; set; }
+ [NoAccessorMethod]
[Version (since = "1.18")]
public bool qos { get; set; }
}
DECODE_ONLY,
SYNC_POINT,
FORCE_KEYFRAME,
- FORCE_KEYFRAME_HEADERS
+ FORCE_KEYFRAME_HEADERS,
+ [Version (since = "1.20")]
+ CORRUPTED
}
[CCode (cheader_filename = "gst/video/video.h", cname = "GstColorBalanceType", cprefix = "GST_COLOR_BALANCE_", type_id = "gst_color_balance_type_get_type ()")]
[GIR (name = "ColorBalanceType")]
@0_255,
@16_235
}
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_DECODER_REQUEST_SYNC_POINT_", has_type_id = false)]
+ [Flags]
+ [GIR (name = "VideoDecoderRequestSyncPointFlags")]
+ [Version (since = "1.20")]
+ public enum DecoderRequestSyncPointFlags {
+ DISCARD_INPUT,
+ CORRUPT_OUTPUT
+ }
[CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_DITHER_FLAG_", type_id = "gst_video_dither_flags_get_type ()")]
[Flags]
[GIR (name = "VideoDitherFlags")]
[CCode (cheader_filename = "gst/video/video.h")]
public static void color_range_offsets (Gst.Video.ColorRange range, Gst.Video.FormatInfo info, [CCode (array_length = false)] out unowned int offset[4], [CCode (array_length = false)] out unowned int scale[4]);
[CCode (cheader_filename = "gst/video/video.h")]
- [Version (since = "1.6")]
+ [Version (deprecated = true, since = "1.6")]
public static double color_transfer_decode (Gst.Video.TransferFunction func, double val);
[CCode (cheader_filename = "gst/video/video.h")]
- [Version (since = "1.6")]
+ [Version (deprecated = true, since = "1.6")]
public static double color_transfer_encode (Gst.Video.TransferFunction func, double val);
[CCode (cheader_filename = "gst/video/video.h")]
public static Gst.Sample convert_sample (Gst.Sample sample, Gst.Caps to_caps, Gst.ClockTime timeout) throws GLib.Error;
[CCode (cheader_filename = "gst/video/video.h")]
public static unowned Gst.MetaInfo? time_code_meta_get_info ();
[CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.20")]
+ public static double transfer_function_decode (Gst.Video.TransferFunction func, double val);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.20")]
+ public static double transfer_function_encode (Gst.Video.TransferFunction func, double val);
+ [CCode (cheader_filename = "gst/video/video.h")]
[Version (since = "1.18")]
public static Gst.Video.TransferFunction transfer_function_from_iso (uint value);
[CCode (cheader_filename = "gst/video/video.h")]