Lines Matching refs:jp2_cdef
769 assert(jp2->color.jp2_cdef != 00); in opj_jp2_write_cdef()
770 assert(jp2->color.jp2_cdef->info != 00); in opj_jp2_write_cdef()
771 assert(jp2->color.jp2_cdef->n > 0U); in opj_jp2_write_cdef()
773 l_cdef_size += 6U * jp2->color.jp2_cdef->n; in opj_jp2_write_cdef()
788 l_value = jp2->color.jp2_cdef->n; in opj_jp2_write_cdef()
792 for (i = 0U; i < jp2->color.jp2_cdef->n; ++i) { in opj_jp2_write_cdef()
793 l_value = jp2->color.jp2_cdef->info[i].cn; in opj_jp2_write_cdef()
796 l_value = jp2->color.jp2_cdef->info[i].typ; in opj_jp2_write_cdef()
799 l_value = jp2->color.jp2_cdef->info[i].asoc; in opj_jp2_write_cdef()
895 if (color->jp2_cdef) { in opj_jp2_check_color()
896 opj_jp2_cdef_info_t *info = color->jp2_cdef->info; in opj_jp2_check_color()
897 OPJ_UINT16 n = color->jp2_cdef->n; in opj_jp2_check_color()
1344 info = color->jp2_cdef->info; in opj_jp2_apply_cdef()
1345 n = color->jp2_cdef->n; in opj_jp2_apply_cdef()
1392 if (color->jp2_cdef->info) { in opj_jp2_apply_cdef()
1393 opj_free(color->jp2_cdef->info); in opj_jp2_apply_cdef()
1396 opj_free(color->jp2_cdef); in opj_jp2_apply_cdef()
1397 color->jp2_cdef = NULL; in opj_jp2_apply_cdef()
1419 if (jp2->color.jp2_cdef) { in opj_jp2_read_cdef()
1448 jp2->color.jp2_cdef = (opj_jp2_cdef_t*)opj_malloc(sizeof(opj_jp2_cdef_t)); in opj_jp2_read_cdef()
1449 if (!jp2->color.jp2_cdef) { in opj_jp2_read_cdef()
1453 jp2->color.jp2_cdef->info = cdef_info; in opj_jp2_read_cdef()
1454 jp2->color.jp2_cdef->n = (OPJ_UINT16) l_value; in opj_jp2_read_cdef()
1456 for (i = 0; i < jp2->color.jp2_cdef->n; ++i) { in opj_jp2_read_cdef()
1661 if (jp2->color.jp2_cdef) { in opj_jp2_decode()
1709 if (jp2->color.jp2_cdef != NULL) { in opj_jp2_write_jp2h()
2062 jp2->color.jp2_cdef = (opj_jp2_cdef_t*)opj_malloc(sizeof(opj_jp2_cdef_t)); in opj_jp2_setup_encoder()
2063 if (!jp2->color.jp2_cdef) { in opj_jp2_setup_encoder()
2070 jp2->color.jp2_cdef->info = (opj_jp2_cdef_info_t*) opj_malloc( in opj_jp2_setup_encoder()
2072 if (!jp2->color.jp2_cdef->info) { in opj_jp2_setup_encoder()
2078 jp2->color.jp2_cdef->n = (OPJ_UINT16) in opj_jp2_setup_encoder()
2081 jp2->color.jp2_cdef->info[i].cn = (OPJ_UINT16) in opj_jp2_setup_encoder()
2083 jp2->color.jp2_cdef->info[i].typ = 0U; in opj_jp2_setup_encoder()
2084 jp2->color.jp2_cdef->info[i].asoc = (OPJ_UINT16)(i + in opj_jp2_setup_encoder()
2089 jp2->color.jp2_cdef->info[i].cn = (OPJ_UINT16) in opj_jp2_setup_encoder()
2091 jp2->color.jp2_cdef->info[i].typ = 1U; /* Opacity channel */ in opj_jp2_setup_encoder()
2092 jp2->color.jp2_cdef->info[i].asoc = in opj_jp2_setup_encoder()
2096 jp2->color.jp2_cdef->info[i].cn = (OPJ_UINT16) in opj_jp2_setup_encoder()
2098 jp2->color.jp2_cdef->info[i].typ = 65535U; in opj_jp2_setup_encoder()
2099 jp2->color.jp2_cdef->info[i].asoc = 65535U; in opj_jp2_setup_encoder()
3046 if (jp2->color.jp2_cdef) { in opj_jp2_destroy()
3047 if (jp2->color.jp2_cdef->info) { in opj_jp2_destroy()
3048 opj_free(jp2->color.jp2_cdef->info); in opj_jp2_destroy()
3049 jp2->color.jp2_cdef->info = NULL; in opj_jp2_destroy()
3052 opj_free(jp2->color.jp2_cdef); in opj_jp2_destroy()
3053 jp2->color.jp2_cdef = 00; in opj_jp2_destroy()
3169 if (p_jp2->color.jp2_cdef) { in opj_jp2_get_tile()
3206 jp2->color.jp2_cdef = NULL; in opj_jp2_create()