+void host_video_normalize_ts(int *x1024, int *y1024)
+{
+ static int lx, ly, lw = 800, lh = 480, checked;
+
+ if (!checked) {
+ get_layer_size(&lx, &ly, &lw, &lh);
+ checked = 1; // XXX: might change, so may need to recheck
+ }
+ *x1024 = (*x1024 - lx) * 1024 / lw;
+ *y1024 = (*y1024 - ly) * 1024 / lh;
+}
+