double scale; /* Scale factor */
int scale_shift;
int order;
+ int order_base;
};
static void
dbg(1,"yaw=%d pitch=%d center=0x%x,0x%x\n", t->yaw, t->pitch, t->map_center.x, t->map_center.y);
t->scale_shift=0;
- t->order=14;
+ t->order=t->order_base;
+ dbg(0,"scale_shift=%d order_base=%d scale=%f fac=%f\n", t->scale_shift, t->order_base,t->scale,fac);
if (t->scale >= 1) {
scale=t->scale;
} else {
scale >>= 1;
}
fac=(1 << POST_SHIFT) * (1 << t->scale_shift) / t->scale;
- dbg(1,"scale_shift=%d order=%d scale=%f fac=%f\n", t->scale_shift, t->order,t->scale,fac);
+ dbg(0,"scale_shift=%d order=%d scale=%f fac=%f\n", t->scale_shift, t->order,t->scale,fac);
#ifdef ENABLE_ROLL
t->m00=rollc*yawc*fac;
this_=g_new0(struct transformation, 1);
this_->screen_dist=100;
+ this_->order_base=14;
#if 0
this_->pitch=20;
#endif
return this_;
}
+#ifdef ENABLE_ROLL
+
+int
+transform_get_hog(struct transformation *this_)
+{
+ return this_->hog;
+}
+
+void
+transform_set_hog(struct transformation *this_, int hog)
+{
+ this_->hog=hog;
+}
+
+#else
+
+int
+transform_get_hog(struct transformation *this_)
+{
+ return 0;
+}
+
+void
+transform_set_hog(struct transformation *this_, int hog)
+{
+}
+
+#endif
+
+int
+transformation_get_order_base(struct transformation *this_)
+{
+ return this_->order_base;
+}
+
+void
+transform_set_order_base(struct transformation *this_, int order_base)
+{
+ this_->order_base=order_base;
+}
+
+
struct transformation *
transform_dup(struct transformation *t)
{
int
transform_get_order(struct transformation *t)
{
+ dbg(0,"order %d\n", t->order);
return t->order;
}