Blame gst/gstprotection.h

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