333 {
334 switch (status) {
336 return "ok";
338 return "resolveVideoColor called with a null out-pointer";
340 return "video.color is absent and this pixel_format defines no default color tuple";
342 return "video.color must be a JSON object";
344 return "video.color.primaries is not a recognized name or custom xy object";
346 return "video.color.transfer is not a recognized transfer function";
348 return "video.color.matrix is not a recognized value";
350 return "video.color.range is not a recognized value";
352 return "video.color.transfer conflicts with the header pixel_format";
354 return "video.color.range \"limited\" is reserved and unsupported in v1";
356 return "video.color.matrix values other than \"rgb\" are reserved in v1";
358 return "this pixel_format defines no default tuple: video.color must declare all four keys or be absent";
360 return "video.color.primaries object needs red/green/blue/white CIE xy pairs";
361 }
362 return "unknown color status";
363}
@ MalformedCustomPrimaries
@ TransferConflictsWithFormat
@ LimitedRangeUnsupported