SDL/src/video
Ryan C. Gordon 84a236c92e hashtable: Redesign the hashtable API.
This was intended to make the API public, so SDL_hashtable.h got an extreme
documentation makeover, but for now this remains a private header.

This makes several significant interface changes to SDL_HashTable, and
improves code that makes use of it in various ways.

- The ability to make "stackable" tables is removed. Apparently this still
  worked with the current implementation, but I could see a future
  implementation struggle mightily to support this. It'll be better for
  something external to build on top of the table if it needs it, inserting a
  linked list of stacked items as the hash values and managing them separately.
  There was only one place in SDL using this, unnecessarily, and that has also
  been cleaned up to not need it.
- You no longer specify "buckets" when creating a table, but rather an
  estimated number of items the table is meant to hold. The bucket count was
  crucial to our classic hashtable implementation, but meant less once we
  moved to an Open Addressing implementation anyhow, since the bucket count
  isn't static (and they aren't really "buckets" anymore either). Now you
  can just report how many items you think the hash will hold and SDL will
  allocate a reasonable default for you...or 0 to not guess, and SDL will
  start small and grow as necessary, which is often the correct thing to do.
- There's no more SDL_IterateHashTableKey because there's no more "stackable"
  hash tables.
- SDL_IterateHashTable() now uses a callback, which matches other parts of SDL,
  and also lets us hold the read-lock for the entire iteration and get rid of
  the goofy iterator state variable.
- SDL_InsertIntoHashTable() now lets you specify whether to replace existing
  keys or fail if the key already exists.
- Callbacks now use SDL conventions (userdata as the first param).
- Other naming convention fixes.

I discovered we use a lot of hash tables in SDL3 internally. :) So the bulk
of this work is fixing up that code to use the new interfaces, and simplifying
things (like checking for an item to remove it if it already exists before
inserting a replacement...just do the insert atomically, it'll do all that
for you!).
2025-02-15 18:52:56 -05:00
..
android audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
cocoa audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
directx Updated copyright for 2025 2025-01-01 07:45:52 -08:00
dummy audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
emscripten audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
gdk Updated copyright for 2025 2025-01-01 07:45:52 -08:00
haiku audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
khronos Supress Metal warning when compiling against macOS 10.11-10.13 2024-10-29 20:03:18 -07:00
kmsdrm audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
n3ds audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
offscreen audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
openvr audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
ps2 audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
psp audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
qnx audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
raspberry audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
riscos audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
uikit audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
vita audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
vivante audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
wayland audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
windows audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
x11 audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
yuv2rgb Fix #ifdefs to have config flags either defined as 1 or undefined 2024-12-14 09:22:29 -08:00
SDL_blit.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit_0.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit_1.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit_A.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit_auto.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit_auto.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit_copy.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit_copy.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit_N.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit_slow.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_blit_slow.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_bmp.c bmp: Removed debug printf call. 2025-02-03 23:35:08 -05:00
SDL_clipboard.c clipboard: Ensure SDL_ClearClipboardData clears data even when no data has been set 2025-01-02 07:23:27 -08:00
SDL_clipboard_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_egl.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
SDL_egl_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_fillrect.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_pixels.c hashtable: Redesign the hashtable API. 2025-02-15 18:52:56 -05:00
SDL_pixels_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_rect.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_rect_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_rect_impl.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_RLEaccel.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_RLEaccel_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_stretch.c Renamed SDL_SoftStretch() to SDL_StretchSurface() 2025-02-03 08:51:32 -08:00
SDL_surface.c Removed stb_image.h from SDL 2025-02-10 17:18:16 -08:00
SDL_surface_c.h Renamed SDL_SoftStretch() to SDL_StretchSurface() 2025-02-03 08:51:32 -08:00
SDL_sysvideo.h audio/video: Skip preferred drivers when loading a driver on demand 2025-02-12 11:51:36 -05:00
SDL_video.c SDL_Get*Driver() functions: Set error message on failure 2025-02-13 16:10:37 -08:00
SDL_video_c.h Fixed creating a window with both software and hardware renderer attached 2025-02-06 15:35:38 -08:00
SDL_video_unsupported.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_vulkan_internal.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_vulkan_utils.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_yuv.c Remove newlines from error messages 2025-01-23 11:45:04 -08:00
SDL_yuv_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
sdlgenblit.pl Updated copyright for 2025 2025-01-01 07:45:52 -08:00