Home
last modified time | relevance | path

Searched refs:wb (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/external/libaom/libaom/aom_dsp/
Dbitwriter_buffer.c22 int aom_wb_is_byte_aligned(const struct aom_write_bit_buffer *wb) { in aom_wb_is_byte_aligned() argument
23 return (wb->bit_offset % CHAR_BIT == 0); in aom_wb_is_byte_aligned()
26 uint32_t aom_wb_bytes_written(const struct aom_write_bit_buffer *wb) { in aom_wb_bytes_written() argument
27 return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0); in aom_wb_bytes_written()
30 void aom_wb_write_bit(struct aom_write_bit_buffer *wb, int bit) { in aom_wb_write_bit() argument
31 const int off = (int)wb->bit_offset; in aom_wb_write_bit()
36 wb->bit_buffer[p] = bit << q; in aom_wb_write_bit()
38 wb->bit_buffer[p] &= ~(1 << q); in aom_wb_write_bit()
39 wb->bit_buffer[p] |= bit << q; in aom_wb_write_bit()
41 wb->bit_offset = off + 1; in aom_wb_write_bit()
[all …]
Dbitwriter_buffer.h26 int aom_wb_is_byte_aligned(const struct aom_write_bit_buffer *wb);
28 uint32_t aom_wb_bytes_written(const struct aom_write_bit_buffer *wb);
30 void aom_wb_write_bit(struct aom_write_bit_buffer *wb, int bit);
32 void aom_wb_overwrite_bit(struct aom_write_bit_buffer *wb, int bit);
34 void aom_wb_write_literal(struct aom_write_bit_buffer *wb, int data, int bits);
36 void aom_wb_write_unsigned_literal(struct aom_write_bit_buffer *wb,
39 void aom_wb_overwrite_literal(struct aom_write_bit_buffer *wb, int data,
42 void aom_wb_write_inv_signed_literal(struct aom_write_bit_buffer *wb, int data,
45 void aom_wb_write_uvlc(struct aom_write_bit_buffer *wb, uint32_t v);
47 void aom_wb_write_signed_primitive_refsubexpfin(struct aom_write_bit_buffer *wb,
/external/vboot_reference/tests/
Dvb2_common_tests.c68 struct vb2_workbuf wb; in test_workbuf() local
74 vb2_workbuf_init(&wb, p0, 64); in test_workbuf()
75 TEST_EQ(vb2_offset_of(p0, wb.buf), 0, "Workbuf init aligned"); in test_workbuf()
76 TEST_EQ(wb.size, 64, " size"); in test_workbuf()
78 vb2_workbuf_init(&wb, p0 + 4, 64); in test_workbuf()
79 TEST_EQ(vb2_offset_of(p0, wb.buf), VB2_WORKBUF_ALIGN, in test_workbuf()
81 TEST_EQ(wb.size, 64 - VB2_WORKBUF_ALIGN + 4, " size"); in test_workbuf()
83 vb2_workbuf_init(&wb, p0 + 2, 5); in test_workbuf()
84 TEST_EQ(wb.size, 0, "Workbuf init tiny unaligned size"); in test_workbuf()
87 vb2_workbuf_init(&wb, p0, 64); in test_workbuf()
[all …]
Dvb20_common3_tests.c38 struct vb2_workbuf wb; in test_verify_keyblock() local
44 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_keyblock()
60 TEST_SUCC(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
64 TEST_EQ(vb2_verify_keyblock(h, hsize - 1, &key, &wb), in test_verify_keyblock()
69 TEST_SUCC(vb2_verify_keyblock(h, hsize + 1, &key, &wb), in test_verify_keyblock()
74 TEST_EQ(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
81 TEST_EQ(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
88 TEST_EQ(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
95 TEST_SUCC(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
101 TEST_SUCC(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
[all …]
Dvb20_rsa_padding_tests.c48 struct vb2_workbuf wb; in test_signatures() local
52 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_signatures()
56 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_signatures()
64 test_message_sha1_hash, &wb)) { in test_signatures()
81 struct vb2_workbuf wb; in test_verify_digest() local
84 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_digest()
87 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
91 vb2_workbuf_init(&wb, workbuf, sizeof(sig) * 3 - 1); in test_verify_digest()
92 TEST_EQ(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
95 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_digest()
[all …]
Dvb21_common_tests.c225 struct vb2_workbuf wb; in test_verify_hash() local
227 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_hash()
239 sig, &pubk, &wb), in test_verify_hash()
243 TEST_EQ(vb2_verify_data(test_data, sizeof(test_data), sig, &pubk, &wb), in test_verify_hash()
264 struct vb2_workbuf wb; in test_verify_keyblock() local
289 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_keyblock()
292 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
296 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk2, &wb), in test_verify_keyblock()
300 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk3, &wb), in test_verify_keyblock()
306 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
[all …]
Dvb20_common2_tests.c82 struct vb2_workbuf wb; in test_verify_data() local
89 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
100 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
106 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
110 vb2_workbuf_init(&wb, workbuf, 4); in test_verify_data()
112 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
114 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
117 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
122 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
126 TEST_NEQ(vb2_verify_data(test_data, test_size - 1, sig2, &pubk, &wb), in test_verify_data()
[all …]
Dvb21_common2_tests.c174 struct vb2_workbuf wb; in test_verify_data() local
181 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
192 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
198 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
203 vb2_workbuf_init(&wb, workbuf, 4); in test_verify_data()
205 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
208 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
211 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
216 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
220 TEST_EQ(vb2_verify_data(test_data, test_size - 1, sig2, &pubk, &wb), in test_verify_data()
[all …]
/external/vboot_reference/firmware/2lib/
D2common.c54 void vb2_workbuf_init(struct vb2_workbuf *wb, uint8_t *buf, uint32_t size) in vb2_workbuf_init() argument
56 wb->buf = buf; in vb2_workbuf_init()
57 wb->size = size; in vb2_workbuf_init()
60 if (vb2_align(&wb->buf, &wb->size, VB2_WORKBUF_ALIGN, 0)) in vb2_workbuf_init()
61 wb->size = 0; in vb2_workbuf_init()
75 void *vb2_workbuf_alloc(struct vb2_workbuf *wb, uint32_t size) in vb2_workbuf_alloc() argument
77 uint8_t *ptr = wb->buf; in vb2_workbuf_alloc()
82 if (size > wb->size) in vb2_workbuf_alloc()
85 wb->buf += size; in vb2_workbuf_alloc()
86 wb->size -= size; in vb2_workbuf_alloc()
[all …]
/external/libvpx/libvpx/vpx_dsp/
Dbitwriter_buffer.c17 size_t vpx_wb_bytes_written(const struct vpx_write_bit_buffer *wb) { in vpx_wb_bytes_written() argument
18 return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0); in vpx_wb_bytes_written()
21 void vpx_wb_write_bit(struct vpx_write_bit_buffer *wb, int bit) { in vpx_wb_write_bit() argument
22 const int off = (int)wb->bit_offset; in vpx_wb_write_bit()
26 wb->bit_buffer[p] = bit << q; in vpx_wb_write_bit()
28 wb->bit_buffer[p] &= ~(1 << q); in vpx_wb_write_bit()
29 wb->bit_buffer[p] |= bit << q; in vpx_wb_write_bit()
31 wb->bit_offset = off + 1; in vpx_wb_write_bit()
34 void vpx_wb_write_literal(struct vpx_write_bit_buffer *wb, int data, int bits) { in vpx_wb_write_literal() argument
36 for (bit = bits - 1; bit >= 0; bit--) vpx_wb_write_bit(wb, (data >> bit) & 1); in vpx_wb_write_literal()
[all …]
Dbitwriter_buffer.h25 size_t vpx_wb_bytes_written(const struct vpx_write_bit_buffer *wb);
27 void vpx_wb_write_bit(struct vpx_write_bit_buffer *wb, int bit);
29 void vpx_wb_write_literal(struct vpx_write_bit_buffer *wb, int data, int bits);
31 void vpx_wb_write_inv_signed_literal(struct vpx_write_bit_buffer *wb, int data,
/external/libaom/libaom/av1/encoder/
Dbitstream.c1740 AV1_COMMON *cm, struct aom_write_bit_buffer *wb) { in encode_restoration_mode() argument
1754 aom_wb_write_bit(wb, 0); in encode_restoration_mode()
1755 aom_wb_write_bit(wb, 0); in encode_restoration_mode()
1758 aom_wb_write_bit(wb, 1); in encode_restoration_mode()
1759 aom_wb_write_bit(wb, 0); in encode_restoration_mode()
1762 aom_wb_write_bit(wb, 1); in encode_restoration_mode()
1763 aom_wb_write_bit(wb, 1); in encode_restoration_mode()
1766 aom_wb_write_bit(wb, 0); in encode_restoration_mode()
1767 aom_wb_write_bit(wb, 1); in encode_restoration_mode()
1783 aom_wb_write_bit(wb, rsi->restoration_unit_size > 64); in encode_restoration_mode()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_bitstream.c68 static void encode_unsigned_max(struct vpx_write_bit_buffer *wb, int data, in encode_unsigned_max() argument
70 vpx_wb_write_literal(wb, data, get_unsigned_bits(max)); in encode_unsigned_max()
702 struct vpx_write_bit_buffer *wb) { in encode_loopfilter() argument
706 vpx_wb_write_literal(wb, lf->filter_level, 6); in encode_loopfilter()
707 vpx_wb_write_literal(wb, lf->sharpness_level, 3); in encode_loopfilter()
711 vpx_wb_write_bit(wb, lf->mode_ref_delta_enabled); in encode_loopfilter()
714 vpx_wb_write_bit(wb, lf->mode_ref_delta_update); in encode_loopfilter()
719 vpx_wb_write_bit(wb, changed); in encode_loopfilter()
722 vpx_wb_write_literal(wb, abs(delta) & 0x3F, 6); in encode_loopfilter()
723 vpx_wb_write_bit(wb, delta < 0); in encode_loopfilter()
[all …]
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dfpextend_x86.ll6 %wb = fpext double %b to x86_fp80
7 %wr = fadd x86_fp80 %wa, %wb
17 %wb = fpext double %b to x86_fp80
18 %wr = fsub x86_fp80 %wa, %wb
28 %wb = fpext double %b to x86_fp80
29 %wr = fmul x86_fp80 %wa, %wb
39 %wb = fpext half %b to x86_fp80
40 %wr = fmul x86_fp80 %wa, %wb
50 %wb = fpext double %b to x86_fp80
51 %wr = fdiv x86_fp80 %wa, %wb
/external/llvm/test/Transforms/InstCombine/
Dfpextend_x86.ll6 %wb = fpext double %b to x86_fp80
7 %wr = fadd x86_fp80 %wa, %wb
17 %wb = fpext double %b to x86_fp80
18 %wr = fsub x86_fp80 %wa, %wb
28 %wb = fpext double %b to x86_fp80
29 %wr = fmul x86_fp80 %wa, %wb
39 %wb = fpext half %b to x86_fp80
40 %wr = fmul x86_fp80 %wa, %wb
50 %wb = fpext double %b to x86_fp80
51 %wr = fdiv x86_fp80 %wa, %wb
/external/vboot_reference/firmware/lib21/
Dmisc.c34 struct vb2_workbuf *wb, in vb2_read_resource_object() argument
49 buf = vb2_workbuf_alloc(wb, c.total_size); in vb2_read_resource_object()
56 vb2_workbuf_free(wb, c.total_size); in vb2_read_resource_object()
68 struct vb2_workbuf wb; in vb2_load_fw_keyblock() local
78 vb2_workbuf_from_ctx(ctx, &wb); in vb2_load_fw_keyblock()
82 key_data = vb2_workbuf_alloc(&wb, key_size); in vb2_load_fw_keyblock()
100 rv = vb2_read_resource_object(ctx, VB2_RES_FW_VBLOCK, 0, &wb, in vb2_load_fw_keyblock()
106 rv = vb2_verify_keyblock(kb, kb->c.total_size, &root_key, &wb); in vb2_load_fw_keyblock()
156 struct vb2_workbuf wb; in vb2_load_fw_preamble() local
167 vb2_workbuf_from_ctx(ctx, &wb); in vb2_load_fw_preamble()
[all …]
Dapi.c48 struct vb2_workbuf wb; in vb2api_init_hash2() local
52 vb2_workbuf_from_ctx(ctx, &wb); in vb2api_init_hash2()
81 dc = vb2_workbuf_alloc(&wb, dig_size); in vb2api_init_hash2()
121 struct vb2_workbuf wb; in vb2api_check_hash() local
130 vb2_workbuf_from_ctx(ctx, &wb); in vb2api_check_hash()
146 digest = vb2_workbuf_alloc(&wb, digest_size); in vb2api_check_hash()
/external/vboot_reference/firmware/lib20/
Dmisc.c20 struct vb2_workbuf wb; in vb2_load_fw_keyblock() local
32 vb2_workbuf_from_ctx(ctx, &wb); in vb2_load_fw_keyblock()
36 key_data = vb2_workbuf_alloc(&wb, key_size); in vb2_load_fw_keyblock()
51 kb = vb2_workbuf_alloc(&wb, sizeof(*kb)); in vb2_load_fw_keyblock()
67 kb = vb2_workbuf_realloc(&wb, sizeof(*kb), block_size); in vb2_load_fw_keyblock()
76 rv = vb2_verify_keyblock(kb, block_size, &root_key, &wb); in vb2_load_fw_keyblock()
133 struct vb2_workbuf wb; in vb2_load_fw_preamble() local
145 vb2_workbuf_from_ctx(ctx, &wb); in vb2_load_fw_preamble()
156 pre = vb2_workbuf_alloc(&wb, sizeof(*pre)); in vb2_load_fw_preamble()
169 pre = vb2_workbuf_realloc(&wb, sizeof(*pre), pre_size); in vb2_load_fw_preamble()
[all …]
Dapi.c45 struct vb2_workbuf wb; in vb2api_init_hash() local
48 vb2_workbuf_from_ctx(ctx, &wb); in vb2api_init_hash()
70 dc = vb2_workbuf_alloc(&wb, dig_size); in vb2api_init_hash()
129 struct vb2_workbuf wb; in vb2api_check_hash() local
138 vb2_workbuf_from_ctx(ctx, &wb); in vb2api_check_hash()
155 digest = vb2_workbuf_alloc(&wb, digest_size); in vb2api_check_hash()
190 rv = vb2_verify_digest(&key, &pre->body_signature, digest, &wb); in vb2api_check_hash()
Dcommon.c70 const struct vb2_workbuf *wb) in vb2_verify_digest() argument
82 return vb2_rsa_verify_digest(key, sig_data, digest, wb); in vb2_verify_digest()
89 const struct vb2_workbuf *wb) in vb2_verify_data() argument
91 struct vb2_workbuf wblocal = *wb; in vb2_verify_data()
136 const struct vb2_workbuf *wb) in vb2_verify_keyblock() argument
174 rv = vb2_verify_data((const uint8_t *)block, size, sig, key, wb); in vb2_verify_keyblock()
205 const struct vb2_workbuf *wb) in vb2_verify_fw_preamble() argument
245 if (vb2_verify_data((const uint8_t *)preamble, size, sig, key, wb)) { in vb2_verify_fw_preamble()
/external/libaom/libaom/examples/
Dlightfield_bitstream_parsing.c105 struct aom_write_bit_buffer wb = { tl, 0 }; in process_tile_list() local
113 aom_wb_write_literal(&wb, 0, 1); // forbidden bit. in process_tile_list()
114 aom_wb_write_literal(&wb, 8, 4); // tile list OBU: "1000" in process_tile_list()
115 aom_wb_write_literal(&wb, 0, 1); // obu_extension = 0 in process_tile_list()
116 aom_wb_write_literal(&wb, 1, 1); // obu_has_size_field in process_tile_list()
117 aom_wb_write_literal(&wb, 0, 1); // reserved in process_tile_list()
124 aom_wb_write_unsigned_literal(&wb, 0, 32); in process_tile_list()
129 aom_wb_write_literal(&wb, output_frame_width_in_tiles_minus_1, 8); in process_tile_list()
130 aom_wb_write_literal(&wb, output_frame_height_in_tiles_minus_1, 8); in process_tile_list()
131 aom_wb_write_literal(&wb, num_tiles_minus_1, 16); in process_tile_list()
[all …]
/external/tcpdump/tests/
Dwb-oobr.out6 48.48.48.48.3503 > 48.48.48.48.4567: * wb-prep:[|wb]
12 48.48.0.1.3503 > 48.4.4.4.4567: * wb-prep:[|wb]
18 48.48.0.1.3503 > 48.4.4.4.4567: * wb-prep:[|wb]
/external/vboot_reference/firmware/lib20/include/
Dvb2_common.h107 const struct vb2_workbuf *wb);
124 const struct vb2_workbuf *wb);
141 const struct vb2_workbuf *wb);
157 const struct vb2_workbuf *wb);
/external/vboot_reference/firmware/lib21/include/
Dvb2_common.h127 const struct vb2_workbuf *wb);
144 const struct vb2_workbuf *wb);
161 const struct vb2_workbuf *wb);
177 const struct vb2_workbuf *wb);
/external/vboot_reference/firmware/2lib/include/
D2common.h72 void vb2_workbuf_init(struct vb2_workbuf *wb, uint8_t *buf, uint32_t size);
92 void *vb2_workbuf_alloc(struct vb2_workbuf *wb, uint32_t size);
106 void *vb2_workbuf_realloc(struct vb2_workbuf *wb,
120 void vb2_workbuf_free(struct vb2_workbuf *wb, uint32_t size);

12345678910>>...12