|
Packit |
0652a1 |
/* GStreamer encoding profiles library
|
|
Packit |
0652a1 |
* Copyright (C) 2009-2010 Edward Hervey <edward.hervey@collabora.co.uk>
|
|
Packit |
0652a1 |
* (C) 2009-2010 Nokia Corporation
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
0652a1 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
0652a1 |
* License as published by the Free Software Foundation; either
|
|
Packit |
0652a1 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
0652a1 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
0652a1 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
0652a1 |
* Library General Public License for more details.
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
0652a1 |
* License along with this library; if not, write to the
|
|
Packit |
0652a1 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
0652a1 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
0652a1 |
*/
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#ifndef __GST_PROFILE_H__
|
|
Packit |
0652a1 |
#define __GST_PROFILE_H__
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#include <gst/gst.h>
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#include <gst/pbutils/pbutils-enumtypes.h>
|
|
Packit |
0652a1 |
#include <gst/pbutils/gstdiscoverer.h>
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
G_BEGIN_DECLS
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
/**
|
|
Packit |
0652a1 |
* GstEncodingProfile:
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* The opaque base class object for all encoding profiles. This contains generic
|
|
Packit |
0652a1 |
* information like name, description, format and preset.
|
|
Packit |
0652a1 |
*/
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#define GST_TYPE_ENCODING_PROFILE \
|
|
Packit |
0652a1 |
(gst_encoding_profile_get_type ())
|
|
Packit |
0652a1 |
#define GST_ENCODING_PROFILE(obj) \
|
|
Packit |
0652a1 |
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ENCODING_PROFILE, GstEncodingProfile))
|
|
Packit |
0652a1 |
#define GST_IS_ENCODING_PROFILE(obj) \
|
|
Packit |
0652a1 |
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ENCODING_PROFILE))
|
|
Packit |
0652a1 |
typedef struct _GstEncodingProfile GstEncodingProfile;
|
|
Packit |
0652a1 |
typedef struct _GstEncodingProfileClass GstEncodingProfileClass;
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GType gst_encoding_profile_get_type (void);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
/**
|
|
Packit |
0652a1 |
* GstEncodingContainerProfile:
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* Encoding profiles for containers. Keeps track of a list of #GstEncodingProfile
|
|
Packit |
0652a1 |
*/
|
|
Packit |
0652a1 |
#define GST_TYPE_ENCODING_CONTAINER_PROFILE \
|
|
Packit |
0652a1 |
(gst_encoding_container_profile_get_type ())
|
|
Packit |
0652a1 |
#define GST_ENCODING_CONTAINER_PROFILE(obj) \
|
|
Packit |
0652a1 |
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ENCODING_CONTAINER_PROFILE, GstEncodingContainerProfile))
|
|
Packit |
0652a1 |
#define GST_IS_ENCODING_CONTAINER_PROFILE(obj) \
|
|
Packit |
0652a1 |
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ENCODING_CONTAINER_PROFILE))
|
|
Packit |
0652a1 |
typedef struct _GstEncodingContainerProfile GstEncodingContainerProfile;
|
|
Packit |
0652a1 |
typedef struct _GstEncodingContainerProfileClass GstEncodingContainerProfileClass;
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GType gst_encoding_container_profile_get_type (void);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
/**
|
|
Packit |
0652a1 |
* GstEncodingVideoProfile:
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* Variant of #GstEncodingProfile for video streams, allows specifying the @pass.
|
|
Packit |
0652a1 |
*/
|
|
Packit |
0652a1 |
#define GST_TYPE_ENCODING_VIDEO_PROFILE \
|
|
Packit |
0652a1 |
(gst_encoding_video_profile_get_type ())
|
|
Packit |
0652a1 |
#define GST_ENCODING_VIDEO_PROFILE(obj) \
|
|
Packit |
0652a1 |
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ENCODING_VIDEO_PROFILE, GstEncodingVideoProfile))
|
|
Packit |
0652a1 |
#define GST_IS_ENCODING_VIDEO_PROFILE(obj) \
|
|
Packit |
0652a1 |
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ENCODING_VIDEO_PROFILE))
|
|
Packit |
0652a1 |
typedef struct _GstEncodingVideoProfile GstEncodingVideoProfile;
|
|
Packit |
0652a1 |
typedef struct _GstEncodingVideoProfileClass GstEncodingVideoProfileClass;
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GType gst_encoding_video_profile_get_type (void);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
/**
|
|
Packit |
0652a1 |
* GstEncodingAudioProfile:
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* Variant of #GstEncodingProfile for audio streams.
|
|
Packit |
0652a1 |
*/
|
|
Packit |
0652a1 |
#define GST_TYPE_ENCODING_AUDIO_PROFILE \
|
|
Packit |
0652a1 |
(gst_encoding_audio_profile_get_type ())
|
|
Packit |
0652a1 |
#define GST_ENCODING_AUDIO_PROFILE(obj) \
|
|
Packit |
0652a1 |
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ENCODING_AUDIO_PROFILE, GstEncodingAudioProfile))
|
|
Packit |
0652a1 |
#define GST_IS_ENCODING_AUDIO_PROFILE(obj) \
|
|
Packit |
0652a1 |
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ENCODING_AUDIO_PROFILE))
|
|
Packit |
0652a1 |
typedef struct _GstEncodingAudioProfile GstEncodingAudioProfile;
|
|
Packit |
0652a1 |
typedef struct _GstEncodingAudioProfileClass GstEncodingAudioProfileClass;
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GType gst_encoding_audio_profile_get_type (void);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
/* GstEncodingProfile API */
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
/**
|
|
Packit |
0652a1 |
* gst_encoding_profile_unref:
|
|
Packit |
0652a1 |
* @profile: a #GstEncodingProfile
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* Decreases the reference count of the @profile, possibly freeing the @profile.
|
|
Packit |
0652a1 |
*/
|
|
Packit |
0652a1 |
#define gst_encoding_profile_unref(profile) (g_object_unref ((GObject*) profile))
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
/**
|
|
Packit |
0652a1 |
* gst_encoding_profile_ref:
|
|
Packit |
0652a1 |
* @profile: a #GstEncodingProfile
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* Increases the reference count of the @profile.
|
|
Packit |
0652a1 |
*/
|
|
Packit |
0652a1 |
#define gst_encoding_profile_ref(profile) (g_object_ref ((GObject*) profile))
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
const gchar * gst_encoding_profile_get_name (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_profile_set_name (GstEncodingProfile *profile,
|
|
Packit |
0652a1 |
const gchar *name);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
const gchar * gst_encoding_profile_get_description (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_profile_set_description (GstEncodingProfile *profile,
|
|
Packit |
0652a1 |
const gchar *description);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GstCaps * gst_encoding_profile_get_format (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_profile_set_format (GstEncodingProfile *profile,
|
|
Packit |
0652a1 |
GstCaps *format);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
gboolean gst_encoding_profile_get_allow_dynamic_output (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_profile_set_allow_dynamic_output (GstEncodingProfile *profile,
|
|
Packit |
0652a1 |
gboolean allow_dynamic_output);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
const gchar * gst_encoding_profile_get_preset (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
const gchar * gst_encoding_profile_get_preset_name (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_profile_set_preset (GstEncodingProfile *profile,
|
|
Packit |
0652a1 |
const gchar *preset);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
guint gst_encoding_profile_get_presence (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_profile_set_presence (GstEncodingProfile *profile,
|
|
Packit |
0652a1 |
guint presence);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_profile_set_preset_name (GstEncodingProfile * profile,
|
|
Packit |
0652a1 |
const gchar * preset_name);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GstCaps * gst_encoding_profile_get_restriction (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_profile_set_restriction (GstEncodingProfile *profile,
|
|
Packit |
0652a1 |
GstCaps *restriction);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
gboolean gst_encoding_profile_is_equal (GstEncodingProfile *a,
|
|
Packit |
0652a1 |
GstEncodingProfile *b);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GstCaps * gst_encoding_profile_get_input_caps (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
const gchar * gst_encoding_profile_get_type_nick (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
const gchar * gst_encoding_profile_get_file_extension (GstEncodingProfile * profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GstEncodingProfile * gst_encoding_profile_find (const gchar *targetname,
|
|
Packit |
0652a1 |
const gchar *profilename,
|
|
Packit |
0652a1 |
const gchar *category);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
gboolean gst_encoding_profile_is_enabled (GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_profile_set_enabled (GstEncodingProfile *profile,
|
|
Packit |
0652a1 |
gboolean enabled);
|
|
Packit |
0652a1 |
/* GstEncodingContainerProfile API */
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
gboolean gst_encoding_container_profile_add_profile (GstEncodingContainerProfile *container,
|
|
Packit |
0652a1 |
GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
gboolean gst_encoding_container_profile_contains_profile (GstEncodingContainerProfile * container,
|
|
Packit |
0652a1 |
GstEncodingProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
const GList * gst_encoding_container_profile_get_profiles (GstEncodingContainerProfile *profile);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GstEncodingContainerProfile * gst_encoding_container_profile_new (const gchar *name,
|
|
Packit |
0652a1 |
const gchar *description,
|
|
Packit |
0652a1 |
GstCaps *format,
|
|
Packit |
0652a1 |
const gchar *preset);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
/* Invidual stream encodingprofile API */
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GstEncodingVideoProfile * gst_encoding_video_profile_new (GstCaps *format,
|
|
Packit |
0652a1 |
const gchar *preset,
|
|
Packit |
0652a1 |
GstCaps *restriction,
|
|
Packit |
0652a1 |
guint presence);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GstEncodingAudioProfile * gst_encoding_audio_profile_new (GstCaps *format,
|
|
Packit |
0652a1 |
const gchar *preset,
|
|
Packit |
0652a1 |
GstCaps *restriction,
|
|
Packit |
0652a1 |
guint presence);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
guint gst_encoding_video_profile_get_pass (GstEncodingVideoProfile *prof);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
gboolean gst_encoding_video_profile_get_variableframerate (GstEncodingVideoProfile *prof);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_video_profile_set_pass (GstEncodingVideoProfile *prof,
|
|
Packit |
0652a1 |
guint pass);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
void gst_encoding_video_profile_set_variableframerate (GstEncodingVideoProfile *prof,
|
|
Packit |
0652a1 |
gboolean variableframerate);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GstEncodingProfile * gst_encoding_profile_from_discoverer (GstDiscovererInfo *info);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PBUTILS_API
|
|
Packit |
0652a1 |
GstEncodingProfile * gst_encoding_profile_copy (GstEncodingProfile *self);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
Packit |
0652a1 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingAudioProfile, gst_object_unref)
|
|
Packit |
0652a1 |
#endif
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
Packit |
0652a1 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingContainerProfile, gst_object_unref)
|
|
Packit |
0652a1 |
#endif
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
Packit |
0652a1 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingProfile, gst_object_unref)
|
|
Packit |
0652a1 |
#endif
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
Packit |
0652a1 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingVideoProfile, gst_object_unref)
|
|
Packit |
0652a1 |
#endif
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
G_END_DECLS
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#endif /* __GST_PROFILE_H__ */
|