/third_party/ffmpeg/libavcodec/ |
D | sbc.c | 86 int ch, sb; in ff_sbc_calculate_bits() local 91 for (sb = 0; sb < subbands; sb++) { in ff_sbc_calculate_bits() 92 bitneed[ch][sb] = frame->scale_factor[ch][sb]; in ff_sbc_calculate_bits() 93 if (bitneed[ch][sb] > max_bitneed) in ff_sbc_calculate_bits() 94 max_bitneed = bitneed[ch][sb]; in ff_sbc_calculate_bits() 97 for (sb = 0; sb < subbands; sb++) { in ff_sbc_calculate_bits() 98 if (frame->scale_factor[ch][sb] == 0) in ff_sbc_calculate_bits() 99 bitneed[ch][sb] = -5; in ff_sbc_calculate_bits() 102 loudness = frame->scale_factor[ch][sb] - sbc_offset4[sf][sb]; in ff_sbc_calculate_bits() 104 loudness = frame->scale_factor[ch][sb] - sbc_offset8[sf][sb]; in ff_sbc_calculate_bits() [all …]
|
D | atrac3plus.c | 979 int sb, i, delta, delta_bits, min_val, pred; in decode_gainc_levels() local 985 for (sb = 0; sb < coded_subbands; sb++) in decode_gainc_levels() 986 for (i = 0; i < chan->gain_data[sb].num_points; i++) in decode_gainc_levels() 987 chan->gain_data[sb].lev_code[i] = get_bits(gb, 4); in decode_gainc_levels() 991 for (sb = 0; sb < coded_subbands; sb++) in decode_gainc_levels() 992 for (i = 0; i < chan->gain_data[sb].num_points; i++) { in decode_gainc_levels() 995 pred = (i >= ref_chan->gain_data[sb].num_points) in decode_gainc_levels() 996 ? 7 : ref_chan->gain_data[sb].lev_code[i]; in decode_gainc_levels() 997 chan->gain_data[sb].lev_code[i] = (pred + delta) & 0xF; in decode_gainc_levels() 1000 for (sb = 0; sb < coded_subbands; sb++) in decode_gainc_levels() [all …]
|
D | dca_lbr.c | 365 int sb, group, ret; in parse_tonal_chunk() local 381 for (sb = 0; sb < 6; sb++) in parse_tonal_chunk() 382 s->tonal_scf[sb] = get_bits(&s->gb, 6); in parse_tonal_chunk() 512 int ch, sb, sf, nsubbands, ret; in parse_grid_1_chunk() local 523 for (sb = 2; sb < nsubbands; sb++) { in parse_grid_1_chunk() 524 ret = parse_scale_factors(s, s->grid_1_scf[ch1][sb]); in parse_grid_1_chunk() 527 if (ch1 != ch2 && ff_dca_grid_1_to_scf[sb] < s->min_mono_subband) { in parse_grid_1_chunk() 528 ret = parse_scale_factors(s, s->grid_1_scf[ch2][sb]); in parse_grid_1_chunk() 538 for (sb = 0; sb < s->nsubbands - 4; sb++) { in parse_grid_1_chunk() 539 s->grid_3_avg[ch1][sb] = parse_vlc(&s->gb, &ff_dca_vlc_avg_g3, 2) - 16; in parse_grid_1_chunk() [all …]
|
D | qdm2.c | 70 #define SB_DITHERING_NOISE(sb,noise_idx) (noise_table[(noise_idx)++] * sb_noise_attenuation[(sb)]) argument 345 static void build_sb_samples_from_noise(QDM2Context *q, int sb) in build_sb_samples_from_noise() argument 356 q->sb_samples[ch][j * 2][sb] = in build_sb_samples_from_noise() 357 SB_DITHERING_NOISE(sb, q->noise_idx) * q->tone_level[ch][sb][j]; in build_sb_samples_from_noise() 358 q->sb_samples[ch][j * 2 + 1][sb] = in build_sb_samples_from_noise() 359 SB_DITHERING_NOISE(sb, q->noise_idx) * q->tone_level[ch][sb][j]; in build_sb_samples_from_noise() 372 static int fix_coding_method_array(int sb, int channels, in fix_coding_method_array() argument 381 if (coding_method[ch][sb][j] < 8) in fix_coding_method_array() 383 if ((coding_method[ch][sb][j] - 8) > 22) { in fix_coding_method_array() 387 switch (switchtable[coding_method[ch][sb][j] - 8]) { in fix_coding_method_array() [all …]
|
/third_party/e2fsprogs/lib/e2p/ |
D | ls.c | 224 void list_super2(struct ext2_super_block * sb, FILE *f) in list_super2() argument 231 inode_blocks_per_group = (((sb->s_inodes_per_group * in list_super2() 232 EXT2_INODE_SIZE(sb)) + in list_super2() 233 EXT2_BLOCK_SIZE(sb) - 1) / in list_super2() 234 EXT2_BLOCK_SIZE(sb)); in list_super2() 235 if (sb->s_volume_name[0]) in list_super2() 237 EXT2_LEN_STR(sb->s_volume_name)); in list_super2() 240 if (sb->s_last_mounted[0]) in list_super2() 242 EXT2_LEN_STR(sb->s_last_mounted)); in list_super2() 245 fprintf(f, "Filesystem UUID: %s\n", e2p_uuid2str(sb->s_uuid)); in list_super2() [all …]
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | swapfs.c | 25 void ext2fs_swap_super(struct ext2_super_block * sb) in ext2fs_swap_super() argument 29 sb->s_inodes_count = ext2fs_swab32(sb->s_inodes_count); in ext2fs_swap_super() 30 sb->s_blocks_count = ext2fs_swab32(sb->s_blocks_count); in ext2fs_swap_super() 31 sb->s_r_blocks_count = ext2fs_swab32(sb->s_r_blocks_count); in ext2fs_swap_super() 32 sb->s_free_blocks_count = ext2fs_swab32(sb->s_free_blocks_count); in ext2fs_swap_super() 33 sb->s_free_inodes_count = ext2fs_swab32(sb->s_free_inodes_count); in ext2fs_swap_super() 34 sb->s_first_data_block = ext2fs_swab32(sb->s_first_data_block); in ext2fs_swap_super() 35 sb->s_log_block_size = ext2fs_swab32(sb->s_log_block_size); in ext2fs_swap_super() 36 sb->s_log_cluster_size = ext2fs_swab32(sb->s_log_cluster_size); in ext2fs_swap_super() 37 sb->s_blocks_per_group = ext2fs_swab32(sb->s_blocks_per_group); in ext2fs_swap_super() [all …]
|
/third_party/grpc/src/core/lib/slice/ |
D | slice_buffer.cc | 39 static void GPR_ATTRIBUTE_NOINLINE do_embiggen(grpc_slice_buffer* sb, in do_embiggen() argument 44 memmove(sb->base_slices, sb->slices, sb->count * sizeof(grpc_slice)); in do_embiggen() 45 sb->slices = sb->base_slices; in do_embiggen() 48 const size_t new_capacity = GROW(sb->capacity); in do_embiggen() 49 sb->capacity = new_capacity; in do_embiggen() 50 if (sb->base_slices == sb->inlined) { in do_embiggen() 51 sb->base_slices = static_cast<grpc_slice*>( in do_embiggen() 53 memcpy(sb->base_slices, sb->inlined, slice_count * sizeof(grpc_slice)); in do_embiggen() 55 sb->base_slices = static_cast<grpc_slice*>( in do_embiggen() 56 gpr_realloc(sb->base_slices, new_capacity * sizeof(grpc_slice))); in do_embiggen() [all …]
|
/third_party/pulseaudio/src/pulsecore/ |
D | strbuf.c | 49 pa_strbuf *sb; in pa_strbuf_new() local 51 sb = pa_xnew(pa_strbuf, 1); in pa_strbuf_new() 52 sb->length = 0; in pa_strbuf_new() 53 sb->head = sb->tail = NULL; in pa_strbuf_new() 55 return sb; in pa_strbuf_new() 58 void pa_strbuf_free(pa_strbuf *sb) { in pa_strbuf_free() argument 59 pa_assert(sb); in pa_strbuf_free() 61 while (sb->head) { in pa_strbuf_free() 62 struct chunk *c = sb->head; in pa_strbuf_free() 63 sb->head = sb->head->next; in pa_strbuf_free() [all …]
|
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/ |
D | serialization.go | 50 sb := &strings.Builder{} 51 sb.WriteString(`{`) 59 sb.WriteString(`"r":"` + revision + `"`) 62 sb.WriteString(`,"n":[`) 65 sb.WriteString(`,`) 67 sb.WriteString(`"`) 71 sb.WriteString(`]`) 74 sb.WriteString(`,"t":`) 75 t.writeTestJSON(&t.testRoot, sb) 78 sb.WriteString(`,"s":`) [all …]
|
/third_party/boost/libs/asio/test/ |
D | read.cpp | 221 std::string::allocator_type> sb in test_2_arg_dynamic_string_read() local 225 sb.consume(sb.size()); in test_2_arg_dynamic_string_read() 226 size_t bytes_transferred = boost::asio::read(s, sb); in test_2_arg_dynamic_string_read() 228 BOOST_ASIO_CHECK(sb.size() == sizeof(read_data)); in test_2_arg_dynamic_string_read() 229 BOOST_ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data))); in test_2_arg_dynamic_string_read() 233 sb.consume(sb.size()); in test_2_arg_dynamic_string_read() 234 bytes_transferred = boost::asio::read(s, sb); in test_2_arg_dynamic_string_read() 236 BOOST_ASIO_CHECK(sb.size() == sizeof(read_data)); in test_2_arg_dynamic_string_read() 237 BOOST_ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data))); in test_2_arg_dynamic_string_read() 241 sb.consume(sb.size()); in test_2_arg_dynamic_string_read() [all …]
|
D | streambuf.cpp | 24 boost::asio::streambuf sb; in streambuf_test() local 26 sb.sputn("abcd", 4); in streambuf_test() 28 BOOST_ASIO_CHECK(sb.size() == 4); in streambuf_test() 32 sb.consume(3); in streambuf_test() 34 BOOST_ASIO_CHECK(sb.size() == 1); in streambuf_test() 37 sb.sgetn(buf, 1); in streambuf_test() 39 BOOST_ASIO_CHECK(sb.size() == 0); in streambuf_test() 41 sb.sputn("ab", 2); in streambuf_test() 43 BOOST_ASIO_CHECK(sb.size() == 2); in streambuf_test() 45 boost::asio::buffer_copy(sb.prepare(10), boost::asio::buffer("cd", 2)); in streambuf_test() [all …]
|
D | read_at.cpp | 251 boost::asio::streambuf sb(sizeof(read_data)); in test_3_arg_streambuf_read_at() local 254 sb.consume(sb.size()); in test_3_arg_streambuf_read_at() 255 size_t bytes_transferred = boost::asio::read_at(s, 0, sb); in test_3_arg_streambuf_read_at() 257 BOOST_ASIO_CHECK(sb.size() == sizeof(read_data)); in test_3_arg_streambuf_read_at() 258 BOOST_ASIO_CHECK(s.check_buffers(0, sb.data(), sizeof(read_data))); in test_3_arg_streambuf_read_at() 261 sb.consume(sb.size()); in test_3_arg_streambuf_read_at() 262 bytes_transferred = boost::asio::read_at(s, 1234, sb); in test_3_arg_streambuf_read_at() 264 BOOST_ASIO_CHECK(sb.size() == sizeof(read_data)); in test_3_arg_streambuf_read_at() 265 BOOST_ASIO_CHECK(s.check_buffers(1234, sb.data(), sizeof(read_data))); in test_3_arg_streambuf_read_at() 269 sb.consume(sb.size()); in test_3_arg_streambuf_read_at() [all …]
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/google/sample/audio_device/ |
D | AudioDeviceInfoConverter.java | 30 StringBuilder sb = new StringBuilder(); in toString() local 31 sb.append("Id: "); in toString() 32 sb.append(adi.getId()); in toString() 34 sb.append("\nProduct name: "); in toString() 35 sb.append(adi.getProductName()); in toString() 37 sb.append("\nType: "); in toString() 38 sb.append(typeToString(adi.getType())); in toString() 40 sb.append("\nIs source: "); in toString() 41 sb.append((adi.isSource() ? "Yes" : "No")); in toString() 43 sb.append("\nIs sink: "); in toString() [all …]
|
/third_party/skia/third_party/externals/oboe/samples/audio-device/src/main/java/com/google/oboe/samples/audio_device/ |
D | AudioDeviceInfoConverter.java | 30 StringBuilder sb = new StringBuilder(); in toString() local 31 sb.append("Id: "); in toString() 32 sb.append(adi.getId()); in toString() 34 sb.append("\nProduct name: "); in toString() 35 sb.append(adi.getProductName()); in toString() 37 sb.append("\nType: "); in toString() 38 sb.append(typeToString(adi.getType())); in toString() 40 sb.append("\nIs source: "); in toString() 41 sb.append((adi.isSource() ? "Yes" : "No")); in toString() 43 sb.append("\nIs sink: "); in toString() [all …]
|
/third_party/iowow/src/kv/dbg/ |
D | iwkvdbg.c | 38 iwrc iwkvd_sblk(FILE *f, IWLCTX *lx, SBLK *sb, int flags) { in iwkvd_sblk() argument 39 assert(sb && sb->addr); in iwkvd_sblk() 44 IWFS_FSM *fsm = &sb->db->iwkv->fsm; in iwkvd_sblk() 45 blkn_t blkn = ADDR2BLK(sb->addr); in iwkvd_sblk() 51 rc = _sblk_loadkvblk_mm(lx, sb, mm); in iwkvd_sblk() 56 assert(sb->kvblk); in iwkvd_sblk() 57 if (sb->flags & SBLK_DB) { in iwkvd_sblk() 60 memcpy(&lkl, mm + sb->addr + SOFF_LKL_U1, 1); in iwkvd_sblk() 63 memcpy(lkbuf, mm + sb->addr + SOFF_LK_V2, lkl); in iwkvd_sblk() 65 memcpy(lkbuf, mm + sb->addr + SOFF_LK_V1, lkl); in iwkvd_sblk() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | NumberSkeletonImpl.java | 373 private static void roundingMode(RoundingMode value, StringBuilder sb) { in roundingMode() argument 376 sb.append("rounding-mode-ceiling"); in roundingMode() 379 sb.append("rounding-mode-floor"); in roundingMode() 382 sb.append("rounding-mode-down"); in roundingMode() 385 sb.append("rounding-mode-up"); in roundingMode() 388 sb.append("rounding-mode-half-even"); in roundingMode() 391 sb.append("rounding-mode-half-down"); in roundingMode() 394 sb.append("rounding-mode-half-up"); in roundingMode() 397 sb.append("rounding-mode-unnecessary"); in roundingMode() 404 private static void groupingStrategy(GroupingStrategy value, StringBuilder sb) { in groupingStrategy() argument [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberSkeletonImpl.java | 390 private static void roundingMode(RoundingMode value, StringBuilder sb) { in roundingMode() argument 393 sb.append("rounding-mode-ceiling"); in roundingMode() 396 sb.append("rounding-mode-floor"); in roundingMode() 399 sb.append("rounding-mode-down"); in roundingMode() 402 sb.append("rounding-mode-up"); in roundingMode() 405 sb.append("rounding-mode-half-even"); in roundingMode() 408 sb.append("rounding-mode-half-down"); in roundingMode() 411 sb.append("rounding-mode-half-up"); in roundingMode() 414 sb.append("rounding-mode-unnecessary"); in roundingMode() 421 private static void groupingStrategy(GroupingStrategy value, StringBuilder sb) { in groupingStrategy() argument [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | number_skeletons.cpp | 114 inline void appendMultiple(UnicodeString& sb, UChar32 cp, int32_t count) { in appendMultiple() argument 116 sb.append(cp); in appendMultiple() 291 void enum_to_stem_string::roundingMode(UNumberFormatRoundingMode value, UnicodeString& sb) { in roundingMode() argument 294 sb.append(u"rounding-mode-ceiling", -1); in roundingMode() 297 sb.append(u"rounding-mode-floor", -1); in roundingMode() 300 sb.append(u"rounding-mode-down", -1); in roundingMode() 303 sb.append(u"rounding-mode-up", -1); in roundingMode() 306 sb.append(u"rounding-mode-half-even", -1); in roundingMode() 309 sb.append(u"rounding-mode-half-down", -1); in roundingMode() 312 sb.append(u"rounding-mode-half-up", -1); in roundingMode() [all …]
|
D | number_skeletons.h | 193 void roundingMode(UNumberFormatRoundingMode value, UnicodeString& sb); 195 void groupingStrategy(UGroupingStrategy value, UnicodeString& sb); 197 void unitWidth(UNumberUnitWidth value, UnicodeString& sb); 199 void signDisplay(UNumberSignDisplay value, UnicodeString& sb); 201 void decimalSeparatorDisplay(UNumberDecimalSeparatorDisplay value, UnicodeString& sb); 213 void generateExponentWidthOption(int32_t minExponentDigits, UnicodeString& sb, UErrorCode& status); 220 void generateCurrencyOption(const CurrencyUnit& currency, UnicodeString& sb, UErrorCode& status); 224 void generateMeasureUnitOption(const MeasureUnit& measureUnit, UnicodeString& sb, UErrorCode& statu… 230 void generateFractionStem(int32_t minFrac, int32_t maxFrac, UnicodeString& sb, UErrorCode& status); 234 void generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode& status); [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/ |
D | PeriodFormatterData.java | 98 public boolean appendPrefix(int tl, int td, StringBuffer sb) { in appendPrefix() argument 105 sb.append(prefix); in appendPrefix() 121 public void appendSuffix(int tl, int td, StringBuffer sb) { in appendSuffix() argument 131 sb.append(suffix); in appendSuffix() 157 StringBuffer sb) { in appendUnit() argument 164 sb.append(dr.skippedUnitMarker); in appendUnit() 177 names[px], last, sb); // omit suffix, ok? in appendUnit() 230 useCountSep, name, last, sb); in appendUnit() 241 sb.append(suffix); in appendUnit() 262 String name, boolean last, StringBuffer sb) { in appendCount() argument [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
D | PeriodFormatterData.java | 96 public boolean appendPrefix(int tl, int td, StringBuffer sb) { in appendPrefix() argument 103 sb.append(prefix); in appendPrefix() 119 public void appendSuffix(int tl, int td, StringBuffer sb) { in appendSuffix() argument 129 sb.append(suffix); in appendSuffix() 155 StringBuffer sb) { in appendUnit() argument 162 sb.append(dr.skippedUnitMarker); in appendUnit() 175 names[px], last, sb); // omit suffix, ok? in appendUnit() 228 useCountSep, name, last, sb); in appendUnit() 239 sb.append(suffix); in appendUnit() 260 String name, boolean last, StringBuffer sb) { in appendCount() argument [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_skeletons.cpp | 147 inline void appendMultiple(UnicodeString& sb, UChar32 cp, int32_t count) { in appendMultiple() argument 149 sb.append(cp); in appendMultiple() 316 void enum_to_stem_string::roundingMode(UNumberFormatRoundingMode value, UnicodeString& sb) { in roundingMode() argument 319 sb.append(u"rounding-mode-ceiling", -1); in roundingMode() 322 sb.append(u"rounding-mode-floor", -1); in roundingMode() 325 sb.append(u"rounding-mode-down", -1); in roundingMode() 328 sb.append(u"rounding-mode-up", -1); in roundingMode() 331 sb.append(u"rounding-mode-half-even", -1); in roundingMode() 334 sb.append(u"rounding-mode-half-odd", -1); in roundingMode() 337 sb.append(u"rounding-mode-half-ceiling", -1); in roundingMode() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | number_skeletons.cpp | 146 inline void appendMultiple(UnicodeString& sb, UChar32 cp, int32_t count) { in appendMultiple() argument 148 sb.append(cp); in appendMultiple() 315 void enum_to_stem_string::roundingMode(UNumberFormatRoundingMode value, UnicodeString& sb) { in roundingMode() argument 318 sb.append(u"rounding-mode-ceiling", -1); in roundingMode() 321 sb.append(u"rounding-mode-floor", -1); in roundingMode() 324 sb.append(u"rounding-mode-down", -1); in roundingMode() 327 sb.append(u"rounding-mode-up", -1); in roundingMode() 330 sb.append(u"rounding-mode-half-even", -1); in roundingMode() 333 sb.append(u"rounding-mode-half-odd", -1); in roundingMode() 336 sb.append(u"rounding-mode-half-ceiling", -1); in roundingMode() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_skeletons.cpp | 146 inline void appendMultiple(UnicodeString& sb, UChar32 cp, int32_t count) { in appendMultiple() argument 148 sb.append(cp); in appendMultiple() 315 void enum_to_stem_string::roundingMode(UNumberFormatRoundingMode value, UnicodeString& sb) { in roundingMode() argument 318 sb.append(u"rounding-mode-ceiling", -1); in roundingMode() 321 sb.append(u"rounding-mode-floor", -1); in roundingMode() 324 sb.append(u"rounding-mode-down", -1); in roundingMode() 327 sb.append(u"rounding-mode-up", -1); in roundingMode() 330 sb.append(u"rounding-mode-half-even", -1); in roundingMode() 333 sb.append(u"rounding-mode-half-odd", -1); in roundingMode() 336 sb.append(u"rounding-mode-half-ceiling", -1); in roundingMode() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/render/software/ |
D | SDL_draw.h | 48 unsigned sr = r, sg = g, sb = b, sa = a; (void) sa; \ 54 unsigned sr, sg, sb, sa = 0xFF; \ 58 sb = DRAW_MUL(inva, sb) + b; \ 65 unsigned sr, sg, sb, sa; (void) sa; \ 69 sb += b; if (sb > 0xff) sb = 0xff; \ 75 unsigned sr, sg, sb, sa; (void) sa; \ 79 sb = DRAW_MUL(sb, b); \ 95 DRAW_SETPIXEL(RGB555_FROM_RGB(*pixel, sr, sg, sb)) 98 DRAW_SETPIXEL_BLEND(RGB_FROM_RGB555(*pixel, sr, sg, sb), \ 99 RGB555_FROM_RGB(*pixel, sr, sg, sb)) [all …]
|