123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- #ifndef __GST_PROFILE_H__
- #define __GST_PROFILE_H__
- #include <gst/gst.h>
- #include <gst/pbutils/pbutils-enumtypes.h>
- #include <gst/pbutils/gstdiscoverer.h>
- G_BEGIN_DECLS
- #define GST_TYPE_ENCODING_PROFILE \
- (gst_encoding_profile_get_type ())
- #define GST_ENCODING_PROFILE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ENCODING_PROFILE, GstEncodingProfile))
- #define GST_IS_ENCODING_PROFILE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ENCODING_PROFILE))
- typedef struct _GstEncodingProfile GstEncodingProfile;
- typedef struct _GstEncodingProfileClass GstEncodingProfileClass;
- GType gst_encoding_profile_get_type (void);
- #define GST_TYPE_ENCODING_CONTAINER_PROFILE \
- (gst_encoding_container_profile_get_type ())
- #define GST_ENCODING_CONTAINER_PROFILE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ENCODING_CONTAINER_PROFILE, GstEncodingContainerProfile))
- #define GST_IS_ENCODING_CONTAINER_PROFILE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ENCODING_CONTAINER_PROFILE))
- typedef struct _GstEncodingContainerProfile GstEncodingContainerProfile;
- typedef struct _GstEncodingContainerProfileClass GstEncodingContainerProfileClass;
- GType gst_encoding_container_profile_get_type (void);
- #define GST_TYPE_ENCODING_VIDEO_PROFILE \
- (gst_encoding_video_profile_get_type ())
- #define GST_ENCODING_VIDEO_PROFILE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ENCODING_VIDEO_PROFILE, GstEncodingVideoProfile))
- #define GST_IS_ENCODING_VIDEO_PROFILE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ENCODING_VIDEO_PROFILE))
- typedef struct _GstEncodingVideoProfile GstEncodingVideoProfile;
- typedef struct _GstEncodingVideoProfileClass GstEncodingVideoProfileClass;
- GType gst_encoding_video_profile_get_type (void);
- #define GST_TYPE_ENCODING_AUDIO_PROFILE \
- (gst_encoding_audio_profile_get_type ())
- #define GST_ENCODING_AUDIO_PROFILE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ENCODING_AUDIO_PROFILE, GstEncodingAudioProfile))
- #define GST_IS_ENCODING_AUDIO_PROFILE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ENCODING_AUDIO_PROFILE))
- typedef struct _GstEncodingAudioProfile GstEncodingAudioProfile;
- typedef struct _GstEncodingAudioProfileClass GstEncodingAudioProfileClass;
- GType gst_encoding_audio_profile_get_type (void);
- #define gst_encoding_profile_unref(profile) (g_object_unref ((GObject*) profile))
- #define gst_encoding_profile_ref(profile) (g_object_ref ((GObject*) profile))
- const gchar * gst_encoding_profile_get_name (GstEncodingProfile *profile);
- void gst_encoding_profile_set_name (GstEncodingProfile *profile,
- const gchar *name);
- const gchar * gst_encoding_profile_get_description (GstEncodingProfile *profile);
- void gst_encoding_profile_set_description (GstEncodingProfile *profile,
- const gchar *description);
- GstCaps * gst_encoding_profile_get_format (GstEncodingProfile *profile);
- void gst_encoding_profile_set_format (GstEncodingProfile *profile,
- GstCaps *format);
- gboolean gst_encoding_profile_get_allow_dynamic_output (GstEncodingProfile *profile);
- void gst_encoding_profile_set_allow_dynamic_output (GstEncodingProfile *profile,
- gboolean allow_dynamic_output);
- const gchar * gst_encoding_profile_get_preset (GstEncodingProfile *profile);
- const gchar * gst_encoding_profile_get_preset_name (GstEncodingProfile *profile);
- void gst_encoding_profile_set_preset (GstEncodingProfile *profile,
- const gchar *preset);
- guint gst_encoding_profile_get_presence (GstEncodingProfile *profile);
- void gst_encoding_profile_set_presence (GstEncodingProfile *profile,
- guint presence);
- void gst_encoding_profile_set_preset_name (GstEncodingProfile * profile,
- const gchar * preset_name);
- GstCaps * gst_encoding_profile_get_restriction (GstEncodingProfile *profile);
- void gst_encoding_profile_set_restriction (GstEncodingProfile *profile,
- GstCaps *restriction);
- gboolean gst_encoding_profile_is_equal (GstEncodingProfile *a,
- GstEncodingProfile *b);
- GstCaps * gst_encoding_profile_get_input_caps (GstEncodingProfile *profile);
- const gchar * gst_encoding_profile_get_type_nick (GstEncodingProfile *profile);
- const gchar * gst_encoding_profile_get_file_extension (GstEncodingProfile * profile);
- GstEncodingProfile * gst_encoding_profile_find (const gchar *targetname,
- const gchar *profilename,
- const gchar *category);
- gboolean gst_encoding_profile_is_enabled (GstEncodingProfile *profile);
- void gst_encoding_profile_set_enabled (GstEncodingProfile *profile,
- gboolean enabled);
- gboolean gst_encoding_container_profile_add_profile (GstEncodingContainerProfile *container,
- GstEncodingProfile *profile);
- gboolean gst_encoding_container_profile_contains_profile (GstEncodingContainerProfile * container,
- GstEncodingProfile *profile);
- const GList * gst_encoding_container_profile_get_profiles (GstEncodingContainerProfile *profile);
- GstEncodingContainerProfile * gst_encoding_container_profile_new (const gchar *name,
- const gchar *description,
- GstCaps *format,
- const gchar *preset);
- GstEncodingVideoProfile * gst_encoding_video_profile_new (GstCaps *format,
- const gchar *preset,
- GstCaps *restriction,
- guint presence);
- GstEncodingAudioProfile * gst_encoding_audio_profile_new (GstCaps *format,
- const gchar *preset,
- GstCaps *restriction,
- guint presence);
- guint gst_encoding_video_profile_get_pass (GstEncodingVideoProfile *prof);
- gboolean gst_encoding_video_profile_get_variableframerate (GstEncodingVideoProfile *prof);
- void gst_encoding_video_profile_set_pass (GstEncodingVideoProfile *prof,
- guint pass);
- void gst_encoding_video_profile_set_variableframerate (GstEncodingVideoProfile *prof,
- gboolean variableframerate);
- GstEncodingProfile * gst_encoding_profile_from_discoverer (GstDiscovererInfo *info);
- #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
- G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingAudioProfile, gst_object_unref)
- #endif
- #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
- G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingContainerProfile, gst_object_unref)
- #endif
- #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
- G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingProfile, gst_object_unref)
- #endif
- #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
- G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingVideoProfile, gst_object_unref)
- #endif
- G_END_DECLS
- #endif
|