|
Packit |
971217 |
|
|
Packit |
971217 |
<html>
|
|
Packit |
971217 |
<head>
|
|
Packit |
971217 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
Packit |
971217 |
<title>Codec utilities: GStreamer Base Plugins 1.0 Library Reference Manual</title>
|
|
Packit |
971217 |
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
|
Packit |
971217 |
<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Library Reference Manual">
|
|
Packit |
971217 |
<link rel="up" href="gstreamer-base-utils.html" title="Base Utils Library">
|
|
Packit |
971217 |
<link rel="prev" href="gst-plugins-base-libs-Version.html" title="Version">
|
|
Packit |
971217 |
<link rel="next" href="gst-plugins-base-libs-Descriptions.html" title="Descriptions">
|
|
Packit |
971217 |
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
|
|
Packit |
971217 |
<link rel="stylesheet" href="style.css" type="text/css">
|
|
Packit |
971217 |
</head>
|
|
Packit |
971217 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Top |
|
|
Packit |
971217 |
Description
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Codec utilities
|
|
Packit |
971217 |
Codec utilities — Miscellaneous codec-specific utility functions
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Functions
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
guint
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_sample_rate_from_index ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gint
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_index_from_sample_rate ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_profile ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_level ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
guint
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_channels ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
guint
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_sample_rate ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_caps_set_level_and_profile ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h264_get_profile ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h264_get_level ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h264_caps_set_level_and_profile ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
guint8
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h264_get_level_idc ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h265_get_profile ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h265_get_tier ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h265_get_level ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
guint8
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h265_get_level_idc ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h265_caps_set_level_tier_and_profile ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_mpeg4video_get_profile ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_mpeg4video_get_level ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_mpeg4video_caps_set_level_and_profile ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GstCaps *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_opus_create_caps ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GstCaps *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_opus_create_caps_from_header ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_opus_parse_caps ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GstBuffer *
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_opus_create_header ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_opus_parse_header ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Includes
|
|
Packit |
971217 |
#include <gst/pbutils/codec-utils.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Description
|
|
Packit |
971217 |
Provides codec-specific ulility functions such as functions to provide the
|
|
Packit |
971217 |
codec profile and level in human-readable string form from header data.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Functions
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_sample_rate_from_index ()
|
|
Packit |
971217 |
guint
|
|
Packit |
971217 |
gst_codec_utils_aac_get_sample_rate_from_index
|
|
Packit |
971217 |
(guint sr_idx );
|
|
Packit |
971217 |
Translates the sample rate index found in AAC headers to the actual sample
|
|
Packit |
971217 |
rate.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
sr_idx
|
|
Packit |
971217 |
Sample rate index as from the AudioSpecificConfig (MPEG-4
|
|
Packit |
971217 |
container) or ADTS frame header
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The sample rate if sr_idx
|
|
Packit |
971217 |
is valid, 0 otherwise.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_index_from_sample_rate ()
|
|
Packit |
971217 |
gint
|
|
Packit |
971217 |
gst_codec_utils_aac_get_index_from_sample_rate
|
|
Packit |
971217 |
(guint rate );
|
|
Packit |
971217 |
Translates the sample rate to the index corresponding to it in AAC spec.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
rate
|
|
Packit |
971217 |
Sample rate
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The AAC index for this sample rate, -1 if the rate is not a
|
|
Packit |
971217 |
valid AAC sample rate.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_profile ()
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
gst_codec_utils_aac_get_profile (const guint8 *audio_config ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Returns the profile of the given AAC stream as a string. The profile is
|
|
Packit |
971217 |
determined using the AudioObjectType field which is in the first 5 bits of
|
|
Packit |
971217 |
audio_config
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
HE-AAC support has not yet been implemented.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
audio_config
|
|
Packit |
971217 |
a pointer to the AudioSpecificConfig
|
|
Packit |
971217 |
as specified in the Elementary Stream Descriptor (esds)
|
|
Packit |
971217 |
in ISO/IEC 14496-1.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of audio_config
|
|
Packit |
971217 |
in bytes
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The profile as a const string and NULL if the profile could not be
|
|
Packit |
971217 |
determined.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_level ()
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
gst_codec_utils_aac_get_level (const guint8 *audio_config ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Determines the level of a stream as defined in ISO/IEC 14496-3. For AAC LC
|
|
Packit |
971217 |
streams, the constraints from the AAC audio profile are applied. For AAC
|
|
Packit |
971217 |
Main, LTP, SSR and others, the Main profile is used.
|
|
Packit |
971217 |
The audio_config
|
|
Packit |
971217 |
parameter follows the following format, starting from the
|
|
Packit |
971217 |
most significant bit of the first byte:
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Bit 0:4 contains the AudioObjectType
|
|
Packit |
971217 |
Bit 5:8 contains the sample frequency index (if this is 0xf, then the
|
|
Packit |
971217 |
next 24 bits define the actual sample frequency, and subsequent
|
|
Packit |
971217 |
fields are appropriately shifted).
|
|
Packit |
971217 |
Bit 9:12 contains the channel configuration
|
|
Packit |
971217 |
|
|
Packit |
971217 |
HE-AAC support has not yet been implemented.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
audio_config
|
|
Packit |
971217 |
a pointer to the AudioSpecificConfig
|
|
Packit |
971217 |
as specified in the Elementary Stream Descriptor (esds)
|
|
Packit |
971217 |
in ISO/IEC 14496-1.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of audio_config
|
|
Packit |
971217 |
in bytes
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The level as a const string and NULL if the level could not be
|
|
Packit |
971217 |
determined.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_channels ()
|
|
Packit |
971217 |
guint
|
|
Packit |
971217 |
gst_codec_utils_aac_get_channels (const guint8 *audio_config ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Returns the channels of the given AAC stream.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
audio_config
|
|
Packit |
971217 |
a pointer to the AudioSpecificConfig
|
|
Packit |
971217 |
as specified in the Elementary Stream Descriptor (esds)
|
|
Packit |
971217 |
in ISO/IEC 14496-1.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of audio_config
|
|
Packit |
971217 |
in bytes
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The channels or 0 if the channel could not be determined.
|
|
Packit |
971217 |
Since 1.10
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_get_sample_rate ()
|
|
Packit |
971217 |
guint
|
|
Packit |
971217 |
gst_codec_utils_aac_get_sample_rate (const guint8 *audio_config ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Translates the sample rate index found in AAC headers to the actual sample
|
|
Packit |
971217 |
rate.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
audio_config
|
|
Packit |
971217 |
a pointer to the AudioSpecificConfig
|
|
Packit |
971217 |
as specified in the Elementary Stream Descriptor (esds)
|
|
Packit |
971217 |
in ISO/IEC 14496-1.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of audio_config
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The sample rate if sr_idx is valid, 0 otherwise.
|
|
Packit |
971217 |
Since 1.10
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_aac_caps_set_level_and_profile ()
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
gst_codec_utils_aac_caps_set_level_and_profile
|
|
Packit |
971217 |
(GstCaps *caps ,
|
|
Packit |
971217 |
const guint8 *audio_config ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Sets the level and profile on caps
|
|
Packit |
971217 |
if it can be determined from
|
|
Packit |
971217 |
audio_config
|
|
Packit |
971217 |
. See gst_codec_utils_aac_get_level() and
|
|
Packit |
971217 |
gst_codec_utils_aac_get_profile() for more details on the parameters.
|
|
Packit |
971217 |
caps
|
|
Packit |
971217 |
must be audio/mpeg caps with an "mpegversion" field of either 2 or 4.
|
|
Packit |
971217 |
If mpegversion is 4, the "base-profile" field is also set in caps
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
caps
|
|
Packit |
971217 |
the GstCaps to which level and profile fields are to be added
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
audio_config
|
|
Packit |
971217 |
a pointer to the AudioSpecificConfig
|
|
Packit |
971217 |
as specified in the Elementary Stream Descriptor (esds)
|
|
Packit |
971217 |
in ISO/IEC 14496-1. (See below for more details).
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of audio_config
|
|
Packit |
971217 |
in bytes
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
TRUE if the level and profile could be set, FALSE otherwise.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h264_get_profile ()
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
gst_codec_utils_h264_get_profile (const guint8 *sps ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Converts the profile indication (profile_idc) in the stream's
|
|
Packit |
971217 |
sequence parameter set into a string. The SPS is expected to have the
|
|
Packit |
971217 |
following format, as defined in the H.264 specification. The SPS is viewed
|
|
Packit |
971217 |
as a bitstream here, with bit 0 being the most significant bit of the first
|
|
Packit |
971217 |
byte.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Bit 0:7 - Profile indication
|
|
Packit |
971217 |
Bit 8 - constraint_set0_flag
|
|
Packit |
971217 |
Bit 9 - constraint_set1_flag
|
|
Packit |
971217 |
Bit 10 - constraint_set2_flag
|
|
Packit |
971217 |
Bit 11 - constraint_set3_flag
|
|
Packit |
971217 |
Bit 12 - constraint_set3_flag
|
|
Packit |
971217 |
Bit 13:15 - Reserved
|
|
Packit |
971217 |
Bit 16:24 - Level indication
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
sps
|
|
Packit |
971217 |
Pointer to the sequence parameter set for the stream.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of the data available in sps
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The profile as a const string, or NULL if there is an error.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h264_get_level ()
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
gst_codec_utils_h264_get_level (const guint8 *sps ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Converts the level indication (level_idc) in the stream's
|
|
Packit |
971217 |
sequence parameter set into a string. The SPS is expected to have the
|
|
Packit |
971217 |
same format as for gst_codec_utils_h264_get_profile() .
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
sps
|
|
Packit |
971217 |
Pointer to the sequence parameter set for the stream.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of the data available in sps
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The level as a const string, or NULL if there is an error.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h264_caps_set_level_and_profile ()
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
gst_codec_utils_h264_caps_set_level_and_profile
|
|
Packit |
971217 |
(GstCaps *caps ,
|
|
Packit |
971217 |
const guint8 *sps ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Sets the level and profile in caps
|
|
Packit |
971217 |
if it can be determined from sps
|
|
Packit |
971217 |
. See
|
|
Packit |
971217 |
gst_codec_utils_h264_get_level() and gst_codec_utils_h264_get_profile()
|
|
Packit |
971217 |
for more details on the parameters.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
caps
|
|
Packit |
971217 |
the GstCaps to which the level and profile are to be added
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
sps
|
|
Packit |
971217 |
Pointer to the sequence parameter set for the stream.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of the data available in sps
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
TRUE if the level and profile could be set, FALSE otherwise.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h264_get_level_idc ()
|
|
Packit |
971217 |
guint8
|
|
Packit |
971217 |
gst_codec_utils_h264_get_level_idc (const gchar *level );
|
|
Packit |
971217 |
Transform a level string from the caps into the level_idc
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
level
|
|
Packit |
971217 |
A level string from caps
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
the level_idc or 0 if the level is unknown
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h265_get_profile ()
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
gst_codec_utils_h265_get_profile (const guint8 *profile_tier_level ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Converts the profile indication (general_profile_idc) in the stream's
|
|
Packit |
971217 |
profile_level_tier structure into a string. The profile_tier_level is
|
|
Packit |
971217 |
expected to have the following format, as defined in the H.265
|
|
Packit |
971217 |
specification. The profile_tier_level is viewed as a bitstream here,
|
|
Packit |
971217 |
with bit 0 being the most significant bit of the first byte.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Bit 0:1 - general_profile_space
|
|
Packit |
971217 |
Bit 2 - general_tier_flag
|
|
Packit |
971217 |
Bit 3:7 - general_profile_idc
|
|
Packit |
971217 |
Bit 8:39 - gernal_profile_compatibility_flags
|
|
Packit |
971217 |
Bit 40 - general_progressive_source_flag
|
|
Packit |
971217 |
Bit 41 - general_interlaced_source_flag
|
|
Packit |
971217 |
Bit 42 - general_non_packed_constraint_flag
|
|
Packit |
971217 |
Bit 43 - general_frame_only_constraint_flag
|
|
Packit |
971217 |
Bit 44:87 - general_reserved_zero_44bits
|
|
Packit |
971217 |
Bit 88:95 - general_level_idc
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
profile_tier_level
|
|
Packit |
971217 |
Pointer to the profile_tier_level
|
|
Packit |
971217 |
structure for the stream.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of the data available in profile_tier_level
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The profile as a const string, or NULL if there is an error.
|
|
Packit |
971217 |
Since 1.4
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h265_get_tier ()
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
gst_codec_utils_h265_get_tier (const guint8 *profile_tier_level ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Converts the tier indication (general_tier_flag) in the stream's
|
|
Packit |
971217 |
profile_tier_level structure into a string. The profile_tier_level
|
|
Packit |
971217 |
is expected to have the same format as for gst_codec_utils_h264_get_profile() .
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
profile_tier_level
|
|
Packit |
971217 |
Pointer to the profile_tier_level
|
|
Packit |
971217 |
for the stream.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of the data available in profile_tier_level
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The tier as a const string, or NULL if there is an error.
|
|
Packit |
971217 |
Since 1.4
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h265_get_level ()
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
gst_codec_utils_h265_get_level (const guint8 *profile_tier_level ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Converts the level indication (general_level_idc) in the stream's
|
|
Packit |
971217 |
profile_tier_level structure into a string. The profiel_tier_level is
|
|
Packit |
971217 |
expected to have the same format as for gst_codec_utils_h264_get_profile() .
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
profile_tier_level
|
|
Packit |
971217 |
Pointer to the profile_tier_level
|
|
Packit |
971217 |
for the stream.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of the data available in profile_tier_level
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The level as a const string, or NULL if there is an error.
|
|
Packit |
971217 |
Since 1.4
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h265_get_level_idc ()
|
|
Packit |
971217 |
guint8
|
|
Packit |
971217 |
gst_codec_utils_h265_get_level_idc (const gchar *level );
|
|
Packit |
971217 |
Transform a level string from the caps into the level_idc
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
level
|
|
Packit |
971217 |
A level string from caps
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
the level_idc or 0 if the level is unknown
|
|
Packit |
971217 |
Since 1.4
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_h265_caps_set_level_tier_and_profile ()
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
gst_codec_utils_h265_caps_set_level_tier_and_profile
|
|
Packit |
971217 |
(GstCaps *caps ,
|
|
Packit |
971217 |
const guint8 *profile_tier_level ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Sets the level, tier and profile in caps
|
|
Packit |
971217 |
if it can be determined from
|
|
Packit |
971217 |
profile_tier_level
|
|
Packit |
971217 |
. See gst_codec_utils_h265_get_level() ,
|
|
Packit |
971217 |
gst_codec_utils_h265_get_tier() and gst_codec_utils_h265_get_profile()
|
|
Packit |
971217 |
for more details on the parameters.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
caps
|
|
Packit |
971217 |
the GstCaps to which the level, tier and profile are to be added
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
profile_tier_level
|
|
Packit |
971217 |
Pointer to the profile_tier_level
|
|
Packit |
971217 |
struct.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of the data available in profile_tier_level
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
TRUE if the level, tier, profile could be set, FALSE otherwise.
|
|
Packit |
971217 |
Since 1.4
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_mpeg4video_get_profile ()
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
gst_codec_utils_mpeg4video_get_profile
|
|
Packit |
971217 |
(const guint8 *vis_obj_seq ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Converts the profile indication in the stream's visual object sequence into
|
|
Packit |
971217 |
a string. vis_obj_seq
|
|
Packit |
971217 |
is expected to be the data following the visual
|
|
Packit |
971217 |
object sequence start code. Only the first byte
|
|
Packit |
971217 |
(profile_and_level_indication) is used.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
vis_obj_seq
|
|
Packit |
971217 |
Pointer to the visual object
|
|
Packit |
971217 |
sequence for the stream.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of the data available in sps
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The profile as a const string, or NULL if there is an error.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_mpeg4video_get_level ()
|
|
Packit |
971217 |
const gchar *
|
|
Packit |
971217 |
gst_codec_utils_mpeg4video_get_level (const guint8 *vis_obj_seq ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Converts the level indication in the stream's visual object sequence into
|
|
Packit |
971217 |
a string. vis_obj_seq
|
|
Packit |
971217 |
is expected to be the data following the visual
|
|
Packit |
971217 |
object sequence start code. Only the first byte
|
|
Packit |
971217 |
(profile_and_level_indication) is used.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
vis_obj_seq
|
|
Packit |
971217 |
Pointer to the visual object
|
|
Packit |
971217 |
sequence for the stream.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of the data available in sps
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The level as a const string, or NULL if there is an error.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_mpeg4video_caps_set_level_and_profile ()
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
gst_codec_utils_mpeg4video_caps_set_level_and_profile
|
|
Packit |
971217 |
(GstCaps *caps ,
|
|
Packit |
971217 |
const guint8 *vis_obj_seq ,
|
|
Packit |
971217 |
guint len );
|
|
Packit |
971217 |
Sets the level and profile in caps
|
|
Packit |
971217 |
if it can be determined from
|
|
Packit |
971217 |
vis_obj_seq
|
|
Packit |
971217 |
. See gst_codec_utils_mpeg4video_get_level() and
|
|
Packit |
971217 |
gst_codec_utils_mpeg4video_get_profile() for more details on the
|
|
Packit |
971217 |
parameters.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
caps
|
|
Packit |
971217 |
the GstCaps to which the level and profile are to be added
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
vis_obj_seq
|
|
Packit |
971217 |
Pointer to the visual object
|
|
Packit |
971217 |
sequence for the stream.
|
|
Packit |
971217 |
[array length=len]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
len
|
|
Packit |
971217 |
Length of the data available in sps
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
TRUE if the level and profile could be set, FALSE otherwise.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_opus_create_caps ()
|
|
Packit |
971217 |
GstCaps *
|
|
Packit |
971217 |
gst_codec_utils_opus_create_caps (guint32 rate ,
|
|
Packit |
971217 |
guint8 channels ,
|
|
Packit |
971217 |
guint8 channel_mapping_family ,
|
|
Packit |
971217 |
guint8 stream_count ,
|
|
Packit |
971217 |
guint8 coupled_count ,
|
|
Packit |
971217 |
const guint8 *channel_mapping );
|
|
Packit |
971217 |
Creates Opus caps from the given parameters.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
rate
|
|
Packit |
971217 |
the sample rate
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channels
|
|
Packit |
971217 |
the number of channels
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channel_mapping_family
|
|
Packit |
971217 |
the channel mapping family
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
stream_count
|
|
Packit |
971217 |
the number of independent streams
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
coupled_count
|
|
Packit |
971217 |
the number of stereo streams
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channel_mapping
|
|
Packit |
971217 |
the mapping between the streams.
|
|
Packit |
971217 |
[allow-none][array]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The GstCaps, or NULL if the parameters would lead to
|
|
Packit |
971217 |
invalid Opus caps.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Since: 1.8
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_opus_create_caps_from_header ()
|
|
Packit |
971217 |
GstCaps *
|
|
Packit |
971217 |
gst_codec_utils_opus_create_caps_from_header
|
|
Packit |
971217 |
(GstBuffer *header ,
|
|
Packit |
971217 |
GstBuffer *comments );
|
|
Packit |
971217 |
Creates Opus caps from the given OpusHead header
|
|
Packit |
971217 |
and comment header
|
|
Packit |
971217 |
comments
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
header
|
|
Packit |
971217 |
OpusHead header
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
comments
|
|
Packit |
971217 |
Comment header or NULL.
|
|
Packit |
971217 |
[allow-none]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The GstCaps.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Since: 1.8
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_opus_parse_caps ()
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
gst_codec_utils_opus_parse_caps (GstCaps *caps ,
|
|
Packit |
971217 |
guint32 *rate ,
|
|
Packit |
971217 |
guint8 *channels ,
|
|
Packit |
971217 |
guint8 *channel_mapping_family ,
|
|
Packit |
971217 |
guint8 *stream_count ,
|
|
Packit |
971217 |
guint8 *coupled_count ,
|
|
Packit |
971217 |
guint8 channel_mapping[256] );
|
|
Packit |
971217 |
Parses Opus caps and fills the different fields with defaults if possible.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
caps
|
|
Packit |
971217 |
the GstCaps to parse the data from
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
rate
|
|
Packit |
971217 |
the sample rate.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channels
|
|
Packit |
971217 |
the number of channels.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channel_mapping_family
|
|
Packit |
971217 |
the channel mapping family.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
stream_count
|
|
Packit |
971217 |
the number of independent streams.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
coupled_count
|
|
Packit |
971217 |
the number of stereo streams.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channel_mapping
|
|
Packit |
971217 |
the mapping between the streams.
|
|
Packit |
971217 |
[out][array fixed-size=256]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
TRUE if parsing was successful, FALSE otherwise.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Since: 1.8
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_opus_create_header ()
|
|
Packit |
971217 |
GstBuffer *
|
|
Packit |
971217 |
gst_codec_utils_opus_create_header (guint32 rate ,
|
|
Packit |
971217 |
guint8 channels ,
|
|
Packit |
971217 |
guint8 channel_mapping_family ,
|
|
Packit |
971217 |
guint8 stream_count ,
|
|
Packit |
971217 |
guint8 coupled_count ,
|
|
Packit |
971217 |
const guint8 *channel_mapping ,
|
|
Packit |
971217 |
guint16 pre_skip ,
|
|
Packit |
971217 |
gint16 output_gain );
|
|
Packit |
971217 |
Creates OpusHead header from the given parameters.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
rate
|
|
Packit |
971217 |
the sample rate
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channels
|
|
Packit |
971217 |
the number of channels
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channel_mapping_family
|
|
Packit |
971217 |
the channel mapping family
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
stream_count
|
|
Packit |
971217 |
the number of independent streams
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
coupled_count
|
|
Packit |
971217 |
the number of stereo streams
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channel_mapping
|
|
Packit |
971217 |
the mapping between the streams.
|
|
Packit |
971217 |
[allow-none][array]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
pre_skip
|
|
Packit |
971217 |
Pre-skip in 48kHz samples or 0
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
output_gain
|
|
Packit |
971217 |
Output gain or 0
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
The GstBuffer containing the OpusHead.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Since: 1.8
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_codec_utils_opus_parse_header ()
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
gst_codec_utils_opus_parse_header (GstBuffer *header ,
|
|
Packit |
971217 |
guint32 *rate ,
|
|
Packit |
971217 |
guint8 *channels ,
|
|
Packit |
971217 |
guint8 *channel_mapping_family ,
|
|
Packit |
971217 |
guint8 *stream_count ,
|
|
Packit |
971217 |
guint8 *coupled_count ,
|
|
Packit |
971217 |
guint8 channel_mapping[256] ,
|
|
Packit |
971217 |
guint16 *pre_skip ,
|
|
Packit |
971217 |
gint16 *output_gain );
|
|
Packit |
971217 |
Parses the OpusHead header.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
header
|
|
Packit |
971217 |
the OpusHead GstBuffer
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
rate
|
|
Packit |
971217 |
the sample rate.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channels
|
|
Packit |
971217 |
the number of channels.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channel_mapping_family
|
|
Packit |
971217 |
the channel mapping family.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
stream_count
|
|
Packit |
971217 |
the number of independent streams.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
coupled_count
|
|
Packit |
971217 |
the number of stereo streams.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
channel_mapping
|
|
Packit |
971217 |
the mapping between the streams.
|
|
Packit |
971217 |
[out][array fixed-size=256]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
pre_skip
|
|
Packit |
971217 |
Pre-skip in 48kHz samples or 0.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
output_gain
|
|
Packit |
971217 |
Output gain or 0.
|
|
Packit |
971217 |
[out]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Returns
|
|
Packit |
971217 |
TRUE if parsing was successful, FALSE otherwise.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Since: 1.8
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Types and Values
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Generated by GTK-Doc V1.27
|
|
Packit |
971217 |
</body>
|
|
Packit |
971217 |
</html>
|