mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
some come indenting cleanup
This commit is contained in:
parent
41ba427101
commit
d9b291085d
2 changed files with 34 additions and 31 deletions
|
@ -40,33 +40,35 @@
|
|||
#include <inttypes.h>
|
||||
|
||||
/* Structure to store common information about a tiff. */
|
||||
typedef struct {
|
||||
uint16_t numImages; /* number of images in tiff */
|
||||
uint16_t imageNumber; /* number of current image */
|
||||
uint32_t subfileType;
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
uint16_t bitsPerSample; /* number of bits per data channel */
|
||||
uint16_t samplesPerPixel; /* number of channels per pixel */
|
||||
uint16_t planarConfig; /* meshed or separate */
|
||||
uint16_t photoInterp; /* photometric interpretation of bitmap data, */
|
||||
uint16_t compression;
|
||||
uint16_t extraSamples; /* Alpha */
|
||||
int assocAlpha;
|
||||
int quality; /* compression quality (for jpeg) 1 to 255 */
|
||||
int error;
|
||||
float xdpi;
|
||||
float ydpi;
|
||||
char isBigEndian;
|
||||
char is16Bit;
|
||||
char is32Bit;
|
||||
typedef struct
|
||||
{
|
||||
uint16_t numImages; /* number of images in tiff */
|
||||
uint16_t imageNumber; /* number of current image */
|
||||
uint32_t subfileType;
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
uint16_t bitsPerSample; /* number of bits per data channel */
|
||||
uint16_t samplesPerPixel; /* number of channels per pixel */
|
||||
uint16_t planarConfig; /* meshed or separate */
|
||||
uint16_t photoInterp; /* photometric interpretation of bitmap data, */
|
||||
uint16_t compression;
|
||||
uint16_t extraSamples; /* Alpha */
|
||||
int assocAlpha;
|
||||
int quality; /* compression quality (for jpeg) 1 to 255 */
|
||||
int error;
|
||||
float xdpi;
|
||||
float ydpi;
|
||||
char isBigEndian; /* meaningful only for 16 & 32 bit depths */
|
||||
char is16Bit;
|
||||
char is32Bit;
|
||||
} NSTiffInfo;
|
||||
|
||||
typedef struct {
|
||||
uint32_t size;
|
||||
uint16_t *red;
|
||||
uint16_t *green;
|
||||
uint16_t *blue;
|
||||
typedef struct
|
||||
{
|
||||
uint32_t size;
|
||||
uint16_t *red;
|
||||
uint16_t *green;
|
||||
uint16_t *blue;
|
||||
} NSTiffColormap;
|
||||
|
||||
typedef char* realloc_data_callback(char* data, long size);
|
||||
|
|
|
@ -80,13 +80,14 @@
|
|||
typedef tsize_t tmsize_t;
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
char* data;
|
||||
typedef struct
|
||||
{
|
||||
char *data;
|
||||
long size;
|
||||
long position;
|
||||
char mode;
|
||||
char **outdata;
|
||||
long *outposition;
|
||||
char **outdata;
|
||||
long *outposition;
|
||||
} chandle_t;
|
||||
|
||||
static int tiff_error_handler_set = 0;
|
||||
|
@ -506,9 +507,9 @@ NSTiffRead(TIFF *image, NSTiffInfo *info, unsigned char *data)
|
|||
int
|
||||
NSTiffWrite(TIFF *image, NSTiffInfo *info, unsigned char *data)
|
||||
{
|
||||
void* buf = (void*)data;
|
||||
void *buf = (void*)data;
|
||||
void *bufSwap = nil;
|
||||
uint16_t sample_info[1];
|
||||
uint16_t sample_info[1];
|
||||
int i;
|
||||
unsigned int row;
|
||||
int error = 0;
|
||||
|
|
Loading…
Reference in a new issue