OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 } | 205 } |
206 | 206 |
207 ImagePlanes::ImagePlanes() | 207 ImagePlanes::ImagePlanes() |
208 { | 208 { |
209 for (int i = 0; i < 3; ++i) { | 209 for (int i = 0; i < 3; ++i) { |
210 m_planes[i] = 0; | 210 m_planes[i] = 0; |
211 m_rowBytes[i] = 0; | 211 m_rowBytes[i] = 0; |
212 } | 212 } |
213 } | 213 } |
214 | 214 |
215 void ImagePlanes::set(void* planes[3], size_t rowBytes[3]) | 215 void ImagePlanes::setPlanes(void* planes[3], size_t rowBytes[3]) |
216 { | 216 { |
217 for (int i = 0; i < 3; ++i) { | 217 for (int i = 0; i < 3; ++i) { |
218 m_planes[i] = planes[i]; | 218 m_planes[i] = planes[i]; |
219 m_rowBytes[i] = rowBytes[i]; | 219 m_rowBytes[i] = rowBytes[i]; |
220 } | 220 } |
221 } | 221 } |
222 | 222 |
223 void* ImagePlanes::plane(int i) | 223 void* ImagePlanes::plane(int i) |
224 { | 224 { |
225 ASSERT((i >= 0) && i < 3); | 225 ASSERT((i >= 0) && i < 3); |
226 return m_planes[i]; | 226 return m_planes[i]; |
227 } | 227 } |
228 | 228 |
229 size_t ImagePlanes::rowBytes(int i) const | 229 size_t ImagePlanes::rowBytes(int i) const |
230 { | 230 { |
231 ASSERT((i >= 0) && i < 3); | 231 ASSERT((i >= 0) && i < 3); |
232 return m_rowBytes[i]; | 232 return m_rowBytes[i]; |
233 } | 233 } |
234 | 234 |
235 } // namespace blink | 235 } // namespace blink |
OLD | NEW |