Skip to content

Commit

Permalink
Document the pixel layout of YUV format surfaces
Browse files Browse the repository at this point in the history
Fixes #10530
  • Loading branch information
slouken committed Dec 7, 2024
1 parent 2ac62d8 commit 08de665
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/SDL3/SDL_surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ typedef enum SDL_FlipMode
* remaining bytes to reach the pitch are used as padding to reach a desired
* alignment, and have undefined contents.
*
* When a surface holds YUV format data, the planes are assumed to be contiguous without padding between them, e.g. a 32x32 surface in NV12 format with a pitch of 32 would consist of 32x32 bytes of Y plane followed by 32x16 bytes of UV plane.
*
* \since This struct is available since SDL 3.1.3.
*
* \sa SDL_CreateSurface
Expand Down

0 comments on commit 08de665

Please sign in to comment.