/external/bluetooth/bluez/audio/ |
H A D | gstbluetooth.c | 33 #include <sbc.h> 42 static GstStaticCaps sbc_caps = GST_STATIC_CAPS("audio/x-sbc"); 50 sbc_t sbc; local 56 if (sbc_init(&sbc, 0) < 0) 61 if (sbc_parse(&sbc, aux, 32) < 0) 64 caps = gst_sbc_parse_caps_from_sbc(&sbc); 70 sbc_finish(&sbc); 73 static gchar *sbc_exts[] = { "sbc", NULL }; 79 if (gst_type_find_register(plugin, "sbc",
|
H A D | gstsbcdec.h | 26 #include "sbc.h" 55 sbc_t sbc; member in struct:_GstSbcDec
|
H A D | gstsbcparse.h | 26 #include "sbc.h" 52 sbc_t sbc; member in struct:_GstSbcParse
|
H A D | gstsbcenc.h | 27 #include "sbc.h" 64 sbc_t sbc; member in struct:_GstSbcEnc
|
H A D | gstsbcutil.c | 288 GstCaps *gst_sbc_parse_caps_from_sbc(sbc_t *sbc) argument 294 mode_str = gst_sbc_parse_mode_from_sbc(sbc->mode); 295 allocation_str = gst_sbc_parse_allocation_from_sbc(sbc->allocation); 296 caps = gst_caps_new_simple("audio/x-sbc", 298 gst_sbc_parse_rate_from_sbc(sbc->frequency), 300 gst_sbc_get_channel_number(sbc->mode), 303 gst_sbc_parse_subbands_from_sbc(sbc->subbands), 305 gst_sbc_parse_blocks_from_sbc(sbc->blocks), 307 "bitpool", G_TYPE_INT, sbc->bitpool, 439 result = gst_caps_new_simple("audio/x-sbc", 482 gst_sbc_util_fill_sbc_params(sbc_t *sbc, GstCaps *caps) argument [all...] |
H A D | gstavdtpsink.c | 84 #define IS_SBC(n) (strcmp((n), "audio/x-sbc") == 0) 332 "was expecting sbc", name); 497 GstAvdtpSink *self, sbc_capabilities_t *sbc) 504 if (sbc == NULL) 507 structure = gst_structure_empty_new("audio/x-sbc"); 512 if (sbc->channel_mode & BT_A2DP_CHANNEL_MODE_MONO) { 516 if (sbc->channel_mode & BT_A2DP_CHANNEL_MODE_STEREO) { 520 if (sbc->channel_mode & BT_A2DP_CHANNEL_MODE_DUAL_CHANNEL) { 524 if (sbc->channel_mode & BT_A2DP_CHANNEL_MODE_JOINT_STEREO) { 538 if (sbc 496 gst_avdtp_sink_parse_sbc_caps( GstAvdtpSink *self, sbc_capabilities_t *sbc) argument 791 a2dp_sbc_t *sbc = (a2dp_sbc_t *) self->data->config; local 1110 sbc_capabilities_t *sbc; local [all...] |
H A D | liba2dp.c | 46 #include "sbc.h" 135 sbc_t sbc; /* Codec data */ member in struct:bluetooth_data 439 sbc_reinit(&data->sbc, 0); 442 data->sbc.frequency = SBC_FREQ_16000; 445 data->sbc.frequency = SBC_FREQ_32000; 448 data->sbc.frequency = SBC_FREQ_44100; 451 data->sbc.frequency = SBC_FREQ_48000; 454 data->sbc.mode = SBC_MODE_MONO; 457 data->sbc.mode = SBC_MODE_DUAL_CHANNEL; 460 data->sbc [all...] |
H A D | unix.c | 495 static void print_sbc(struct sbc_codec_cap *sbc) argument 503 sbc->channel_mode & SBC_CHANNEL_MODE_MONO ? "Mono " : "", 504 sbc->channel_mode & SBC_CHANNEL_MODE_DUAL_CHANNEL ? 506 sbc->channel_mode & SBC_CHANNEL_MODE_STEREO ? "Stereo " : "", 507 sbc->channel_mode & SBC_CHANNEL_MODE_JOINT_STEREO ? "JointStereo" : "", 508 sbc->frequency & SBC_SAMPLING_FREQ_16000 ? "16Khz " : "", 509 sbc->frequency & SBC_SAMPLING_FREQ_32000 ? "32Khz " : "", 510 sbc->frequency & SBC_SAMPLING_FREQ_44100 ? "44.1Khz " : "", 511 sbc->frequency & SBC_SAMPLING_FREQ_48000 ? "48Khz " : "", 512 sbc 540 sbc_capabilities_t *sbc = (void *) codec; local 1528 sbc_capabilities_t *sbc = (void *) &req->codec; local [all...] |
H A D | pcm_bluetooth.c | 44 #include "sbc.h" 97 sbc_t sbc; /* Codec data */ member in struct:bluetooth_a2dp 311 sbc_finish(&a2dp->sbc); 627 sbc_reinit(&a2dp->sbc, 0); 629 sbc_init(&a2dp->sbc, 0); 633 a2dp->sbc.frequency = SBC_FREQ_16000; 636 a2dp->sbc.frequency = SBC_FREQ_32000; 639 a2dp->sbc.frequency = SBC_FREQ_44100; 642 a2dp->sbc.frequency = SBC_FREQ_48000; 645 a2dp->sbc [all...] |
/external/bluetooth/bluez/sbc/ |
H A D | sbcdec.c | 40 #include "sbc.h" 51 sbc_t sbc; local 101 sbc_init(&sbc, 0L); 102 sbc.endian = SBC_BE; 104 framelen = sbc_decode(&sbc, stream, streamlen, buf, sizeof(buf), &len); 105 channels = sbc.mode == SBC_MODE_MONO ? 1 : 2; 106 switch (sbc.frequency) { 129 filename, frequency, sbc.subbands * 4 + 4, sbc.bitpool, 130 sbc [all...] |
H A D | sbcenc.c | 39 #include "sbc.h" 51 sbc_t sbc; local 90 sbc_init(&sbc, 0L); 94 sbc.frequency = SBC_FREQ_16000; 97 sbc.frequency = SBC_FREQ_32000; 100 sbc.frequency = SBC_FREQ_44100; 103 sbc.frequency = SBC_FREQ_48000; 109 sbc.subbands = subbands == 4 ? SBC_SB_4 : SBC_SB_8; 112 sbc.mode = SBC_MODE_MONO; 119 sbc [all...] |
H A D | sbc.c | 49 #include "sbc.h" 912 static void sbc_set_defaults(sbc_t *sbc, unsigned long flags) argument 914 sbc->frequency = SBC_FREQ_44100; 915 sbc->mode = SBC_MODE_STEREO; 916 sbc->subbands = SBC_SB_8; 917 sbc->blocks = SBC_BLK_16; 918 sbc->bitpool = 32; 920 sbc->endian = SBC_LE; 922 sbc->endian = SBC_BE; 928 int sbc_init(sbc_t *sbc, unsigne argument 949 sbc_parse(sbc_t *sbc, const void *input, size_t input_len) argument 954 sbc_decode(sbc_t *sbc, const void *input, size_t input_len, void *output, size_t output_len, size_t *written) argument 1023 sbc_encode(sbc_t *sbc, const void *input, size_t input_len, void *output, size_t output_len, ssize_t *written) argument 1112 sbc_finish(sbc_t *sbc) argument 1122 sbc_get_frame_length(sbc_t *sbc) argument 1148 sbc_get_frame_duration(sbc_t *sbc) argument 1186 sbc_get_codesize(sbc_t *sbc) argument 1205 sbc_get_implementation_info(sbc_t *sbc) argument 1219 sbc_reinit(sbc_t *sbc, unsigned long flags) argument [all...] |
/external/bluetooth/bluez/test/ |
H A D | ipctest.c | 44 #include "sbc.h" 77 sbc_t sbc; /* Codec data */ member in struct:a2dp_info 488 sbc_reinit(&a2dp->sbc, 0); 490 sbc_init(&a2dp->sbc, 0); 495 a2dp->sbc.frequency = SBC_FREQ_16000; 498 a2dp->sbc.frequency = SBC_FREQ_32000; 501 a2dp->sbc.frequency = SBC_FREQ_44100; 504 a2dp->sbc.frequency = SBC_FREQ_48000; 512 a2dp->sbc.mode = SBC_MODE_MONO; 515 a2dp->sbc [all...] |
/external/bluetooth/bluez/tools/ |
H A D | avinfo.c | 344 static void print_sbc(struct sbc_codec_cap *sbc) argument 348 if (sbc->channel_mode & SBC_CHANNEL_MODE_MONO) 350 if (sbc->channel_mode & SBC_CHANNEL_MODE_DUAL_CHANNEL) 352 if (sbc->channel_mode & SBC_CHANNEL_MODE_STEREO) 354 if (sbc->channel_mode & SBC_CHANNEL_MODE_JOINT_STEREO) 358 if (sbc->frequency & SBC_SAMPLING_FREQ_16000) 360 if (sbc->frequency & SBC_SAMPLING_FREQ_32000) 362 if (sbc->frequency & SBC_SAMPLING_FREQ_44100) 364 if (sbc->frequency & SBC_SAMPLING_FREQ_48000) 368 if (sbc [all...] |