Comments (2)
SDL_UpdateTexture() works with YUV and NV12 data as long as they are tightly packed. The YUV and NV versions are only needed if you have non-packed data.
Many times the data is coming from other APIs and we shouldn't require the application to create an intermediate surface for SDL_UpdateTexture(), especially since this is often critical path for performance.
from sdl.
If you want, we could add SDL_UpdateTextureFromSurface(), which would just be a quick wrapper around SDL_UpdateTexture()
from sdl.
Related Issues (20)
- 10,000th issue 🥳 HOT 1
- [Camera] CoreMedia: Incorrect pixel format used for USB HDMI Video grabber (YUYV 4:2:2) HOT 3
- SDL2 SDL_Keycode returns characters in current keyboard layout HOT 2
- SDL3 doesn't statically link without SDL_STATIC_PIC flag on Ubuntu 24.04
- SDL3 static link fail when making a shared object without SDL_STATIC_PIC HOT 4
- Destroying child window with mouse captured by parent causes assertion failure on X11
- Creating popup windows always sets error
- [SDL2/3] [Emscripten] `SDL_CreateRendererWithProperties` throws an error when setting VSync
- SDL2: SDL_ShowCursor(SDL_DISABLE) doesn't disable mouse under WSL HOT 1
- SDL2: Xbox controller with wrong mappings?! HOT 4
- SDL_JOYSTICK_DISABLED breaks Android build with a linker error HOT 3
- Server side decorations broken on SDL2 Wayland HOT 2
- macOS 10.14 SDK Compatibility HOT 1
- [Camera]: SDL_GetCameraPermissionState returns 0 if pipewire backend is being used HOT 1
- [SDL3] Is SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_POINTER not implemented? HOT 1
- Linux - Installing SDL2 .so file using CMake HOT 1
- Source engine toGL games crash when not using x11 HOT 2
- Crash with SDL_EVENT_GAMEPAD_REMOVED [[repro inside]] HOT 17
- Unnecessary CMake re-configures triggered by git history changes HOT 3
- SDL3 Linux Wayland - SDL_SetWindowFullscreen incorrect size HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl.