1 /** <title>NSBitmapImageRepPrivate.h</title>
2 
3    <abstract>The private methods of the NSBitmapImageRep classes.</abstract>
4 
5    Copyright (C) 2016 Free Software Foundation, Inc.
6 
7    Author:  Fred Kiefer <fredkiefer@gmx.de>
8    Date: Jun 2016
9 
10    This file is part of the GNUstep GUI Library.
11 
12    This library is free software; you can redistribute it and/or
13    modify it under the terms of the GNU Lesser General Public
14    License as published by the Free Software Foundation; either
15    version 2 of the License, or (at your option) any later version.
16 
17    This library is distributed in the hope that it will be useful,
18    but WITHOUT ANY WARRANTY; without even the implied warranty of
19    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
20    Lesser General Public License for more details.
21 
22    You should have received a copy of the GNU Lesser General Public
23    License along with this library; see the file COPYING.LIB.
24    If not, see <http://www.gnu.org/licenses/> or write to the
25    Free Software Foundation, 51 Franklin Street, Fifth Floor,
26    Boston, MA 02110-1301, USA.
27 */
28 #import "AppKit/NSBitmapImageRep.h"
29 #include "nsimage-tiff.h"
30 
31 @interface NSBitmapImageRep (GSPrivate)
32 // GNUstep extension
33 + (BOOL) _bitmapIsTIFF: (NSData *)data;
34 + (NSArray*) _imageRepsWithTIFFData: (NSData *)imageData;
35 - (NSBitmapImageRep *) _initBitmapFromTIFF: (NSData *)imageData;
36 - (NSBitmapImageRep *) _initFromTIFFImage: (TIFF *)image number: (int)imageNumber;
37 - (void) _fillTIFFInfo: (NSTiffInfo*)info
38       usingCompression: (NSTIFFCompression)type
39                 factor: (float)factor;
40 
41 // Internal
42 + (int) _localFromCompressionType: (NSTIFFCompression)type;
43 + (NSTIFFCompression) _compressionTypeFromLocal: (int)type;
44 - (void) _premultiply;
45 - (void) _unpremultiply;
46 - (NSBitmapImageRep *) _convertToFormatBitsPerSample: (NSInteger)bps
47                                      samplesPerPixel: (NSInteger)spp
48                                             hasAlpha: (BOOL)alpha
49                                             isPlanar: (BOOL)isPlanar
50                                       colorSpaceName: (NSString*)colorSpaceName
51                                         bitmapFormat: (NSBitmapFormat)bitmapFormat
52                                          bytesPerRow: (NSInteger)rowBytes
53                                         bitsPerPixel: (NSInteger)pixelBits;
54 @end
55