Normalize line endings and whitespace
This commit is contained in:
committed by
Andrey Kamaev
parent
0442bca235
commit
81f826db2b
148
3rdparty/libjasper/jp2_cod.h
vendored
148
3rdparty/libjasper/jp2_cod.h
vendored
@@ -11,15 +11,15 @@
|
||||
*/
|
||||
|
||||
/* __START_OF_JASPER_LICENSE__
|
||||
*
|
||||
*
|
||||
* JasPer License Version 2.0
|
||||
*
|
||||
*
|
||||
* Copyright (c) 2001-2006 Michael David Adams
|
||||
* Copyright (c) 1999-2000 Image Power, Inc.
|
||||
* Copyright (c) 1999-2000 The University of British Columbia
|
||||
*
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person (the
|
||||
* "User") obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without restriction,
|
||||
@@ -27,15 +27,15 @@
|
||||
* publish, distribute, and/or sell copies of the Software, and to permit
|
||||
* persons to whom the Software is furnished to do so, subject to the
|
||||
* following conditions:
|
||||
*
|
||||
*
|
||||
* 1. The above copyright notices and this permission notice (which
|
||||
* includes the disclaimer below) shall be included in all copies or
|
||||
* substantial portions of the Software.
|
||||
*
|
||||
*
|
||||
* 2. The name of a copyright holder shall not be used to endorse or
|
||||
* promote products derived from the Software without specific prior
|
||||
* written permission.
|
||||
*
|
||||
*
|
||||
* THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS
|
||||
* LICENSE. NO USE OF THE SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER
|
||||
* THIS DISCLAIMER. THE SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
|
||||
@@ -62,7 +62,7 @@
|
||||
* PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH
|
||||
* RISK ACTIVITIES"). THE COPYRIGHT HOLDERS SPECIFICALLY DISCLAIM ANY
|
||||
* EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR HIGH RISK ACTIVITIES.
|
||||
*
|
||||
*
|
||||
* __END_OF_JASPER_LICENSE__
|
||||
*/
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
\******************************************************************************/
|
||||
|
||||
#define JP2_SPTOBPC(s, p) \
|
||||
((((p) - 1) & 0x7f) | (((s) & 1) << 7))
|
||||
((((p) - 1) & 0x7f) | (((s) & 1) << 7))
|
||||
|
||||
/******************************************************************************\
|
||||
* Box class.
|
||||
@@ -124,7 +124,7 @@
|
||||
#define JP2_JP_LEN 12
|
||||
|
||||
typedef struct {
|
||||
uint_fast32_t magic;
|
||||
uint_fast32_t magic;
|
||||
} jp2_jp_t;
|
||||
|
||||
/* FTYP box data. */
|
||||
@@ -135,10 +135,10 @@ typedef struct {
|
||||
#define JP2_FTYP_COMPATCODE JP2_FTYP_MAJVER
|
||||
|
||||
typedef struct {
|
||||
uint_fast32_t majver;
|
||||
uint_fast32_t minver;
|
||||
uint_fast32_t numcompatcodes;
|
||||
uint_fast32_t compatcodes[JP2_FTYP_MAXCOMPATCODES];
|
||||
uint_fast32_t majver;
|
||||
uint_fast32_t minver;
|
||||
uint_fast32_t numcompatcodes;
|
||||
uint_fast32_t compatcodes[JP2_FTYP_MAXCOMPATCODES];
|
||||
} jp2_ftyp_t;
|
||||
|
||||
/* IHDR box data. */
|
||||
@@ -147,20 +147,20 @@ typedef struct {
|
||||
#define JP2_IHDR_BPCNULL 255
|
||||
|
||||
typedef struct {
|
||||
uint_fast32_t width;
|
||||
uint_fast32_t height;
|
||||
uint_fast16_t numcmpts;
|
||||
uint_fast8_t bpc;
|
||||
uint_fast8_t comptype;
|
||||
uint_fast8_t csunk;
|
||||
uint_fast8_t ipr;
|
||||
uint_fast32_t width;
|
||||
uint_fast32_t height;
|
||||
uint_fast16_t numcmpts;
|
||||
uint_fast8_t bpc;
|
||||
uint_fast8_t comptype;
|
||||
uint_fast8_t csunk;
|
||||
uint_fast8_t ipr;
|
||||
} jp2_ihdr_t;
|
||||
|
||||
/* BPCC box data. */
|
||||
|
||||
typedef struct {
|
||||
uint_fast16_t numcmpts;
|
||||
uint_fast8_t *bpcs;
|
||||
uint_fast16_t numcmpts;
|
||||
uint_fast8_t *bpcs;
|
||||
} jp2_bpcc_t;
|
||||
|
||||
/* COLR box data. */
|
||||
@@ -174,22 +174,22 @@ typedef struct {
|
||||
#define JP2_COLR_SYCC 18
|
||||
|
||||
typedef struct {
|
||||
uint_fast8_t method;
|
||||
uint_fast8_t pri;
|
||||
uint_fast8_t approx;
|
||||
uint_fast32_t csid;
|
||||
uint_fast8_t *iccp;
|
||||
int iccplen;
|
||||
/* XXX - Someday we ought to add ICC profile data here. */
|
||||
uint_fast8_t method;
|
||||
uint_fast8_t pri;
|
||||
uint_fast8_t approx;
|
||||
uint_fast32_t csid;
|
||||
uint_fast8_t *iccp;
|
||||
int iccplen;
|
||||
/* XXX - Someday we ought to add ICC profile data here. */
|
||||
} jp2_colr_t;
|
||||
|
||||
/* PCLR box data. */
|
||||
|
||||
typedef struct {
|
||||
uint_fast16_t numlutents;
|
||||
uint_fast8_t numchans;
|
||||
int_fast32_t *lutdata;
|
||||
uint_fast8_t *bpc;
|
||||
uint_fast16_t numlutents;
|
||||
uint_fast8_t numchans;
|
||||
int_fast32_t *lutdata;
|
||||
uint_fast8_t *bpc;
|
||||
} jp2_pclr_t;
|
||||
|
||||
/* CDEF box per-channel data. */
|
||||
@@ -211,33 +211,33 @@ typedef struct {
|
||||
#define JP2_CDEF_ASOC_NONE 65535
|
||||
|
||||
typedef struct {
|
||||
uint_fast16_t channo;
|
||||
uint_fast16_t type;
|
||||
uint_fast16_t assoc;
|
||||
uint_fast16_t channo;
|
||||
uint_fast16_t type;
|
||||
uint_fast16_t assoc;
|
||||
} jp2_cdefchan_t;
|
||||
|
||||
/* CDEF box data. */
|
||||
|
||||
typedef struct {
|
||||
uint_fast16_t numchans;
|
||||
jp2_cdefchan_t *ents;
|
||||
uint_fast16_t numchans;
|
||||
jp2_cdefchan_t *ents;
|
||||
} jp2_cdef_t;
|
||||
|
||||
typedef struct {
|
||||
uint_fast16_t cmptno;
|
||||
uint_fast8_t map;
|
||||
uint_fast8_t pcol;
|
||||
uint_fast16_t cmptno;
|
||||
uint_fast8_t map;
|
||||
uint_fast8_t pcol;
|
||||
} jp2_cmapent_t;
|
||||
|
||||
typedef struct {
|
||||
uint_fast16_t numchans;
|
||||
jp2_cmapent_t *ents;
|
||||
uint_fast16_t numchans;
|
||||
jp2_cmapent_t *ents;
|
||||
} jp2_cmap_t;
|
||||
|
||||
typedef struct {
|
||||
uint_fast32_t datalen;
|
||||
uint_fast8_t uuid[16];
|
||||
uint_fast8_t *data;
|
||||
uint_fast32_t datalen;
|
||||
uint_fast8_t uuid[16];
|
||||
uint_fast8_t *data;
|
||||
} jp2_uuid_t;
|
||||
|
||||
#define JP2_CMAP_DIRECT 0
|
||||
@@ -248,37 +248,37 @@ typedef struct {
|
||||
struct jp2_boxops_s;
|
||||
typedef struct {
|
||||
|
||||
struct jp2_boxops_s *ops;
|
||||
struct jp2_boxinfo_s *info;
|
||||
struct jp2_boxops_s *ops;
|
||||
struct jp2_boxinfo_s *info;
|
||||
|
||||
uint_fast32_t type;
|
||||
uint_fast32_t type;
|
||||
|
||||
/* The length of the box including the (variable-length) header. */
|
||||
uint_fast32_t len;
|
||||
/* The length of the box including the (variable-length) header. */
|
||||
uint_fast32_t len;
|
||||
|
||||
/* The length of the box data. */
|
||||
uint_fast32_t datalen;
|
||||
/* The length of the box data. */
|
||||
uint_fast32_t datalen;
|
||||
|
||||
union {
|
||||
jp2_jp_t jp;
|
||||
jp2_ftyp_t ftyp;
|
||||
jp2_ihdr_t ihdr;
|
||||
jp2_bpcc_t bpcc;
|
||||
jp2_colr_t colr;
|
||||
jp2_pclr_t pclr;
|
||||
jp2_cdef_t cdef;
|
||||
jp2_cmap_t cmap;
|
||||
jp2_uuid_t uuid;
|
||||
} data;
|
||||
union {
|
||||
jp2_jp_t jp;
|
||||
jp2_ftyp_t ftyp;
|
||||
jp2_ihdr_t ihdr;
|
||||
jp2_bpcc_t bpcc;
|
||||
jp2_colr_t colr;
|
||||
jp2_pclr_t pclr;
|
||||
jp2_cdef_t cdef;
|
||||
jp2_cmap_t cmap;
|
||||
jp2_uuid_t uuid;
|
||||
} data;
|
||||
|
||||
} jp2_box_t;
|
||||
|
||||
typedef struct jp2_boxops_s {
|
||||
void (*init)(jp2_box_t *box);
|
||||
void (*destroy)(jp2_box_t *box);
|
||||
int (*getdata)(jp2_box_t *box, jas_stream_t *in);
|
||||
int (*putdata)(jp2_box_t *box, jas_stream_t *out);
|
||||
void (*dumpdata)(jp2_box_t *box, FILE *out);
|
||||
void (*init)(jp2_box_t *box);
|
||||
void (*destroy)(jp2_box_t *box);
|
||||
int (*getdata)(jp2_box_t *box, jas_stream_t *in);
|
||||
int (*putdata)(jp2_box_t *box, jas_stream_t *out);
|
||||
void (*dumpdata)(jp2_box_t *box, FILE *out);
|
||||
} jp2_boxops_t;
|
||||
|
||||
/******************************************************************************\
|
||||
@@ -286,10 +286,10 @@ typedef struct jp2_boxops_s {
|
||||
\******************************************************************************/
|
||||
|
||||
typedef struct jp2_boxinfo_s {
|
||||
int type;
|
||||
char *name;
|
||||
int flags;
|
||||
jp2_boxops_t ops;
|
||||
int type;
|
||||
char *name;
|
||||
int flags;
|
||||
jp2_boxops_t ops;
|
||||
} jp2_boxinfo_t;
|
||||
|
||||
/******************************************************************************\
|
||||
|
||||
Reference in New Issue
Block a user