/external/pdfium/third_party/libopenjpeg20/ |
D | 0003-dwt-decode.patch | 16 OPJ_INT32* mem; 18 OPJ_INT32 dn; 19 OPJ_INT32 sn; 20 OPJ_INT32 cas; 21 @@ -107,16 +105,16 @@ static void opj_dwt_interleave_v(opj_dwt_t* v, OPJ_INT32 *a, OPJ_INT32 x); 25 -static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas); 26 +static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT… 31 -static void opj_dwt_decode_1_(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas); 32 +static void opj_dwt_decode_1_(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_IN… 36 -static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas); [all …]
|
D | opj_intmath.h | 56 static INLINE OPJ_INT32 opj_int_min(OPJ_INT32 a, OPJ_INT32 b) { in opj_int_min() 72 static INLINE OPJ_INT32 opj_int_max(OPJ_INT32 a, OPJ_INT32 b) { in opj_int_max() 90 return (OPJ_UINT32)(-(OPJ_INT32)(sum >> 32)) | (OPJ_UINT32)sum; in opj_uint_adds() 102 static INLINE OPJ_INT32 opj_int_clamp(OPJ_INT32 a, OPJ_INT32 min, OPJ_INT32 max) { in opj_int_clamp() 112 static INLINE OPJ_INT32 opj_int_abs(OPJ_INT32 a) { in opj_int_abs() 119 static INLINE OPJ_INT32 opj_int_ceildiv(OPJ_INT32 a, OPJ_INT32 b) { in opj_int_ceildiv() 137 static INLINE OPJ_INT32 opj_int_ceildivpow2(OPJ_INT32 a, OPJ_INT32 b) { in opj_int_ceildivpow2() 138 return (OPJ_INT32)((a + ((OPJ_INT64)1 << b) - 1) >> b); in opj_int_ceildivpow2() 145 static INLINE OPJ_INT32 opj_int64_ceildivpow2(OPJ_INT64 a, OPJ_INT32 b) { in opj_int64_ceildivpow2() 146 return (OPJ_INT32)((a + ((OPJ_INT64)1 << b) - 1) >> b); in opj_int64_ceildivpow2() [all …]
|
D | dwt.c | 53 OPJ_INT32* mem; 55 OPJ_INT32 dn; 56 OPJ_INT32 sn; 57 OPJ_INT32 cas; 66 OPJ_INT32 dn ; 67 OPJ_INT32 sn ; 68 OPJ_INT32 cas ; 92 static void opj_dwt_deinterleave_h(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT3… 96 static void opj_dwt_deinterleave_v(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT3… 100 static void opj_dwt_interleave_h(opj_dwt_t* h, OPJ_INT32 *a); [all …]
|
D | t1.c | 60 OPJ_INT32 *datap, 62 OPJ_INT32 bpno, 63 OPJ_INT32 one, 64 OPJ_INT32 *nmsedec, 74 OPJ_INT32 *datap, 76 OPJ_INT32 oneplushalf, 84 OPJ_INT32 *datap, 85 OPJ_INT32 orient, 86 OPJ_INT32 oneplushalf, 87 OPJ_INT32 vsc); [all …]
|
D | mct.c | 77 OPJ_INT32* restrict c0, in opj_mct_encode() 78 OPJ_INT32* restrict c1, in opj_mct_encode() 79 OPJ_INT32* restrict c2, in opj_mct_encode() 102 OPJ_INT32 r = c0[i]; in opj_mct_encode() 103 OPJ_INT32 g = c1[i]; in opj_mct_encode() 104 OPJ_INT32 b = c2[i]; in opj_mct_encode() 105 OPJ_INT32 y = (r + (g * 2) + b) >> 2; in opj_mct_encode() 106 OPJ_INT32 u = b - g; in opj_mct_encode() 107 OPJ_INT32 v = r - g; in opj_mct_encode() 115 OPJ_INT32* restrict c0, in opj_mct_encode() [all …]
|
D | pi.c | 95 OPJ_INT32 p_tx0, 96 OPJ_INT32 p_tx1, 97 OPJ_INT32 p_ty0, 98 OPJ_INT32 p_ty1, 122 OPJ_INT32 p_tx0, 123 OPJ_INT32 p_tx1, 124 OPJ_INT32 p_ty0, 125 OPJ_INT32 p_ty1, 148 OPJ_INT32 * p_tx0, 149 OPJ_INT32 * p_tx1, [all …]
|
D | mct.h | 63 void opj_mct_encode(OPJ_INT32 *c0, OPJ_INT32 *c1, OPJ_INT32 *c2, OPJ_UINT32 n); 71 void opj_mct_decode(OPJ_INT32 *c0, OPJ_INT32 *c1, OPJ_INT32 *c2, OPJ_UINT32 n); 86 void opj_mct_encode_real(OPJ_INT32 *c0, OPJ_INT32 *c1, OPJ_INT32 *c2, OPJ_UINT32 n);
|
D | 0009-opj_pi_next.patch | 6 …prcj = opj_int_floordivpow2(opj_int_ceildiv(pi->y, (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)r… 7 - opj_int_floordivpow2(try0, (OPJ_INT32)res->pdy); 8 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw); 16 …prcj = opj_int_floordivpow2(opj_int_ceildiv(pi->y, (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)r… 17 - opj_int_floordivpow2(try0, (OPJ_INT32)res->pdy); 18 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw); 26 …prcj = opj_int_floordivpow2(opj_int_ceildiv(pi->y, (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)r… 27 - opj_int_floordivpow2(try0, (OPJ_INT32)res->pdy); 28 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw);
|
D | opj_codec.h | 68 OPJ_INT32 * p_tile_x0, 69 OPJ_INT32 * p_tile_y0, 70 OPJ_INT32 * p_tile_x1, 71 OPJ_INT32 * p_tile_y1, 99 OPJ_INT32 p_start_x, 100 OPJ_INT32 p_end_x, 101 OPJ_INT32 p_start_y, 102 OPJ_INT32 p_end_y, 157 void (*opj_dump_codec) (void * p_codec, OPJ_INT32 info_flag, FILE* output_stream);
|
D | tcd.h | 93 …OPJ_INT32 x0, y0, x1, y1; /* dimension of the code-blocks : left upper corner (x0, y0) right l… 106 …OPJ_INT32 x0, y0, x1, y1; /* position of the code-blocks : left upper corner (x0, y0) right low c… 121 …OPJ_INT32 x0, y0, x1, y1; /* dimension of the precinct : left upper corner (x0, y0) right low cor… 137 …OPJ_INT32 x0, y0, x1, y1; /* dimension of the subband : left upper corner (x0, y0) right low corn… 141 OPJ_INT32 numbps; 149 …OPJ_INT32 x0, y0, x1, y1; /* dimension of the resolution level : left upper corner (x0, y0) right… 160 …OPJ_INT32 x0, y0, x1, y1; /* dimension of component : left upper corner (x0, y0) right l… 165 OPJ_INT32 *data; /* data of the component */ 169 OPJ_INT32 numpix; /* add fixed_quality */ 177 …OPJ_INT32 x0, y0, x1, y1; /* dimension of the tile : left upper corner (x0, y0) right low corner … [all …]
|
D | j2k.h | 168 OPJ_INT32 expn; 170 OPJ_INT32 mant; 197 OPJ_INT32 roishift; 203 OPJ_INT32 m_dc_level_shift; 324 OPJ_INT32 m_tp_pos; 326 OPJ_INT32 *m_matrice; 395 OPJ_INT32 ppm_store; 397 OPJ_INT32 ppm_previous; 489 OPJ_INT32 m_tile_ind_to_dec; 704 OPJ_INT32 * p_tile_x0, [all …]
|
D | tgt.c | 49 OPJ_INT32 nplh[32]; in opj_tgt_create() 50 OPJ_INT32 nplv[32]; in opj_tgt_create() 56 OPJ_INT32 j,k; in opj_tgt_create() 70 nplh[0] = (OPJ_INT32)numleafsh; in opj_tgt_create() 71 nplv[0] = (OPJ_INT32)numleafsv; in opj_tgt_create() 135 OPJ_INT32 l_nplh[32]; in opj_tgt_init() 136 OPJ_INT32 l_nplv[32]; in opj_tgt_init() 141 OPJ_INT32 j,k; in opj_tgt_init() 155 l_nplh[0] = (OPJ_INT32)p_num_leafs_h; in opj_tgt_init() 156 l_nplv[0] = (OPJ_INT32)p_num_leafs_v; in opj_tgt_init() [all …]
|
D | openjpeg.c | 177 l_codec->opj_dump_codec = (void (*) (void*, OPJ_INT32, FILE*)) j2k_dump; in opj_create_decompress() 209 OPJ_INT32*, OPJ_INT32*, in opj_create_decompress() 210 OPJ_INT32*, OPJ_INT32*, in opj_create_decompress() 227 OPJ_INT32, OPJ_INT32, OPJ_INT32, OPJ_INT32, in opj_create_decompress() 253 l_codec->opj_dump_codec = (void (*) (void*, OPJ_INT32, FILE*)) jp2_dump; in opj_create_decompress() 280 OPJ_INT32*, in opj_create_decompress() 281 OPJ_INT32*, in opj_create_decompress() 282 OPJ_INT32 * , in opj_create_decompress() 283 OPJ_INT32 * , in opj_create_decompress() 303 OPJ_INT32,OPJ_INT32,OPJ_INT32,OPJ_INT32, in opj_create_decompress() [all …]
|
D | tcd.c | 305 …OPJ_INT32 value; /*, matrice[tcd_tcp->numlayers][tcd_tile->comps[0].numreso… in opj_tcd_makelayer_fixed() 306 OPJ_INT32 matrice[10][10][3]; in opj_tcd_makelayer_fixed() 320 …(OPJ_INT32) ((OPJ_FLOAT32)cp->m_specific_param.m_enc.m_matrice[i * tilec->numresolutions * 3 + j *… in opj_tcd_makelayer_fixed() 339 …OPJ_INT32 imsb = (OPJ_INT32)(tcd->image->comps[compno].prec - cblk->numbps); /* number of bit-plan… in opj_tcd_makelayer_fixed() 436 OPJ_INT32 dr; in opj_tcd_rateallocate() 440 dr = (OPJ_INT32)pass->rate; in opj_tcd_rateallocate() 443 … dr = (OPJ_INT32)(pass->rate - cblk->passes[passno - 1].rate); in opj_tcd_rateallocate() 629 l_tilec->data = (OPJ_INT32 *) opj_malloc(l_tilec->data_size_needed); in opj_alloc_tile_component_data() 638 OPJ_INT32 * new_data = (OPJ_INT32 *) opj_realloc(l_tilec->data, l_tilec->data_size_needed); in opj_alloc_tile_component_data() 678 OPJ_INT32 l_x0b, l_y0b; in opj_tcd_init_tile() [all …]
|
D | mqc.c | 78 static INLINE OPJ_INT32 opj_mqc_mpsexchange(opj_mqc_t *const mqc); 84 static INLINE OPJ_INT32 opj_mqc_lpsexchange(opj_mqc_t *const mqc); 280 static INLINE OPJ_INT32 opj_mqc_mpsexchange(opj_mqc_t *const mqc) { in opj_mqc_mpsexchange() 281 OPJ_INT32 d; in opj_mqc_mpsexchange() 283 d = (OPJ_INT32)(1 - (*mqc->curctx)->mps); in opj_mqc_mpsexchange() 286 d = (OPJ_INT32)(*mqc->curctx)->mps; in opj_mqc_mpsexchange() 293 static INLINE OPJ_INT32 opj_mqc_lpsexchange(opj_mqc_t *const mqc) { in opj_mqc_lpsexchange() 294 OPJ_INT32 d; in opj_mqc_lpsexchange() 297 d = (OPJ_INT32)(*mqc->curctx)->mps; in opj_mqc_lpsexchange() 301 d = (OPJ_INT32)(1 - (*mqc->curctx)->mps); in opj_mqc_lpsexchange() [all …]
|
D | jp2.h | 207 OPJ_INT32 init_pos; 353 OPJ_INT32 * p_tile_x0, 354 OPJ_INT32 * p_tile_y0, 355 OPJ_INT32 * p_tile_x1, 356 OPJ_INT32 * p_tile_y1, 426 OPJ_INT32 p_start_x, OPJ_INT32 p_start_y, 427 OPJ_INT32 p_end_x, OPJ_INT32 p_end_y, 457 void jp2_dump (opj_jp2_t* p_jp2, OPJ_INT32 flag, FILE* out_stream);
|
D | tgt.h | 59 OPJ_INT32 value; 60 OPJ_INT32 low; 118 OPJ_INT32 value); 129 OPJ_INT32 threshold); 141 OPJ_INT32 threshold);
|
D | 0001-image-data.patch | 10 …_img_comp_dest->data = (OPJ_INT32*) opj_calloc((OPJ_SIZE_T)l_img_comp_dest->w * (OPJ_SIZE_T)l_img_… 16 + const OPJ_UINT32 MAX_SIZE = UINT32_MAX / sizeof(OPJ_INT32); 20 + l_img_comp_dest->data = (OPJ_INT32*)opj_calloc(width * height, sizeof(OPJ_INT3…
|
D | openjpeg.h | 125 typedef int32_t OPJ_INT32; typedef 339 OPJ_INT32 tx0,tx1,ty0,ty1; 653 OPJ_INT32 *data; 886 OPJ_INT32 roishift; 1031 OPJ_INT32 not_used; 1041 OPJ_INT32 not_used; 1295 OPJ_INT32 p_start_x, OPJ_INT32 p_start_y, 1296 OPJ_INT32 p_end_x, OPJ_INT32 p_end_y ); 1377 OPJ_INT32 * p_tile_x0, OPJ_INT32 * p_tile_y0, 1378 OPJ_INT32 * p_tile_x1, OPJ_INT32 * p_tile_y1, [all …]
|
D | j2k.c | 1358 l_src_data+=sizeof(OPJ_INT32); in opj_j2k_read_int32_to_float() 1399 OPJ_INT32 * l_dest_data = (OPJ_INT32 *) p_dest_data; in opj_j2k_read_int16_to_int32() 1408 *(l_dest_data++) = (OPJ_INT32) l_temp; in opj_j2k_read_int16_to_int32() 1415 OPJ_INT32 * l_dest_data = (OPJ_INT32 *) p_dest_data; in opj_j2k_read_int32_to_int32() 1422 l_src_data+=sizeof(OPJ_INT32); in opj_j2k_read_int32_to_int32() 1424 *(l_dest_data++) = (OPJ_INT32) l_temp; in opj_j2k_read_int32_to_int32() 1431 OPJ_INT32 * l_dest_data = (OPJ_INT32 *) p_dest_data; in opj_j2k_read_float32_to_int32() 1440 *(l_dest_data++) = (OPJ_INT32) l_temp; in opj_j2k_read_float32_to_int32() 1447 OPJ_INT32 * l_dest_data = (OPJ_INT32 *) p_dest_data; in opj_j2k_read_float64_to_int32() 1456 *(l_dest_data++) = (OPJ_INT32) l_temp; in opj_j2k_read_float64_to_int32() [all …]
|
D | pi.h | 103 OPJ_INT32 tx0, ty0, tx1, ty1; 105 OPJ_INT32 x, y; 154 OPJ_INT32 tppos,
|
D | t2.c | 48 static void opj_t2_putcommacode(opj_bio_t *bio, OPJ_INT32 n); 159 static void opj_t2_putcommacode(opj_bio_t *bio, OPJ_INT32 n) { in opj_t2_putcommacode() 213 OPJ_INT32 p_tp_pos, in opj_t2_encode_packets() 457 …} else if (info_TL->packet[p_cstr_info->packno-1].end_pos >= (OPJ_INT32)p_cstr_info->tile[p_tile_n… in opj_t2_decode_packets() 618 … opj_tgt_setvalue(prc->imsbtree, cblkno, band->numbps - (OPJ_INT32)cblk->numbps); in opj_t2_encode_packet() 644 opj_tgt_setvalue(prc->incltree, cblkno, (OPJ_INT32)layno); in opj_t2_encode_packet() 660 opj_tgt_encode(bio, prc->incltree, cblkno, (OPJ_INT32)(layno + 1)); in opj_t2_encode_packet() 688 … increment = (OPJ_UINT32)opj_int_max((OPJ_INT32)increment, opj_int_floorlog2((OPJ_INT32)len) + 1 in opj_t2_encode_packet() 689 … - ((OPJ_INT32)cblk->numlenbits + opj_int_floorlog2((OPJ_INT32)nump))); in opj_t2_encode_packet() 696 opj_t2_putcommacode(bio, (OPJ_INT32)increment); in opj_t2_encode_packet() [all …]
|
D | 0006-tcd_init_tile.patch | 6 l_tilec->x1 = opj_int_ceildiv(l_tile->x1, (OPJ_INT32)l_image_comp->dx); 7 l_tilec->y1 = opj_int_ceildiv(l_tile->y1, (OPJ_INT32)l_image_comp->dy);
|
D | mqc.h | 117 void opj_mqc_setstate(opj_mqc_t *mqc, OPJ_UINT32 ctxno, OPJ_UINT32 msb, OPJ_INT32 prob); 201 OPJ_INT32 opj_mqc_decode(opj_mqc_t * const mqc);
|
/external/pdfium/core/src/fxcodec/codec/ |
D | fx_codec_jpx_unittest.cpp | 512 y.data = FX_Alloc(OPJ_INT32, y.w * y.h); in TEST() 513 memset(y.data, 1, y.w * y.h * sizeof(OPJ_INT32)); in TEST() 514 u.data = FX_Alloc(OPJ_INT32, u.w * u.h); in TEST() 515 memset(u.data, 0, u.w * u.h * sizeof(OPJ_INT32)); in TEST() 516 v.data = FX_Alloc(OPJ_INT32, v.w * v.h); in TEST() 517 memset(v.data, 0, v.w * v.h * sizeof(OPJ_INT32)); in TEST()
|