summaryrefslogtreecommitdiff
path: root/src/lib/openjpip/index_manager.h
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2016-01-25 23:22:06 +0100
committerAntonin Descampe <antonin@gmail.com>2016-01-25 23:22:06 +0100
commit0febbff19e05cb1a6c2613eee76ad46a669c96cd (patch)
treeb6442d01348e2ba6404d0fd6abcc4eb6d6cc1390 /src/lib/openjpip/index_manager.h
parentbede1568b197021bb576b935422af6c1d0a79e21 (diff)
processed all c/h files through astyle with opj_astyle.cfgcodingstyle
Diffstat (limited to 'src/lib/openjpip/index_manager.h')
-rw-r--r--src/lib/openjpip/index_manager.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/src/lib/openjpip/index_manager.h b/src/lib/openjpip/index_manager.h
index 8831d7f5..850b5f1c 100644
--- a/src/lib/openjpip/index_manager.h
+++ b/src/lib/openjpip/index_manager.h
@@ -42,57 +42,57 @@
/** progression order */
#if 0
typedef enum porder {
- PROG_UNKNOWN = -1, /**< place-holder */
- LRCP = 0, /**< layer-resolution-component-precinct order */
- RLCP = 1, /**< resolution-layer-component-precinct order */
- RPCL = 2, /**< resolution-precinct-component-layer order */
- PCRL = 3, /**< precinct-component-resolution-layer order */
- CPRL = 4 /**< component-precinct-resolution-layer order */
+ PROG_UNKNOWN = -1, /**< place-holder */
+ LRCP = 0, /**< layer-resolution-component-precinct order */
+ RLCP = 1, /**< resolution-layer-component-precinct order */
+ RPCL = 2, /**< resolution-precinct-component-layer order */
+ PCRL = 3, /**< precinct-component-resolution-layer order */
+ CPRL = 4 /**< component-precinct-resolution-layer order */
} porder_t;
#endif
/** A.5.1 Image and tile size (SIZ)*/
-typedef struct SIZmarker_param{
- Byte2_t Lsiz; /**< length of marker segment excluding the marker*/
- Byte2_t Rsiz; /**< capabilities that a decoder needs*/
- Byte4_t Xsiz; /**< width of the reference grid*/
- Byte4_t Ysiz; /**< height of the reference grid*/
- Byte4_t XOsiz; /**< horizontal offset from the origin of the reference grid to the left side of the image area*/
- Byte4_t YOsiz; /**< vertical offset from the origin of the reference grid to the top side of the image area*/
- Byte4_t XTsiz; /**< width of one reference tile with respect to the reference grid*/
- Byte4_t YTsiz; /**< height of one reference tile with respect to the reference grid*/
- Byte4_t XTOsiz; /**< horizontal offset from the origin of the reference grid to the left side of the first tile*/
- Byte4_t YTOsiz; /**< vertical offset from the origin of the reference grid to the top side of the first tile*/
- Byte4_t XTnum; /**< number of tiles in horizontal direction*/
- Byte4_t YTnum; /**< number of tiles in vertical direction*/
- Byte2_t Csiz; /**< number of the components in the image*/
- Byte_t Ssiz[3]; /**< precision (depth) in bits and sign of the component samples*/
- Byte_t XRsiz[3]; /**< horizontal separation of a sample of component with respect to the reference grid*/
- Byte_t YRsiz[3]; /**< vertical separation of a sample of component with respect to the reference grid*/
+typedef struct SIZmarker_param {
+ Byte2_t Lsiz; /**< length of marker segment excluding the marker*/
+ Byte2_t Rsiz; /**< capabilities that a decoder needs*/
+ Byte4_t Xsiz; /**< width of the reference grid*/
+ Byte4_t Ysiz; /**< height of the reference grid*/
+ Byte4_t XOsiz; /**< horizontal offset from the origin of the reference grid to the left side of the image area*/
+ Byte4_t YOsiz; /**< vertical offset from the origin of the reference grid to the top side of the image area*/
+ Byte4_t XTsiz; /**< width of one reference tile with respect to the reference grid*/
+ Byte4_t YTsiz; /**< height of one reference tile with respect to the reference grid*/
+ Byte4_t XTOsiz; /**< horizontal offset from the origin of the reference grid to the left side of the first tile*/
+ Byte4_t YTOsiz; /**< vertical offset from the origin of the reference grid to the top side of the first tile*/
+ Byte4_t XTnum; /**< number of tiles in horizontal direction*/
+ Byte4_t YTnum; /**< number of tiles in vertical direction*/
+ Byte2_t Csiz; /**< number of the components in the image*/
+ Byte_t Ssiz[3]; /**< precision (depth) in bits and sign of the component samples*/
+ Byte_t XRsiz[3]; /**< horizontal separation of a sample of component with respect to the reference grid*/
+ Byte_t YRsiz[3]; /**< vertical separation of a sample of component with respect to the reference grid*/
} SIZmarker_param_t;
/** A.6.1 Coding style default (COD)*/
-typedef struct CODmarker_param{
- Byte2_t Lcod; /**< length of marker segment excluding the marker*/
- Byte_t Scod; /**< Coding style for all components*/
- OPJ_PROG_ORDER prog_order; /**< progression order*/
- Byte2_t numOflayers; /**< number of layers*/
- Byte_t numOfdecomp; /**< number of decompositions levels*/
- Byte4_t *XPsiz; /**< dynamic array of precinct width at successive resolution level in order*/
- Byte4_t *YPsiz; /**< dynamic array of precinct height at successive resolution level in order*/
+typedef struct CODmarker_param {
+ Byte2_t Lcod; /**< length of marker segment excluding the marker*/
+ Byte_t Scod; /**< Coding style for all components*/
+ OPJ_PROG_ORDER prog_order; /**< progression order*/
+ Byte2_t numOflayers; /**< number of layers*/
+ Byte_t numOfdecomp; /**< number of decompositions levels*/
+ Byte4_t *XPsiz; /**< dynamic array of precinct width at successive resolution level in order*/
+ Byte4_t *YPsiz; /**< dynamic array of precinct height at successive resolution level in order*/
} CODmarker_param_t;
/** index parameters*/
-typedef struct index_param{
- metadatalist_param_t *metadatalist; /**< metadata-bin list*/
- OPJ_OFF_T offset; /**< codestream offset*/
- Byte8_t length; /**< codestream length */
- Byte8_t mhead_length; /**< main header length */
- SIZmarker_param_t SIZ; /**< SIZ marker information*/
- CODmarker_param_t COD; /**< COD marker information*/
- faixbox_param_t *tilepart; /**< tile part information from tpix box*/
- mhixbox_param_t **tileheader; /**< dynamic array of tile header information from thix box*/
- faixbox_param_t **precpacket; /**< dynamic array of precint packet information from ppix box*/
+typedef struct index_param {
+ metadatalist_param_t *metadatalist; /**< metadata-bin list*/
+ OPJ_OFF_T offset; /**< codestream offset*/
+ Byte8_t length; /**< codestream length */
+ Byte8_t mhead_length; /**< main header length */
+ SIZmarker_param_t SIZ; /**< SIZ marker information*/
+ CODmarker_param_t COD; /**< COD marker information*/
+ faixbox_param_t *tilepart; /**< tile part information from tpix box*/
+ mhixbox_param_t **tileheader; /**< dynamic array of tile header information from thix box*/
+ faixbox_param_t **precpacket; /**< dynamic array of precint packet information from ppix box*/
} index_param_t;
@@ -142,9 +142,9 @@ void delete_COD( CODmarker_param_t COD);
/** 1-dimensional range parameters*/
-typedef struct range_param{
- Byte4_t minvalue; /**< minimal value*/
- Byte4_t maxvalue; /**< maximal value*/
+typedef struct range_param {
+ Byte4_t minvalue; /**< minimal value*/
+ Byte4_t maxvalue; /**< maximal value*/
} range_param_t;
/**