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

# SDL\_ColorPrimaries(3type)

Colorspace color primaries, as described by https://www.itu.int/rec/T-REC-H.273-201612-S/en

## NAME

SDL\_ColorPrimaries - Colorspace color primaries, as described by https://www.itu.int/rec/T-REC-H.273-201612-S/en

## HEADER FILE

Defined in SDL3/SDL\_pixels.h

## SYNOPSIS

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

**typedef enum SDL\_ColorPrimaries** **{**     **SDL\_COLOR\_PRIMARIES\_UNKNOWN = 0,**     **SDL\_COLOR\_PRIMARIES\_BT709 = 1,                  /\*\*\< ITU-R BT.709-6 \*/**     **SDL\_COLOR\_PRIMARIES\_UNSPECIFIED = 2,**     **SDL\_COLOR\_PRIMARIES\_BT470M = 4,                 /\*\*\< ITU-R BT.470-6 System M \*/**     **SDL\_COLOR\_PRIMARIES\_BT470BG = 5,                /\*\*\< ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625 \*/**     **SDL\_COLOR\_PRIMARIES\_BT601 = 6,                  /\*\*\< ITU-R BT.601-7 525, SMPTE 170M \*/**     **SDL\_COLOR\_PRIMARIES\_SMPTE240 = 7,               /\*\*\< SMPTE 240M, functionally the same as SDL\_COLOR\_PRIMARIES\_BT601 \*/**     **SDL\_COLOR\_PRIMARIES\_GENERIC\_FILM = 8,           /\*\*\< Generic film (color filters using Illuminant C) \*/**     **SDL\_COLOR\_PRIMARIES\_BT2020 = 9,                 /\*\*\< ITU-R BT.2020-2 / ITU-R BT.2100-0 \*/**     **SDL\_COLOR\_PRIMARIES\_XYZ = 10,                   /\*\*\< SMPTE ST 428-1 \*/**     **SDL\_COLOR\_PRIMARIES\_SMPTE431 = 11,              /\*\*\< SMPTE RP 431-2 \*/**     **SDL\_COLOR\_PRIMARIES\_SMPTE432 = 12,              /\*\*\< SMPTE EG 432-1 / DCI P3 \*/**     **SDL\_COLOR\_PRIMARIES\_EBU3213 = 22,               /\*\*\< EBU Tech. 3213-E \*/**     **SDL\_COLOR\_PRIMARIES\_CUSTOM = 31** **} SDL\_ColorPrimaries;**

## AVAILABILITY

This enum is available since SDL 3.2.0.
