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

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

Issue 1824033002: Split core/include/fpdfapi/fpdf_resource.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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/fpdfdoc/fpdf_tagged.h ('k') | core/include/fxge/fx_font.h » ('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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 FX_FLOAT* pSrcValues, 525 FX_FLOAT* pSrcValues,
526 FX_FLOAT* pDestValues) = 0; 526 FX_FLOAT* pDestValues) = 0;
527 527
528 virtual void TranslateScanline(void* pTransform, 528 virtual void TranslateScanline(void* pTransform,
529 uint8_t* pDest, 529 uint8_t* pDest,
530 const uint8_t* pSrc, 530 const uint8_t* pSrc,
531 int pixels) = 0; 531 int pixels) = 0;
532 virtual void SetComponents(FX_DWORD nComponents) = 0; 532 virtual void SetComponents(FX_DWORD nComponents) = 0;
533 }; 533 };
534 534
535 void ReverseRGB(uint8_t* pDestBuf, const uint8_t* pSrcBuf, int pixels);
536 void sRGB_to_AdobeCMYK(FX_FLOAT R,
537 FX_FLOAT G,
538 FX_FLOAT B,
539 FX_FLOAT& c,
540 FX_FLOAT& m,
541 FX_FLOAT& y,
542 FX_FLOAT& k);
535 void AdobeCMYK_to_sRGB(FX_FLOAT c, 543 void AdobeCMYK_to_sRGB(FX_FLOAT c,
536 FX_FLOAT m, 544 FX_FLOAT m,
537 FX_FLOAT y, 545 FX_FLOAT y,
538 FX_FLOAT k, 546 FX_FLOAT k,
539 FX_FLOAT& R, 547 FX_FLOAT& R,
540 FX_FLOAT& G, 548 FX_FLOAT& G,
541 FX_FLOAT& B); 549 FX_FLOAT& B);
542 void AdobeCMYK_to_sRGB1(uint8_t c, 550 void AdobeCMYK_to_sRGB1(uint8_t c,
543 uint8_t m, 551 uint8_t m,
544 uint8_t y, 552 uint8_t y,
545 uint8_t k, 553 uint8_t k,
546 uint8_t& R, 554 uint8_t& R,
547 uint8_t& G, 555 uint8_t& G,
548 uint8_t& B); 556 uint8_t& B);
549 FX_BOOL MD5ComputeID(const void* buf, FX_DWORD dwSize, uint8_t ID[16]); 557 FX_BOOL MD5ComputeID(const void* buf, FX_DWORD dwSize, uint8_t ID[16]);
550 void FaxG4Decode(const uint8_t* src_buf, 558 void FaxG4Decode(const uint8_t* src_buf,
551 FX_DWORD src_size, 559 FX_DWORD src_size,
552 int* pbitpos, 560 int* pbitpos,
553 uint8_t* dest_buf, 561 uint8_t* dest_buf,
554 int width, 562 int width,
555 int height, 563 int height,
556 int pitch); 564 int pitch);
557 565
558 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ 566 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_
OLDNEW
« no previous file with comments | « core/include/fpdfdoc/fpdf_tagged.h ('k') | core/include/fxge/fx_font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698