warped_motion: remove unused vp10_integerize_model
this function produces implicit double -> int conversion warnings and has additional style issues. Change-Id: I6bc740e778658d6f81ca54888fc6fa822d3b5ee0
This commit is contained in:
@@ -666,27 +666,3 @@ void vp10_highbd_warp_plane(WarpedMotionParams *wm,
|
||||
}
|
||||
}
|
||||
#endif // CONFIG_VP9_HIGHBITDEPTH
|
||||
|
||||
void vp10_integerize_model(double *H, TransformationType wmtype,
|
||||
WarpedMotionParams *wm) {
|
||||
wm->wmtype = wmtype;
|
||||
switch (wmtype) {
|
||||
case HOMOGRAPHY:
|
||||
assert(fabs(H[8] - 1.0) < 1e-12);
|
||||
wm->wmmat[7] = rint(H[7] * (1 << WARPEDMODEL_ROW3HOMO_PREC_BITS));
|
||||
wm->wmmat[6] = rint(H[6] * (1 << WARPEDMODEL_ROW3HOMO_PREC_BITS));
|
||||
case AFFINE:
|
||||
wm->wmmat[5] = rint(H[5] * (1 << WARPEDMODEL_PREC_BITS));
|
||||
wm->wmmat[4] = rint(H[4] * (1 << WARPEDMODEL_PREC_BITS));
|
||||
case ROTZOOM:
|
||||
wm->wmmat[3] = rint(H[3] * (1 << WARPEDMODEL_PREC_BITS));
|
||||
wm->wmmat[2] = rint(H[2] * (1 << WARPEDMODEL_PREC_BITS));
|
||||
case TRANSLATION:
|
||||
wm->wmmat[1] = rint(H[1] * (1 << WARPEDMODEL_PREC_BITS));
|
||||
wm->wmmat[0] = rint(H[0] * (1 << WARPEDMODEL_PREC_BITS));
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
};
|
||||
return;
|
||||
}
|
||||
|
@@ -54,11 +54,6 @@ typedef struct {
|
||||
int wmmat[8]; // For homography wmmat[9] is assumed to be 1
|
||||
} WarpedMotionParams;
|
||||
|
||||
// Integerize model into the WarpedMotionParams structure
|
||||
void vp10_integerize_model(double *H,
|
||||
TransformationType wmtype,
|
||||
WarpedMotionParams *wm);
|
||||
|
||||
void vp10_warp_plane(WarpedMotionParams *wm,
|
||||
uint8_t *ref,
|
||||
int width, int height, int stride,
|
||||
|
Reference in New Issue
Block a user