logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_ChromaLocation - Colorspace chroma sample location.

Availability

       This enum is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                          SDL_ChromaLocation(3type)

Name

       SDL_ChromaLocation - Colorspace chroma sample location.

Synopsis

#include<SDL3/SDL_pixels.h>typedefenumSDL_ChromaLocation{SDL_CHROMA_LOCATION_NONE=0,/**<RGB,nochromasampling*/SDL_CHROMA_LOCATION_LEFT=1,/**<InMPEG-2,MPEG-4,andAVC,CbandCraretakenonmidpointoftheleft-edgeofthe2x2square.Inotherwords,theyhavethesamehorizontallocationasthetop-leftpixel,butisshiftedone-halfpixeldownvertically.*/SDL_CHROMA_LOCATION_CENTER=2,/**<InJPEG/JFIF,H.261,andMPEG-1,CbandCraretakenatthecenterofthe2x2square.Inotherwords,theyareoffsetone-halfpixeltotherightandone-halfpixeldowncomparedtothetop-leftpixel.*/SDL_CHROMA_LOCATION_TOPLEFT=3/**<InHEVCforBT.2020andBT.2100content(inparticularonBlu-rays),CbandCraresampledatthesamelocationasthegroup'stop-leftYpixel("co-sited","co-located").*/}SDL_ChromaLocation;

See Also