---
name: "SDL_FOURCC"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_FOURCC"
---

# SDL\_FOURCC(3)

Define a four character code as a Uint32 .

## NAME

SDL\_FOURCC - Define a four character code as a  **Uint32** .

## HEADER FILE

Defined in SDL3/SDL\_stdinc.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**#define SDL\_FOURCC(A, B, C, D) .BI** *((SDL\_static\_cast(Uint32,***SDL\_static\_cast(Uint8,***(A)))***\<\<***0)***\|***.BI*     **(SDL\_static\_cast(Uint32, SDL\_static\_cast(Uint8, (B))) \<\< 8) \| .BI** *(SDL\_static\_cast(Uint32,***SDL\_static\_cast(Uint8,***(C)))***\<\<***16)***\|***.BI*     **(SDL\_static\_cast(Uint32, SDL\_static\_cast(Uint8, (D))) \<\< 24))**

## RETURN VALUE

Returns the four characters converted into a  **Uint32** , one character per-byte.

## THREAD SAFETY

It is safe to call this macro from any thread.

## AVAILABILITY

This macro is available since SDL 3.2.0.
