summaryrefslogtreecommitdiff
path: root/vp9/common
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2013-04-15 15:24:39 -0700
committerDmitry Kovalev <dkovalev@google.com>2013-04-15 15:24:39 -0700
commita0d9309eab07239c01f1a316d57e818bb9046068 (patch)
tree769780bd32205a28e0f2e71f42795dfc939f9379 /vp9/common
parent1633685725d9d8c7a27ab79623baa1cf65c7c503 (diff)
downloadlibvpx-a0d9309eab07239c01f1a316d57e818bb9046068.tar
libvpx-a0d9309eab07239c01f1a316d57e818bb9046068.tar.gz
libvpx-a0d9309eab07239c01f1a316d57e818bb9046068.tar.bz2
libvpx-a0d9309eab07239c01f1a316d57e818bb9046068.zip
Removing TRUE and FALSE macro definitions.
Using regular 0 and 1 constants now. Change-Id: Ie763503cbb727847cc8f1d6506cd6f2ee607f056
Diffstat (limited to 'vp9/common')
-rw-r--r--vp9/common/vp9_blockd.h3
-rw-r--r--vp9/common/vp9_common.h3
-rw-r--r--vp9/common/vp9_findnearmv.c2
-rw-r--r--vp9/common/vp9_mvref_common.c8
4 files changed, 5 insertions, 11 deletions
diff --git a/vp9/common/vp9_blockd.h b/vp9/common/vp9_blockd.h
index b9716628a..461e22f22 100644
--- a/vp9/common/vp9_blockd.h
+++ b/vp9/common/vp9_blockd.h
@@ -21,9 +21,6 @@
#include "vp9/common/vp9_common.h"
#include "vp9/common/vp9_enums.h"
-#define TRUE 1
-#define FALSE 0
-
// #define MODE_STATS
#define MB_FEATURE_TREE_PROBS 3
diff --git a/vp9/common/vp9_common.h b/vp9/common/vp9_common.h
index 3ffa513ea..dbfb9ed46 100644
--- a/vp9/common/vp9_common.h
+++ b/vp9/common/vp9_common.h
@@ -19,9 +19,6 @@
#include "vpx_mem/vpx_mem.h"
#include "vpx/vpx_integer.h"
-#define TRUE 1
-#define FALSE 0
-
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
diff --git a/vp9/common/vp9_findnearmv.c b/vp9/common/vp9_findnearmv.c
index 053895840..bbbc2f62c 100644
--- a/vp9/common/vp9_findnearmv.c
+++ b/vp9/common/vp9_findnearmv.c
@@ -141,7 +141,7 @@ void vp9_find_best_ref_mvs(MACROBLOCKD *xd,
unsigned int sse;
unsigned int ref_scores[MAX_MV_REF_CANDIDATES] = {0};
int_mv sorted_mvs[MAX_MV_REF_CANDIDATES];
- int zero_seen = FALSE;
+ int zero_seen = 0;
if (ref_y_buffer) {
diff --git a/vp9/common/vp9_mvref_common.c b/vp9/common/vp9_mvref_common.c
index e1a12e411..666197366 100644
--- a/vp9/common/vp9_mvref_common.c
+++ b/vp9/common/vp9_mvref_common.c
@@ -158,7 +158,7 @@ static void addmv_and_shuffle(
int i;
int insert_point;
- int duplicate_found = FALSE;
+ int duplicate_found = 0;
// Check for duplicates. If there is one increase its score.
// We only compare vs the current top candidates.
@@ -171,7 +171,7 @@ static void addmv_and_shuffle(
while (i > 0) {
i--;
if (candidate_mv.as_int == mv_list[i].as_int) {
- duplicate_found = TRUE;
+ duplicate_found = 1;
mv_scores[i] += weight;
break;
}
@@ -251,7 +251,7 @@ void vp9_find_mv_refs(VP9_COMMON *cm, MACROBLOCKD *xd, MODE_INFO *here,
int split_count = 0;
int (*mv_ref_search)[2];
int *ref_distance_weight;
- int zero_seen = FALSE;
+ int zero_seen = 0;
const int mb_col = (-xd->mb_to_left_edge) >> 7;
// Blank the reference vector lists and other local structures.
@@ -395,7 +395,7 @@ void vp9_find_mv_refs(VP9_COMMON *cm, MACROBLOCKD *xd, MODE_INFO *here,
// Scan for 0,0 case and clamp non zero choices
for (i = 0; i < MAX_MV_REF_CANDIDATES; ++i) {
if (candidate_mvs[i].as_int == 0) {
- zero_seen = TRUE;
+ zero_seen = 1;
} else {
clamp_mv_ref(xd, &candidate_mvs[i]);
}