/external/bluetooth/bluez/sbc/ |
H A D | sbc.h | 84 int sbc_init(sbc_t *sbc, unsigned long flags); 85 int sbc_reinit(sbc_t *sbc, unsigned long flags); 87 ssize_t sbc_parse(sbc_t *sbc, const void *input, size_t input_len); 90 ssize_t sbc_decode(sbc_t *sbc, const void *input, size_t input_len, 94 ssize_t sbc_encode(sbc_t *sbc, const void *input, size_t input_len, 98 size_t sbc_get_frame_length(sbc_t *sbc); 101 unsigned sbc_get_frame_duration(sbc_t *sbc); 104 size_t sbc_get_codesize(sbc_t *sbc); 106 const char *sbc_get_implementation_info(sbc_t *sbc); 107 void sbc_finish(sbc_t *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...] |
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...] |
/external/bluetooth/bluez/audio/ |
H A D | Android.mk | 64 ../sbc/sbc_primitives.c \ 65 ../sbc/sbc_primitives_neon.c 69 ../sbc/sbc_primitives_mmx.c \ 70 ../sbc/sbc.c 73 ../sbc/sbc.c.arm \ 74 ../sbc/sbc_primitives_armv6.c 81 $(LOCAL_PATH)/../sbc \
|
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 | 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 | gstsbcdec.c | 47 GST_STATIC_CAPS("audio/x-sbc")); 66 codesize = sbc_get_codesize(&dec->sbc); 93 consumed = sbc_decode(&dec->sbc, data + offset, size - offset, 104 dec->sbc.frequency), 107 dec->sbc.mode), 153 sbc_init(&dec->sbc, 0); 163 sbc_finish(&dec->sbc);
|
H A D | gstsbcdec.h | 26 #include "sbc.h" 55 sbc_t sbc; member in struct:_GstSbcDec
|
H A D | gstsbcenc.c | 158 GST_STATIC_CAPS("audio/x-sbc, " 321 if (!gst_sbc_util_fill_sbc_params(&enc->sbc, caps)) 324 if (enc->rate != 0 && gst_sbc_parse_rate_from_sbc(enc->sbc.frequency) 328 if (enc->channels != 0 && gst_sbc_get_channel_number(enc->sbc.mode) 332 if (enc->blocks != 0 && gst_sbc_parse_blocks_from_sbc(enc->sbc.blocks) 337 enc->sbc.subbands) != enc->subbands) 340 if (enc->mode != SBC_ENC_DEFAULT_MODE && enc->sbc.mode != enc->mode) 344 enc->sbc.allocation != enc->allocation) 348 enc->sbc.bitpool != enc->bitpool) 351 enc->codesize = sbc_get_codesize(&enc->sbc); [all...] |
H A D | gstsbcutil.h | 26 #include "sbc.h" 62 GstCaps* gst_sbc_parse_caps_from_sbc(sbc_t *sbc); 74 gboolean gst_sbc_util_fill_sbc_params(sbc_t *sbc, GstCaps *caps);
|
H A D | gstsbcparse.c | 47 GST_STATIC_CAPS("audio/x-sbc," 52 GST_STATIC_CAPS("audio/x-sbc, " 93 if (parse->first_parsing || (memcmp(&parse->sbc, 96 memcpy(&parse->sbc, &parse->new_sbc, sizeof(sbc_t)); 101 &parse->sbc); 146 sbc_init(&parse->sbc, 0); 161 sbc_finish(&parse->sbc);
|
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 | gstsbcenc.h | 27 #include "sbc.h" 64 sbc_t sbc; member in struct:_GstSbcEnc
|
H A D | gstsbcparse.h | 26 #include "sbc.h" 52 sbc_t sbc; member in struct:_GstSbcParse
|
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/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...] |
/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/valgrind/main/none/tests/arm/ |
H A D | v6intThumb.stdout.exp | 1528 sbc.w r1, r2, #0xffffffff :: rd 0x31415927 rm 0x31415927, c:v-in 0, cpsr 0xc0000000 NZ 1529 sbc.w r1, r2, #0xee00ee00 :: rd 0x43406b26 rm 0x31415927, c:v-in 0, cpsr 0xc0000000 NZ 1530 sbc.w r1, r2, #255 :: rd 0xffffff00 rm 0x00000000, c:v-in 0, cpsr 0xc0000000 NZ 1531 sbc.w r1, r2, #0 :: rd 0x00000000 rm 0x00000001, c:v-in 0, cpsr 0xc0000000 NZ 1532 sbc.w r1, r2, #1 :: rd 0xfffffffe rm 0x00000000, c:v-in 0, cpsr 0xc0000000 NZ 1533 sbc.w r1, r2, #0 :: rd 0xfffffffe rm 0xffffffff, c:v-in 0, cpsr 0xc0000000 NZ 1534 sbc.w r1, r2, #-1 :: rd 0x00000000 rm 0x00000000, c:v-in 0, cpsr 0xc0000000 NZ 1535 sbc.w r1, r2, #0x80000000 :: rd 0x7fffffff rm 0x00000000, c:v-in 0, cpsr 0xc0000000 NZ 1536 sbc.w r1, r2, #0 :: rd 0x7fffffff rm 0x80000000, c:v-in 0, cpsr 0xc0000000 NZ 1537 sbc [all...] |
/external/llvm/test/MC/ARM/ |
H A D | basic-arm-instructions.s | 1546 sbc r4, r5, #0xf000 1547 sbc r4, r5, r6 1548 sbc r4, r5, r6, lsl #5 1549 sbc r4, r5, r6, lsr #5 1550 sbc r4, r5, r6, lsr #5 1551 sbc r4, r5, r6, asr #5 1552 sbc r4, r5, r6, ror #5 1553 sbc r6, r7, r8, lsl r9 1554 sbc r6, r7, r8, lsr r9 1555 sbc r [all...] |
H A D | basic-thumb2-instructions.s | 1804 sbc r0, r1, #4 1806 sbc r1, r2, #255 1807 sbc r3, r7, #0x00550055 1808 sbc r8, r12, #0xaa00aa00 1809 sbc r9, r7, #0xa5a5a5a5 1810 sbc r5, r3, #0x87000000 1811 sbc r4, r2, #0x7f800000 1812 sbc r4, r2, #0x00000680 1814 @ CHECK: sbc r0, r1, #4 @ encoding: [0x61,0xf1,0x04,0x00] 1816 @ CHECK: sbc r [all...] |
/external/v8/test/cctest/ |
H A D | test-disasm-arm.cc | 161 COMPARE(sbc(r7, r1, Operand(ip, ROR, 1), LeaveCC, hi), 163 COMPARE(sbc(r7, r9, Operand(ip, ROR, 4)), 164 "e0c9726c sbc r7, r9, ip, ror #4"); 165 COMPARE(sbc(r7, r10, Operand(ip), SetCC), 167 COMPARE(sbc(r7, ip, Operand(ip, ROR, 31), SetCC, hi),
|
/external/v8/src/arm/ |
H A D | disasm-arm.cc | 852 Format(instr, "sbc'cond's 'rd, 'rn, 'shift_op");
|