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

Side by Side Diff: third_party/libjpeg_turbo/bmp.h

Issue 4134011: Adds libjpeg-turbo to deps... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « third_party/libjpeg_turbo/README-turbo.txt ('k') | third_party/libjpeg_turbo/bmp.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* Copyright (C)2004 Landmark Graphics Corporation
2 * Copyright (C)2005 Sun Microsystems, Inc.
3 *
4 * This library is free software and may be redistributed and/or modified under
5 * the terms of the wxWindows Library License, Version 3.1 or (at your option)
6 * any later version. The full license is in the LICENSE.txt file included
7 * with this distribution.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * wxWindows Library License for more details.
13 */
14
15 // This provides rudimentary facilities for loading and saving true color
16 // BMP and PPM files
17
18 #ifndef __BMP_H__
19 #define __BMP_H__
20
21 #define BMPPIXELFORMATS 6
22 enum BMPPIXELFORMAT {BMP_RGB=0, BMP_RGBA, BMP_BGR, BMP_BGRA, BMP_ABGR, BMP_ARGB} ;
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 // This will load a Windows bitmap from a file and return a buffer with the
29 // specified pixel format, scanline alignment, and orientation. The width and
30 // height are returned in w and h.
31
32 int loadbmp(char *filename, unsigned char **buf, int *w, int *h,
33 enum BMPPIXELFORMAT f, int align, int dstbottomup);
34
35 // This will save a buffer with the specified pixel format, pitch, orientation,
36 // width, and height as a 24-bit Windows bitmap or PPM (the filename determines
37 // which format to use)
38
39 int savebmp(char *filename, unsigned char *buf, int w, int h,
40 enum BMPPIXELFORMAT f, int srcpitch, int srcbottomup);
41
42 const char *bmpgeterr(void);
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif
OLDNEW
« no previous file with comments | « third_party/libjpeg_turbo/README-turbo.txt ('k') | third_party/libjpeg_turbo/bmp.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698