| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 } | 244 } |
| 245 | 245 |
| 246 ImagePlanes::ImagePlanes() | 246 ImagePlanes::ImagePlanes() |
| 247 { | 247 { |
| 248 for (int i = 0; i < 3; ++i) { | 248 for (int i = 0; i < 3; ++i) { |
| 249 m_planes[i] = 0; | 249 m_planes[i] = 0; |
| 250 m_rowBytes[i] = 0; | 250 m_rowBytes[i] = 0; |
| 251 } | 251 } |
| 252 } | 252 } |
| 253 | 253 |
| 254 ImagePlanes::ImagePlanes(void* planes[3], size_t rowBytes[3]) | 254 ImagePlanes::ImagePlanes(void* planes[3], const size_t rowBytes[3]) |
| 255 { | 255 { |
| 256 for (int i = 0; i < 3; ++i) { | 256 for (int i = 0; i < 3; ++i) { |
| 257 m_planes[i] = planes[i]; | 257 m_planes[i] = planes[i]; |
| 258 m_rowBytes[i] = rowBytes[i]; | 258 m_rowBytes[i] = rowBytes[i]; |
| 259 } | 259 } |
| 260 } | 260 } |
| 261 | 261 |
| 262 void* ImagePlanes::plane(int i) | 262 void* ImagePlanes::plane(int i) |
| 263 { | 263 { |
| 264 ASSERT((i >= 0) && i < 3); | 264 ASSERT((i >= 0) && i < 3); |
| 265 return m_planes[i]; | 265 return m_planes[i]; |
| 266 } | 266 } |
| 267 | 267 |
| 268 size_t ImagePlanes::rowBytes(int i) const | 268 size_t ImagePlanes::rowBytes(int i) const |
| 269 { | 269 { |
| 270 ASSERT((i >= 0) && i < 3); | 270 ASSERT((i >= 0) && i < 3); |
| 271 return m_rowBytes[i]; | 271 return m_rowBytes[i]; |
| 272 } | 272 } |
| 273 | 273 |
| 274 } // namespace blink | 274 } // namespace blink |
| OLD | NEW |