Blame gst/gstprotection.h

Packit f546b1
/* GStreamer
Packit f546b1
 * Copyright (C) <2015> YouView TV Ltd.
Packit f546b1
 *
Packit f546b1
 * This library is free software; you can redistribute it and/or
Packit f546b1
 * modify it under the terms of the GNU Library General Public
Packit f546b1
 * License as published by the Free Software Foundation; either
Packit f546b1
 * version 2 of the License, or (at your option) any later version.
Packit f546b1
 *
Packit f546b1
 * This library is distributed in the hope that it will be useful,
Packit f546b1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit f546b1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit f546b1
 * Library General Public License for more details.
Packit f546b1
 *
Packit f546b1
 * You should have received a copy of the GNU Library General Public
Packit f546b1
 * License along with this library; if not, write to the
Packit f546b1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit f546b1
 * Boston, MA 02110-1301, USA.
Packit f546b1
 */
Packit f546b1
Packit f546b1
#ifndef __GST_PROTECTION_H__
Packit f546b1
#define __GST_PROTECTION_H__
Packit f546b1
Packit f546b1
#include <gst/gst.h>
Packit f546b1
Packit f546b1
G_BEGIN_DECLS
Packit f546b1
Packit f546b1
/**
Packit f546b1
 * GST_PROTECTION_SYSTEM_ID_CAPS_FIELD:
Packit f546b1
 *
Packit f546b1
 * The field name in a GstCaps that is used to signal the UUID of the protection
Packit f546b1
 * system.
Packit f546b1
 *
Packit f546b1
 * Since: 1.6
Packit f546b1
 */
Packit f546b1
#define GST_PROTECTION_SYSTEM_ID_CAPS_FIELD "protection-system"
Packit f546b1
Packit f546b1
typedef struct _GstProtectionMeta GstProtectionMeta;
Packit f546b1
/**
Packit f546b1
 * GstProtectionMeta:
Packit f546b1
 * @meta: the parent #GstMeta.
Packit f546b1
 * @info: the cryptographic information needed to decrypt the sample.
Packit f546b1
 *
Packit f546b1
 * Metadata type that holds information about a sample from a protection-protected
Packit f546b1
 * track, including the information needed to decrypt it (if it is encrypted).
Packit f546b1
 *
Packit f546b1
 * Since: 1.6
Packit f546b1
 */
Packit f546b1
struct _GstProtectionMeta
Packit f546b1
{
Packit f546b1
  GstMeta meta;
Packit f546b1
Packit f546b1
  GstStructure *info;
Packit f546b1
};
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GType gst_protection_meta_api_get_type (void);
Packit f546b1
Packit f546b1
#define GST_PROTECTION_META_API_TYPE (gst_protection_meta_api_get_type())
Packit f546b1
Packit f546b1
#define gst_buffer_get_protection_meta(b) \
Packit f546b1
    ((GstProtectionMeta*)gst_buffer_get_meta ((b), GST_PROTECTION_META_API_TYPE))
Packit f546b1
Packit f546b1
#define GST_PROTECTION_META_INFO (gst_protection_meta_get_info())
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
const GstMetaInfo * gst_protection_meta_get_info (void);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GstProtectionMeta * gst_buffer_add_protection_meta (GstBuffer * buffer,
Packit f546b1
                                                    GstStructure * info);
Packit f546b1
GST_API
Packit f546b1
const gchar * gst_protection_select_system (const gchar ** system_identifiers);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
gchar ** gst_protection_filter_systems_by_available_decryptors (
Packit f546b1
    const gchar ** system_identifiers);
Packit f546b1
Packit f546b1
G_END_DECLS
Packit f546b1
#endif /* __GST_PROTECTION_META_H__ */