Home
last modified time | relevance | path

Searched refs:rb (Results 1 – 25 of 857) sorted by relevance

12345678910>>...35

/external/brotli/c/enc/
Dringbuffer.h49 static BROTLI_INLINE void RingBufferInit(RingBuffer* rb) { in RingBufferInit() argument
50 rb->cur_size_ = 0; in RingBufferInit()
51 rb->pos_ = 0; in RingBufferInit()
52 rb->data_ = 0; in RingBufferInit()
53 rb->buffer_ = 0; in RingBufferInit()
57 const BrotliEncoderParams* params, RingBuffer* rb) { in RingBufferSetup() argument
60 *(uint32_t*)&rb->size_ = 1u << window_bits; in RingBufferSetup()
61 *(uint32_t*)&rb->mask_ = (1u << window_bits) - 1; in RingBufferSetup()
62 *(uint32_t*)&rb->tail_size_ = 1u << tail_bits; in RingBufferSetup()
63 *(uint32_t*)&rb->total_size_ = rb->size_ + rb->tail_size_; in RingBufferSetup()
[all …]
/external/syzkaller/vendor/golang.org/x/text/unicode/norm/
Dcomposition.go114 func (rb *reorderBuffer) init(f Form, src []byte) {
115 rb.f = *formTable[f]
116 rb.src.setBytes(src)
117 rb.nsrc = len(src)
118 rb.ss = 0
121 func (rb *reorderBuffer) initString(f Form, src string) {
122 rb.f = *formTable[f]
123 rb.src.setString(src)
124 rb.nsrc = len(src)
125 rb.ss = 0
[all …]
Diter.go19 rb reorderBuffer member
36 i.rb.nsrc = 0
40 i.rb.init(f, src)
41 i.next = i.rb.f.nextMain
43 i.info = i.rb.f.info(i.rb.src, i.p)
44 i.rb.ss.first(i.info)
52 i.rb.nsrc = 0
56 i.rb.initString(f, src)
57 i.next = i.rb.f.nextMain
59 i.info = i.rb.f.info(i.rb.src, i.p)
[all …]
Dnormalize.go53 rb := reorderBuffer{f: *ft, src: src, nsrc: len(b), out: out, flushF: appendFlush}
54 return doAppendInner(&rb, n)
67 rb := reorderBuffer{f: *ft, src: src, nsrc: len(s), out: out, flushF: appendFlush}
68 return string(doAppendInner(&rb, n))
79 rb := reorderBuffer{f: *ft, src: src, nsrc: len(b)}
80 rb.setFlusher(nil, cmpNormalBytes)
82 rb.out = b[bp:]
83 if bp = decomposeSegment(&rb, bp, true); bp < 0 {
86 bp, _ = rb.f.quickSpan(rb.src, bp, len(b), true)
91 func cmpNormalBytes(rb *reorderBuffer) bool {
[all …]
Dtransform.go42 func flushTransform(rb *reorderBuffer) bool {
44 if len(rb.out) < rb.nrune*utf8.UTFMax {
47 rb.out = rb.out[rb.flushCopy(rb.out):]
57 rb := reorderBuffer{}
58 rb.init(f, src)
61 rb.setFlusher(dst[nDst:], flushTransform)
62 end := decomposeSegment(&rb, nSrc, atEOF)
66 nDst = len(dst) - len(rb.out)
70 end = rb.nsrc
77 end, ok := rb.f.quickSpan(rb.src, nSrc, end, eof)
[all …]
/external/mesa3d/src/mesa/main/
Drenderbuffer.c39 _mesa_init_renderbuffer(struct gl_renderbuffer *rb, GLuint name) in _mesa_init_renderbuffer() argument
43 simple_mtx_init(&rb->Mutex, mtx_plain); in _mesa_init_renderbuffer()
45 rb->ClassID = 0; in _mesa_init_renderbuffer()
46 rb->Name = name; in _mesa_init_renderbuffer()
47 rb->RefCount = 1; in _mesa_init_renderbuffer()
48 rb->Delete = _mesa_delete_renderbuffer; in _mesa_init_renderbuffer()
53 rb->AllocStorage = NULL; in _mesa_init_renderbuffer()
55 rb->Width = 0; in _mesa_init_renderbuffer()
56 rb->Height = 0; in _mesa_init_renderbuffer()
57 rb->Depth = 0; in _mesa_init_renderbuffer()
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_fbo.c37 set_renderbuffer_format(struct gl_renderbuffer *rb, GLenum internalFormat) in set_renderbuffer_format() argument
39 struct nouveau_surface *s = &to_nouveau_renderbuffer(rb)->surface; in set_renderbuffer_format()
41 rb->InternalFormat = internalFormat; in set_renderbuffer_format()
46 rb->_BaseFormat = GL_RGB; in set_renderbuffer_format()
47 rb->Format = MESA_FORMAT_B8G8R8X8_UNORM; in set_renderbuffer_format()
52 rb->_BaseFormat = GL_RGBA; in set_renderbuffer_format()
53 rb->Format = MESA_FORMAT_B8G8R8A8_UNORM; in set_renderbuffer_format()
57 rb->_BaseFormat = GL_RGB; in set_renderbuffer_format()
58 rb->Format = MESA_FORMAT_B5G6R5_UNORM; in set_renderbuffer_format()
62 rb->_BaseFormat = GL_DEPTH_COMPONENT; in set_renderbuffer_format()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_renderbuffer.c56 soft_renderbuffer_storage(struct gl_context *ctx, struct gl_renderbuffer *rb, in soft_renderbuffer_storage() argument
60 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in soft_renderbuffer_storage()
72 rb->Format = MESA_FORMAT_BGR_UNORM8; in soft_renderbuffer_storage()
84 rb->Format = MESA_FORMAT_R8G8B8A8_UNORM; in soft_renderbuffer_storage()
86 rb->Format = MESA_FORMAT_A8B8G8R8_UNORM; in soft_renderbuffer_storage()
91 rb->Format = MESA_FORMAT_RGBA_SNORM16; in soft_renderbuffer_storage()
98 rb->Format = MESA_FORMAT_S_UINT8; in soft_renderbuffer_storage()
102 rb->Format = MESA_FORMAT_Z_UNORM16; in soft_renderbuffer_storage()
105 rb->Format = MESA_FORMAT_Z24_UNORM_X8_UINT; in soft_renderbuffer_storage()
108 rb->Format = MESA_FORMAT_Z_UNORM32; in soft_renderbuffer_storage()
[all …]
Ds_depth.c211 get_z32_values(struct gl_context *ctx, struct gl_renderbuffer *rb, in get_z32_values() argument
215 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in get_z32_values()
216 const GLint w = rb->Width, h = rb->Height; in get_z32_values()
217 const GLubyte *map = _swrast_pixel_address(rb, 0, 0); in get_z32_values()
220 if (rb->Format == MESA_FORMAT_Z_UNORM32) { in get_z32_values()
229 const GLint bpp = _mesa_get_format_bytes(rb->Format); in get_z32_values()
234 _mesa_unpack_uint_z_row(rb->Format, 1, src, &zbuffer[i]); in get_z32_values()
246 put_z32_values(struct gl_context *ctx, struct gl_renderbuffer *rb, in put_z32_values() argument
250 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in put_z32_values()
251 const GLint w = rb->Width, h = rb->Height; in put_z32_values()
[all …]
Ds_stencil.c294 get_s8_values(struct gl_context *ctx, struct gl_renderbuffer *rb, in get_s8_values() argument
298 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in get_s8_values()
299 const GLint w = rb->Width, h = rb->Height; in get_s8_values()
300 const GLubyte *map = _swrast_pixel_address(rb, 0, 0); in get_s8_values()
303 if (rb->Format == MESA_FORMAT_S_UINT8) { in get_s8_values()
312 const GLint bpp = _mesa_get_format_bytes(rb->Format); in get_s8_values()
317 _mesa_unpack_ubyte_stencil_row(rb->Format, 1, src, &stencil[i]); in get_s8_values()
328 put_s8_values(struct gl_context *ctx, struct gl_renderbuffer *rb, in put_s8_values() argument
332 const GLint w = rb->Width, h = rb->Height; in put_s8_values()
334 _mesa_get_pack_ubyte_stencil_func(rb->Format); in put_s8_values()
[all …]
Ds_texrender.c18 delete_texture_wrapper(struct gl_context *ctx, struct gl_renderbuffer *rb) in delete_texture_wrapper() argument
20 assert(rb->RefCount == 0); in delete_texture_wrapper()
21 free(rb); in delete_texture_wrapper()
32 struct gl_renderbuffer *rb = att->Renderbuffer; in update_wrapper() local
33 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in update_wrapper()
40 swImage = swrast_texture_image(rb->TexImage); in update_wrapper()
53 rb->Format = _mesa_get_srgb_format_linear(format); in update_wrapper()
82 struct gl_renderbuffer *rb = att->Renderbuffer; in _swrast_render_texture() local
86 rb->Delete = delete_texture_wrapper; in _swrast_render_texture()
94 struct gl_renderbuffer *rb) in _swrast_finish_render_texture() argument
[all …]
/external/libaom/libaom/aom_dsp/
Dbitreader_buffer.c20 size_t aom_rb_bytes_read(const struct aom_read_bit_buffer *rb) { in aom_rb_bytes_read() argument
21 return (rb->bit_offset + 7) >> 3; in aom_rb_bytes_read()
24 int aom_rb_read_bit(struct aom_read_bit_buffer *rb) { in aom_rb_read_bit() argument
25 const uint32_t off = rb->bit_offset; in aom_rb_read_bit()
28 if (rb->bit_buffer + p < rb->bit_buffer_end) { in aom_rb_read_bit()
29 const int bit = (rb->bit_buffer[p] >> q) & 1; in aom_rb_read_bit()
30 rb->bit_offset = off + 1; in aom_rb_read_bit()
33 if (rb->error_handler) rb->error_handler(rb->error_handler_data); in aom_rb_read_bit()
38 int aom_rb_read_literal(struct aom_read_bit_buffer *rb, int bits) { in aom_rb_read_literal() argument
41 for (bit = bits - 1; bit >= 0; bit--) value |= aom_rb_read_bit(rb) << bit; in aom_rb_read_literal()
[all …]
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_fbo.c50 radeon_delete_renderbuffer(struct gl_context *ctx, struct gl_renderbuffer *rb) in radeon_delete_renderbuffer() argument
52 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_delete_renderbuffer()
56 __func__, rb, rrb); in radeon_delete_renderbuffer()
63 _mesa_delete_renderbuffer(ctx, rb); in radeon_delete_renderbuffer()
147 radeon_map_renderbuffer_s8z24(struct gl_renderbuffer *rb, in radeon_map_renderbuffer_s8z24() argument
153 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_map_renderbuffer_s8z24()
156 int y_flip = (rb->Name == 0) ? -1 : 1; in radeon_map_renderbuffer_s8z24()
157 int y_bias = (rb->Name == 0) ? (rb->Height - 1) : 0; in radeon_map_renderbuffer_s8z24()
185 radeon_map_renderbuffer_z16(struct gl_renderbuffer *rb, in radeon_map_renderbuffer_z16() argument
191 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_map_renderbuffer_z16()
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_fbo.c50 radeon_delete_renderbuffer(struct gl_context *ctx, struct gl_renderbuffer *rb) in radeon_delete_renderbuffer() argument
52 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_delete_renderbuffer()
56 __func__, rb, rrb); in radeon_delete_renderbuffer()
63 _mesa_delete_renderbuffer(ctx, rb); in radeon_delete_renderbuffer()
147 radeon_map_renderbuffer_s8z24(struct gl_renderbuffer *rb, in radeon_map_renderbuffer_s8z24() argument
153 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_map_renderbuffer_s8z24()
156 int y_flip = (rb->Name == 0) ? -1 : 1; in radeon_map_renderbuffer_s8z24()
157 int y_bias = (rb->Name == 0) ? (rb->Height - 1) : 0; in radeon_map_renderbuffer_s8z24()
185 radeon_map_renderbuffer_z16(struct gl_renderbuffer *rb, in radeon_map_renderbuffer_z16() argument
191 struct radeon_renderbuffer *rrb = radeon_renderbuffer(rb); in radeon_map_renderbuffer_z16()
[all …]
/external/libaom/libaom/av1/decoder/
Dobu.c88 struct aom_read_bit_buffer *const rb) { in byte_alignment() argument
89 while (rb->bit_offset & 7) { in byte_alignment()
90 if (aom_rb_read_bit(rb)) { in byte_alignment()
102 struct aom_read_bit_buffer *rb) { in read_bitstream_level() argument
103 *seq_level_idx = aom_rb_read_literal(rb, LEVEL_BITS); in read_bitstream_level()
119 struct aom_read_bit_buffer *rb) { in read_sequence_header_obu() argument
121 const uint32_t saved_bit_offset = rb->bit_offset; in read_sequence_header_obu()
124 assert(rb->error_handler); in read_sequence_header_obu()
131 seq_params->profile = av1_read_profile(rb); in read_sequence_header_obu()
138 seq_params->still_picture = aom_rb_read_bit(rb); in read_sequence_header_obu()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_fbo.c69 intel_delete_renderbuffer(struct gl_context *ctx, struct gl_renderbuffer *rb) in intel_delete_renderbuffer() argument
71 struct intel_renderbuffer *irb = intel_renderbuffer(rb); in intel_delete_renderbuffer()
77 _mesa_delete_renderbuffer(ctx, rb); in intel_delete_renderbuffer()
85 struct gl_renderbuffer *rb, in intel_map_renderbuffer() argument
92 struct swrast_renderbuffer *srb = (struct swrast_renderbuffer *)rb; in intel_map_renderbuffer()
93 struct intel_renderbuffer *irb = intel_renderbuffer(rb); in intel_map_renderbuffer()
99 GLint bpp = _mesa_get_format_bytes(rb->Format); in intel_map_renderbuffer()
112 if (rb->Name == 0) { in intel_map_renderbuffer()
113 y = rb->Height - y - h; in intel_map_renderbuffer()
119 if (rb->Name == 0) { in intel_map_renderbuffer()
[all …]
/external/libvpx/libvpx/vpx_dsp/
Dbitreader_buffer.c13 size_t vpx_rb_bytes_read(struct vpx_read_bit_buffer *rb) { in vpx_rb_bytes_read() argument
14 return (rb->bit_offset + 7) >> 3; in vpx_rb_bytes_read()
17 int vpx_rb_read_bit(struct vpx_read_bit_buffer *rb) { in vpx_rb_read_bit() argument
18 const size_t off = rb->bit_offset; in vpx_rb_read_bit()
21 if (rb->bit_buffer + p < rb->bit_buffer_end) { in vpx_rb_read_bit()
22 const int bit = (rb->bit_buffer[p] >> q) & 1; in vpx_rb_read_bit()
23 rb->bit_offset = off + 1; in vpx_rb_read_bit()
26 if (rb->error_handler != NULL) rb->error_handler(rb->error_handler_data); in vpx_rb_read_bit()
31 int vpx_rb_read_literal(struct vpx_read_bit_buffer *rb, int bits) { in vpx_rb_read_literal() argument
33 for (bit = bits - 1; bit >= 0; bit--) value |= vpx_rb_read_bit(rb) << bit; in vpx_rb_read_literal()
[all …]
/external/jemalloc/test/unit/
Dprng.c6 uint32_t sa, sb, ra, rb; in test_prng_lg_range_u32() local
12 rb = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32()
13 assert_u32_eq(ra, rb, in test_prng_lg_range_u32()
17 rb = prng_lg_range_u32(&sb, 32, atomic); in test_prng_lg_range_u32()
18 assert_u32_eq(ra, rb, in test_prng_lg_range_u32()
23 rb = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32()
24 assert_u32_ne(ra, rb, in test_prng_lg_range_u32()
31 rb = prng_lg_range_u32(&sb, lg_range, atomic); in test_prng_lg_range_u32()
32 assert_u32_eq((rb & (UINT32_C(0xffffffff) << lg_range)), in test_prng_lg_range_u32()
34 assert_u32_eq(rb, (ra >> (32 - lg_range)), in test_prng_lg_range_u32()
[all …]
/external/jemalloc_new/test/unit/
Dprng.c6 uint32_t ra, rb; in test_prng_lg_range_u32() local
12 rb = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32()
13 assert_u32_eq(ra, rb, in test_prng_lg_range_u32()
17 rb = prng_lg_range_u32(&sb, 32, atomic); in test_prng_lg_range_u32()
18 assert_u32_eq(ra, rb, in test_prng_lg_range_u32()
23 rb = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32()
24 assert_u32_ne(ra, rb, in test_prng_lg_range_u32()
31 rb = prng_lg_range_u32(&sb, lg_range, atomic); in test_prng_lg_range_u32()
32 assert_u32_eq((rb & (UINT32_C(0xffffffff) << lg_range)), in test_prng_lg_range_u32()
34 assert_u32_eq(rb, (ra >> (32 - lg_range)), in test_prng_lg_range_u32()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_fbo.c58 intel_delete_renderbuffer(struct gl_context *ctx, struct gl_renderbuffer *rb) in intel_delete_renderbuffer() argument
60 struct intel_renderbuffer *irb = intel_renderbuffer(rb); in intel_delete_renderbuffer()
67 _mesa_delete_renderbuffer(ctx, rb); in intel_delete_renderbuffer()
104 struct gl_renderbuffer *rb, in intel_map_renderbuffer() argument
111 struct swrast_renderbuffer *srb = (struct swrast_renderbuffer *)rb; in intel_map_renderbuffer()
112 struct intel_renderbuffer *irb = intel_renderbuffer(rb); in intel_map_renderbuffer()
119 GLint bpp = _mesa_get_format_bytes(rb->Format); in intel_map_renderbuffer()
141 if (rb->NumSamples > 1) { in intel_map_renderbuffer()
145 rb->Width, rb->Height, in intel_map_renderbuffer()
165 if (rb->Name == 0) { in intel_map_renderbuffer()
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dreport_block_unittest.cc37 ReportBlock rb; in TEST() local
38 EXPECT_FALSE(rb.Parse(buffer, kBufferLength - 1)); in TEST()
39 EXPECT_TRUE(rb.Parse(buffer, kBufferLength)); in TEST()
49 ReportBlock rb; in TEST() local
50 EXPECT_TRUE(rb.Parse(buffer, kBufferLength)); in TEST()
54 ReportBlock rb; in TEST() local
55 rb.To(kRemoteSsrc); in TEST()
56 rb.WithFractionLost(kFractionLost); in TEST()
57 rb.WithCumulativeLost(kCumulativeLost); in TEST()
58 rb.WithExtHighestSeqNum(kExtHighestSeqNum); in TEST()
[all …]
Dreceiver_report_unittest.cc68 const ReportBlock& rb = parsed.report_blocks().front(); in TEST_F() local
69 EXPECT_EQ(kRemoteSsrc, rb.source_ssrc()); in TEST_F()
70 EXPECT_EQ(kFractionLost, rb.fraction_lost()); in TEST_F()
71 EXPECT_EQ(kCumulativeLost, rb.cumulative_lost()); in TEST_F()
72 EXPECT_EQ(kExtHighestSeqNum, rb.extended_high_seq_num()); in TEST_F()
73 EXPECT_EQ(kJitter, rb.jitter()); in TEST_F()
74 EXPECT_EQ(kLastSr, rb.last_sr()); in TEST_F()
75 EXPECT_EQ(kDelayLastSr, rb.delay_since_last_sr()); in TEST_F()
87 ReportBlock rb; in TEST_F() local
88 rb.To(kRemoteSsrc); in TEST_F()
[all …]
/external/libpng/intel/
Dfilter_sse2_intrinsics.c74 png_size_t rb; in png_read_filter_row_sub3_sse2() local
80 rb = row_info->rowbytes; in png_read_filter_row_sub3_sse2()
81 while (rb >= 4) { in png_read_filter_row_sub3_sse2()
87 rb -= 3; in png_read_filter_row_sub3_sse2()
89 if (rb > 0) { in png_read_filter_row_sub3_sse2()
95 rb -= 3; in png_read_filter_row_sub3_sse2()
107 png_size_t rb; in png_read_filter_row_sub4_sse2() local
113 rb = row_info->rowbytes+4; in png_read_filter_row_sub4_sse2()
114 while (rb > 4) { in png_read_filter_row_sub4_sse2()
120 rb -= 4; in png_read_filter_row_sub4_sse2()
[all …]
/external/libaom/libaom/av1/common/
Dobu_util.c51 static aom_codec_err_t read_obu_header(struct aom_read_bit_buffer *rb, in read_obu_header() argument
53 if (!rb || !header) return AOM_CODEC_INVALID_PARAM; in read_obu_header()
55 const ptrdiff_t bit_buffer_byte_length = rb->bit_buffer_end - rb->bit_buffer; in read_obu_header()
60 if (aom_rb_read_bit(rb) != 0) { in read_obu_header()
65 header->type = (OBU_TYPE)aom_rb_read_literal(rb, 4); in read_obu_header()
69 header->has_extension = aom_rb_read_bit(rb); in read_obu_header()
70 header->has_size_field = aom_rb_read_bit(rb); in read_obu_header()
77 if (aom_rb_read_bit(rb) != 0) { in read_obu_header()
86 header->temporal_layer_id = aom_rb_read_literal(rb, 3); in read_obu_header()
87 header->spatial_layer_id = aom_rb_read_literal(rb, 2); in read_obu_header()
[all …]
/external/grpc-grpc/tools/run_tests/helper_scripts/
Drun_ruby_end2end_tests.sh22 time ruby src/ruby/end2end/sig_handling_driver.rb || EXIT_CODE=1
23 time ruby src/ruby/end2end/channel_state_driver.rb || EXIT_CODE=1
24 time ruby src/ruby/end2end/channel_closing_driver.rb || EXIT_CODE=1
25 time ruby src/ruby/end2end/sig_int_during_channel_watch_driver.rb || EXIT_CODE=1
26 time ruby src/ruby/end2end/killed_client_thread_driver.rb || EXIT_CODE=1
27 time ruby src/ruby/end2end/forking_client_driver.rb || EXIT_CODE=1
28 time ruby src/ruby/end2end/grpc_class_init_driver.rb || EXIT_CODE=1
29 time ruby src/ruby/end2end/multiple_killed_watching_threads_driver.rb || EXIT_CODE=1
30 time ruby src/ruby/end2end/load_grpc_with_gc_stress_driver.rb || EXIT_CODE=1
31 time ruby src/ruby/end2end/client_memory_usage_driver.rb || EXIT_CODE=1
[all …]

12345678910>>...35