Lines Matching full:table

73   aom_film_grain_table_t table;  in TEST()  local
74 memset(&table, 0, sizeof(table)); in TEST()
77 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 0, 1000, false, &grain)); in TEST()
79 aom_film_grain_table_append(&table, 1000, 2000, film_grain_test_vectors + 0); in TEST()
80 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 0, 1000, false, &grain)); in TEST()
81 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 2000, 3000, false, &grain)); in TEST()
83 EXPECT_TRUE(aom_film_grain_table_lookup(&table, 1000, 2000, false, &grain)); in TEST()
86 EXPECT_EQ(0, memcmp(&grain, film_grain_test_vectors + 0, sizeof(table))); in TEST()
89 aom_film_grain_table_append(&table, 2000, 3000, film_grain_test_vectors + 0); in TEST()
90 EXPECT_EQ(0, table.head->next); in TEST()
93 EXPECT_TRUE(aom_film_grain_table_lookup(&table, 1000, 2000, true, &grain)); in TEST()
94 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 1000, 2000, false, &grain)); in TEST()
96 EXPECT_TRUE(aom_film_grain_table_lookup(&table, 2000, 3000, true, &grain)); in TEST()
97 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 2000, 3000, false, &grain)); in TEST()
99 EXPECT_EQ(0, table.head); in TEST()
100 EXPECT_EQ(0, table.tail); in TEST()
101 aom_film_grain_table_free(&table); in TEST()
105 aom_film_grain_table_t table; in TEST() local
107 memset(&table, 0, sizeof(table)); in TEST()
109 aom_film_grain_table_append(&table, 0, 1000, film_grain_test_vectors + 0); in TEST()
112 EXPECT_TRUE(aom_film_grain_table_lookup(&table, 0, 100, true, &grain)); in TEST()
113 EXPECT_EQ(NULL, table.head->next); in TEST()
114 EXPECT_EQ(100, table.head->start_time); in TEST()
117 EXPECT_TRUE(aom_film_grain_table_lookup(&table, 900, 1000, true, &grain)); in TEST()
118 EXPECT_EQ(NULL, table.head->next); in TEST()
119 EXPECT_EQ(100, table.head->start_time); in TEST()
120 EXPECT_EQ(900, table.head->end_time); in TEST()
123 EXPECT_TRUE(aom_film_grain_table_lookup(&table, 400, 600, true, &grain)); in TEST()
124 EXPECT_EQ(100, table.head->start_time); in TEST()
125 EXPECT_EQ(400, table.head->end_time); in TEST()
127 ASSERT_NE((void *)NULL, table.head->next); in TEST()
128 EXPECT_EQ(table.tail, table.head->next); in TEST()
129 EXPECT_EQ(600, table.head->next->start_time); in TEST()
130 EXPECT_EQ(900, table.head->next->end_time); in TEST()
132 aom_film_grain_table_free(&table); in TEST()
136 aom_film_grain_table_t table; in TEST() local
137 memset(&table, 0, sizeof(table)); in TEST()
143 aom_film_grain_table_append(&table, i * 1000, (i + 1) * 1000, in TEST()
148 EXPECT_TRUE(aom_film_grain_table_lookup(&table, i * 1000, (i + 1) * 1000, in TEST()
151 EXPECT_FALSE(aom_film_grain_table_lookup(&table, i * 1000, (i + 1) * 1000, in TEST()
157 EXPECT_FALSE(aom_film_grain_table_lookup(&table, i * 1000, (i + 1) * 1000, in TEST()
160 aom_film_grain_table_free(&table); in TEST()
170 aom_film_grain_table_t table; in TEST_F() local
171 memset(&table, 0, sizeof(table)); in TEST_F()
173 &table, "/path/to/missing/file", &error_)); in TEST_F()
177 aom_film_grain_table_t table; in TEST_F() local
178 memset(&table, 0, sizeof(table)); in TEST_F()
185 aom_film_grain_table_read(&table, grain_file.c_str(), &error_)); in TEST_F()
190 aom_film_grain_table_t table; in TEST_F() local
191 memset(&table, 0, sizeof(table)); in TEST_F()
202 aom_film_grain_table_append(&table, i * 1000, (i + 1) * 1000, in TEST_F()
208 aom_film_grain_table_write(&table, grain_file.c_str(), &error_)); in TEST_F()
209 aom_film_grain_table_free(&table); in TEST_F()
211 memset(&table, 0, sizeof(table)); in TEST_F()
213 aom_film_grain_table_read(&table, grain_file.c_str(), &error_)); in TEST_F()
216 EXPECT_TRUE(aom_film_grain_table_lookup(&table, i * 1000, (i + 1) * 1000, in TEST_F()
220 aom_film_grain_table_free(&table); in TEST_F()
228 aom_film_grain_table_t table; in TEST_F() local
229 memset(&table, 0, sizeof(table)); in TEST_F()
232 aom_film_grain_table_append(&table, 0, 3000, &grain); in TEST_F()
233 ASSERT_TRUE(aom_film_grain_table_lookup(&table, 1000, 2000, true, &grain)); in TEST_F()
234 ASSERT_TRUE(aom_film_grain_table_lookup(&table, 0, 1000, false, &grain)); in TEST_F()
235 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 1000, 2000, false, &grain)); in TEST_F()
236 ASSERT_TRUE(aom_film_grain_table_lookup(&table, 2000, 3000, false, &grain)); in TEST_F()
238 aom_film_grain_table_write(&table, grain_file.c_str(), &error_)); in TEST_F()
239 aom_film_grain_table_free(&table); in TEST_F()
241 memset(&table, 0, sizeof(table)); in TEST_F()
243 aom_film_grain_table_read(&table, grain_file.c_str(), &error_)); in TEST_F()
244 ASSERT_TRUE(aom_film_grain_table_lookup(&table, 0, 1000, false, &grain)); in TEST_F()
245 ASSERT_FALSE(aom_film_grain_table_lookup(&table, 1000, 2000, false, &grain)); in TEST_F()
246 ASSERT_TRUE(aom_film_grain_table_lookup(&table, 2000, 3000, false, &grain)); in TEST_F()
247 aom_film_grain_table_free(&table); in TEST_F()