diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-01-23 13:14:02 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-01-23 13:14:02 +0000 |
commit | a0af7ee44534dad8f35a4142c6a22177e54ffc57 (patch) | |
tree | c6a475d035e40f617a213a9ad5327a7eb5d01388 /audio/gstsbcutil.h | |
parent | 1cacae6dd9f44d0e403aa29e45eb3d20e7127f68 (diff) |
Make a2dpsink to act like a bin and split the payloader.
Diffstat (limited to 'audio/gstsbcutil.h')
-rw-r--r-- | audio/gstsbcutil.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/audio/gstsbcutil.h b/audio/gstsbcutil.h index 4581abf7..a67bf1be 100644 --- a/audio/gstsbcutil.h +++ b/audio/gstsbcutil.h @@ -49,3 +49,22 @@ const gchar *gst_sbc_get_mode_string(int joint); GstCaps* gst_sbc_caps_from_sbc(sbc_capabilities_t *sbc, gint channels); GstCaps* gst_sbc_util_caps_fixate(GstCaps *caps, gchar** error_message); + +void gst_sbc_util_set_structure_int_param(GstStructure *structure, + const gchar* field, gint field_value, + GValue *value); + +void gst_sbc_util_set_structure_string_param(GstStructure *structure, + const gchar* field, const gchar* field_value, + GValue *value); + +gboolean gst_sbc_util_fill_sbc_params(sbc_t *sbc, GstCaps *caps); + +gint gst_sbc_util_calc_frame_len(gint subbands, gint channels, + gint blocks, gint bitpool, gint channel_mode); + +gint gst_sbc_util_calc_bitrate(gint frame_len, gint rate, gint subbands, + gint blocks); + +gint64 gst_sbc_util_calc_frame_duration(gint rate, gint blocks, gint subbands); + |