Lines Matching refs:frame

32     TouchVideoFrame frame(height, width, data, TIMESTAMP);  in TEST()  local
34 ASSERT_EQ(data, frame.getData()); in TEST()
35 ASSERT_EQ(height, frame.getHeight()); in TEST()
36 ASSERT_EQ(width, frame.getWidth()); in TEST()
37 ASSERT_EQ(TIMESTAMP.tv_sec, frame.getTimestamp().tv_sec); in TEST()
38 ASSERT_EQ(TIMESTAMP.tv_usec, frame.getTimestamp().tv_usec); in TEST()
45 TouchVideoFrame frame(height, width, data, TIMESTAMP); in TEST() local
48 ASSERT_EQ(frame, identicalFrame); in TEST()
54 ASSERT_FALSE(frame == changedHeightFrame); in TEST()
58 ASSERT_FALSE(frame == changedWidthFrame); in TEST()
63 ASSERT_FALSE(frame == changedDataFrame); in TEST()
68 ASSERT_FALSE(frame == changedTimestampFrame); in TEST()
74 TouchVideoFrame frame(0, 0, {}, TIMESTAMP); in TEST() local
76 frame.rotate(DISPLAY_ORIENTATION_90); in TEST()
77 ASSERT_EQ(frame, frameRotated); in TEST()
81 TouchVideoFrame frame(1, 1, {1}, TIMESTAMP); in TEST() local
83 frame.rotate(DISPLAY_ORIENTATION_90); in TEST()
84 ASSERT_EQ(frame, frameRotated); in TEST()
88 TouchVideoFrame frame(2, 2, {1, 2, 3, 4}, TIMESTAMP); in TEST() local
90 frame.rotate(DISPLAY_ORIENTATION_90); in TEST()
91 ASSERT_EQ(frame, frameRotated); in TEST()
95 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, TIMESTAMP); in TEST() local
97 frame.rotate(DISPLAY_ORIENTATION_90); in TEST()
98 ASSERT_EQ(frame, frameRotated); in TEST()
102 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, TIMESTAMP); in TEST() local
104 frame.rotate(DISPLAY_ORIENTATION_90); in TEST()
105 frame.rotate(DISPLAY_ORIENTATION_90); in TEST()
106 frame.rotate(DISPLAY_ORIENTATION_90); in TEST()
107 frame.rotate(DISPLAY_ORIENTATION_90); in TEST()
108 ASSERT_EQ(frame, frameOriginal); in TEST()
114 TouchVideoFrame frame(0, 0, {}, TIMESTAMP); in TEST() local
116 frame.rotate(DISPLAY_ORIENTATION_180); in TEST()
117 ASSERT_EQ(frame, frameRotated); in TEST()
121 TouchVideoFrame frame(1, 1, {1}, TIMESTAMP); in TEST() local
123 frame.rotate(DISPLAY_ORIENTATION_180); in TEST()
124 ASSERT_EQ(frame, frameRotated); in TEST()
128 TouchVideoFrame frame(2, 2, {1, 2, 3, 4}, TIMESTAMP); in TEST() local
130 frame.rotate(DISPLAY_ORIENTATION_180); in TEST()
131 ASSERT_EQ(frame, frameRotated); in TEST()
135 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, TIMESTAMP); in TEST() local
137 frame.rotate(DISPLAY_ORIENTATION_180); in TEST()
138 ASSERT_EQ(frame, frameRotated); in TEST()
142 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, TIMESTAMP); in TEST() local
144 frame.rotate(DISPLAY_ORIENTATION_180); in TEST()
145 frame.rotate(DISPLAY_ORIENTATION_180); in TEST()
146 ASSERT_EQ(frame, frameOriginal); in TEST()
150 TouchVideoFrame frame(3, 3, {1, 2, 3, 4, 5, 6, 7, 8, 9}, TIMESTAMP); in TEST() local
152 frame.rotate(DISPLAY_ORIENTATION_180); in TEST()
153 ASSERT_EQ(frame, frameRotated); in TEST()
159 TouchVideoFrame frame(0, 0, {}, TIMESTAMP); in TEST() local
161 frame.rotate(DISPLAY_ORIENTATION_270); in TEST()
162 ASSERT_EQ(frame, frameRotated); in TEST()
166 TouchVideoFrame frame(1, 1, {1}, TIMESTAMP); in TEST() local
168 frame.rotate(DISPLAY_ORIENTATION_270); in TEST()
169 ASSERT_EQ(frame, frameRotated); in TEST()
173 TouchVideoFrame frame(2, 2, {1, 2, 3, 4}, TIMESTAMP); in TEST() local
175 frame.rotate(DISPLAY_ORIENTATION_270); in TEST()
176 ASSERT_EQ(frame, frameRotated); in TEST()
180 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, TIMESTAMP); in TEST() local
182 frame.rotate(DISPLAY_ORIENTATION_270); in TEST()
183 ASSERT_EQ(frame, frameRotated); in TEST()
187 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, TIMESTAMP); in TEST() local
189 frame.rotate(DISPLAY_ORIENTATION_270); in TEST()
190 frame.rotate(DISPLAY_ORIENTATION_270); in TEST()
191 frame.rotate(DISPLAY_ORIENTATION_270); in TEST()
192 frame.rotate(DISPLAY_ORIENTATION_270); in TEST()
193 ASSERT_EQ(frame, frameOriginal); in TEST()