Lines Matching refs:newcmpt
252 jas_image_cmpt_t *newcmpt; in jas_image_cmpt_copy() local
254 if (!(newcmpt = jas_image_cmpt_create0())) { in jas_image_cmpt_copy()
257 newcmpt->tlx_ = cmpt->tlx_; in jas_image_cmpt_copy()
258 newcmpt->tly_ = cmpt->tly_; in jas_image_cmpt_copy()
259 newcmpt->hstep_ = cmpt->hstep_; in jas_image_cmpt_copy()
260 newcmpt->vstep_ = cmpt->vstep_; in jas_image_cmpt_copy()
261 newcmpt->width_ = cmpt->width_; in jas_image_cmpt_copy()
262 newcmpt->height_ = cmpt->height_; in jas_image_cmpt_copy()
263 newcmpt->prec_ = cmpt->prec_; in jas_image_cmpt_copy()
264 newcmpt->sgnd_ = cmpt->sgnd_; in jas_image_cmpt_copy()
265 newcmpt->cps_ = cmpt->cps_; in jas_image_cmpt_copy()
266 newcmpt->type_ = cmpt->type_; in jas_image_cmpt_copy()
267 if (!(newcmpt->stream_ = jas_stream_memopen(0, 0))) { in jas_image_cmpt_copy()
273 if (jas_stream_copy(newcmpt->stream_, cmpt->stream_, -1)) { in jas_image_cmpt_copy()
276 if (jas_stream_seek(newcmpt->stream_, 0, SEEK_SET)) { in jas_image_cmpt_copy()
279 return newcmpt; in jas_image_cmpt_copy()
660 jas_image_cmpt_t *newcmpt; in jas_image_addcmpt() local
669 if (!(newcmpt = jas_image_cmpt_create(cmptparm->tlx, in jas_image_addcmpt()
679 image->cmpts_[cmptno] = newcmpt; in jas_image_addcmpt()
792 jas_image_cmpt_t *newcmpt; in jas_image_copycmpt() local
798 if (!(newcmpt = jas_image_cmpt_copy(srcimage->cmpts_[srccmptno]))) { in jas_image_copycmpt()
805 dstimage->cmpts_[dstcmptno] = newcmpt; in jas_image_copycmpt()
1041 jas_image_cmpt_t *newcmpt; in jas_image_sampcmpt() local
1085 newcmpt = image->cmpts_[newcmptno]; in jas_image_sampcmpt()
1086 jas_stream_rewind(newcmpt->stream_); in jas_image_sampcmpt()
1088 y = newcmpt->tly_ + newcmpt->vstep_ * i; in jas_image_sampcmpt()
1090 x = newcmpt->tlx_ + newcmpt->hstep_ * j; in jas_image_sampcmpt()
1124 if (newcmpt->prec_ != oldcmpt->prec_ || in jas_image_sampcmpt()
1125 newcmpt->sgnd_ != oldcmpt->sgnd_) { in jas_image_sampcmpt()
1127 newcmpt->sgnd_, newcmpt->prec_); in jas_image_sampcmpt()
1129 if (putint(newcmpt->stream_, newcmpt->sgnd_, in jas_image_sampcmpt()
1130 newcmpt->prec_, v)) in jas_image_sampcmpt()