summaryrefslogtreecommitdiff
path: root/core/fxcodec/fx_codec.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-11-11 12:06:47 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-11 12:06:47 -0800
commitdc40c40f40ed2415605da32f688091a57f53c9e6 (patch)
tree9fbd02dffbf9028c782fa28c707f2a819a8582c4 /core/fxcodec/fx_codec.h
parent5937d0d03793caf73c8bb795ac06684596790e82 (diff)
downloadpdfium-dc40c40f40ed2415605da32f688091a57f53c9e6.tar.xz
Relax colorspace checks in CPDF_DIBSource::CreateDecoder().chromium/2917
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
Diffstat (limited to 'core/fxcodec/fx_codec.h')
-rw-r--r--core/fxcodec/fx_codec.h1
1 files changed, 1 insertions, 0 deletions
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,