From dc40c40f40ed2415605da32f688091a57f53c9e6 Mon Sep 17 00:00:00 2001 From: thestig Date: Fri, 11 Nov 2016 12:06:47 -0800 Subject: Relax colorspace checks in CPDF_DIBSource::CreateDecoder(). Previously the log just made sure the colorspace and the image have exact matches for the number of colorspace components. Now, for some colorspace types, check the type and make sure the number of components meets or exceeds what is required by the spec. Also do some refactoring. BUG=chromium:650230 Review-Url: https://codereview.chromium.org/2486123002 --- core/fxcodec/fx_codec.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/fxcodec') diff --git a/core/fxcodec/fx_codec.h b/core/fxcodec/fx_codec.h index faf74d0902..bb4766567b 100644 --- a/core/fxcodec/fx_codec.h +++ b/core/fxcodec/fx_codec.h @@ -96,6 +96,7 @@ class CCodec_ModuleMgr { }; void ReverseRGB(uint8_t* pDestBuf, const uint8_t* pSrcBuf, int pixels); +uint32_t ComponentsForFamily(int family); void sRGB_to_AdobeCMYK(FX_FLOAT R, FX_FLOAT G, FX_FLOAT B, -- cgit v1.2.3