/external/libkmsxx/py/tests/ |
D | trans-test.py | 56 fb = fbs[0] 57 stepX = fb.width // 7 58 stepY = fb.height // 5; 60 pykms.draw_rect(fb, 0, 0, fb.width, fb.height, pykms.purple) 61 pykms.draw_rect(fb, stepX, stepY, 62 stepX, fb.height - (stepY * 2), 64 pykms.draw_rect(fb, stepX * 3, stepY, 65 stepX, fb.height - (stepY * 2), 67 pykms.draw_rect(fb, stepX * 5, stepY, 68 stepX, fb.height - (stepY * 2), [all …]
|
/external/mesa3d/src/gallium/frontends/wgl/ |
D | stw_framebuffer.c | 55 struct stw_framebuffer *fb; in stw_framebuffer_from_hwnd_locked() local 57 for (fb = stw_dev->fb_head; fb != NULL; fb = fb->next) in stw_framebuffer_from_hwnd_locked() 58 if (fb->hWnd == hwnd) { in stw_framebuffer_from_hwnd_locked() 59 stw_framebuffer_lock(fb); in stw_framebuffer_from_hwnd_locked() 60 assert(fb->mutex.RecursionCount == 1); in stw_framebuffer_from_hwnd_locked() 61 return fb; in stw_framebuffer_from_hwnd_locked() 76 stw_framebuffer_release_locked(struct stw_framebuffer *fb) in stw_framebuffer_release_locked() argument 80 assert(fb); in stw_framebuffer_release_locked() 81 assert(stw_own_mutex(&fb->mutex)); in stw_framebuffer_release_locked() 85 fb->refcnt--; in stw_framebuffer_release_locked() [all …]
|
D | stw_ext_pbuffer.c | 80 struct stw_framebuffer *fb; in wglCreatePbufferARB() local 251 fb = stw_framebuffer_create(hDC, iPixelFormat); in wglCreatePbufferARB() 252 if (!fb) { in wglCreatePbufferARB() 257 fb->bPbuffer = TRUE; in wglCreatePbufferARB() 260 fb->textureTarget = textureTarget; in wglCreatePbufferARB() 261 fb->textureFormat = textureFormat; in wglCreatePbufferARB() 262 fb->textureMipmap = textureMipmap; in wglCreatePbufferARB() 264 iDisplayablePixelFormat = fb->iDisplayablePixelFormat; in wglCreatePbufferARB() 266 stw_framebuffer_unlock(fb); in wglCreatePbufferARB() 275 return (HPBUFFERARB)fb; in wglCreatePbufferARB() [all …]
|
D | stw_framebuffer.h | 145 stw_framebuffer_reference_locked(struct stw_framebuffer *fb) in stw_framebuffer_reference_locked() argument 147 if (fb) { in stw_framebuffer_reference_locked() 148 assert(stw_own_mutex(&fb->mutex)); in stw_framebuffer_reference_locked() 149 fb->refcnt++; in stw_framebuffer_reference_locked() 155 stw_framebuffer_release_locked(struct stw_framebuffer *fb); 177 struct stw_framebuffer *fb, 181 stw_framebuffer_update(struct stw_framebuffer *fb); 185 stw_framebuffer_lock(struct stw_framebuffer *fb) in stw_framebuffer_lock() argument 187 assert(fb); in stw_framebuffer_lock() 188 EnterCriticalSection(&fb->mutex); in stw_framebuffer_lock() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | framebuffer.c | 57 compute_depth_max(struct gl_framebuffer *fb) in compute_depth_max() argument 59 if (fb->Visual.depthBits == 0) { in compute_depth_max() 64 fb->_DepthMax = (1 << 16) - 1; in compute_depth_max() 66 else if (fb->Visual.depthBits < 32) { in compute_depth_max() 67 fb->_DepthMax = (1 << fb->Visual.depthBits) - 1; in compute_depth_max() 73 fb->_DepthMax = 0xffffffff; in compute_depth_max() 75 fb->_DepthMaxF = (GLfloat) fb->_DepthMax; in compute_depth_max() 78 fb->_MRD = (GLfloat)1.0 / fb->_DepthMaxF; in compute_depth_max() 91 struct gl_framebuffer *fb = CALLOC_STRUCT(gl_framebuffer); in _mesa_create_framebuffer() local 93 if (fb) { in _mesa_create_framebuffer() [all …]
|
D | buffers.c | 58 const struct gl_framebuffer *fb) in supported_buffer_bitmask() argument 62 if (_mesa_is_user_fbo(fb)) { in supported_buffer_bitmask() 70 if (fb->Visual.stereoMode) { in supported_buffer_bitmask() 72 if (fb->Visual.doubleBufferMode) { in supported_buffer_bitmask() 76 else if (fb->Visual.doubleBufferMode) { in supported_buffer_bitmask() 80 for (i = 0; i < fb->Visual.numAuxBuffers; i++) { in supported_buffer_bitmask() 89 _mesa_back_to_front_if_single_buffered(const struct gl_framebuffer *fb, in _mesa_back_to_front_if_single_buffered() argument 114 if (!fb->Visual.doubleBufferMode) { in _mesa_back_to_front_if_single_buffered() 286 draw_buffer(struct gl_context *ctx, struct gl_framebuffer *fb, in draw_buffer() argument 302 = supported_buffer_bitmask(ctx, fb); in draw_buffer() [all …]
|
D | fbobject.c | 84 delete_dummy_framebuffer(struct gl_framebuffer *fb) in delete_dummy_framebuffer() argument 151 struct gl_framebuffer *fb; in _mesa_lookup_framebuffer() local 156 fb = (struct gl_framebuffer *) in _mesa_lookup_framebuffer() 159 return fb; in _mesa_lookup_framebuffer() 167 struct gl_framebuffer *fb; in _mesa_lookup_framebuffer_dsa() local 172 fb = _mesa_lookup_framebuffer(ctx, id); in _mesa_lookup_framebuffer_dsa() 175 if (fb == &DummyFramebuffer) { in _mesa_lookup_framebuffer_dsa() 176 fb = ctx->Driver.NewFramebuffer(ctx, id); in _mesa_lookup_framebuffer_dsa() 177 _mesa_HashInsert(ctx->Shared->FrameBuffers, id, fb, true); in _mesa_lookup_framebuffer_dsa() 180 else if (!fb) { in _mesa_lookup_framebuffer_dsa() [all …]
|
/external/mesa3d/src/freedreno/vulkan/ |
D | tu_util.c | 82 tu_tiling_config_update_tile_layout(struct tu_framebuffer *fb, in tu_tiling_config_update_tile_layout() argument 91 fb->tile_count = (VkExtent2D) { in tu_tiling_config_update_tile_layout() 95 fb->tile0 = (VkExtent2D) { in tu_tiling_config_update_tile_layout() 96 .width = util_align_npot(fb->width, tile_align_w), in tu_tiling_config_update_tile_layout() 97 .height = align(fb->height, tile_align_h), in tu_tiling_config_update_tile_layout() 102 fb->tile_count.width = 2; in tu_tiling_config_update_tile_layout() 103 fb->tile_count.height = 2; in tu_tiling_config_update_tile_layout() 104 fb->tile0.width = util_align_npot(DIV_ROUND_UP(fb->width, 2), tile_align_w); in tu_tiling_config_update_tile_layout() 105 fb->tile0.height = align(DIV_ROUND_UP(fb->height, 2), tile_align_h); in tu_tiling_config_update_tile_layout() 109 while (fb->tile0.width > max_tile_width) { in tu_tiling_config_update_tile_layout() [all …]
|
/external/libcups/scheduler/ |
D | type.c | 46 static int mime_check_rules(const char *filename, _mime_filebuf_t *fb, 591 _mime_filebuf_t fb; /* File buffer */ in mimeFileType() local 614 if ((fb.fp = cupsFileOpen(pathname, "r")) == NULL) in mimeFileType() 627 fb.offset = 0; in mimeFileType() 628 fb.length = (int)cupsFileRead(fb.fp, (char *)fb.buffer, MIME_MAX_BUFFER); in mimeFileType() 630 if (fb.length <= 0) in mimeFileType() 635 cupsFileClose(fb.fp); in mimeFileType() 663 if (mime_check_rules(base, &fb, type->rules)) in mimeFileType() 675 *compression = cupsFileCompression(fb.fp); in mimeFileType() 679 cupsFileClose(fb.fp); in mimeFileType() [all …]
|
/external/igt-gpu-tools/lib/ |
D | igt_fb.c | 539 static unsigned fb_plane_width(const struct igt_fb *fb, int plane) in fb_plane_width() argument 541 const struct format_desc_struct *format = lookup_drm_format(fb->drm_format); in fb_plane_width() 543 if (is_ccs_modifier(fb->modifier) && plane == 1) in fb_plane_width() 544 return DIV_ROUND_UP(fb->width, 1024) * 128; in fb_plane_width() 547 return fb->width; in fb_plane_width() 549 return DIV_ROUND_UP(fb->width, format->hsub); in fb_plane_width() 552 static unsigned fb_plane_bpp(const struct igt_fb *fb, int plane) in fb_plane_bpp() argument 554 const struct format_desc_struct *format = lookup_drm_format(fb->drm_format); in fb_plane_bpp() 556 if (is_ccs_modifier(fb->modifier) && plane == 1) in fb_plane_bpp() 562 static unsigned fb_plane_height(const struct igt_fb *fb, int plane) in fb_plane_height() argument [all …]
|
/external/fonttools/Tests/fontBuilder/ |
D | fontBuilder_test.py | 38 fb = FontBuilder(unitsPerEm, isTTF=isTTF) 39 fb.setupGlyphOrder([".notdef", ".null", "A", "a"]) 40 fb.setupCharacterMap({65: "A", 97: "a"}) 50 return fb, advanceWidths, nameStrings 53 def _setupFontBuilderFvar(fb): argument 54 assert 'name' in fb.font, 'Must run setupNameTable() first.' 63 fb.setupFvar(axes, instances) 65 return fb 68 def _setupFontBuilderCFF2(fb): argument 69 assert 'fvar' in fb.font, 'Must run _setupFontBuilderFvar() first.' [all …]
|
/external/libdrm/tests/kms/ |
D | libkms-test-framebuffer.c | 42 struct kms_framebuffer *fb; in kms_framebuffer_create() local 45 fb = calloc(1, sizeof(*fb)); in kms_framebuffer_create() 46 if (!fb) in kms_framebuffer_create() 49 fb->device = device; in kms_framebuffer_create() 50 fb->width = width; in kms_framebuffer_create() 51 fb->height = height; in kms_framebuffer_create() 52 fb->format = format; in kms_framebuffer_create() 66 free(fb); in kms_framebuffer_create() 72 free(fb); in kms_framebuffer_create() 76 fb->handle = args.handle; in kms_framebuffer_create() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_renderbuffer.c | 240 add_color_renderbuffers(struct gl_context *ctx, struct gl_framebuffer *fb, in add_color_renderbuffers() argument 267 assert(fb->Attachment[b].Renderbuffer == NULL); in add_color_renderbuffers() 278 _mesa_attach_and_own_rb(fb, b, rb); in add_color_renderbuffers() 294 add_depth_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb, in add_depth_renderbuffer() argument 305 assert(fb->Attachment[BUFFER_DEPTH].Renderbuffer == NULL); in add_depth_renderbuffer() 324 _mesa_attach_and_own_rb(fb, BUFFER_DEPTH, rb); in add_depth_renderbuffer() 339 add_stencil_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb, in add_stencil_renderbuffer() argument 350 assert(fb->Attachment[BUFFER_STENCIL].Renderbuffer == NULL); in add_stencil_renderbuffer() 362 _mesa_attach_and_own_rb(fb, BUFFER_STENCIL, rb); in add_stencil_renderbuffer() 370 struct gl_framebuffer *fb) in add_depth_stencil_renderbuffer() argument [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_framebuffer.c | 124 util_unreference_framebuffer_state(struct pipe_framebuffer_state *fb) in util_unreference_framebuffer_state() argument 128 for (i = 0; i < fb->nr_cbufs; i++) { in util_unreference_framebuffer_state() 129 pipe_surface_reference(&fb->cbufs[i], NULL); in util_unreference_framebuffer_state() 132 pipe_surface_reference(&fb->zsbuf, NULL); in util_unreference_framebuffer_state() 134 fb->samples = fb->layers = 0; in util_unreference_framebuffer_state() 135 fb->width = fb->height = 0; in util_unreference_framebuffer_state() 136 fb->nr_cbufs = 0; in util_unreference_framebuffer_state() 144 util_framebuffer_min_size(const struct pipe_framebuffer_state *fb, in util_framebuffer_min_size() argument 152 for (i = 0; i < fb->nr_cbufs; i++) { in util_framebuffer_min_size() 153 if (!fb->cbufs[i]) in util_framebuffer_min_size() [all …]
|
/external/igt-gpu-tools/tests/amdgpu/ |
D | amd_bypass.c | 100 static void draw_dp_test_pattern_color_ramp(igt_fb_t *fb) in draw_dp_test_pattern_color_ramp() argument 115 ptr_fb = igt_fb_map_buffer(fb->fd, fb); in draw_dp_test_pattern_color_ramp() 117 data = ptr_fb + fb->offsets[0]; in draw_dp_test_pattern_color_ramp() 119 switch (fb->drm_format) { in draw_dp_test_pattern_color_ramp() 121 for (y = 0; y < fb->height; ++y) { in draw_dp_test_pattern_color_ramp() 122 for (x = 0, val = 0; x < fb->width; ++x, ++val) { in draw_dp_test_pattern_color_ramp() 123 i = x * 4 + y * fb->strides[0]; in draw_dp_test_pattern_color_ramp() 151 igt_fb_unmap_buffer(fb, ptr_fb); in draw_dp_test_pattern_color_ramp() 158 static void draw_dp_test_pattern_vert_lines(igt_fb_t *fb) in draw_dp_test_pattern_vert_lines() argument 166 ptr_fb = igt_fb_map_buffer(fb->fd, fb); in draw_dp_test_pattern_vert_lines() [all …]
|
/external/igt-gpu-tools/tests/ |
D | kms_plane_scaling.c | 40 struct igt_fb fb[4]; member 80 for (i = 0; i < ARRAY_SIZE(data->fb); i++) in cleanup_fbs() 81 igt_remove_fb(data->drm_fd, &data->fb[i]); in cleanup_fbs() 109 &data->fb[0]); in prepare_crtc() 111 igt_plane_set_fb(plane, &data->fb[0]); in prepare_crtc() 127 igt_plane_set_fb(primary, &data->fb[0]); in prepare_crtc() 152 pixel_format, tiling, 0.0, 1.0, 0.0, &d->fb[0]); in check_scaling_pipe_plane_rot() 153 igt_plane_set_fb(plane, &d->fb[0]); in check_scaling_pipe_plane_rot() 156 igt_fb_set_position(&d->fb[0], plane, 0, 0); in check_scaling_pipe_plane_rot() 157 igt_fb_set_size(&d->fb[0], plane, width, height); in check_scaling_pipe_plane_rot() [all …]
|
D | kms_pwrite_crc.c | 39 struct igt_fb fb[2]; member 51 struct igt_fb *fb = &data->fb[1]; in test() local 61 DRM_FORMAT_XRGB8888, LOCAL_DRM_FORMAT_MOD_NONE, fb); in test() 67 fb->fb_id, 0, in test() 68 0, 0, fb->width, fb->height, in test() 69 0, 0, fb->width << 16, fb->height << 16); in test() 75 data->fb[0].fb_id, 0, in test() 76 0, 0, fb->width, fb->height, in test() 77 0, 0, fb->width << 16, fb->height << 16); in test() 80 caching = gem_get_caching(data->drm_fd, fb->gem_handle); in test() [all …]
|
D | kms_mmap_write_crc.c | 48 struct igt_fb fb[2]; member 60 static char *dmabuf_mmap_framebuffer(int drm_fd, struct igt_fb *fb) in dmabuf_mmap_framebuffer() argument 64 dma_buf_fd = prime_handle_to_fd_for_mmap(drm_fd, fb->gem_handle); in dmabuf_mmap_framebuffer() 67 ptr = mmap(NULL, fb->size, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0); in dmabuf_mmap_framebuffer() 77 struct igt_fb *fb = &data->fb[1]; in test() local 89 DRM_FORMAT_XRGB8888, LOCAL_DRM_FORMAT_MOD_NONE, fb); in test() 91 ptr = dmabuf_mmap_framebuffer(data->drm_fd, fb); in test() 93 cr = igt_get_cairo_ctx(data->drm_fd, fb); in test() 94 igt_paint_test_pattern(cr, fb->width, fb->height); in test() 95 igt_put_cairo_ctx(data->drm_fd, fb, cr); in test() [all …]
|
D | kms_draw_crc.c | 123 struct igt_fb fb; in get_method_crc() local 127 drm_format, tiling, &fb); in get_method_crc() 128 igt_draw_rect_fb(drm_fd, bufmgr, NULL, &fb, method, in get_method_crc() 129 0, 0, fb.width, fb.height, in get_method_crc() 132 igt_draw_rect_fb(drm_fd, bufmgr, NULL, &fb, method, in get_method_crc() 133 fb.width / 4, fb.height / 4, in get_method_crc() 134 fb.width / 2, fb.height / 2, in get_method_crc() 136 igt_draw_rect_fb(drm_fd, bufmgr, NULL, &fb, method, in get_method_crc() 137 fb.width / 8, fb.height / 8, in get_method_crc() 138 fb.width / 4, fb.height / 4, in get_method_crc() [all …]
|
D | kms_busy.c | 33 set_fb_on_crtc(igt_display_t *dpy, int pipe, struct igt_fb *fb) in set_fb_on_crtc() argument 46 LOCAL_I915_FORMAT_MOD_X_TILED, fb); in set_fb_on_crtc() 49 igt_plane_set_fb(primary, fb); in set_fb_on_crtc() 72 struct igt_fb *fb, unsigned ring, in flip_to_fb() argument 81 .dependency = fb->gem_handle); in flip_to_fb() 96 igt_assert(gem_bo_busy(dpy->drm_fd, fb->gem_handle)); in flip_to_fb() 99 dpy->pipes[pipe].crtc_id, fb->fb_id, in flip_to_fb() 100 DRM_MODE_PAGE_FLIP_EVENT, fb)); in flip_to_fb() 102 igt_plane_set_fb(igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY), fb); in flip_to_fb() 112 name, gem_bo_busy(dpy->drm_fd, fb->gem_handle)); in flip_to_fb() [all …]
|
/external/libkmsxx/kms++util/src/ |
D | testpat.cpp | 18 static RGB get_test_pattern_pixel(IFramebuffer& fb, unsigned x, unsigned y) in get_test_pattern_pixel() argument 20 const unsigned w = fb.width(); in get_test_pattern_pixel() 21 const unsigned h = fb.height(); in get_test_pattern_pixel() 102 static void draw_test_pattern_part(IFramebuffer& fb, unsigned start_y, unsigned end_y, YUVType yuvt) in draw_test_pattern_part() argument 105 unsigned w = fb.width(); in draw_test_pattern_part() 107 const PixelFormatInfo& format_info = get_pixel_format_info(fb.format()); in draw_test_pattern_part() 114 RGB pixel = get_test_pattern_pixel(fb, x, y); in draw_test_pattern_part() 115 draw_rgb_pixel(fb, x, y, pixel); in draw_test_pattern_part() 125 RGB pixel = get_test_pattern_pixel(fb, x, y); in draw_test_pattern_part() 126 draw_yuv444_pixel(fb, x, y, pixel.yuv(yuvt)); in draw_test_pattern_part() [all …]
|
/external/libkmsxx/utils/ |
D | omap-wbcap.cpp | 33 for (auto fb : s_free_fbs) { in WBStreamer() local 34 m_capdev.queue(fb); in WBStreamer() 35 s_wb_fbs.push_back(fb); in WBStreamer() 62 auto fb = m_capdev.dequeue(); in Dequeue() local 64 auto iter = find(s_wb_fbs.begin(), s_wb_fbs.end(), fb); in Dequeue() 67 s_ready_fbs.insert(s_ready_fbs.begin(), fb); in Dequeue() 69 return fb; in Dequeue() 77 auto fb = s_free_fbs.back(); in Queue() local 80 m_capdev.queue(fb); in Queue() 82 s_wb_fbs.insert(s_wb_fbs.begin(), fb); in Queue() [all …]
|
/external/mesa3d/src/gallium/drivers/swr/ |
D | swr_clear.cpp | 36 struct pipe_framebuffer_state *fb = &ctx->framebuffer; in swr_clear() local 46 if (buffers & PIPE_CLEAR_COLOR && fb->nr_cbufs) { in swr_clear() 47 for (unsigned i = 0; i < fb->nr_cbufs; ++i) in swr_clear() 48 if (fb->cbufs[i] && (buffers & (PIPE_CLEAR_COLOR0 << i))) { in swr_clear() 50 layers = std::max(layers, fb->cbufs[i]->u.tex.last_layer - in swr_clear() 51 fb->cbufs[i]->u.tex.first_layer + 1u); in swr_clear() 55 if (buffers & PIPE_CLEAR_DEPTH && fb->zsbuf) { in swr_clear() 57 layers = std::max(layers, fb->zsbuf->u.tex.last_layer - in swr_clear() 58 fb->zsbuf->u.tex.first_layer + 1u); in swr_clear() 61 if (buffers & PIPE_CLEAR_STENCIL && fb->zsbuf) { in swr_clear() [all …]
|
/external/flatbuffers/tests/namespace_test/ |
D | namespace_test1_namespace_a.namespace_b_generated.dart | 7 import 'package:flat_buffers/flat_buffers.dart' as fb; 31 static const fb.Reader<EnumInNestedNS> reader = const _EnumInNestedNSReader(); 39 class _EnumInNestedNSReader extends fb.Reader<EnumInNestedNS> { 46 EnumInNestedNS read(fb.BufferContext bc, int offset) => 47 new EnumInNestedNS.fromValue(const fb.Int8Reader().read(bc, offset)); 53 fb.BufferContext rootRef = new fb.BufferContext.fromBytes(bytes); 57 static const fb.Reader<TableInNestedNS> reader = const _TableInNestedNSReader(); 59 final fb.BufferContext _bc; 62 int get foo => const fb.Int32Reader().vTableGet(_bc, _bcOffset, 4, 0); 70 class _TableInNestedNSReader extends fb.TableReader<TableInNestedNS> { [all …]
|
/external/flatbuffers/dart/test/ |
D | monster_test_my_game.example_generated.dart | 7 import 'package:flat_buffers/flat_buffers.dart' as fb; 39 static const fb.Reader<Color> reader = const _ColorReader(); 47 class _ColorReader extends fb.Reader<Color> { 54 Color read(fb.BufferContext bc, int offset) => 55 new Color.fromValue(const fb.Uint8Reader().read(bc, offset)); 80 static const fb.Reader<Race> reader = const _RaceReader(); 88 class _RaceReader extends fb.Reader<Race> { 95 Race read(fb.BufferContext bc, int offset) => 96 new Race.fromValue(const fb.Int8Reader().read(bc, offset)); 121 static const fb.Reader<AnyTypeId> reader = const _AnyTypeIdReader(); [all …]
|