Lines Matching refs:oldcmpt

1040     jas_image_cmpt_t *oldcmpt;  in jas_image_sampcmpt()  local
1068 oldcmpt = image->cmpts_[cmptno]; in jas_image_sampcmpt()
1069 assert(oldcmpt->tlx_ == 0 && oldcmpt->tly_ == 0); in jas_image_sampcmpt()
1083 cmptbrx = oldcmpt->tlx_ + (oldcmpt->width_ - 1) * oldcmpt->hstep_; in jas_image_sampcmpt()
1084 cmptbry = oldcmpt->tly_ + (oldcmpt->height_ - 1) * oldcmpt->vstep_; in jas_image_sampcmpt()
1091 ax = downtomult(x - oldcmpt->tlx_, oldcmpt->hstep_) + oldcmpt->tlx_; in jas_image_sampcmpt()
1092 ay = downtomult(y - oldcmpt->tly_, oldcmpt->vstep_) + oldcmpt->tly_; in jas_image_sampcmpt()
1093 bx = uptomult(x - oldcmpt->tlx_, oldcmpt->hstep_) + oldcmpt->tlx_; in jas_image_sampcmpt()
1096 by = uptomult(y - oldcmpt->tly_, oldcmpt->vstep_) + oldcmpt->tly_; in jas_image_sampcmpt()
1104 oldx = (ax - oldcmpt->tlx_) / oldcmpt->hstep_; in jas_image_sampcmpt()
1105 oldy = (ay - oldcmpt->tly_) / oldcmpt->vstep_; in jas_image_sampcmpt()
1107 oldx = (bx - oldcmpt->tlx_) / oldcmpt->hstep_; in jas_image_sampcmpt()
1108 oldy = (ay - oldcmpt->tly_) / oldcmpt->vstep_; in jas_image_sampcmpt()
1110 oldx = (bx - oldcmpt->tlx_) / oldcmpt->hstep_; in jas_image_sampcmpt()
1111 oldy = (by - oldcmpt->tly_) / oldcmpt->vstep_; in jas_image_sampcmpt()
1113 oldx = (ax - oldcmpt->tlx_) / oldcmpt->hstep_; in jas_image_sampcmpt()
1114 oldy = (by - oldcmpt->tly_) / oldcmpt->vstep_; in jas_image_sampcmpt()
1116 assert(oldx >= 0 && oldx < oldcmpt->width_ && in jas_image_sampcmpt()
1117 oldy >= 0 && oldy < oldcmpt->height_); in jas_image_sampcmpt()
1118 if (jas_stream_seek(oldcmpt->stream_, oldcmpt->cps_ * in jas_image_sampcmpt()
1119 (oldy * oldcmpt->width_ + oldx), SEEK_SET) < 0) in jas_image_sampcmpt()
1121 if (getint(oldcmpt->stream_, oldcmpt->sgnd_, in jas_image_sampcmpt()
1122 oldcmpt->prec_, &v)) in jas_image_sampcmpt()
1124 if (newcmpt->prec_ != oldcmpt->prec_ || in jas_image_sampcmpt()
1125 newcmpt->sgnd_ != oldcmpt->sgnd_) { in jas_image_sampcmpt()
1126 v = convert(v, oldcmpt->sgnd_, oldcmpt->prec_, in jas_image_sampcmpt()