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

Side by Side Diff: public/fpdf_edit.h

Issue 1177483002: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 6 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 | « fpdfsdk/src/pdfwindow/PWL_Wnd.cpp ('k') | no next file » | 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 PUBLIC_FPDF_EDIT_H_ 7 #ifndef PUBLIC_FPDF_EDIT_H_
8 #define PUBLIC_FPDF_EDIT_H_ 8 #define PUBLIC_FPDF_EDIT_H_
9 9
10 #include <stdint.h>
11
10 #include "fpdfview.h" 12 #include "fpdfview.h"
11 13
12 // Define all types used in the SDK. Note they can be simply regarded as opaque pointers 14 // Define all types used in the SDK. Note they can be simply regarded as opaque pointers
13 // or long integer numbers. 15 // or long integer numbers.
14 16
15 #define FPDF_ARGB(a,r,g,b) ((((FX_DWORD)(((FX_BYTE)(b)|((FX_WORD)((FX_BYTE) (g))<<8))|(((FX_DWORD)(FX_BYTE)(r))<<16)))) | (((FX_DWORD)(FX_BYTE)(a))<<24)) 17 #define FPDF_ARGB(a,r,g,b) ((((uint32_t)(((uint8_t)(b)|((FX_WORD)((uint8_t) (g))<<8))|(((FX_DWORD)(uint8_t)(r))<<16)))) | (((FX_DWORD)(uint8_t)(a))<<24))
16 #define FPDF_GetBValue(argb) ((FX_BYTE)(argb)) 18 #define FPDF_GetBValue(argb) ((uint8_t)(argb))
17 #define FPDF_GetGValue(argb) ((FX_BYTE)(((FX_WORD)(argb)) >> 8)) 19 #define FPDF_GetGValue(argb) ((uint8_t)(((uint16_t)(argb)) >> 8))
18 #define FPDF_GetRValue(argb) ((FX_BYTE)((argb)>>16)) 20 #define FPDF_GetRValue(argb) ((uint8_t)((argb)>>16))
19 #define FPDF_GetAValue(argb) ((FX_BYTE)((argb)>>24)) 21 #define FPDF_GetAValue(argb) ((uint8_t)((argb)>>24))
20 22
21 #ifdef __cplusplus 23 #ifdef __cplusplus
22 extern "C" { 24 extern "C" {
23 #endif 25 #endif
24 26
25 ////////////////////////////////////////////////////////////////////// 27 //////////////////////////////////////////////////////////////////////
26 // 28 //
27 // Document functions 29 // Document functions
28 // 30 //
29 ////////////////////////////////////////////////////////////////////// 31 //////////////////////////////////////////////////////////////////////
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // bitmap - The handle of the bitmap which you want to set i t to the image object. 241 // bitmap - The handle of the bitmap which you want to set i t to the image object.
240 // Return value: 242 // Return value:
241 // TRUE if successful, FALSE otherwise. 243 // TRUE if successful, FALSE otherwise.
242 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages,int nCount,F PDF_PAGEOBJECT image_object, FPDF_BITMAP bitmap); 244 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages,int nCount,F PDF_PAGEOBJECT image_object, FPDF_BITMAP bitmap);
243 245
244 #ifdef __cplusplus 246 #ifdef __cplusplus
245 } 247 }
246 #endif 248 #endif
247 249
248 #endif // PUBLIC_FPDF_EDIT_H_ 250 #endif // PUBLIC_FPDF_EDIT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Wnd.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698