Lines Matching refs:numcomps
586 opj_read_bytes(p_image_header_data, &(jp2->numcomps), 2); /* NC */ in opj_jp2_read_ihdr()
589 if ((jp2->numcomps - 1U) >= in opj_jp2_read_ihdr()
597 jp2->comps = (opj_jp2_comps_t*) opj_calloc(jp2->numcomps, in opj_jp2_read_ihdr()
661 opj_write_bytes(l_current_ihdr_ptr, jp2->numcomps, 2); /* NC */ in opj_jp2_write_ihdr()
695 l_bpcc_size = 8 + jp2->numcomps; in opj_jp2_write_bpcc()
711 for (i = 0; i < jp2->numcomps; ++i) { in opj_jp2_write_bpcc()
743 if (p_bpc_header_size != jp2->numcomps) { in opj_jp2_read_bpcc()
749 for (i = 0; i < jp2->numcomps; ++i) { in opj_jp2_read_bpcc()
899 … image->numcomps; /* FIXME image->numcomps == jp2->numcomps before color is applied ??? */ in opj_jp2_check_color()
948 if (cmap[i].cmp >= image->numcomps) { in opj_jp2_check_color()
950 cmap[i].cmp, image->numcomps); in opj_jp2_check_color()
1004 if (1 && is_sane && (image->numcomps == 1U)) { in opj_jp2_check_color()
1147 max = image->numcomps; in opj_jp2_apply_pclr()
1156 image->numcomps = nr_channels; in opj_jp2_apply_pclr()
1352 if (cn >= image->numcomps) { in opj_jp2_apply_cdef()
1354 cn, image->numcomps); in opj_jp2_apply_cdef()
1363 if (acn >= image->numcomps) { in opj_jp2_apply_cdef()
1365 acn, image->numcomps); in opj_jp2_apply_cdef()
1946 if (image->numcomps < 1 || image->numcomps > 16384) { in opj_jp2_setup_encoder()
1975 jp2->numcomps = image->numcomps; /* NC */ in opj_jp2_setup_encoder()
1976 jp2->comps = (opj_jp2_comps_t*) opj_malloc(jp2->numcomps * sizeof( in opj_jp2_setup_encoder()
1991 for (i = 1; i < image->numcomps; i++) { in opj_jp2_setup_encoder()
2003 for (i = 0; i < image->numcomps; i++) { in opj_jp2_setup_encoder()
2026 for (i = 0; i < image->numcomps; i++) { in opj_jp2_setup_encoder()
2048 } else if (image->numcomps < (color_channels + 1)) { in opj_jp2_setup_encoder()
2071 image->numcomps * sizeof(opj_jp2_cdef_info_t)); in opj_jp2_setup_encoder()
2079 image->numcomps; /* cast is valid : image->numcomps [1,16384] */ in opj_jp2_setup_encoder()
2087 for (; i < image->numcomps; i++) { in opj_jp2_setup_encoder()
2258 for (i = 0; i < jp2->numcomps; ++i) { in opj_jp2_default_validation()
3093 OPJ_UINT32 numcomps, in opj_jp2_set_decoded_components() argument
3098 numcomps, comps_indices, in opj_jp2_set_decoded_components()