• Home
  • Raw
  • Download

Lines Matching refs:p_tcd

110 static INLINE OPJ_BOOL opj_tcd_init_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, OPJ_BOOL isEncoder…
145 static OPJ_BOOL opj_tcd_t2_decode ( opj_tcd_t *p_tcd,
152 static OPJ_BOOL opj_tcd_t1_decode (opj_tcd_t *p_tcd);
154 static OPJ_BOOL opj_tcd_dwt_decode (opj_tcd_t *p_tcd);
156 static OPJ_BOOL opj_tcd_mct_decode (opj_tcd_t *p_tcd, opj_event_mgr_t *p_manager);
158 static OPJ_BOOL opj_tcd_dc_level_shift_decode (opj_tcd_t *p_tcd);
161 static OPJ_BOOL opj_tcd_dc_level_shift_encode ( opj_tcd_t *p_tcd );
163 static OPJ_BOOL opj_tcd_mct_encode ( opj_tcd_t *p_tcd );
165 static OPJ_BOOL opj_tcd_dwt_encode ( opj_tcd_t *p_tcd );
167 static OPJ_BOOL opj_tcd_t1_encode ( opj_tcd_t *p_tcd );
169 static OPJ_BOOL opj_tcd_t2_encode ( opj_tcd_t *p_tcd,
175 static OPJ_BOOL opj_tcd_rate_allocate_encode( opj_tcd_t *p_tcd,
588 OPJ_BOOL opj_tcd_init( opj_tcd_t *p_tcd, in opj_tcd_init() argument
592 p_tcd->image = p_image; in opj_tcd_init()
593 p_tcd->cp = p_cp; in opj_tcd_init()
595 p_tcd->tcd_image->tiles = (opj_tcd_tile_t *) opj_calloc(1,sizeof(opj_tcd_tile_t)); in opj_tcd_init()
596 if (! p_tcd->tcd_image->tiles) { in opj_tcd_init()
600p_tcd->tcd_image->tiles->comps = (opj_tcd_tilecomp_t *) opj_calloc(p_image->numcomps,sizeof(opj_tc… in opj_tcd_init()
601 if (! p_tcd->tcd_image->tiles->comps ) { in opj_tcd_init()
605 p_tcd->tcd_image->tiles->numcomps = p_image->numcomps; in opj_tcd_init()
606 p_tcd->tp_pos = p_cp->m_specific_param.m_enc.m_tp_pos; in opj_tcd_init()
659 static INLINE OPJ_BOOL opj_tcd_init_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, OPJ_BOOL isEncoder… in opj_tcd_init_tile() argument
693 l_cp = p_tcd->cp; in opj_tcd_init_tile()
695 l_tile = p_tcd->tcd_image->tiles; in opj_tcd_init_tile()
698 l_image = p_tcd->image; in opj_tcd_init_tile()
699 l_image_comp = p_tcd->image->comps; in opj_tcd_init_tile()
763 if (p_tcd->m_is_decoder && !opj_alloc_tile_component_data(l_tilec)) { in opj_tcd_init_tile()
1063 OPJ_BOOL opj_tcd_init_encode_tile (opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, opj_event_mgr_t* p_manag… in opj_tcd_init_encode_tile() argument
1065 return opj_tcd_init_tile(p_tcd, p_tile_no, OPJ_TRUE, 1.0F, sizeof(opj_tcd_cblk_enc_t), p_manager); in opj_tcd_init_encode_tile()
1068 OPJ_BOOL opj_tcd_init_decode_tile (opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, opj_event_mgr_t* p_manag… in opj_tcd_init_decode_tile() argument
1070 return opj_tcd_init_tile(p_tcd, p_tile_no, OPJ_FALSE, 0.5F, sizeof(opj_tcd_cblk_dec_t), p_manager); in opj_tcd_init_decode_tile()
1159 OPJ_UINT32 opj_tcd_get_decoded_tile_size ( opj_tcd_t *p_tcd ) in opj_tcd_get_decoded_tile_size() argument
1169 l_tile_comp = p_tcd->tcd_image->tiles->comps; in opj_tcd_get_decoded_tile_size()
1170 l_img_comp = p_tcd->image->comps; in opj_tcd_get_decoded_tile_size()
1172 for (i=0;i<p_tcd->image->numcomps;++i) { in opj_tcd_get_decoded_tile_size()
1204 OPJ_BOOL opj_tcd_encode_tile( opj_tcd_t *p_tcd, in opj_tcd_encode_tile() argument
1212 if (p_tcd->cur_tp_num == 0) { in opj_tcd_encode_tile()
1214 p_tcd->tcd_tileno = p_tile_no; in opj_tcd_encode_tile()
1215 p_tcd->tcp = &p_tcd->cp->tcps[p_tile_no]; in opj_tcd_encode_tile()
1221 …opj_tcd_tilecomp_t *l_tilec_idx = &p_tcd->tcd_image->tiles->comps[0]; /* based on component… in opj_tcd_encode_tile()
1222 opj_tccp_t *l_tccp = p_tcd->tcp->tccps; /* based on component 0 */ in opj_tcd_encode_tile()
1244 if (! opj_tcd_dc_level_shift_encode(p_tcd)) { in opj_tcd_encode_tile()
1250 if (! opj_tcd_mct_encode(p_tcd)) { in opj_tcd_encode_tile()
1256 if (! opj_tcd_dwt_encode(p_tcd)) { in opj_tcd_encode_tile()
1262 if (! opj_tcd_t1_encode(p_tcd)) { in opj_tcd_encode_tile()
1268 if (! opj_tcd_rate_allocate_encode(p_tcd,p_dest,p_max_length,p_cstr_info)) { in opj_tcd_encode_tile()
1282 if (! opj_tcd_t2_encode(p_tcd,p_dest,p_data_written,p_max_length,p_cstr_info)) { in opj_tcd_encode_tile()
1292 OPJ_BOOL opj_tcd_decode_tile( opj_tcd_t *p_tcd, in opj_tcd_decode_tile() argument
1301 p_tcd->tcd_tileno = p_tile_no; in opj_tcd_decode_tile()
1302 p_tcd->tcp = &(p_tcd->cp->tcps[p_tile_no]); in opj_tcd_decode_tile()
1309 opj_tcp_t *tcp = &p_tcd->cp->tcps[0]; in opj_tcd_decode_tile()
1311 opj_tcd_tilecomp_t *tilec_idx = &p_tcd->tcd_image->tiles->comps[compno]; in opj_tcd_decode_tile()
1330 if (! opj_tcd_t2_decode(p_tcd, p_src, &l_data_read, p_max_length, p_cstr_index, p_manager)) in opj_tcd_decode_tile()
1340 (! opj_tcd_t1_decode(p_tcd)) in opj_tcd_decode_tile()
1350 (! opj_tcd_dwt_decode(p_tcd)) in opj_tcd_decode_tile()
1359 (! opj_tcd_mct_decode(p_tcd, p_manager)) in opj_tcd_decode_tile()
1367 (! opj_tcd_dc_level_shift_decode(p_tcd)) in opj_tcd_decode_tile()
1378 OPJ_BOOL opj_tcd_update_tile_data ( opj_tcd_t *p_tcd, in opj_tcd_update_tile_data() argument
1390 l_data_size = opj_tcd_get_decoded_tile_size(p_tcd); in opj_tcd_update_tile_data()
1395 l_tilec = p_tcd->tcd_image->tiles->comps; in opj_tcd_update_tile_data()
1396 l_img_comp = p_tcd->image->comps; in opj_tcd_update_tile_data()
1398 for (i=0;i<p_tcd->image->numcomps;++i) { in opj_tcd_update_tile_data()
1493 static void opj_tcd_free_tile(opj_tcd_t *p_tcd) in opj_tcd_free_tile() argument
1504 if (! p_tcd) { in opj_tcd_free_tile()
1508 if (! p_tcd->tcd_image) { in opj_tcd_free_tile()
1512 if (p_tcd->m_is_decoder) { in opj_tcd_free_tile()
1519 l_tile = p_tcd->tcd_image->tiles; in opj_tcd_free_tile()
1571 opj_free(p_tcd->tcd_image->tiles); in opj_tcd_free_tile()
1572 p_tcd->tcd_image->tiles = 00; in opj_tcd_free_tile()
1576 static OPJ_BOOL opj_tcd_t2_decode (opj_tcd_t *p_tcd, in opj_tcd_t2_decode() argument
1586 l_t2 = opj_t2_create(p_tcd->image, p_tcd->cp); in opj_tcd_t2_decode()
1593 p_tcd->tcd_tileno, in opj_tcd_t2_decode()
1594 p_tcd->tcd_image->tiles, in opj_tcd_t2_decode()
1610 static OPJ_BOOL opj_tcd_t1_decode ( opj_tcd_t *p_tcd ) in opj_tcd_t1_decode() argument
1614 opj_tcd_tile_t * l_tile = p_tcd->tcd_image->tiles; in opj_tcd_t1_decode()
1616 opj_tccp_t * l_tccp = p_tcd->tcp->tccps; in opj_tcd_t1_decode()
1640 static OPJ_BOOL opj_tcd_dwt_decode ( opj_tcd_t *p_tcd ) in opj_tcd_dwt_decode() argument
1643 opj_tcd_tile_t * l_tile = p_tcd->tcd_image->tiles; in opj_tcd_dwt_decode()
1645 opj_tccp_t * l_tccp = p_tcd->tcp->tccps; in opj_tcd_dwt_decode()
1646 opj_image_comp_t * l_img_comp = p_tcd->image->comps; in opj_tcd_dwt_decode()
1680 static OPJ_BOOL opj_tcd_mct_decode ( opj_tcd_t *p_tcd, opj_event_mgr_t *p_manager) in opj_tcd_mct_decode() argument
1682 opj_tcd_tile_t * l_tile = p_tcd->tcd_image->tiles; in opj_tcd_mct_decode()
1683 opj_tcp_t * l_tcp = p_tcd->tcp; in opj_tcd_mct_decode()
1727p_tcd->image->comps->sgnd)) { in opj_tcd_mct_decode()
1757 static OPJ_BOOL opj_tcd_dc_level_shift_decode ( opj_tcd_t *p_tcd ) in opj_tcd_dc_level_shift_decode() argument
1770 l_tile = p_tcd->tcd_image->tiles; in opj_tcd_dc_level_shift_decode()
1772 l_tccp = p_tcd->tcp->tccps; in opj_tcd_dc_level_shift_decode()
1773 l_img_comp = p_tcd->image->comps; in opj_tcd_dc_level_shift_decode()
1897 OPJ_UINT32 opj_tcd_get_encoded_tile_size ( opj_tcd_t *p_tcd ) in opj_tcd_get_encoded_tile_size() argument
1904 l_tilec = p_tcd->tcd_image->tiles->comps; in opj_tcd_get_encoded_tile_size()
1905 l_img_comp = p_tcd->image->comps; in opj_tcd_get_encoded_tile_size()
1906 for (i=0;i<p_tcd->image->numcomps;++i) { in opj_tcd_get_encoded_tile_size()
1926 static OPJ_BOOL opj_tcd_dc_level_shift_encode ( opj_tcd_t *p_tcd ) in opj_tcd_dc_level_shift_encode() argument
1936 l_tile = p_tcd->tcd_image->tiles; in opj_tcd_dc_level_shift_encode()
1938 l_tccp = p_tcd->tcp->tccps; in opj_tcd_dc_level_shift_encode()
1939 l_img_comp = p_tcd->image->comps; in opj_tcd_dc_level_shift_encode()
1966 static OPJ_BOOL opj_tcd_mct_encode ( opj_tcd_t *p_tcd ) in opj_tcd_mct_encode() argument
1968 opj_tcd_tile_t * l_tile = p_tcd->tcd_image->tiles; in opj_tcd_mct_encode()
1969 opj_tcd_tilecomp_t * l_tile_comp = p_tcd->tcd_image->tiles->comps; in opj_tcd_mct_encode()
1973 opj_tcp_t * l_tcp = p_tcd->tcp; in opj_tcd_mct_encode()
1975 if(!p_tcd->tcp->mct) { in opj_tcd_mct_encode()
1979 if (p_tcd->tcp->mct == 2) { in opj_tcd_mct_encode()
1980 if (! p_tcd->tcp->m_mct_coding_matrix) { in opj_tcd_mct_encode()
1995 (OPJ_BYTE*) p_tcd->tcp->m_mct_coding_matrix, in opj_tcd_mct_encode()
2003 p_tcd->image->comps->sgnd) ) in opj_tcd_mct_encode()
2021 static OPJ_BOOL opj_tcd_dwt_encode ( opj_tcd_t *p_tcd ) in opj_tcd_dwt_encode() argument
2023 opj_tcd_tile_t * l_tile = p_tcd->tcd_image->tiles; in opj_tcd_dwt_encode()
2024 opj_tcd_tilecomp_t * l_tile_comp = p_tcd->tcd_image->tiles->comps; in opj_tcd_dwt_encode()
2025 opj_tccp_t * l_tccp = p_tcd->tcp->tccps; in opj_tcd_dwt_encode()
2047 static OPJ_BOOL opj_tcd_t1_encode ( opj_tcd_t *p_tcd ) in opj_tcd_t1_encode() argument
2052 opj_tcp_t * l_tcp = p_tcd->tcp; in opj_tcd_t1_encode()
2070 l_mct_numcomps = p_tcd->image->numcomps; in opj_tcd_t1_encode()
2074 … if (! opj_t1_encode_cblks(l_t1, p_tcd->tcd_image->tiles , l_tcp, l_mct_norms, l_mct_numcomps)) { in opj_tcd_t1_encode()
2084 static OPJ_BOOL opj_tcd_t2_encode (opj_tcd_t *p_tcd, in opj_tcd_t2_encode() argument
2092 l_t2 = opj_t2_create(p_tcd->image, p_tcd->cp); in opj_tcd_t2_encode()
2099 p_tcd->tcd_tileno, in opj_tcd_t2_encode()
2100 p_tcd->tcd_image->tiles, in opj_tcd_t2_encode()
2101 p_tcd->tcp->numlayers, in opj_tcd_t2_encode()
2106 p_tcd->tp_num, in opj_tcd_t2_encode()
2107 p_tcd->tp_pos, in opj_tcd_t2_encode()
2108 p_tcd->cur_pino, in opj_tcd_t2_encode()
2122 static OPJ_BOOL opj_tcd_rate_allocate_encode( opj_tcd_t *p_tcd, in opj_tcd_rate_allocate_encode() argument
2127 opj_cp_t * l_cp = p_tcd->cp; in opj_tcd_rate_allocate_encode()
2137 … if (! opj_tcd_rateallocate(p_tcd, p_dest_data,&l_nb_written, p_max_dest_size, p_cstr_info)) { in opj_tcd_rate_allocate_encode()
2143 opj_tcd_rateallocate_fixed(p_tcd); in opj_tcd_rate_allocate_encode()
2150 OPJ_BOOL opj_tcd_copy_tile_data ( opj_tcd_t *p_tcd, in opj_tcd_copy_tile_data() argument
2160 l_data_size = opj_tcd_get_encoded_tile_size(p_tcd); in opj_tcd_copy_tile_data()
2165 l_tilec = p_tcd->tcd_image->tiles->comps; in opj_tcd_copy_tile_data()
2166 l_img_comp = p_tcd->image->comps; in opj_tcd_copy_tile_data()
2167 for (i=0;i<p_tcd->image->numcomps;++i) { in opj_tcd_copy_tile_data()