From 32427b379cef30a52cb56c7aa3603980bb45e8e3 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 3 Aug 2016 15:52:03 -0700 Subject: [PATCH] warped_motion: remove unused vp10_integerize_model this function produces implicit double -> int conversion warnings and has additional style issues. Change-Id: I6bc740e778658d6f81ca54888fc6fa822d3b5ee0 --- vp10/common/warped_motion.c | 24 ------------------------ vp10/common/warped_motion.h | 5 ----- 2 files changed, 29 deletions(-) diff --git a/vp10/common/warped_motion.c b/vp10/common/warped_motion.c index 6bc4f9569..5f1b4f09b 100644 --- a/vp10/common/warped_motion.c +++ b/vp10/common/warped_motion.c @@ -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; -} diff --git a/vp10/common/warped_motion.h b/vp10/common/warped_motion.h index 11d6124eb..e244dc0d2 100644 --- a/vp10/common/warped_motion.h +++ b/vp10/common/warped_motion.h @@ -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,