Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 25 of 1514) sorted by relevance

12345678910>>...61

/third_party/gstreamer/gstplugins_bad/ext/closedcaption/
Dbit_slicer.c63 (((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 …]
Dbit_slicer.h101 (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/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DByteStringTest.cs78 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/boost/tools/boost_install/test/iostreams/bzip2-1.0.8/
Dbzip2recover.c156 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenReadStream() local
157 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenReadStream()
158 bs->handle = stream; in bsOpenReadStream()
159 bs->buffer = 0; in bsOpenReadStream()
160 bs->buffLive = 0; in bsOpenReadStream()
161 bs->mode = 'r'; in bsOpenReadStream()
162 return bs; in bsOpenReadStream()
169 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenWriteStream() local
170 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenWriteStream()
171 bs->handle = stream; in bsOpenWriteStream()
[all …]
/third_party/bzip2/
Dbzip2recover.c156 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenReadStream() local
157 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenReadStream()
158 bs->handle = stream; in bsOpenReadStream()
159 bs->buffer = 0; in bsOpenReadStream()
160 bs->buffLive = 0; in bsOpenReadStream()
161 bs->mode = 'r'; in bsOpenReadStream()
162 return bs; in bsOpenReadStream()
169 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenWriteStream() local
170 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenWriteStream()
171 bs->handle = stream; in bsOpenWriteStream()
[all …]
/third_party/boost/tools/boost_install/test/iostreams/bzip2-1.0.6/
Dbzip2recover.c156 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenReadStream() local
157 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenReadStream()
158 bs->handle = stream; in bsOpenReadStream()
159 bs->buffer = 0; in bsOpenReadStream()
160 bs->buffLive = 0; in bsOpenReadStream()
161 bs->mode = 'r'; in bsOpenReadStream()
162 return bs; in bsOpenReadStream()
169 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenWriteStream() local
170 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenWriteStream()
171 bs->handle = stream; in bsOpenWriteStream()
[all …]
/third_party/weston/libweston/backend-drm/
Dvaapi-recorder.c141 bitstream_start(struct bitstream *bs) in bitstream_start() argument
143 bs->max_size_in_dword = BITSTREAM_ALLOCATE_STEPPING; in bitstream_start()
144 bs->buffer = calloc(bs->max_size_in_dword * sizeof(unsigned int), 1); in bitstream_start()
145 bs->bit_offset = 0; in bitstream_start()
149 bitstream_end(struct bitstream *bs) in bitstream_end() argument
151 int pos = (bs->bit_offset >> 5); in bitstream_end()
152 int bit_offset = (bs->bit_offset & 0x1f); in bitstream_end()
156 bs->buffer[pos] = va_swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
161 bitstream_put_ui(struct bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
163 int pos = (bs->bit_offset >> 5); in bitstream_put_ui()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DByteStringTest.cs82 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/
Dbio_ssl.c58 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()
79 if (bs->ssl != NULL) in ssl_free()
80 SSL_shutdown(bs->ssl); in ssl_free()
83 SSL_free(bs->ssl); in ssl_free()
88 OPENSSL_free(bs); in ssl_free()
167 BIO_SSL *bs; in ssl_write() local
[all …]
/third_party/ffmpeg/libavformat/
Dlatmenc.c104 static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs) in latm_write_frame_header() argument
111 put_bits(bs, 1, !!ctx->counter); in latm_write_frame_header()
115 put_bits(bs, 1, 0); /* audioMuxVersion */ in latm_write_frame_header()
116 put_bits(bs, 1, 1); /* allStreamsSameTimeFraming */ in latm_write_frame_header()
117 put_bits(bs, 6, 0); /* numSubFrames */ in latm_write_frame_header()
118 put_bits(bs, 4, 0); /* numProgram */ in latm_write_frame_header()
119 put_bits(bs, 3, 0); /* numLayer */ in latm_write_frame_header()
124 avpriv_copy_bits(bs, &par->extradata[ctx->off >> 3], header_size); in latm_write_frame_header()
128 avpriv_copy_bits(bs, par->extradata, ctx->off + 3); in latm_write_frame_header()
135 ff_copy_pce_data(bs, &gb); in latm_write_frame_header()
[all …]
Dmpc8.c58 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/
Docsp_cl.c165 const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs) in OCSP_resp_get0_signature() argument
167 return bs->signature; in OCSP_resp_get0_signature()
170 const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs) in OCSP_resp_get0_tbs_sigalg() argument
172 return &bs->signatureAlgorithm; in OCSP_resp_get0_tbs_sigalg()
175 const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs) in OCSP_resp_get0_respdata() argument
177 return &bs->tbsResponseData; in OCSP_resp_get0_respdata()
184 int OCSP_resp_count(OCSP_BASICRESP *bs) in OCSP_resp_count() argument
186 if (!bs) in OCSP_resp_count()
188 return sk_OCSP_SINGLERESP_num(bs->tbsResponseData.responses); in OCSP_resp_count()
193 OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx) in OCSP_resp_get0() argument
[all …]
/third_party/e2fsprogs/util/
Dcopy_sparse.c93 long lb, i, fd, ofd, bs, block, numblocks; in copy_sparse_file() local
115 if (ioctl(fd, FIGETBSZ, &bs) < 0) { in copy_sparse_file()
120 if (bs < 0) { in copy_sparse_file()
121 printf("%s: Invalid block size: %ld\n", src, bs); in copy_sparse_file()
125 printf("Blocksize of file %s is %ld\n", src, bs); in copy_sparse_file()
126 numblocks = (fileinfo.st_size + (bs-1)) / bs; in copy_sparse_file()
132 bs = 1024; in copy_sparse_file()
141 buf = malloc(bs); in copy_sparse_file()
152 should_be = ((off64_t) lb) * bs; in copy_sparse_file()
167 got = full_read(fd, buf, bs); in copy_sparse_file()
[all …]
/third_party/openssl/test/
Docspapitest.c72 OCSP_BASICRESP *bs = OCSP_BASICRESP_new(); in make_dummy_resp() local
87 if (!TEST_ptr(bs) in make_dummy_resp()
91 || !TEST_true(OCSP_basic_add1_status(bs, cid, in make_dummy_resp()
95 bs_out = bs; in make_dummy_resp()
96 bs = NULL; in make_dummy_resp()
103 OCSP_BASICRESP_free(bs); in make_dummy_resp()
110 OCSP_BASICRESP *bs = NULL; in test_resp_signer() local
120 bs = make_dummy_resp(); in test_resp_signer()
122 if (!TEST_ptr(bs) in test_resp_signer()
126 || !TEST_true(OCSP_basic_sign(bs, signer, key, EVP_sha1(), in test_resp_signer()
[all …]
/third_party/ntfs-3g/ntfsprogs/
Dntfslabel.c239 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/boost/libs/beast/test/beast/core/
Dflat_stream.cpp117 std::array<net::const_buffer, 3> bs; in testMembers() local
118 bs[0] = net::const_buffer(b, 100); in testMembers()
119 bs[1] = net::const_buffer(b + 100, 200); in testMembers()
120 bs[2] = net::const_buffer(b + 100 + 200, 300); in testMembers()
121 BEAST_EXPECT(buffer_bytes(bs) <= in testMembers()
125 s.write_some(bs, ec); in testMembers()
132 std::array<net::const_buffer, 2> bs; in testMembers() local
133 bs[0] = net::const_buffer(b, in testMembers()
135 bs[1] = net::const_buffer(b + bs[0].size(), 1024); in testMembers()
136 BEAST_EXPECT(buffer_bytes(bs) <= in testMembers()
[all …]
Dbuffers_suffix.cpp34 buffers_suffix<decltype(b)> bs(b); in testBufferSequence() local
35 test_buffer_sequence(bs); in testBufferSequence()
45 buffers_suffix<decltype(b)> bs(b); in testBufferSequence() local
46 test_buffer_sequence(bs); in testBufferSequence()
96 consumed_buffers(BufferSequence const& bs, std::size_t n) in consumed_buffers() argument
98 buffers_suffix<BufferSequence> cb(bs); in consumed_buffers()
128 std::array<net::const_buffer, 3> bs{{ in testMatrix() local
132 buffers_suffix<decltype(bs)> cb(bs); in testMatrix()
136 BEAST_EXPECT(eq(cb, consumed_buffers(bs, 0))); in testMatrix()
141 BEAST_EXPECT(eq(cb, consumed_buffers(bs, x))); in testMatrix()
[all …]
/third_party/ltp/lib/
Dtst_fill_file.c31 int tst_fill_fd(int fd, char pattern, size_t bs, size_t bcount) in tst_fill_fd() argument
37 buf = malloc(bs); in tst_fill_fd()
41 for (i = 0; i < bs; i++) in tst_fill_fd()
46 if (write(fd, buf, bs) != (ssize_t)bs) { in tst_fill_fd()
57 int tst_fill_file(const char *path, char pattern, size_t bs, size_t bcount) in tst_fill_file() argument
65 if (tst_fill_fd(fd, pattern, bs, bcount)) { in tst_fill_file()
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpmp4gdepay.c84 gst_bs_parse_init (GstBsParse * bs, const guint8 * data, guint size) in gst_bs_parse_init() argument
86 bs->data = data; in gst_bs_parse_init()
87 bs->end = data + size; in gst_bs_parse_init()
88 bs->head = 0; in gst_bs_parse_init()
89 bs->cache = 0xffffffff; in gst_bs_parse_init()
93 gst_bs_parse_read (GstBsParse * bs, guint n) in gst_bs_parse_read() argument
102 while (bs->head < n) { in gst_bs_parse_read()
103 if (bs->data >= bs->end) { in gst_bs_parse_read()
105 n = bs->head; in gst_bs_parse_read()
109 bs->cache = (bs->cache << 8) | *bs->data++; in gst_bs_parse_read()
[all …]
/third_party/ffmpeg/libavcodec/
Dpnm_parser.c84 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/openssl/doc/man3/
DOCSP_resp_find_status.pod22 int OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,
28 int OCSP_resp_count(OCSP_BASICRESP *bs);
29 OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx);
30 int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);
39 const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs);
40 const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs);
41 const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs);
42 const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);
44 int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,
47 int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
[all …]
/third_party/boost/libs/msm/test/
DTestConstructorMovableOnlyTypes.cpp104 bistable_switch bs(std::move(bulp), 5); in BOOST_AUTO_TEST_CASE() local
105 BOOST_CHECK_MESSAGE(bs.bulp_->current == 10, "Wrong returned current value"); in BOOST_AUTO_TEST_CASE()
107 bs.start(); in BOOST_AUTO_TEST_CASE()
109 bs.process_event(ev_toggle()); in BOOST_AUTO_TEST_CASE()
110 BOOST_CHECK_MESSAGE(bs.bulp_->current == 11, "Wrong returned current value"); in BOOST_AUTO_TEST_CASE()
112 bs.process_event(ev_toggle()); in BOOST_AUTO_TEST_CASE()
113 BOOST_CHECK_MESSAGE(bs.bulp_->current == 9, "Wrong returned current value"); in BOOST_AUTO_TEST_CASE()
115 bs.stop(); in BOOST_AUTO_TEST_CASE()
/third_party/uboot/u-boot-2020.01/fs/fat/
Dfat.c488 read_bootsectandvi(boot_sector *bs, volume_info *volinfo, int *fatsize) in read_bootsectandvi() argument
510 memcpy(bs, block, sizeof(boot_sector)); in read_bootsectandvi()
511 bs->reserved = FAT2CPU16(bs->reserved); in read_bootsectandvi()
512 bs->fat_length = FAT2CPU16(bs->fat_length); in read_bootsectandvi()
513 bs->secs_track = FAT2CPU16(bs->secs_track); in read_bootsectandvi()
514 bs->heads = FAT2CPU16(bs->heads); in read_bootsectandvi()
515 bs->total_sect = FAT2CPU32(bs->total_sect); in read_bootsectandvi()
518 if (bs->fat_length == 0) { in read_bootsectandvi()
520 bs->fat32_length = FAT2CPU32(bs->fat32_length); in read_bootsectandvi()
521 bs->flags = FAT2CPU16(bs->flags); in read_bootsectandvi()
[all …]
/third_party/boost/libs/serialization/src/
Dbasic_serializer_map.cpp44 basic_serializer_map::insert(const basic_serializer * bs){ in insert() argument
50 m_map.insert(bs); in insert()
76 basic_serializer_map::erase(const basic_serializer * bs){ in erase() argument
82 if(*it == bs) in erase()
99 const basic_serializer_arg bs(eti); in find() local
101 it = m_map.find(& bs); in find()
/third_party/exfat-utils/fsck/
Dfsck.c192 if (exfat->bs) in free_exfat()
193 free(exfat->bs); in free_exfat()
208 static int init_exfat(struct exfat *exfat, struct pbr *bs) in init_exfat() argument
213 exfat->bs = bs; in init_exfat()
214 exfat->clus_count = le32_to_cpu(bs->bsx.clu_count); in init_exfat()
215 exfat->clus_size = EXFAT_CLUSTER_SIZE(bs); in init_exfat()
216 exfat->sect_size = EXFAT_SECTOR_SIZE(bs); in init_exfat()
386 offset = (off_t)le32_to_cpu(exfat->bs->bsx.fat_offset) << in get_next_clus()
387 exfat->bs->bsx.sect_size_bits; in get_next_clus()
401 offset = le32_to_cpu(exfat->bs->bsx.fat_offset) << in set_fat()
[all …]

12345678910>>...61