/third_party/toybox/toys/other/ |
H A D | bzcat.c | 110 static unsigned int get_bits(struct bunzip_data *bd, char bits_wanted) in get_bits() argument 116 while (bd->inbufBitCount < bits_wanted) { in get_bits() 119 if (bd->inbufPos == bd->inbufCount) { in get_bits() 120 if (0 >= (bd->inbufCount = read(bd->in_fd, bd->inbuf, IOBUF_SIZE))) in get_bits() 122 bd->inbufPos = 0; in get_bits() 126 if (bd->inbufBitCount>=24) { in get_bits() 127 bits = bd in get_bits() 161 read_block_header(struct bunzip_data *bd, struct bwdata *bw) read_block_header() argument 319 read_huffman_data(struct bunzip_data *bd, struct bwdata *bw) read_huffman_data() argument 443 flush_bunzip_outbuf(struct bunzip_data *bd, int out_fd) flush_bunzip_outbuf() argument 452 burrows_wheeler_prep(struct bunzip_data *bd, struct bwdata *bw) burrows_wheeler_prep() argument 493 read_bunzip_data(struct bunzip_data *bd) read_bunzip_data() argument 512 write_bunzip_data(struct bunzip_data *bd, struct bwdata *bw, int out_fd, char *outbuf, int len) write_bunzip_data() argument 607 struct bunzip_data *bd; start_bunzip() local 645 struct bunzip_data *bd; bunzipStream() local [all...] |
/third_party/littlefs/bd/ |
H A D | lfs_emubd.c | 14 #include "bd/lfs_emubd.h" 51 lfs_emubd_t *bd = cfg->context; in lfs_emubd_mutblock() local 60 sizeof(lfs_emubd_block_t) + bd->cfg->erase_size); in lfs_emubd_mutblock() 66 sizeof(lfs_emubd_block_t) + bd->cfg->erase_size); in lfs_emubd_mutblock() 76 sizeof(lfs_emubd_block_t) + bd->cfg->erase_size); in lfs_emubd_mutblock() 86 (bd->cfg->erase_value != -1) ? bd->cfg->erase_value : 0, in lfs_emubd_mutblock() 87 bd->cfg->erase_size); in lfs_emubd_mutblock() 116 lfs_emubd_t *bd = cfg->context; in lfs_emubd_create() local 117 bd in lfs_emubd_create() 189 lfs_emubd_t *bd = cfg->context; lfs_emubd_destroy() local 220 lfs_emubd_t *bd = cfg->context; lfs_emubd_read() local 270 lfs_emubd_t *bd = cfg->context; lfs_emubd_prog() local 359 lfs_emubd_t *bd = cfg->context; lfs_emubd_erase() local 456 lfs_emubd_t *bd = cfg->context; lfs_emubd_rawcrc() local 510 lfs_emubd_t *bd = cfg->context; lfs_emubd_readed() local 517 lfs_emubd_t *bd = cfg->context; lfs_emubd_proged() local 524 lfs_emubd_t *bd = cfg->context; lfs_emubd_erased() local 531 lfs_emubd_t *bd = cfg->context; lfs_emubd_setreaded() local 539 lfs_emubd_t *bd = cfg->context; lfs_emubd_setproged() local 547 lfs_emubd_t *bd = cfg->context; lfs_emubd_seterased() local 556 lfs_emubd_t *bd = cfg->context; lfs_emubd_wear() local 578 lfs_emubd_t *bd = cfg->context; lfs_emubd_setwear() local 598 lfs_emubd_t *bd = cfg->context; lfs_emubd_powercycles() local 608 lfs_emubd_t *bd = cfg->context; lfs_emubd_setpowercycles() local 618 lfs_emubd_t *bd = cfg->context; lfs_emubd_copy() local [all...] |
H A D | lfs_testbd.c | 9 #include "bd/lfs_testbd.h" 31 lfs_testbd_t *bd = cfg->context; in lfs_testbd_createcfg() local 32 bd->cfg = bdcfg; in lfs_testbd_createcfg() 35 bd->persist = path; in lfs_testbd_createcfg() 36 bd->power_cycles = bd->cfg->power_cycles; in lfs_testbd_createcfg() 38 if (bd->cfg->erase_cycles) { in lfs_testbd_createcfg() 39 if (bd->cfg->wear_buffer) { in lfs_testbd_createcfg() 40 bd->wear = bd in lfs_testbd_createcfg() 90 lfs_testbd_t *bd = cfg->context; lfs_testbd_destroy() local 109 lfs_testbd_t *bd = cfg->context; lfs_testbd_rawread() local 119 lfs_testbd_t *bd = cfg->context; lfs_testbd_rawprog() local 129 lfs_testbd_t *bd = cfg->context; lfs_testbd_rawerase() local 138 lfs_testbd_t *bd = cfg->context; lfs_testbd_rawsync() local 152 lfs_testbd_t *bd = cfg->context; lfs_testbd_read() local 177 lfs_testbd_t *bd = cfg->context; lfs_testbd_prog() local 223 lfs_testbd_t *bd = cfg->context; lfs_testbd_erase() local 280 lfs_testbd_t *bd = cfg->context; lfs_testbd_getwear() local 293 lfs_testbd_t *bd = cfg->context; lfs_testbd_setwear() local [all...] |
H A D | lfs_rambd.c | 8 #include "bd/lfs_rambd.h" 23 lfs_rambd_t *bd = cfg->context; in lfs_rambd_create() local 24 bd->cfg = bdcfg; in lfs_rambd_create() 27 if (bd->cfg->buffer) { in lfs_rambd_create() 28 bd->buffer = bd->cfg->buffer; in lfs_rambd_create() 30 bd->buffer = lfs_malloc(bd->cfg->erase_size * bd->cfg->erase_count); in lfs_rambd_create() 31 if (!bd in lfs_rambd_create() 47 lfs_rambd_t *bd = cfg->context; lfs_rambd_destroy() local 60 lfs_rambd_t *bd = cfg->context; lfs_rambd_read() local 80 lfs_rambd_t *bd = cfg->context; lfs_rambd_prog() local 98 lfs_rambd_t *bd = cfg->context; lfs_rambd_erase() local [all...] |
H A D | lfs_filebd.c | 8 #include "bd/lfs_filebd.h" 32 lfs_filebd_t *bd = cfg->context; in lfs_filebd_create() local 33 bd->cfg = bdcfg; in lfs_filebd_create() 37 bd->fd = open(path, O_RDWR | O_CREAT | O_BINARY, 0666); in lfs_filebd_create() 39 bd->fd = open(path, O_RDWR | O_CREAT, 0666); in lfs_filebd_create() 42 if (bd->fd < 0) { in lfs_filebd_create() 54 lfs_filebd_t *bd = cfg->context; in lfs_filebd_destroy() local 55 int err = close(bd->fd); in lfs_filebd_destroy() 70 lfs_filebd_t *bd = cfg->context; in lfs_filebd_read() local 73 LFS_ASSERT(block < bd in lfs_filebd_read() 106 lfs_filebd_t *bd = cfg->context; lfs_filebd_prog() local 137 lfs_filebd_t *bd = cfg->context; lfs_filebd_erase() local 153 lfs_filebd_t *bd = cfg->context; lfs_filebd_sync() local [all...] |
/third_party/skia/third_party/externals/imgui/backends/ |
H A D | imgui_impl_dx9.cpp | 15 // 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). 76 ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); in ImGui_ImplDX9_SetupRenderState() local 85 bd->pd3dDevice->SetViewport(&vp); in ImGui_ImplDX9_SetupRenderState() 88 bd->pd3dDevice->SetPixelShader(NULL); in ImGui_ImplDX9_SetupRenderState() 89 bd->pd3dDevice->SetVertexShader(NULL); in ImGui_ImplDX9_SetupRenderState() 90 bd->pd3dDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID); in ImGui_ImplDX9_SetupRenderState() 91 bd->pd3dDevice->SetRenderState(D3DRS_SHADEMODE, D3DSHADE_GOURAUD); in ImGui_ImplDX9_SetupRenderState() 92 bd->pd3dDevice->SetRenderState(D3DRS_ZWRITEENABLE, FALSE); in ImGui_ImplDX9_SetupRenderState() 93 bd->pd3dDevice->SetRenderState(D3DRS_ALPHATESTENABLE, FALSE); in ImGui_ImplDX9_SetupRenderState() 94 bd in ImGui_ImplDX9_SetupRenderState() 285 ImGui_ImplDX9_Data* bd = IM_NEW(ImGui_ImplDX9_Data)(); ImGui_ImplDX9_Init() local 298 ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); ImGui_ImplDX9_Shutdown() local 313 ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); ImGui_ImplDX9_CreateFontsTexture() local 353 ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); ImGui_ImplDX9_CreateDeviceObjects() local 363 ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); ImGui_ImplDX9_InvalidateDeviceObjects() local 373 ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); ImGui_ImplDX9_NewFrame() local [all...] |
H A D | imgui_impl_glfw.cpp | 21 // 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). 120 ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); in ImGui_ImplGlfw_MouseButtonCallback() local 121 if (bd->PrevUserCallbackMousebutton != NULL && window == bd->Window) in ImGui_ImplGlfw_MouseButtonCallback() 122 bd->PrevUserCallbackMousebutton(window, button, action, mods); in ImGui_ImplGlfw_MouseButtonCallback() 124 if (action == GLFW_PRESS && button >= 0 && button < IM_ARRAYSIZE(bd->MouseJustPressed)) in ImGui_ImplGlfw_MouseButtonCallback() 125 bd->MouseJustPressed[button] = true; in ImGui_ImplGlfw_MouseButtonCallback() 130 ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); in ImGui_ImplGlfw_ScrollCallback() local 131 if (bd->PrevUserCallbackScroll != NULL && window == bd in ImGui_ImplGlfw_ScrollCallback() 141 ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); ImGui_ImplGlfw_KeyCallback() local 167 ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); ImGui_ImplGlfw_WindowFocusCallback() local 177 ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); ImGui_ImplGlfw_CursorEnterCallback() local 189 ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); ImGui_ImplGlfw_CharCallback() local 208 ImGui_ImplGlfw_Data* bd = IM_NEW(ImGui_ImplGlfw_Data)(); ImGui_ImplGlfw_Init() local 311 ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); ImGui_ImplGlfw_Shutdown() local 336 ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); ImGui_ImplGlfw_UpdateMousePosAndButtons() local 373 ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); ImGui_ImplGlfw_UpdateMouseCursor() local 432 ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); ImGui_ImplGlfw_NewFrame() local [all...] |
H A D | imgui_impl_dx10.cpp | 15 // 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). 80 ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); in ImGui_ImplDX10_SetupRenderState() local 95 ctx->IASetInputLayout(bd->pInputLayout); in ImGui_ImplDX10_SetupRenderState() 96 ctx->IASetVertexBuffers(0, 1, &bd->pVB, &stride, &offset); in ImGui_ImplDX10_SetupRenderState() 97 ctx->IASetIndexBuffer(bd->pIB, sizeof(ImDrawIdx) == 2 ? DXGI_FORMAT_R16_UINT : DXGI_FORMAT_R32_UINT, 0); in ImGui_ImplDX10_SetupRenderState() 99 ctx->VSSetShader(bd->pVertexShader); in ImGui_ImplDX10_SetupRenderState() 100 ctx->VSSetConstantBuffers(0, 1, &bd->pVertexConstantBuffer); in ImGui_ImplDX10_SetupRenderState() 101 ctx->PSSetShader(bd->pPixelShader); in ImGui_ImplDX10_SetupRenderState() 102 ctx->PSSetSamplers(0, 1, &bd->pFontSampler); in ImGui_ImplDX10_SetupRenderState() 107 ctx->OMSetBlendState(bd in ImGui_ImplDX10_SetupRenderState() 297 ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); ImGui_ImplDX10_CreateFontsTexture() local 357 ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); ImGui_ImplDX10_CreateDeviceObjects() local 511 ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); ImGui_ImplDX10_InvalidateDeviceObjects() local 534 ImGui_ImplDX10_Data* bd = IM_NEW(ImGui_ImplDX10_Data)(); ImGui_ImplDX10_Init() local 559 ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); ImGui_ImplDX10_Shutdown() local 573 ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); ImGui_ImplDX10_NewFrame() local [all...] |
H A D | imgui_impl_dx11.cpp | 15 // 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). 81 ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); in ImGui_ImplDX11_SetupRenderState() local 96 ctx->IASetInputLayout(bd->pInputLayout); in ImGui_ImplDX11_SetupRenderState() 97 ctx->IASetVertexBuffers(0, 1, &bd->pVB, &stride, &offset); in ImGui_ImplDX11_SetupRenderState() 98 ctx->IASetIndexBuffer(bd->pIB, sizeof(ImDrawIdx) == 2 ? DXGI_FORMAT_R16_UINT : DXGI_FORMAT_R32_UINT, 0); in ImGui_ImplDX11_SetupRenderState() 100 ctx->VSSetShader(bd->pVertexShader, NULL, 0); in ImGui_ImplDX11_SetupRenderState() 101 ctx->VSSetConstantBuffers(0, 1, &bd->pVertexConstantBuffer); in ImGui_ImplDX11_SetupRenderState() 102 ctx->PSSetShader(bd->pPixelShader, NULL, 0); in ImGui_ImplDX11_SetupRenderState() 103 ctx->PSSetSamplers(0, 1, &bd->pFontSampler); in ImGui_ImplDX11_SetupRenderState() 111 ctx->OMSetBlendState(bd in ImGui_ImplDX11_SetupRenderState() 310 ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); ImGui_ImplDX11_CreateFontsTexture() local 369 ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); ImGui_ImplDX11_CreateDeviceObjects() local 523 ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); ImGui_ImplDX11_InvalidateDeviceObjects() local 546 ImGui_ImplDX11_Data* bd = IM_NEW(ImGui_ImplDX11_Data)(); ImGui_ImplDX11_Init() local 574 ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); ImGui_ImplDX11_Shutdown() local 589 ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); ImGui_ImplDX11_NewFrame() local [all...] |
H A D | imgui_impl_opengl3.cpp | 19 // 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). 205 ImGui_ImplOpenGL3_Data* bd = IM_NEW(ImGui_ImplOpenGL3_Data)(); in ImGui_ImplOpenGL3_Init() local 206 io.BackendRendererUserData = (void*)bd; in ImGui_ImplOpenGL3_Init() 221 bd->GlVersion = (GLuint)(major * 100 + minor * 10); in ImGui_ImplOpenGL3_Init() 223 bd->GlVersion = 200; // GLES 2 in ImGui_ImplOpenGL3_Init() 227 if (bd->GlVersion >= 320) in ImGui_ImplOpenGL3_Init() 245 IM_ASSERT((int)strlen(glsl_version) + 2 < IM_ARRAYSIZE(bd->GlslVersionString)); in ImGui_ImplOpenGL3_Init() 246 strcpy(bd->GlslVersionString, glsl_version); in ImGui_ImplOpenGL3_Init() 247 strcat(bd->GlslVersionString, "\n"); in ImGui_ImplOpenGL3_Init() 255 bd in ImGui_ImplOpenGL3_Init() 272 ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); ImGui_ImplOpenGL3_Shutdown() local 284 ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); ImGui_ImplOpenGL3_NewFrame() local 293 ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); ImGui_ImplOpenGL3_SetupRenderState() local 505 ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); ImGui_ImplOpenGL3_CreateFontsTexture() local 536 ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); ImGui_ImplOpenGL3_DestroyFontsTexture() local 548 ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); CheckShader() local 567 ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); CheckProgram() local 585 ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); ImGui_ImplOpenGL3_CreateDeviceObjects() local 773 ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); ImGui_ImplOpenGL3_DestroyDeviceObjects() local [all...] |
H A D | imgui_impl_sdlrenderer.cpp | 58 ImGui_ImplSDLRenderer_Data* bd = IM_NEW(ImGui_ImplSDLRenderer_Data)(); in ImGui_ImplSDLRenderer_Init() local 59 io.BackendRendererUserData = (void*)bd; in ImGui_ImplSDLRenderer_Init() 62 bd->SDLRenderer = renderer; in ImGui_ImplSDLRenderer_Init() 69 ImGui_ImplSDLRenderer_Data* bd = ImGui_ImplSDLRenderer_GetBackendData(); in ImGui_ImplSDLRenderer_Shutdown() local 70 IM_ASSERT(bd != NULL && "No renderer backend to shutdown, or already shutdown?"); in ImGui_ImplSDLRenderer_Shutdown() 77 IM_DELETE(bd); in ImGui_ImplSDLRenderer_Shutdown() 82 ImGui_ImplSDLRenderer_Data* bd = ImGui_ImplSDLRenderer_GetBackendData(); in ImGui_ImplSDLRenderer_SetupRenderState() local 86 SDL_RenderSetViewport(bd->SDLRenderer, NULL); in ImGui_ImplSDLRenderer_SetupRenderState() 87 SDL_RenderSetClipRect(bd->SDLRenderer, NULL); in ImGui_ImplSDLRenderer_SetupRenderState() 92 ImGui_ImplSDLRenderer_Data* bd in ImGui_ImplSDLRenderer_NewFrame() local 101 ImGui_ImplSDLRenderer_Data* bd = ImGui_ImplSDLRenderer_GetBackendData(); ImGui_ImplSDLRenderer_RenderDrawData() local 195 ImGui_ImplSDLRenderer_Data* bd = ImGui_ImplSDLRenderer_GetBackendData(); ImGui_ImplSDLRenderer_CreateFontsTexture() local 221 ImGui_ImplSDLRenderer_Data* bd = ImGui_ImplSDLRenderer_GetBackendData(); ImGui_ImplSDLRenderer_DestroyFontsTexture() local [all...] |
H A D | imgui_impl_allegro5.cpp | 20 // 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). 111 ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); in ImGui_ImplAllegro5_RenderDrawData() 183 al_draw_prim(&vertices[0], bd->VertexDecl, texture, idx_offset, idx_offset + pcmd->ElemCount, ALLEGRO_PRIM_TRIANGLE_LIST); in ImGui_ImplAllegro5_RenderDrawData() 199 ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); in ImGui_ImplAllegro5_CreateDeviceObjects() local 233 bd->Texture = cloned_img; in ImGui_ImplAllegro5_CreateDeviceObjects() 238 bd->MouseCursorInvisible = al_create_mouse_cursor(mouse_cursor, 0, 0); in ImGui_ImplAllegro5_CreateDeviceObjects() 247 ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); in ImGui_ImplAllegro5_InvalidateDeviceObjects() local 248 if (bd->Texture) in ImGui_ImplAllegro5_InvalidateDeviceObjects() 251 al_destroy_bitmap(bd->Texture); in ImGui_ImplAllegro5_InvalidateDeviceObjects() 252 bd in ImGui_ImplAllegro5_InvalidateDeviceObjects() 264 ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); ImGui_ImplAllegro5_GetClipboardText() local 273 ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); ImGui_ImplAllegro5_SetClipboardText() local 284 ImGui_ImplAllegro5_Data* bd = IM_NEW(ImGui_ImplAllegro5_Data)(); ImGui_ImplAllegro5_Init() local 338 ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); ImGui_ImplAllegro5_Shutdown() local 360 ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); ImGui_ImplAllegro5_ProcessEvent() local 450 ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); ImGui_ImplAllegro5_NewFrame() local [all...] |
H A D | imgui_impl_sdl.cpp | 24 // 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). 96 ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); in ImGui_ImplSDL2_GetClipboardText() local 97 if (bd->ClipboardTextData) in ImGui_ImplSDL2_GetClipboardText() 98 SDL_free(bd->ClipboardTextData); in ImGui_ImplSDL2_GetClipboardText() 99 bd->ClipboardTextData = SDL_GetClipboardText(); in ImGui_ImplSDL2_GetClipboardText() 100 return bd->ClipboardTextData; in ImGui_ImplSDL2_GetClipboardText() 116 ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); in ImGui_ImplSDL2_ProcessEvent() local 130 if (event->button.button == SDL_BUTTON_LEFT) { bd->MousePressed[0] = true; } in ImGui_ImplSDL2_ProcessEvent() 131 if (event->button.button == SDL_BUTTON_RIGHT) { bd->MousePressed[1] = true; } in ImGui_ImplSDL2_ProcessEvent() 132 if (event->button.button == SDL_BUTTON_MIDDLE) { bd in ImGui_ImplSDL2_ProcessEvent() 185 ImGui_ImplSDL2_Data* bd = IM_NEW(ImGui_ImplSDL2_Data)(); ImGui_ImplSDL2_Init() local 288 ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); ImGui_ImplSDL2_Shutdown() local 304 ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); ImGui_ImplSDL2_UpdateMousePosAndButtons() local 423 ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); ImGui_ImplSDL2_NewFrame() local [all...] |
H A D | imgui_impl_vulkan.cpp | 26 // 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). 320 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); in ImGui_ImplVulkan_MemoryType() local 321 ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; in ImGui_ImplVulkan_MemoryType() 332 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); in check_vk_result() local 333 if (!bd) in check_vk_result() 335 ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; in check_vk_result() 342 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); in CreateOrResizeBuffer() local 343 ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; in CreateOrResizeBuffer() 350 VkDeviceSize vertex_buffer_size_aligned = ((new_size - 1) / bd->BufferMemoryAlignment + 1) * bd in CreateOrResizeBuffer() 376 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_SetupRenderState() local 545 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_CreateFontsTexture() local 698 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_CreateShaderModules() local 721 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_CreateFontSampler() local 742 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_CreateDescriptorSetLayout() local 763 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_CreatePipelineLayout() local 786 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_CreatePipeline() local 892 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_CreateDeviceObjects() local 965 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_DestroyFontUploadObjects() local 981 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_DestroyDeviceObjects() local 1026 ImGui_ImplVulkan_Data* bd = IM_NEW(ImGui_ImplVulkan_Data)(); ImGui_ImplVulkan_Init() local 1051 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_Shutdown() local 1063 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_NewFrame() local 1070 ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); ImGui_ImplVulkan_SetMinImageCount() local [all...] |
H A D | imgui_impl_win32.cpp | 39 // 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). 112 ImGui_ImplWin32_Data* bd = IM_NEW(ImGui_ImplWin32_Data)(); in ImGui_ImplWin32_Init() 113 io.BackendPlatformUserData = (void*)bd; in ImGui_ImplWin32_Init() 118 bd->hWnd = (HWND)hwnd; in ImGui_ImplWin32_Init() 119 bd->WantUpdateHasGamepad = true; in ImGui_ImplWin32_Init() 120 bd->TicksPerSecond = perf_frequency; in ImGui_ImplWin32_Init() 121 bd->Time = perf_counter; in ImGui_ImplWin32_Init() 122 bd->LastMouseCursor = ImGuiMouseCursor_COUNT; in ImGui_ImplWin32_Init() 163 bd->XInputDLL = dll; in ImGui_ImplWin32_Init() 164 bd in ImGui_ImplWin32_Init() 175 ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); ImGui_ImplWin32_Shutdown() local 225 ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); ImGui_ImplWin32_UpdateMousePos() local 262 ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); ImGui_ImplWin32_UpdateGamepads() local 310 ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); ImGui_ImplWin32_NewFrame() local 365 ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); ImGui_ImplWin32_WndProcHandler() local [all...] |
H A D | imgui_impl_dx12.cpp | 23 // 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). 92 ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); in ImGui_ImplDX12_SetupRenderState() local 138 ctx->SetPipelineState(bd->pPipelineState); in ImGui_ImplDX12_SetupRenderState() 139 ctx->SetGraphicsRootSignature(bd->pRootSignature); in ImGui_ImplDX12_SetupRenderState() 164 ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); in ImGui_ImplDX12_RenderDrawData() 165 bd->frameIndex = bd->frameIndex + 1; in ImGui_ImplDX12_RenderDrawData() 166 ImGui_ImplDX12_RenderBuffers* fr = &bd->pFrameResources[bd->frameIndex % bd in ImGui_ImplDX12_RenderDrawData() 286 ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); ImGui_ImplDX12_CreateFontsTexture() local 441 ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); ImGui_ImplDX12_CreateDeviceObjects() local 674 ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); ImGui_ImplDX12_InvalidateDeviceObjects() local 699 ImGui_ImplDX12_Data* bd = IM_NEW(ImGui_ImplDX12_Data)(); ImGui_ImplDX12_Init() local 728 ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); ImGui_ImplDX12_Shutdown() local 741 ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); ImGui_ImplDX12_NewFrame() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | bluray.c | 36 BLURAY *bd; member 63 BlurayContext *bd = h->priv_data; in check_disc_info() local 66 disc_info = bd_get_disc_info(bd->bd); in check_disc_info() 106 BlurayContext *bd = h->priv_data; in bluray_close() local 107 if (bd->bd) { in bluray_close() 108 bd_close(bd->bd); in bluray_close() 116 BlurayContext *bd in bluray_open() local 192 BlurayContext *bd = h->priv_data; bluray_read() local 206 BlurayContext *bd = h->priv_data; bluray_seek() local [all...] |
/third_party/exfatprogs/mkfs/ |
H A D | mkfs.c | 43 struct exfat_blk_dev *bd, struct exfat_user_input *ui) in exfat_setup_boot_sector() 57 pbsx->vol_offset = cpu_to_le64(bd->offset / bd->sector_size); in exfat_setup_boot_sector() 58 pbsx->vol_length = cpu_to_le64(bd->size / bd->sector_size); in exfat_setup_boot_sector() 59 pbsx->fat_offset = cpu_to_le32(finfo.fat_byte_off / bd->sector_size); in exfat_setup_boot_sector() 60 pbsx->fat_length = cpu_to_le32(finfo.fat_byte_len / bd->sector_size); in exfat_setup_boot_sector() 61 pbsx->clu_offset = cpu_to_le32(finfo.clu_byte_off / bd->sector_size); in exfat_setup_boot_sector() 66 pbsx->sect_size_bits = bd->sector_size_bits; in exfat_setup_boot_sector() 68 /* Compute base 2 logarithm of ui->cluster_size / bd in exfat_setup_boot_sector() 42 exfat_setup_boot_sector(struct pbr *ppbr, struct exfat_blk_dev *bd, struct exfat_user_input *ui) exfat_setup_boot_sector() argument 102 exfat_write_boot_sector(struct exfat_blk_dev *bd, struct exfat_user_input *ui, unsigned int *checksum, bool is_backup) exfat_write_boot_sector() argument 138 exfat_write_extended_boot_sectors(struct exfat_blk_dev *bd, unsigned int *checksum, bool is_backup) exfat_write_extended_boot_sectors() argument 173 exfat_write_oem_sector(struct exfat_blk_dev *bd, unsigned int *checksum, bool is_backup) exfat_write_oem_sector() argument 215 exfat_create_volume_boot_record(struct exfat_blk_dev *bd, struct exfat_user_input *ui, bool is_backup) exfat_create_volume_boot_record() argument 271 exfat_create_fat_table(struct exfat_blk_dev *bd, struct exfat_user_input *ui) exfat_create_fat_table() argument 312 exfat_create_bitmap(struct exfat_blk_dev *bd) exfat_create_bitmap() argument 337 exfat_create_root_dir(struct exfat_blk_dev *bd, struct exfat_user_input *ui) exfat_create_root_dir() argument 436 exfat_build_mkfs_info(struct exfat_blk_dev *bd, struct exfat_user_input *ui) exfat_build_mkfs_info() argument 492 exfat_zero_out_disk(struct exfat_blk_dev *bd, struct exfat_user_input *ui) exfat_zero_out_disk() argument 529 make_exfat(struct exfat_blk_dev *bd, struct exfat_user_input *ui) make_exfat() argument 605 struct exfat_blk_dev bd; main() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | alsdec.c | 594 static int read_const_block_data(ALSDecContext *ctx, ALSBlockData *bd) in read_const_block_data() argument 600 if (bd->block_length <= 0) in read_const_block_data() 603 *bd->raw_samples = 0; in read_const_block_data() 604 *bd->const_block = get_bits1(gb); // 1 = constant value, 0 = zero block (silence) in read_const_block_data() 605 bd->js_blocks = get_bits1(gb); in read_const_block_data() 610 if (*bd->const_block) { in read_const_block_data() 612 *bd->raw_samples = get_sbits_long(gb, const_val_bits); in read_const_block_data() 616 *bd->const_block = 1; in read_const_block_data() 624 static void decode_const_block_data(ALSDecContext *ctx, ALSBlockData *bd) in decode_const_block_data() argument 626 int smp = bd in decode_const_block_data() 638 read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) read_var_block_data() argument 913 decode_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) decode_var_block_data() argument 1022 read_block(ALSDecContext *ctx, ALSBlockData *bd) read_block() argument 1049 decode_block(ALSDecContext *ctx, ALSBlockData *bd) decode_block() argument 1075 read_decode_block(ALSDecContext *ctx, ALSBlockData *bd) read_decode_block() argument 1110 ALSBlockData bd = { 0 }; decode_blocks_ind() local 1152 ALSBlockData bd[2] = { { 0 } }; decode_blocks() local 1284 revert_channel_correlation(ALSDecContext *ctx, ALSBlockData *bd, ALSChannelData **cd, int *reverted, unsigned int offset, int c) revert_channel_correlation() argument 1701 ALSBlockData bd = { 0 }; read_frame_data() local [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_vec4_live_variables.cpp | 76 struct block_data *bd = &block_data[block->num]; in setup_def_use() local 88 if (!BITSET_TEST(bd->def, v)) in setup_def_use() 89 BITSET_SET(bd->use, v); in setup_def_use() 96 !BITSET_TEST(bd->flag_def, c)) { in setup_def_use() 97 BITSET_SET(bd->flag_use, c); in setup_def_use() 116 !BITSET_TEST(bd->use, v)) in setup_def_use() 117 BITSET_SET(bd->def, v); in setup_def_use() 125 !BITSET_TEST(bd->flag_use, c)) { in setup_def_use() 126 BITSET_SET(bd->flag_def, c); in setup_def_use() 151 struct block_data *bd in compute_live_variables() local 202 const struct block_data &bd = block_data[block->num]; compute_start_end() local [all...] |
H A D | brw_fs_live_variables.cpp | 56 fs_live_variables::setup_one_read(struct block_data *bd, in setup_one_read() argument 69 if (!BITSET_TEST(bd->def, var)) in setup_one_read() 70 BITSET_SET(bd->use, var); in setup_one_read() 74 fs_live_variables::setup_one_write(struct block_data *bd, fs_inst *inst, in setup_one_write() argument 87 if (!inst->is_partial_write() && !BITSET_TEST(bd->use, var)) in setup_one_write() 88 BITSET_SET(bd->def, var); in setup_one_write() 90 BITSET_SET(bd->defout, var); in setup_one_write() 113 struct block_data *bd = &block_data[block->num]; in setup_def_use() local 124 setup_one_read(bd, ip, reg); in setup_def_use() 129 bd in setup_def_use() 163 struct block_data *bd = &block_data[block->num]; compute_live_variables() local 212 const struct block_data *bd = &block_data[block->num]; compute_live_variables() local 236 struct block_data *bd = &block_data[block->num]; compute_start_end() local [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
H A D | time.cc | 30 // bd: An absl::Time::Breakdown 70 absl::Time::Breakdown bd; in InfiniteFutureBreakdown() local 71 bd.year = std::numeric_limits<int64_t>::max(); in InfiniteFutureBreakdown() 72 bd.month = 12; in InfiniteFutureBreakdown() 73 bd.day = 31; in InfiniteFutureBreakdown() 74 bd.hour = 23; in InfiniteFutureBreakdown() 75 bd.minute = 59; in InfiniteFutureBreakdown() 76 bd.second = 59; in InfiniteFutureBreakdown() 77 bd.subsecond = absl::InfiniteDuration(); in InfiniteFutureBreakdown() 78 bd in InfiniteFutureBreakdown() 87 Time::Breakdown bd; InfinitePastBreakdown() local 215 absl::Time::Breakdown bd; In() local [all...] |
/third_party/exfatprogs/lib/ |
H A D | libexfat.c | 120 static void exfat_set_default_cluster_size(struct exfat_blk_dev *bd, in exfat_set_default_cluster_size() argument 123 if (256 * MB >= bd->size) in exfat_set_default_cluster_size() 125 else if (32 * GB >= bd->size) in exfat_set_default_cluster_size() 139 struct exfat_blk_dev *bd) in exfat_get_blk_dev_info() 180 bd->dev_fd = fd; in exfat_get_blk_dev_info() 181 bd->offset = blk_dev_offset; in exfat_get_blk_dev_info() 182 bd->size = blk_dev_size; in exfat_get_blk_dev_info() 184 exfat_set_default_cluster_size(bd, ui); in exfat_get_blk_dev_info() 189 if (ioctl(fd, BLKSSZGET, &bd->sector_size) < 0) in exfat_get_blk_dev_info() 190 bd in exfat_get_blk_dev_info() 138 exfat_get_blk_dev_info(struct exfat_user_input *ui, struct exfat_blk_dev *bd) exfat_get_blk_dev_info() argument 350 exfat_get_root_entry_offset(struct exfat_blk_dev *bd) exfat_get_root_entry_offset() argument 494 exfat_read_sector(struct exfat_blk_dev *bd, void *buf, unsigned int sec_off) exfat_read_sector() argument 508 exfat_write_sector(struct exfat_blk_dev *bd, void *buf, unsigned int sec_off) exfat_write_sector() argument 524 exfat_write_checksum_sector(struct exfat_blk_dev *bd, unsigned int checksum, bool is_backup) exfat_write_checksum_sector() argument 585 exfat_update_boot_checksum(struct exfat_blk_dev *bd, bool is_backup) exfat_update_boot_checksum() argument 625 exfat_set_volume_serial(struct exfat_blk_dev *bd, struct exfat_user_input *ui) exfat_set_volume_serial() argument 688 exfat_clus_to_blk_dev_off(struct exfat_blk_dev *bd, unsigned int clu_off_sectnr, unsigned int clu) exfat_clus_to_blk_dev_off() argument [all...] |
/third_party/ffmpeg/doc/examples/ |
H A D | avio_reading.c | 44 struct buffer_data *bd = (struct buffer_data *)opaque; in read_packet() local 45 buf_size = FFMIN(buf_size, bd->size); in read_packet() 49 printf("ptr:%p size:%zu\n", bd->ptr, bd->size); in read_packet() 52 memcpy(buf, bd->ptr, buf_size); in read_packet() 53 bd->ptr += buf_size; in read_packet() 54 bd->size -= buf_size; in read_packet() 67 struct buffer_data bd = { 0 }; in main() local 83 bd.ptr = buffer; in main() 84 bd in main() [all...] |
/third_party/exfatprogs/dump/ |
H A D | dump.c | 67 static int exfat_show_ondisk_all_info(struct exfat_blk_dev *bd) in exfat_show_ondisk_all_info() argument 86 if (exfat_read(bd->dev_fd, (char *)ppbr, EXFAT_MAX_SECTOR_SIZE, in exfat_show_ondisk_all_info() 116 bd->sector_size_bits = pbsx->sect_size_bits; in exfat_show_ondisk_all_info() 117 bd->sector_size = 1 << pbsx->sect_size_bits; in exfat_show_ondisk_all_info() 137 bd->cluster_size = in exfat_show_ondisk_all_info() 139 root_clu_off = exfat_clus_to_blk_dev_off(bd, clu_offset, root_clu); in exfat_show_ondisk_all_info() 148 ret = exfat_read(bd->dev_fd, ed, sizeof(struct exfat_dentry)*3, in exfat_show_ondisk_all_info() 163 bitmap_clu_off = exfat_clus_to_blk_dev_off(bd, clu_offset, in exfat_show_ondisk_all_info() 189 ret = exfat_read(bd->dev_fd, bitmap, bitmap_len, bitmap_clu_off); in exfat_show_ondisk_all_info() 201 exfat_info("Cluster size: \t\t\t\t%u\n", bd in exfat_show_ondisk_all_info() 221 struct exfat_blk_dev bd; main() local [all...] |