/usr/include/gstreamer-1.0/gst/pbutils/encoding-target.h is in libgstreamer-plugins-base1.0-dev 1.14.0-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | /* GStreamer encoding profile registry
* Copyright (C) 2010 Edward Hervey <edward.hervey@collabora.co.uk>
* (C) 2010 Nokia Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_PROFILE_REGISTRY_H__
#define __GST_PROFILE_REGISTRY_H__
#include <gst/pbutils/encoding-profile.h>
G_BEGIN_DECLS
/* FIXME/UNKNOWNS
*
* Should encoding categories be well-known strings/quarks ?
*
*/
/**
* GST_ENCODING_CATEGORY_DEVICE:
*
* #GstEncodingTarget category for device-specific targets.
* The name of the target will usually be the constructor and model of the device,
* and that target will contain #GstEncodingProfiles suitable for that device.
*/
#define GST_ENCODING_CATEGORY_DEVICE "device"
/**
* GST_ENCODING_CATEGORY_ONLINE_SERVICE:
*
* #GstEncodingTarget category for online-services.
* The name of the target will usually be the name of the online service
* and that target will contain #GstEncodingProfiles suitable for that online
* service.
*/
#define GST_ENCODING_CATEGORY_ONLINE_SERVICE "online-service"
/**
* GST_ENCODING_CATEGORY_STORAGE_EDITING:
*
* #GstEncodingTarget category for storage, archiving and editing targets.
* Those targets can be lossless and/or provide very fast random access content.
* The name of the target will usually be the container type or editing target,
* and that target will contain #GstEncodingProfiles suitable for editing or
* storage.
*/
#define GST_ENCODING_CATEGORY_STORAGE_EDITING "storage-editing"
/**
* GST_ENCODING_CATEGORY_CAPTURE:
*
* #GstEncodingTarget category for recording and capture.
* Targets within this category are optimized for low latency encoding.
*/
#define GST_ENCODING_CATEGORY_CAPTURE "capture"
/**
* GST_ENCODING_CATEGORY_FILE_EXTENSION:
*
* #GstEncodingTarget category for file extensions.
* The name of the target will be the name of the file extensions possible
* for a particular target. Those targets are defining like 'default' formats
* usually used for a particular file extension.
*/
#define GST_ENCODING_CATEGORY_FILE_EXTENSION "file-extension"
/**
* GstEncodingTarget:
*
* Collection of #GstEncodingProfile for a specific target or use-case.
*
* When being stored/loaded, targets come from a specific category, like
* #GST_ENCODING_CATEGORY_DEVICE.
*/
#define GST_TYPE_ENCODING_TARGET \
(gst_encoding_target_get_type ())
#define GST_ENCODING_TARGET(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ENCODING_TARGET, GstEncodingTarget))
#define GST_IS_ENCODING_TARGET(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ENCODING_TARGET))
typedef struct _GstEncodingTarget GstEncodingTarget;
typedef GObjectClass GstEncodingTargetClass;
GST_PBUTILS_API
GType gst_encoding_target_get_type (void);
/**
* gst_encoding_target_unref:
* @target: a #GstEncodingTarget
*
* Decreases the reference count of the @target, possibly freeing it.
*/
#define gst_encoding_target_unref(target) \
(g_object_unref ((GObject*) target))
/**
* gst_encoding_target_ref:
* @target: a #GstEncodingTarget
*
* Increases the reference count of the @target.
*/
#define gst_encoding_target_ref(target) \
(g_object_ref ((GObject*) target))
GST_PBUTILS_API
GstEncodingTarget * gst_encoding_target_new (const gchar *name,
const gchar *category,
const gchar *description,
const GList *profiles);
GST_PBUTILS_API
const gchar * gst_encoding_target_get_name (GstEncodingTarget *target);
GST_PBUTILS_API
const gchar * gst_encoding_target_get_category (GstEncodingTarget *target);
GST_PBUTILS_API
const gchar * gst_encoding_target_get_description (GstEncodingTarget *target);
GST_PBUTILS_API
const GList * gst_encoding_target_get_profiles (GstEncodingTarget *target);
GST_PBUTILS_API
GstEncodingProfile * gst_encoding_target_get_profile (GstEncodingTarget *target,
const gchar *name);
GST_PBUTILS_API
gboolean gst_encoding_target_add_profile (GstEncodingTarget *target,
GstEncodingProfile *profile);
GST_PBUTILS_API
gboolean gst_encoding_target_save (GstEncodingTarget *target,
GError **error);
GST_PBUTILS_API
gboolean gst_encoding_target_save_to_file (GstEncodingTarget *target,
const gchar *filepath,
GError **error);
GST_PBUTILS_API
GstEncodingTarget * gst_encoding_target_load (const gchar *name,
const gchar *category,
GError **error);
GST_PBUTILS_API
GstEncodingTarget * gst_encoding_target_load_from_file (const gchar *filepath,
GError **error);
GST_PBUTILS_API
GList * gst_encoding_list_available_categories (void);
GST_PBUTILS_API
GList * gst_encoding_list_all_targets (const gchar * categoryname);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingTarget, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_PROFILE_REGISTRY_H__ */
|