• Home
  • Raw
  • Download

Lines Matching refs:bm

48     SkBitmap bm;  in test_gif_data_no_colormap()  local
49 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data_no_colormap()
51 REPORTER_ASSERT(r, bm.width() == 1); in test_gif_data_no_colormap()
52 REPORTER_ASSERT(r, bm.height() == 1); in test_gif_data_no_colormap()
53 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data_no_colormap()
54 if (!(bm.empty())) { in test_gif_data_no_colormap()
55 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0xFF000000); in test_gif_data_no_colormap()
59 SkBitmap bm; in test_gif_data() local
60 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data()
62 REPORTER_ASSERT(r, bm.width() == 3); in test_gif_data()
63 REPORTER_ASSERT(r, bm.height() == 3); in test_gif_data()
64 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data()
65 if (!(bm.empty())) { in test_gif_data()
66 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0xffff0000); in test_gif_data()
67 REPORTER_ASSERT(r, bm.getColor(1, 0) == 0xffffff00); in test_gif_data()
68 REPORTER_ASSERT(r, bm.getColor(2, 0) == 0xff00ffff); in test_gif_data()
69 REPORTER_ASSERT(r, bm.getColor(0, 1) == 0xff808080); in test_gif_data()
70 REPORTER_ASSERT(r, bm.getColor(1, 1) == 0xff000000); in test_gif_data()
71 REPORTER_ASSERT(r, bm.getColor(2, 1) == 0xff00ff00); in test_gif_data()
72 REPORTER_ASSERT(r, bm.getColor(0, 2) == 0xffffffff); in test_gif_data()
73 REPORTER_ASSERT(r, bm.getColor(1, 2) == 0xffff00ff); in test_gif_data()
74 REPORTER_ASSERT(r, bm.getColor(2, 2) == 0xff0000ff); in test_gif_data()
79 SkBitmap bm; in test_gif_data_dims() local
80 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data_dims()
82 REPORTER_ASSERT(r, bm.width() == width); in test_gif_data_dims()
83 REPORTER_ASSERT(r, bm.height() == height); in test_gif_data_dims()
84 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data_dims()
89 SkBitmap bm; in test_interlaced_gif_data() local
90 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_interlaced_gif_data()
92 REPORTER_ASSERT(r, bm.width() == 9); in test_interlaced_gif_data()
93 REPORTER_ASSERT(r, bm.height() == 9); in test_interlaced_gif_data()
94 REPORTER_ASSERT(r, !(bm.empty())); in test_interlaced_gif_data()
95 if (!(bm.empty())) { in test_interlaced_gif_data()
96 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0xffff0000); in test_interlaced_gif_data()
97 REPORTER_ASSERT(r, bm.getColor(1, 0) == 0xffffff00); in test_interlaced_gif_data()
98 REPORTER_ASSERT(r, bm.getColor(2, 0) == 0xff00ffff); in test_interlaced_gif_data()
100 REPORTER_ASSERT(r, bm.getColor(0, 2) == 0xffffffff); in test_interlaced_gif_data()
101 REPORTER_ASSERT(r, bm.getColor(1, 2) == 0xffff00ff); in test_interlaced_gif_data()
102 REPORTER_ASSERT(r, bm.getColor(2, 2) == 0xff0000ff); in test_interlaced_gif_data()
104 REPORTER_ASSERT(r, bm.getColor(0, 4) == 0xff808080); in test_interlaced_gif_data()
105 REPORTER_ASSERT(r, bm.getColor(1, 4) == 0xff000000); in test_interlaced_gif_data()
106 REPORTER_ASSERT(r, bm.getColor(2, 4) == 0xff00ff00); in test_interlaced_gif_data()
108 REPORTER_ASSERT(r, bm.getColor(0, 6) == 0xffff0000); in test_interlaced_gif_data()
109 REPORTER_ASSERT(r, bm.getColor(1, 6) == 0xffffff00); in test_interlaced_gif_data()
110 REPORTER_ASSERT(r, bm.getColor(2, 6) == 0xff00ffff); in test_interlaced_gif_data()
112 REPORTER_ASSERT(r, bm.getColor(0, 8) == 0xffffffff); in test_interlaced_gif_data()
113 REPORTER_ASSERT(r, bm.getColor(1, 8) == 0xffff00ff); in test_interlaced_gif_data()
114 REPORTER_ASSERT(r, bm.getColor(2, 8) == 0xff0000ff); in test_interlaced_gif_data()
121 SkBitmap bm; in test_gif_data_short() local
122 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data_short()
124 REPORTER_ASSERT(r, bm.width() == 3); in test_gif_data_short()
125 REPORTER_ASSERT(r, bm.height() == 3); in test_gif_data_short()
126 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data_short()
127 if (!(bm.empty())) { in test_gif_data_short()
128 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0xffff0000); in test_gif_data_short()
129 REPORTER_ASSERT(r, bm.getColor(1, 0) == 0xffffff00); in test_gif_data_short()
130 REPORTER_ASSERT(r, bm.getColor(2, 0) == 0xff00ffff); in test_gif_data_short()
131 REPORTER_ASSERT(r, bm.getColor(0, 1) == 0xff808080); in test_gif_data_short()
132 REPORTER_ASSERT(r, bm.getColor(1, 1) == 0xff000000); in test_gif_data_short()
133 REPORTER_ASSERT(r, bm.getColor(2, 1) == 0xff00ff00); in test_gif_data_short()
224 SkBitmap bm; in DEF_TEST() local
225 bm.allocPixels(codec->getInfo(), nullptr, colorTable.get()); in DEF_TEST()
226 const SkCodec::Result result = codec->getAndroidPixels(codec->getInfo(), bm.getPixels(), in DEF_TEST()
227 bm.rowBytes(), &options); in DEF_TEST()