]> granicus.if.org Git - libvpx/commitdiff
Moving get_tx_eob() from common to encoder.
authorDmitry Kovalev <dkovalev@google.com>
Fri, 28 Feb 2014 02:26:44 +0000 (18:26 -0800)
committerDmitry Kovalev <dkovalev@google.com>
Fri, 28 Feb 2014 02:26:44 +0000 (18:26 -0800)
Change-Id: I7d11c6ae259aff6560710d16fea3032c661e5b02

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

index 6086323f60d6b9dbf50c924e3136086eb7e3273e..07ba385d277e64a967db3a581a485353c051e571 100644 (file)
@@ -328,13 +328,6 @@ void vp9_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd,
                       BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob,
                       int aoff, int loff);
 
-
-static INLINE int get_tx_eob(const struct segmentation *seg, int segment_id,
-                             TX_SIZE tx_size) {
-  const int eob_max = 16 << (tx_size << 1);
-  return vp9_segfeature_active(seg, segment_id, SEG_LVL_SKIP) ? 0 : eob_max;
-}
-
 #ifdef __cplusplus
 }  // extern "C"
 #endif
index 7ae110707d615f96b2517e5bb1e1918d42bce8ce..e8179f30257279f90b0c2a286522a23d7c60449d 100644 (file)
@@ -199,6 +199,12 @@ static INLINE void add_token_no_extra(TOKENEXTRA **t,
   ++counts[token];
 }
 
+static INLINE int get_tx_eob(const struct segmentation *seg, int segment_id,
+                             TX_SIZE tx_size) {
+  const int eob_max = 16 << (tx_size << 1);
+  return vp9_segfeature_active(seg, segment_id, SEG_LVL_SKIP) ? 0 : eob_max;
+}
+
 static void tokenize_b(int plane, int block, BLOCK_SIZE plane_bsize,
                        TX_SIZE tx_size, void *arg) {
   struct tokenize_b_args* const args = arg;