Add a function to validate a WebPDecoderConfig

This echoes WebPValidateConfig for encoding.

Change-Id: Ib404d55c7af4d0755644879ec491e3998e6b5e8d
This commit is contained in:
Vincent Rabaud
2025-01-30 10:02:09 +01:00
parent 7ed2b10ef0
commit 6a22b6709c
4 changed files with 73 additions and 7 deletions

View File

@ -51,4 +51,7 @@ enum { MB_FEATURE_TREE_PROBS = 3,
NUM_PROBAS = 11
};
// Check that webp_csp_mode is within the bounds of WEBP_CSP_MODE.
int IsValidColorspace(int webp_csp_mode);
#endif // WEBP_DEC_COMMON_DEC_H_