MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / isRGBFormat

Function isRGBFormat

src/video_frame.ts:1293–1295  ·  view source on GitHub ↗
(format: VideoPixelFormat)

Source from the content-addressed store, hash-verified

1291};
1292
1293const isRGBFormat = (format: VideoPixelFormat): boolean => {
1294 return ['RGBA', 'RGBX', 'BGRA', 'BGRX'].includes(format);
1295};
1296
1297const getEquivalentOpaqueFormat = (format: string) => {
1298 switch (format) {

Callers 1

PickColorSpaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected