Blame gst-libs/gst/pbutils/encoding-profile.h

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