Home | History | Annotate | Download | only in test

Lines Matching defs:output

39     output = new Buffer<uint8_t>(4, 4, 3);
40 ASSERT_TRUE(output != NULL);
41 ASSERT_TRUE(output->Init());
47 delete output;
54 Buffer<uint8_t> *output;
58 // When the input is '0' the output will be '0'.
61 output->Set(0);
64 predict->stride(), output->TopLeftPixel(),
65 output->stride()));
69 ASSERT_TRUE(output->CheckValues(0));
70 ASSERT_TRUE(output->CheckPadding());
75 // When the first element is '4' it will fill the output buffer with '1'.
78 output->Set(0);
81 predict->stride(), output->TopLeftPixel(),
82 output->stride()));
84 ASSERT_TRUE(output->CheckValues(1));
85 ASSERT_TRUE(output->CheckPadding());
89 // Set the transform output to '1' and make sure it gets added to the
93 output->Set(0);
103 predict->stride(), output->TopLeftPixel(),
104 output->stride()));
106 uint8_t const *out = output->TopLeftPixel();
109 EXPECT_EQ(1 + y * 4 + x, out[y * output->stride() + x]);
114 output->DumpBuffer();
117 ASSERT_TRUE(output->CheckPadding());
132 predict->stride(), output->TopLeftPixel(),
133 output->stride()));
135 uint8_t *out = output->TopLeftPixel();
139 case 0: EXPECT_EQ(11, out[y * output->stride() + x]); break;
142 case 8: EXPECT_EQ(3, out[y * output->stride() + x]); break;
143 case 10: EXPECT_EQ(1, out[y * output->stride() + x]); break;
144 default: EXPECT_EQ(0, out[y * output->stride() + x]);
150 output->DumpBuffer();
153 ASSERT_TRUE(output->CheckPadding());