| OLD | NEW |
| 1 /* | 1 /* |
| 2 * The copyright in this software is being made available under the 2-clauses | 2 * The copyright in this software is being made available under the 2-clauses |
| 3 * BSD License, included below. This software may be subject to other third | 3 * BSD License, included below. This software may be subject to other third |
| 4 * party and contributor rights, including patent rights, and no such rights | 4 * party and contributor rights, including patent rights, and no such rights |
| 5 * are granted under this license. | 5 * are granted under this license. |
| 6 * | 6 * |
| 7 * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium | 7 * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium |
| 8 * Copyright (c) 2002-2014, Professor Benoit Macq | 8 * Copyright (c) 2002-2014, Professor Benoit Macq |
| 9 * Copyright (c) 2001-2003, David Janssens | 9 * Copyright (c) 2001-2003, David Janssens |
| 10 * Copyright (c) 2002-2003, Yannick Verschueren | 10 * Copyright (c) 2002-2003, Yannick Verschueren |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 /** | 96 /** |
| 97 Tier-1 coding (coding of code-block coefficients) | 97 Tier-1 coding (coding of code-block coefficients) |
| 98 */ | 98 */ |
| 99 typedef struct opj_t1 { | 99 typedef struct opj_t1 { |
| 100 | 100 |
| 101 /** MQC component */ | 101 /** MQC component */ |
| 102 opj_mqc_t *mqc; | 102 opj_mqc_t *mqc; |
| 103 /** RAW component */ | 103 /** RAW component */ |
| 104 opj_raw_t *raw; | 104 opj_raw_t *raw; |
| 105 | 105 |
| 106 OPJ_INT32 *data; | 106 » OPJ_INT32 *data; |
| 107 opj_flag_t *flags; | 107 opj_flag_t *flags; |
| 108 OPJ_UINT32 w; | 108 OPJ_UINT32 w; |
| 109 OPJ_UINT32 h; | 109 OPJ_UINT32 h; |
| 110 OPJ_UINT32 datasize; | 110 OPJ_UINT32 datasize; |
| 111 OPJ_UINT32 flagssize; | 111 OPJ_UINT32 flagssize; |
| 112 OPJ_UINT32 flags_stride; | 112 OPJ_UINT32 flags_stride; |
| 113 OPJ_UINT32 data_stride; |
| 114 OPJ_BOOL encoder; |
| 113 } opj_t1_t; | 115 } opj_t1_t; |
| 114 | 116 |
| 115 #define MACRO_t1_flags(x,y) t1->flags[((x)*(t1->flags_stride))+(y)] | 117 #define MACRO_t1_flags(x,y) t1->flags[((x)*(t1->flags_stride))+(y)] |
| 116 | 118 |
| 117 /** @name Exported functions */ | 119 /** @name Exported functions */ |
| 118 /*@{*/ | 120 /*@{*/ |
| 119 /* ----------------------------------------------------------------------- */ | 121 /* ----------------------------------------------------------------------- */ |
| 120 | 122 |
| 121 /** | 123 /** |
| 122 Encode the code-blocks of a tile | 124 Encode the code-blocks of a tile |
| (...skipping 17 matching lines...) Expand all Loading... |
| 140 opj_tcd_tilecomp_t* tilec, | 142 opj_tcd_tilecomp_t* tilec, |
| 141 opj_tccp_t* tccp); | 143 opj_tccp_t* tccp); |
| 142 | 144 |
| 143 | 145 |
| 144 | 146 |
| 145 /** | 147 /** |
| 146 * Creates a new Tier 1 handle | 148 * Creates a new Tier 1 handle |
| 147 * and initializes the look-up tables of the Tier-1 coder/decoder | 149 * and initializes the look-up tables of the Tier-1 coder/decoder |
| 148 * @return a new T1 handle if successful, returns NULL otherwise | 150 * @return a new T1 handle if successful, returns NULL otherwise |
| 149 */ | 151 */ |
| 150 opj_t1_t* opj_t1_create(void); | 152 opj_t1_t* opj_t1_create(OPJ_BOOL isEncoder); |
| 151 | 153 |
| 152 /** | 154 /** |
| 153 * Destroys a previously created T1 handle | 155 * Destroys a previously created T1 handle |
| 154 * | 156 * |
| 155 * @param p_t1 Tier 1 handle to destroy | 157 * @param p_t1 Tier 1 handle to destroy |
| 156 */ | 158 */ |
| 157 void opj_t1_destroy(opj_t1_t *p_t1); | 159 void opj_t1_destroy(opj_t1_t *p_t1); |
| 158 /* ----------------------------------------------------------------------- */ | 160 /* ----------------------------------------------------------------------- */ |
| 159 /*@}*/ | 161 /*@}*/ |
| 160 | 162 |
| 161 /*@}*/ | 163 /*@}*/ |
| 162 | 164 |
| 163 #endif /* __T1_H */ | 165 #endif /* __T1_H */ |
| OLD | NEW |