• Home
  • Raw
  • Download

Lines Matching refs:p_image_dest

148 void opj_copy_image_header(const opj_image_t* p_image_src, opj_image_t* p_image_dest)  in opj_copy_image_header()  argument
154 assert(p_image_dest != 00); in opj_copy_image_header()
156 p_image_dest->x0 = p_image_src->x0; in opj_copy_image_header()
157 p_image_dest->y0 = p_image_src->y0; in opj_copy_image_header()
158 p_image_dest->x1 = p_image_src->x1; in opj_copy_image_header()
159 p_image_dest->y1 = p_image_src->y1; in opj_copy_image_header()
161 if (p_image_dest->comps){ in opj_copy_image_header()
162 for(compno = 0; compno < p_image_dest->numcomps; compno++) { in opj_copy_image_header()
163 opj_image_comp_t *image_comp = &(p_image_dest->comps[compno]); in opj_copy_image_header()
168 opj_free(p_image_dest->comps); in opj_copy_image_header()
169 p_image_dest->comps = NULL; in opj_copy_image_header()
172 p_image_dest->numcomps = p_image_src->numcomps; in opj_copy_image_header()
174p_image_dest->comps = (opj_image_comp_t*) opj_malloc(p_image_dest->numcomps * sizeof(opj_image_com… in opj_copy_image_header()
175 if (!p_image_dest->comps){ in opj_copy_image_header()
176 p_image_dest->comps = NULL; in opj_copy_image_header()
177 p_image_dest->numcomps = 0; in opj_copy_image_header()
181 for (compno=0; compno < p_image_dest->numcomps; compno++){ in opj_copy_image_header()
182 memcpy( &(p_image_dest->comps[compno]), in opj_copy_image_header()
185 p_image_dest->comps[compno].data = NULL; in opj_copy_image_header()
188 p_image_dest->color_space = p_image_src->color_space; in opj_copy_image_header()
189 p_image_dest->icc_profile_len = p_image_src->icc_profile_len; in opj_copy_image_header()
191 if (p_image_dest->icc_profile_len) { in opj_copy_image_header()
192 p_image_dest->icc_profile_buf = (OPJ_BYTE*)opj_malloc(p_image_dest->icc_profile_len); in opj_copy_image_header()
193 if (!p_image_dest->icc_profile_buf){ in opj_copy_image_header()
194 p_image_dest->icc_profile_buf = NULL; in opj_copy_image_header()
195 p_image_dest->icc_profile_len = 0; in opj_copy_image_header()
198 memcpy( p_image_dest->icc_profile_buf, in opj_copy_image_header()
203 p_image_dest->icc_profile_buf = NULL; in opj_copy_image_header()