/third_party/gstreamer/gstplugins_bad/ext/closedcaption/ |
D | bit_slicer.c | 63 (((raw)[0 + endian] + (raw)[1 - endian] * 256) & bs->green_mask) 69 *(const uint16_t *)(raw) & bs->green_mask : \ 78 *(const uint16_t *)(raw) & bs->green_mask : \ 109 i = bs->phase_shift; /* current bit position << 8 */ \ 113 for (j = bs->frc_bits; j > 0; --j) { \ 116 i += bs->step; /* next bit */ \ 119 if (c != bs->frc) \ 122 switch (bs->endian) { \ 124 for (j = 0; j < bs->payload; ++j) { \ 127 i += bs->step; \ [all …]
|
D | bit_slicer.h | 101 (vbi3_bit_slicer * bs, 110 vbi3_bit_slicer_slice (vbi3_bit_slicer * bs, 116 vbi3_bit_slicer_set_params (vbi3_bit_slicer * bs, 133 vbi3_bit_slicer_set_log_fn (vbi3_bit_slicer * bs, 139 vbi3_bit_slicer_delete (vbi3_bit_slicer * bs); 147 _vbi3_bit_slicer_fn (vbi3_bit_slicer * bs, 180 _vbi3_bit_slicer_destroy (vbi3_bit_slicer * bs) 183 _vbi3_bit_slicer_init (vbi3_bit_slicer * bs)
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_batch.c | 30 zink_reset_batch_state(struct zink_context *ctx, struct zink_batch_state *bs) in zink_reset_batch_state() argument 34 VkResult result = VKSCR(ResetCommandPool)(screen->dev, bs->cmdpool, 0); in zink_reset_batch_state() 39 set_foreach_remove(bs->resources, entry) { in zink_reset_batch_state() 41 if (!zink_resource_object_usage_unset(obj, bs)) { in zink_reset_batch_state() 46 util_dynarray_append(&bs->unref_resources, struct zink_resource_object*, obj); in zink_reset_batch_state() 50 while (util_dynarray_contains(&bs->bindless_releases[i], uint32_t)) { in zink_reset_batch_state() 51 uint32_t handle = util_dynarray_pop(&bs->bindless_releases[i], uint32_t); in zink_reset_batch_state() 58 set_foreach_remove(bs->active_queries, entry) { in zink_reset_batch_state() 60 zink_prune_query(screen, bs, query); in zink_reset_batch_state() 63 set_foreach_remove(bs->surfaces, entry) { in zink_reset_batch_state() [all …]
|
D | zink_batch.h | 160 zink_reset_batch_state(struct zink_context *ctx, struct zink_batch_state *bs); 163 zink_clear_batch_state(struct zink_context *ctx, struct zink_batch_state *bs); 169 zink_batch_state_destroy(struct zink_screen *screen, struct zink_batch_state *bs); 172 zink_batch_state_clear_resources(struct zink_screen *screen, struct zink_batch_state *bs); 225 zink_batch_usage_unset(struct zink_batch_usage **u, struct zink_batch_state *bs) in zink_batch_usage_unset() argument 227 (void)p_atomic_cmpxchg((uintptr_t *)u, (uintptr_t)&bs->usage, (uintptr_t)NULL); in zink_batch_usage_unset() 231 zink_batch_usage_set(struct zink_batch_usage **u, struct zink_batch_state *bs) in zink_batch_usage_set() argument 233 *u = &bs->usage; in zink_batch_usage_set() 237 zink_batch_usage_matches(const struct zink_batch_usage *u, const struct zink_batch_state *bs) in zink_batch_usage_matches() argument 239 return u == &bs->usage; in zink_batch_usage_matches()
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_mpeg12_bitstream.c | 621 motion_vector(struct vl_mpg12_bs *bs, int r, int s, int dmv, short delta[2], short dmvector[2]) in motion_vector() argument 626 int r_size = bs->desc->f_code[s][t]; in motion_vector() 628 vl_vlc_fillbits(&bs->vlc); in motion_vector() 629 motion_code = vl_vlc_get_vlclbf(&bs->vlc, tbl_B10, 11); in motion_vector() 633 int residual = vl_vlc_get_uimsbf(&bs->vlc, r_size) + 1; in motion_vector() 640 dmvector[t] = vl_vlc_get_vlclbf(&bs->vlc, tbl_B11, 2); in motion_vector() 656 motion_vector_frame(struct vl_mpg12_bs *bs, int s, struct pipe_mpeg12_macroblock *mb) in motion_vector_frame() argument 662 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << s; in motion_vector_frame() 663 motion_vector(bs, 0, s, dmv, delta, dmvector); in motion_vector_frame() 664 mb->PMV[0][s][0] = wrap(mb->PMV[0][s][0] + delta[0], bs->desc->f_code[s][0]); in motion_vector_frame() [all …]
|
/third_party/node/deps/v8/tools/wasm-compilation-hints/ |
D | wasm.py | 16 bs = fin.peek(1)[:1] 17 if len(bs) != 1: 18 return None, bs 19 return ord(bs[0]), bs 22 value, bs = peek_uint8(fin) 23 fin.read(len(bs)) 24 return value, bs 27 bs = fin.peek(4)[:4] 28 if len(bs) != 4: 29 return None, bs [all …]
|
D | inject-compilation-hints.py | 37 magic_number, bs = read_magic_number(fin); variable 38 fout.write(bs) 39 version, bs = read_version(fin); variable 40 fout.write(bs) 43 id, bs = read_varuintN(fin) variable 44 fout.write(bs) 47 payload_length, bs = read_varuintN(fin) variable 48 fout.write(bs) 52 num_declared_functions, bs = peek_varuintN(fin) variable 54 bs = fin.read(payload_length) variable [all …]
|
/third_party/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
D | TestCharset.java | 252 ByteBuffer bs = ByteBuffer.wrap(bytes, 0, limit); in runTestASCIIBasedConverter() local 254 smBufDecode(decoder, converter, bs, us, true); in runTestASCIIBasedConverter() 255 smBufDecode(decoder, converter, bs, us, false); in runTestASCIIBasedConverter() 256 smBufEncode(encoder, converter, us, bs, true); in runTestASCIIBasedConverter() 257 smBufEncode(encoder, converter, us, bs, false); in runTestASCIIBasedConverter() 259 bs = ByteBuffer.wrap(bytes, i, 1).slice(); in runTestASCIIBasedConverter() 264 smBufDecode(decoder, converter, bs, us, true, false, true); in runTestASCIIBasedConverter() 268 smBufDecode(decoder, converter, bs, us, true, false, false); in runTestASCIIBasedConverter() 272 smBufEncode(encoder, converter, us, bs, true, false, true); in runTestASCIIBasedConverter() 276 smBufEncode(encoder, converter, us, bs, true, false, false); in runTestASCIIBasedConverter() [all …]
|
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | ByteStringTest.cs | 78 ByteString bs = ByteString.CopyFrom("AB", Encoding.Unicode); in CopyFromStringWithExplicitEncoding() 79 Assert.AreEqual(4, bs.Length); in CopyFromStringWithExplicitEncoding() 80 Assert.AreEqual(65, bs[0]); in CopyFromStringWithExplicitEncoding() 81 Assert.AreEqual(0, bs[1]); in CopyFromStringWithExplicitEncoding() 82 Assert.AreEqual(66, bs[2]); in CopyFromStringWithExplicitEncoding() 83 Assert.AreEqual(0, bs[3]); in CopyFromStringWithExplicitEncoding() 103 ByteString bs = ByteString.CopyFrom(data); in CopyFromByteArrayCopiesContents() 104 Assert.AreEqual(10, bs[0]); in CopyFromByteArrayCopiesContents() 106 Assert.AreEqual(10, bs[0]); in CopyFromByteArrayCopiesContents() 112 ByteString bs = ByteString.CopyFromUtf8("Hello"); in ToByteArrayCopiesContents() [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | ByteStringTest.cs | 82 ByteString bs = ByteString.CopyFrom("AB", Encoding.Unicode); in CopyFromStringWithExplicitEncoding() 83 Assert.AreEqual(4, bs.Length); in CopyFromStringWithExplicitEncoding() 84 Assert.AreEqual(65, bs[0]); in CopyFromStringWithExplicitEncoding() 85 Assert.AreEqual(0, bs[1]); in CopyFromStringWithExplicitEncoding() 86 Assert.AreEqual(66, bs[2]); in CopyFromStringWithExplicitEncoding() 87 Assert.AreEqual(0, bs[3]); in CopyFromStringWithExplicitEncoding() 107 ByteString bs = ByteString.CopyFrom(data); in CopyFromByteArrayCopiesContents() 108 Assert.AreEqual(10, bs[0]); in CopyFromByteArrayCopiesContents() 110 Assert.AreEqual(10, bs[0]); in CopyFromByteArrayCopiesContents() 116 ByteString bs = ByteString.CopyFromUtf8("Hello"); in ToByteArrayCopiesContents() [all …]
|
/third_party/openssl/ssl/ |
D | bio_ssl.c | 58 BIO_SSL *bs = OPENSSL_zalloc(sizeof(*bs)); in ssl_new() local 60 if (bs == NULL) { in ssl_new() 65 BIO_set_data(bi, bs); in ssl_new() 74 BIO_SSL *bs; in ssl_free() local 78 bs = BIO_get_data(a); in ssl_free() 80 if (bs->ssl != NULL) in ssl_free() 81 SSL_shutdown(bs->ssl); in ssl_free() 83 SSL_free(bs->ssl); in ssl_free() 87 OPENSSL_free(bs); in ssl_free() 166 BIO_SSL *bs; in ssl_write() local [all …]
|
/third_party/node/deps/openssl/openssl/ssl/ |
D | bio_ssl.c | 58 BIO_SSL *bs = OPENSSL_zalloc(sizeof(*bs)); in ssl_new() local 60 if (bs == NULL) { in ssl_new() 65 BIO_set_data(bi, bs); in ssl_new() 74 BIO_SSL *bs; in ssl_free() local 78 bs = BIO_get_data(a); in ssl_free() 80 if (bs->ssl != NULL) in ssl_free() 81 SSL_shutdown(bs->ssl); in ssl_free() 83 SSL_free(bs->ssl); in ssl_free() 87 OPENSSL_free(bs); in ssl_free() 166 BIO_SSL *bs; in ssl_write() local [all …]
|
/third_party/ffmpeg/libavformat/ |
D | latmenc.c | 115 static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs) in latm_write_frame_header() argument 122 put_bits(bs, 1, !!ctx->counter); in latm_write_frame_header() 126 put_bits(bs, 1, 0); /* audioMuxVersion */ in latm_write_frame_header() 127 put_bits(bs, 1, 1); /* allStreamsSameTimeFraming */ in latm_write_frame_header() 128 put_bits(bs, 6, 0); /* numSubFrames */ in latm_write_frame_header() 129 put_bits(bs, 4, 0); /* numProgram */ in latm_write_frame_header() 130 put_bits(bs, 3, 0); /* numLayer */ in latm_write_frame_header() 135 copy_bits(bs, &par->extradata[ctx->off >> 3], header_size); in latm_write_frame_header() 139 copy_bits(bs, par->extradata, ctx->off + 3); in latm_write_frame_header() 146 ff_copy_pce_data(bs, &gb); in latm_write_frame_header() [all …]
|
D | mpc8.c | 58 static inline int64_t bs_get_v(const uint8_t **bs) in bs_get_v() argument 65 c = **bs; (*bs)++; in bs_get_v() 78 const uint8_t *bs = p->buf + 4; in mpc8_probe() local 79 const uint8_t *bs_end = bs + p->buf_size; in mpc8_probe() 86 while (bs < bs_end + 3) { in mpc8_probe() 87 int header_found = (bs[0] == 'S' && bs[1] == 'H'); in mpc8_probe() 88 if (bs[0] < 'A' || bs[0] > 'Z' || bs[1] < 'A' || bs[1] > 'Z') in mpc8_probe() 90 bs += 2; in mpc8_probe() 91 size = bs_get_v(&bs); in mpc8_probe() 94 if (size >= bs_end - bs + 2) in mpc8_probe() [all …]
|
/third_party/openssl/crypto/ocsp/ |
D | ocsp_cl.c | 141 const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs) in OCSP_resp_get0_signature() argument 143 return bs->signature; in OCSP_resp_get0_signature() 146 const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs) in OCSP_resp_get0_tbs_sigalg() argument 148 return &bs->signatureAlgorithm; in OCSP_resp_get0_tbs_sigalg() 151 const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs) in OCSP_resp_get0_respdata() argument 153 return &bs->tbsResponseData; in OCSP_resp_get0_respdata() 158 int OCSP_resp_count(OCSP_BASICRESP *bs) in OCSP_resp_count() argument 160 if (bs == NULL) in OCSP_resp_count() 162 return sk_OCSP_SINGLERESP_num(bs->tbsResponseData.responses); in OCSP_resp_count() 166 OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx) in OCSP_resp_get0() argument [all …]
|
/third_party/node/deps/openssl/openssl/crypto/ocsp/ |
D | ocsp_cl.c | 141 const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs) in OCSP_resp_get0_signature() argument 143 return bs->signature; in OCSP_resp_get0_signature() 146 const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs) in OCSP_resp_get0_tbs_sigalg() argument 148 return &bs->signatureAlgorithm; in OCSP_resp_get0_tbs_sigalg() 151 const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs) in OCSP_resp_get0_respdata() argument 153 return &bs->tbsResponseData; in OCSP_resp_get0_respdata() 158 int OCSP_resp_count(OCSP_BASICRESP *bs) in OCSP_resp_count() argument 160 if (bs == NULL) in OCSP_resp_count() 162 return sk_OCSP_SINGLERESP_num(bs->tbsResponseData.responses); in OCSP_resp_count() 166 OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx) in OCSP_resp_get0() argument [all …]
|
/third_party/ltp/lib/ |
D | tst_fill_file.c | 33 int tst_fill_fd(int fd, char pattern, size_t bs, size_t bcount) in tst_fill_fd() argument 39 buf = malloc(bs); in tst_fill_fd() 43 for (i = 0; i < bs; i++) in tst_fill_fd() 48 if (write(fd, buf, bs) != (ssize_t)bs) { in tst_fill_fd() 59 int tst_prealloc_size_fd(int fd, size_t bs, size_t bcount) in tst_prealloc_size_fd() argument 64 ret = fallocate(fd, 0, 0, bs * bcount); in tst_prealloc_size_fd() 70 ret = tst_fill_fd(fd, 0, bs, bcount); in tst_prealloc_size_fd() 75 int tst_fill_file(const char *path, char pattern, size_t bs, size_t bcount) in tst_fill_file() argument 83 if (tst_fill_fd(fd, pattern, bs, bcount)) { in tst_fill_file() 98 int tst_prealloc_file(const char *path, size_t bs, size_t bcount) in tst_prealloc_file() argument [all …]
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfslabel.c | 239 NTFS_BOOT_SECTOR *bs, NTFS_BOOT_SECTOR *oldbs) in change_serial() argument 247 vol->sector_size, bs) == vol->sector_size)) { in change_serial() 251 memcpy(oldbs, bs, vol->sector_size); in change_serial() 254 same = !memcmp(oldbs, bs, vol->sector_size); in change_serial() 257 bs->volume_serial_number = serial_number; in change_serial() 260 bs->volume_serial_number in change_serial() 262 | (bs->volume_serial_number & ~mask); in change_serial() 267 vol->sector_size, bs) == vol->sector_size)) { in change_serial() 281 NTFS_BOOT_SECTOR *bs; /* full boot sectors */ in set_new_serial() local 289 bs = (NTFS_BOOT_SECTOR*)ntfs_malloc(vol->sector_size); in set_new_serial() [all …]
|
/third_party/openssl/test/ |
D | ocspapitest.c | 72 OCSP_BASICRESP *bs = OCSP_BASICRESP_new(); in make_dummy_resp() local 91 if (!TEST_ptr(bs) in make_dummy_resp() 95 || !TEST_true(OCSP_basic_add1_status(bs, cid, in make_dummy_resp() 99 bs_out = bs; in make_dummy_resp() 100 bs = NULL; in make_dummy_resp() 107 OCSP_BASICRESP_free(bs); in make_dummy_resp() 114 OCSP_BASICRESP *bs = NULL; in test_resp_signer() local 124 bs = make_dummy_resp(); in test_resp_signer() 126 if (!TEST_ptr(bs) in test_resp_signer() 130 || !TEST_true(OCSP_basic_sign(bs, signer, key, EVP_sha1(), in test_resp_signer() [all …]
|
/third_party/openssl/doc/man3/ |
D | OCSP_resp_find_status.pod | 18 int OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status, 24 int OCSP_resp_count(OCSP_BASICRESP *bs); 25 OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx); 26 int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last); 35 const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs); 36 const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs); 37 const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs); 38 const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs); 40 int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer, 43 int OCSP_resp_get0_id(const OCSP_BASICRESP *bs, [all …]
|
/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | gstrtpmp4gdepay.c | 85 gst_bs_parse_init (GstBsParse * bs, const guint8 * data, guint size) in gst_bs_parse_init() argument 87 bs->data = data; in gst_bs_parse_init() 88 bs->end = data + size; in gst_bs_parse_init() 89 bs->head = 0; in gst_bs_parse_init() 90 bs->cache = 0xffffffff; in gst_bs_parse_init() 94 gst_bs_parse_read (GstBsParse * bs, guint n) in gst_bs_parse_read() argument 103 while (bs->head < n) { in gst_bs_parse_read() 104 if (bs->data >= bs->end) { in gst_bs_parse_read() 106 n = bs->head; in gst_bs_parse_read() 110 bs->cache = (bs->cache << 8) | *bs->data++; in gst_bs_parse_read() [all …]
|
/third_party/node/deps/base64/base64/test/ |
D | benchmark.c | 120 codec_bench_enc (struct buffers *b, const struct bufsize *bs, const char *name, unsigned int flags) in codec_bench_enc() argument 126 b->regsz = bs->len; in codec_bench_enc() 129 for (int i = bs->repeat; i; i--) { in codec_bench_enc() 133 for (int j = bs->batch; j; j--) in codec_bench_enc() 138 timediff = timediff_sec(&start, &end) / bs->batch; in codec_bench_enc() 149 codec_bench_dec (struct buffers *b, const struct bufsize *bs, const char *name, unsigned int flags) in codec_bench_dec() argument 155 b->encsz = bs->len; in codec_bench_dec() 158 for (int i = bs->repeat; i; i--) { in codec_bench_dec() 162 for (int j = bs->batch; j; j--) in codec_bench_dec() 167 timediff = timediff_sec(&start, &end) / bs->batch; in codec_bench_dec() [all …]
|
D | test_base64.c | 153 for (size_t bs = 1; bs < 255; bs++) in test_streaming() local 162 …base64_stream_encode(&state, &chr[inpos], (inpos + bs > 256) ? 256 - inpos : bs, &enc[enclen], &pa… in test_streaming() 164 if (inpos + bs > 256) { in test_streaming() 167 inpos += bs; in test_streaming() 182 (unsigned long)bs in test_streaming() 190 for (size_t bs = 1; bs < 255; bs++) in test_streaming() local 198 …while (base64_stream_decode(&state, &ref[inpos], (inpos + bs > reflen) ? reflen - inpos : bs, &enc… in test_streaming() 200 inpos += bs; in test_streaming() 211 (unsigned long)bs in test_streaming()
|
/third_party/ffmpeg/libavcodec/ |
D | pnm_parser.c | 84 uint8_t *bs = pnmctx.bytestream; in pnm_parse() local 86 uint8_t *sync = bs; in pnm_parse() 89 av_assert0(pnmpc->ascii_scan <= end - bs); in pnm_parse() 90 bs += pnmpc->ascii_scan; in pnm_parse() 93 while (bs < end) { in pnm_parse() 95 sync = bs; in pnm_parse() 96 c = *bs++; in pnm_parse() 98 uint8_t *match = memchr(bs, '\n', end-bs); in pnm_parse() 100 bs = match + 1; in pnm_parse() 104 next = bs - pnmctx.bytestream_start + skip - 1; in pnm_parse()
|
/third_party/node/deps/openssl/openssl/crypto/bn/asm/ |
D | co-586.pl | 119 local($i,$as,$ae,$bs,$be,$ai,$bi); 132 $bs=0; 151 $bi=$bs; 156 for ($j=$bs; $j<$end; $j++) 158 &xor($c2,$c2) if ($j == $bs); 174 $nb=$bs+($i >= ($num-1)); 191 $bs++ if ($i >= ($num-1)); 210 local($i,$as,$ae,$bs,$be,$ai,$bi); 233 $bs=0; 240 $bi=$bs; [all …]
|