]> granicus.if.org Git - libvpx/commitdiff
Moving reaster_block_offset{,_int16} from vp9_blockd.h to vp9_rdopt.h.
authorDmitry Kovalev <dkovalev@google.com>
Wed, 27 Nov 2013 20:57:21 +0000 (12:57 -0800)
committerDmitry Kovalev <dkovalev@google.com>
Wed, 27 Nov 2013 20:57:21 +0000 (12:57 -0800)
Change-Id: I5a5888d4639cc6b7eb266be47581dd15ba08c91e

vp9/common/vp9_blockd.h
vp9/encoder/vp9_rdopt.c

index 7d21dfdc0fd52073f85b98f8e14a12790625d38e..993ee7935934b34869590ac8a9f15fd012024127 100644 (file)
@@ -386,19 +386,6 @@ static INLINE void foreach_transformed_block_uv(
     foreach_transformed_block_in_plane(xd, bsize, plane, visit, arg);
 }
 
-static int raster_block_offset(BLOCK_SIZE plane_bsize,
-                               int raster_block, int stride) {
-  const int bw = b_width_log2(plane_bsize);
-  const int y = 4 * (raster_block >> bw);
-  const int x = 4 * (raster_block & ((1 << bw) - 1));
-  return y * stride + x;
-}
-static int16_t* raster_block_offset_int16(BLOCK_SIZE plane_bsize,
-                                          int raster_block, int16_t *base) {
-  const int stride = 4 << b_width_log2(plane_bsize);
-  return base + raster_block_offset(plane_bsize, raster_block, stride);
-}
-
 static void txfrm_block_to_raster_xy(BLOCK_SIZE plane_bsize,
                                      TX_SIZE tx_size, int block,
                                      int *x, int *y) {
index 81d4c00165fe6f7c3de2f4521ee796ec301f230d..ee9c18b211e0c0d2aa746b449afea5772b2bc62e 100644 (file)
@@ -113,6 +113,19 @@ static int rd_thresh_block_size_factor[BLOCK_SIZES] =
 #define MV_COST_WEIGHT      108
 #define MV_COST_WEIGHT_SUB  120
 
+static int raster_block_offset(BLOCK_SIZE plane_bsize,
+                               int raster_block, int stride) {
+  const int bw = b_width_log2(plane_bsize);
+  const int y = 4 * (raster_block >> bw);
+  const int x = 4 * (raster_block & ((1 << bw) - 1));
+  return y * stride + x;
+}
+static int16_t* raster_block_offset_int16(BLOCK_SIZE plane_bsize,
+                                          int raster_block, int16_t *base) {
+  const int stride = 4 << b_width_log2(plane_bsize);
+  return base + raster_block_offset(plane_bsize, raster_block, stride);
+}
+
 static void fill_mode_costs(VP9_COMP *c) {
   VP9_COMMON *const cm = &c->common;
   int i, j;