Home
last modified time | relevance | path

Searched refs:sbc (Results 1 – 25 of 45) sorted by relevance

12

/external/bluetooth/bluez/sbc/
Dsbcenc.c51 sbc_t sbc; in encode() local
90 sbc_init(&sbc, 0L); in encode()
94 sbc.frequency = SBC_FREQ_16000; in encode()
97 sbc.frequency = SBC_FREQ_32000; in encode()
100 sbc.frequency = SBC_FREQ_44100; in encode()
103 sbc.frequency = SBC_FREQ_48000; in encode()
109 sbc.subbands = subbands == 4 ? SBC_SB_4 : SBC_SB_8; in encode()
112 sbc.mode = SBC_MODE_MONO; in encode()
119 sbc.mode = SBC_MODE_JOINT_STEREO; in encode()
121 sbc.mode = SBC_MODE_DUAL_CHANNEL; in encode()
[all …]
Dsbc.c912 static void sbc_set_defaults(sbc_t *sbc, unsigned long flags) in sbc_set_defaults() argument
914 sbc->frequency = SBC_FREQ_44100; in sbc_set_defaults()
915 sbc->mode = SBC_MODE_STEREO; in sbc_set_defaults()
916 sbc->subbands = SBC_SB_8; in sbc_set_defaults()
917 sbc->blocks = SBC_BLK_16; in sbc_set_defaults()
918 sbc->bitpool = 32; in sbc_set_defaults()
920 sbc->endian = SBC_LE; in sbc_set_defaults()
922 sbc->endian = SBC_BE; in sbc_set_defaults()
928 int sbc_init(sbc_t *sbc, unsigned long flags) in sbc_init() argument
930 if (!sbc) in sbc_init()
[all …]
Dsbc.h84 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);
Dsbcdec.c51 sbc_t sbc; in decode() local
101 sbc_init(&sbc, 0L); in decode()
102 sbc.endian = SBC_BE; in decode()
104 framelen = sbc_decode(&sbc, stream, streamlen, buf, sizeof(buf), &len); in decode()
105 channels = sbc.mode == SBC_MODE_MONO ? 1 : 2; in decode()
106 switch (sbc.frequency) { in decode()
129 filename, frequency, sbc.subbands * 4 + 4, sbc.bitpool, in decode()
130 sbc.allocation == SBC_AM_SNR ? "SNR" : "LOUDNESS", in decode()
131 sbc.mode == SBC_MODE_MONO ? "MONO" : in decode()
132 sbc.mode == SBC_MODE_STEREO ? in decode()
[all …]
/external/bluetooth/bluez/
DMakefile.am63 noinst_LTLIBRARIES += sbc/libsbc.la
65 sbc_libsbc_la_SOURCES = sbc/sbc.h sbc/sbc.c sbc/sbc_math.h sbc/sbc_tables.h \
66 sbc/sbc_primitives.h sbc/sbc_primitives.c \
67 sbc/sbc_primitives_mmx.h sbc/sbc_primitives_mmx.c \
68 sbc/sbc_primitives_iwmmxt.h sbc/sbc_primitives_iwmmxt.c \
69 sbc/sbc_primitives_neon.h sbc/sbc_primitives_neon.c \
70 sbc/sbc_primitives_armv6.h sbc/sbc_primitives_armv6.c
75 noinst_PROGRAMS += sbc/sbcinfo sbc/sbcdec sbc/sbcenc
77 sbc_sbcdec_SOURCES = sbc/sbcdec.c sbc/formats.h
78 sbc_sbcdec_LDADD = sbc/libsbc.la
[all …]
D.gitignore38 sbc/sbcdec
39 sbc/sbcenc
40 sbc/sbcinfo
41 sbc/sbctester
/external/bluetooth/bluez/audio/
Dgstsbcutil.c288 GstCaps *gst_sbc_parse_caps_from_sbc(sbc_t *sbc) in gst_sbc_parse_caps_from_sbc() argument
294 mode_str = gst_sbc_parse_mode_from_sbc(sbc->mode); in gst_sbc_parse_caps_from_sbc()
295 allocation_str = gst_sbc_parse_allocation_from_sbc(sbc->allocation); in gst_sbc_parse_caps_from_sbc()
298 gst_sbc_parse_rate_from_sbc(sbc->frequency), in gst_sbc_parse_caps_from_sbc()
300 gst_sbc_get_channel_number(sbc->mode), in gst_sbc_parse_caps_from_sbc()
303 gst_sbc_parse_subbands_from_sbc(sbc->subbands), in gst_sbc_parse_caps_from_sbc()
305 gst_sbc_parse_blocks_from_sbc(sbc->blocks), in gst_sbc_parse_caps_from_sbc()
307 "bitpool", G_TYPE_INT, sbc->bitpool, in gst_sbc_parse_caps_from_sbc()
482 gboolean gst_sbc_util_fill_sbc_params(sbc_t *sbc, GstCaps *caps) in gst_sbc_util_fill_sbc_params() argument
512 sbc->frequency = gst_sbc_parse_rate_to_sbc(rate); in gst_sbc_util_fill_sbc_params()
[all …]
Dgstbluetooth.c50 sbc_t sbc; in sbc_typefind() local
56 if (sbc_init(&sbc, 0) < 0) in sbc_typefind()
61 if (sbc_parse(&sbc, aux, 32) < 0) in sbc_typefind()
64 caps = gst_sbc_parse_caps_from_sbc(&sbc); in sbc_typefind()
70 sbc_finish(&sbc); in sbc_typefind()
Dgstavdtpsink.c497 GstAvdtpSink *self, sbc_capabilities_t *sbc) in gst_avdtp_sink_parse_sbc_caps() argument
504 if (sbc == NULL) in gst_avdtp_sink_parse_sbc_caps()
512 if (sbc->channel_mode & BT_A2DP_CHANNEL_MODE_MONO) { in gst_avdtp_sink_parse_sbc_caps()
516 if (sbc->channel_mode & BT_A2DP_CHANNEL_MODE_STEREO) { in gst_avdtp_sink_parse_sbc_caps()
520 if (sbc->channel_mode & BT_A2DP_CHANNEL_MODE_DUAL_CHANNEL) { in gst_avdtp_sink_parse_sbc_caps()
524 if (sbc->channel_mode & BT_A2DP_CHANNEL_MODE_JOINT_STEREO) { in gst_avdtp_sink_parse_sbc_caps()
538 if (sbc->subbands & BT_A2DP_SUBBANDS_4) { in gst_avdtp_sink_parse_sbc_caps()
542 if (sbc->subbands & BT_A2DP_SUBBANDS_8) { in gst_avdtp_sink_parse_sbc_caps()
556 if (sbc->block_length & BT_A2DP_BLOCK_LENGTH_16) { in gst_avdtp_sink_parse_sbc_caps()
560 if (sbc->block_length & BT_A2DP_BLOCK_LENGTH_12) { in gst_avdtp_sink_parse_sbc_caps()
[all …]
Dgstsbcenc.c321 if (!gst_sbc_util_fill_sbc_params(&enc->sbc, caps)) in gst_sbc_enc_fill_sbc_params()
324 if (enc->rate != 0 && gst_sbc_parse_rate_from_sbc(enc->sbc.frequency) in gst_sbc_enc_fill_sbc_params()
328 if (enc->channels != 0 && gst_sbc_get_channel_number(enc->sbc.mode) in gst_sbc_enc_fill_sbc_params()
332 if (enc->blocks != 0 && gst_sbc_parse_blocks_from_sbc(enc->sbc.blocks) in gst_sbc_enc_fill_sbc_params()
337 enc->sbc.subbands) != enc->subbands) in gst_sbc_enc_fill_sbc_params()
340 if (enc->mode != SBC_ENC_DEFAULT_MODE && enc->sbc.mode != enc->mode) in gst_sbc_enc_fill_sbc_params()
344 enc->sbc.allocation != enc->allocation) in gst_sbc_enc_fill_sbc_params()
348 enc->sbc.bitpool != enc->bitpool) in gst_sbc_enc_fill_sbc_params()
351 enc->codesize = sbc_get_codesize(&enc->sbc); in gst_sbc_enc_fill_sbc_params()
352 enc->frame_length = sbc_get_frame_length(&enc->sbc); in gst_sbc_enc_fill_sbc_params()
[all …]
Dliba2dp.c135 sbc_t sbc; /* Codec data */ member
439 sbc_reinit(&data->sbc, 0); in bluetooth_a2dp_setup()
442 data->sbc.frequency = SBC_FREQ_16000; in bluetooth_a2dp_setup()
445 data->sbc.frequency = SBC_FREQ_32000; in bluetooth_a2dp_setup()
448 data->sbc.frequency = SBC_FREQ_44100; in bluetooth_a2dp_setup()
451 data->sbc.frequency = SBC_FREQ_48000; in bluetooth_a2dp_setup()
454 data->sbc.mode = SBC_MODE_MONO; in bluetooth_a2dp_setup()
457 data->sbc.mode = SBC_MODE_DUAL_CHANNEL; in bluetooth_a2dp_setup()
460 data->sbc.mode = SBC_MODE_STEREO; in bluetooth_a2dp_setup()
463 data->sbc.mode = SBC_MODE_JOINT_STEREO; in bluetooth_a2dp_setup()
[all …]
Dgstsbcdec.c66 codesize = sbc_get_codesize(&dec->sbc); in sbc_dec_chain()
93 consumed = sbc_decode(&dec->sbc, data + offset, size - offset, in sbc_dec_chain()
104 dec->sbc.frequency), in sbc_dec_chain()
107 dec->sbc.mode), in sbc_dec_chain()
153 sbc_init(&dec->sbc, 0); in sbc_dec_change_state()
163 sbc_finish(&dec->sbc); in sbc_dec_change_state()
Dgstsbcparse.c93 if (parse->first_parsing || (memcmp(&parse->sbc, in sbc_parse_chain()
96 memcpy(&parse->sbc, &parse->new_sbc, sizeof(sbc_t)); in sbc_parse_chain()
101 &parse->sbc); in sbc_parse_chain()
146 sbc_init(&parse->sbc, 0); in sbc_parse_change_state()
161 sbc_finish(&parse->sbc); in sbc_parse_change_state()
Dunix.c495 static void print_sbc(struct sbc_codec_cap *sbc) in print_sbc() argument
503 sbc->channel_mode & SBC_CHANNEL_MODE_MONO ? "Mono " : "", in print_sbc()
504 sbc->channel_mode & SBC_CHANNEL_MODE_DUAL_CHANNEL ? in print_sbc()
506 sbc->channel_mode & SBC_CHANNEL_MODE_STEREO ? "Stereo " : "", in print_sbc()
507 sbc->channel_mode & SBC_CHANNEL_MODE_JOINT_STEREO ? "JointStereo" : "", in print_sbc()
508 sbc->frequency & SBC_SAMPLING_FREQ_16000 ? "16Khz " : "", in print_sbc()
509 sbc->frequency & SBC_SAMPLING_FREQ_32000 ? "32Khz " : "", in print_sbc()
510 sbc->frequency & SBC_SAMPLING_FREQ_44100 ? "44.1Khz " : "", in print_sbc()
511 sbc->frequency & SBC_SAMPLING_FREQ_48000 ? "48Khz " : "", in print_sbc()
512 sbc->subbands & SBC_SUBBANDS_4 ? "4 " : "", in print_sbc()
[all …]
Dpcm_bluetooth.c97 sbc_t sbc; /* Codec data */ member
311 sbc_finish(&a2dp->sbc); in bluetooth_exit()
627 sbc_reinit(&a2dp->sbc, 0); in bluetooth_a2dp_setup()
629 sbc_init(&a2dp->sbc, 0); in bluetooth_a2dp_setup()
633 a2dp->sbc.frequency = SBC_FREQ_16000; in bluetooth_a2dp_setup()
636 a2dp->sbc.frequency = SBC_FREQ_32000; in bluetooth_a2dp_setup()
639 a2dp->sbc.frequency = SBC_FREQ_44100; in bluetooth_a2dp_setup()
642 a2dp->sbc.frequency = SBC_FREQ_48000; in bluetooth_a2dp_setup()
645 a2dp->sbc.mode = SBC_MODE_MONO; in bluetooth_a2dp_setup()
648 a2dp->sbc.mode = SBC_MODE_DUAL_CHANNEL; in bluetooth_a2dp_setup()
[all …]
Dgstsbcutil.h62 GstCaps* gst_sbc_parse_caps_from_sbc(sbc_t *sbc);
74 gboolean gst_sbc_util_fill_sbc_params(sbc_t *sbc, GstCaps *caps);
Dgstsbcdec.h55 sbc_t sbc; member
/external/bluetooth/bluez/tools/
Davinfo.c344 static void print_sbc(struct sbc_codec_cap *sbc) in print_sbc() argument
348 if (sbc->channel_mode & SBC_CHANNEL_MODE_MONO) in print_sbc()
350 if (sbc->channel_mode & SBC_CHANNEL_MODE_DUAL_CHANNEL) in print_sbc()
352 if (sbc->channel_mode & SBC_CHANNEL_MODE_STEREO) in print_sbc()
354 if (sbc->channel_mode & SBC_CHANNEL_MODE_JOINT_STEREO) in print_sbc()
358 if (sbc->frequency & SBC_SAMPLING_FREQ_16000) in print_sbc()
360 if (sbc->frequency & SBC_SAMPLING_FREQ_32000) in print_sbc()
362 if (sbc->frequency & SBC_SAMPLING_FREQ_44100) in print_sbc()
364 if (sbc->frequency & SBC_SAMPLING_FREQ_48000) in print_sbc()
368 if (sbc->allocation_method & SBC_SUBBANDS_4) in print_sbc()
[all …]
/external/llvm/test/CodeGen/Thumb2/
Dthumb2-sub3.ll7 ; CHECK: sbc r1, r1, #0
16 ; CHECK: sbc r1, r1, #0
25 ; CHECK: sbc r1, r1, #0
34 ; CHECK: sbc r1, r1, #0
43 ; CHECK: sbc r1, r1, #0
52 ; CHECK: sbc r1, r1, #171
Dthumb2-sbc.ll14 ; CHECK: sbc r1, r1, #171
23 ; CHECK: sbc r1, r1, #1179666
32 ; CHECK: sbc r1, r1, #872428544
50 ; CHECK: sbc r1, r1, #66846720
Dthumb2-sub5.ll6 ; To test dead_carry, +32bit prevents sbc conveting to 16-bit sbcs
7 ; CHECK: sbc.w r1, r1, r3
/external/bluetooth/bluez/test/
Dipctest.c77 sbc_t sbc; /* Codec data */ member
488 sbc_reinit(&a2dp->sbc, 0); in setup_sbc()
490 sbc_init(&a2dp->sbc, 0); in setup_sbc()
495 a2dp->sbc.frequency = SBC_FREQ_16000; in setup_sbc()
498 a2dp->sbc.frequency = SBC_FREQ_32000; in setup_sbc()
501 a2dp->sbc.frequency = SBC_FREQ_44100; in setup_sbc()
504 a2dp->sbc.frequency = SBC_FREQ_48000; in setup_sbc()
512 a2dp->sbc.mode = SBC_MODE_MONO; in setup_sbc()
515 a2dp->sbc.mode = SBC_MODE_DUAL_CHANNEL; in setup_sbc()
518 a2dp->sbc.mode = SBC_MODE_STEREO; in setup_sbc()
[all …]
/external/llvm/test/CodeGen/ARM/
Dsub.ll7 ; CHECK: sbc r1, r1, #0
16 ; CHECK: sbc r1, r1, #0
25 ; CHECK: sbc r1, r1, #171
Dcarry.ll6 ; CHECK: sbc r
16 ; CHECK: sbc r
/external/llvm/test/MC/ARM/
Dbasic-arm-instructions.s1546 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 r6, r7, r8, asr r9
[all …]

12