Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: core/include/fxcodec/fx_codec.h

Issue 1783933002: Change colorspace's number of components to be unsigned (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/include/fpdfapi/fpdf_resource.h ('k') | core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_H_ 7 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_H_
8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_H_ 8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 int32_t frames = 0, 451 int32_t frames = 0,
452 FX_BOOL bInterpol = TRUE) = 0; 452 FX_BOOL bInterpol = TRUE) = 0;
453 453
454 virtual FXCODEC_STATUS ContinueDecode(IFX_Pause* pPause = NULL) = 0; 454 virtual FXCODEC_STATUS ContinueDecode(IFX_Pause* pPause = NULL) = 0;
455 }; 455 };
456 #endif // PDF_ENABLE_XFA 456 #endif // PDF_ENABLE_XFA
457 class ICodec_Jbig2Encoder { 457 class ICodec_Jbig2Encoder {
458 public: 458 public:
459 virtual ~ICodec_Jbig2Encoder() {} 459 virtual ~ICodec_Jbig2Encoder() {}
460 }; 460 };
461
461 class ICodec_IccModule { 462 class ICodec_IccModule {
462 public: 463 public:
463 enum IccCS { 464 enum IccCS {
464 IccCS_Unknown = 0, 465 IccCS_Unknown = 0,
465 IccCS_XYZ, 466 IccCS_XYZ,
466 IccCS_Lab, 467 IccCS_Lab,
467 IccCS_Luv, 468 IccCS_Luv,
468 IccCS_YCbCr, 469 IccCS_YCbCr,
469 IccCS_Yxy, 470 IccCS_Yxy,
470 IccCS_Hsv, 471 IccCS_Hsv,
(...skipping 26 matching lines...) Expand all
497 ICodec_IccModule::IccParam* pOutputParam, 498 ICodec_IccModule::IccParam* pOutputParam,
498 ICodec_IccModule::IccParam* pProofParam = NULL, 499 ICodec_IccModule::IccParam* pProofParam = NULL,
499 FX_DWORD dwIntent = Icc_INTENT_PERCEPTUAL, 500 FX_DWORD dwIntent = Icc_INTENT_PERCEPTUAL,
500 FX_DWORD dwFlag = Icc_FLAGS_DEFAULT, 501 FX_DWORD dwFlag = Icc_FLAGS_DEFAULT,
501 FX_DWORD dwPrfIntent = Icc_INTENT_ABSOLUTE_COLORIMETRIC, 502 FX_DWORD dwPrfIntent = Icc_INTENT_ABSOLUTE_COLORIMETRIC,
502 FX_DWORD dwPrfFlag = Icc_FLAGS_SOFTPROOFING) = 0; 503 FX_DWORD dwPrfFlag = Icc_FLAGS_SOFTPROOFING) = 0;
503 504
504 virtual void* CreateTransform_sRGB( 505 virtual void* CreateTransform_sRGB(
505 const uint8_t* pProfileData, 506 const uint8_t* pProfileData,
506 FX_DWORD dwProfileSize, 507 FX_DWORD dwProfileSize,
507 int32_t& nComponents, 508 FX_DWORD& nComponents,
508 int32_t intent = 0, 509 int32_t intent = 0,
509 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT) = 0; 510 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT) = 0;
510 511
511 virtual void* CreateTransform_CMYK( 512 virtual void* CreateTransform_CMYK(
512 const uint8_t* pSrcProfileData, 513 const uint8_t* pSrcProfileData,
513 FX_DWORD dwSrcProfileSize, 514 FX_DWORD dwSrcProfileSize,
514 int32_t& nSrcComponents, 515 FX_DWORD& nSrcComponents,
515 const uint8_t* pDstProfileData, 516 const uint8_t* pDstProfileData,
516 FX_DWORD dwDstProfileSize, 517 FX_DWORD dwDstProfileSize,
517 int32_t intent = 0, 518 int32_t intent = 0,
518 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT, 519 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT,
519 FX_DWORD dwDstFormat = Icc_FORMAT_DEFAULT) = 0; 520 FX_DWORD dwDstFormat = Icc_FORMAT_DEFAULT) = 0;
520 521
521 virtual void DestroyTransform(void* pTransform) = 0; 522 virtual void DestroyTransform(void* pTransform) = 0;
522 523
523 virtual void Translate(void* pTransform, 524 virtual void Translate(void* pTransform,
524 FX_FLOAT* pSrcValues, 525 FX_FLOAT* pSrcValues,
(...skipping 23 matching lines...) Expand all
548 FX_BOOL MD5ComputeID(const void* buf, FX_DWORD dwSize, uint8_t ID[16]); 549 FX_BOOL MD5ComputeID(const void* buf, FX_DWORD dwSize, uint8_t ID[16]);
549 void FaxG4Decode(const uint8_t* src_buf, 550 void FaxG4Decode(const uint8_t* src_buf,
550 FX_DWORD src_size, 551 FX_DWORD src_size,
551 int* pbitpos, 552 int* pbitpos,
552 uint8_t* dest_buf, 553 uint8_t* dest_buf,
553 int width, 554 int width,
554 int height, 555 int height,
555 int pitch); 556 int pitch);
556 557
557 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ 558 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_resource.h ('k') | core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698