| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 ASSERT((i >= 0) && i < 3); | 254 ASSERT((i >= 0) && i < 3); |
| 255 return m_planes[i]; | 255 return m_planes[i]; |
| 256 } | 256 } |
| 257 | 257 |
| 258 size_t ImagePlanes::rowBytes(int i) const | 258 size_t ImagePlanes::rowBytes(int i) const |
| 259 { | 259 { |
| 260 ASSERT((i >= 0) && i < 3); | 260 ASSERT((i >= 0) && i < 3); |
| 261 return m_rowBytes[i]; | 261 return m_rowBytes[i]; |
| 262 } | 262 } |
| 263 | 263 |
| 264 void ImageDecoder::defaultDecodeAndScale(ImageFrame::ColorType* outType, float*
scale, float* lowerScale) |
| 265 { |
| 266 if (outType) |
| 267 *outType = ImageFrame::RGBA8888; |
| 268 if (scale) |
| 269 *scale = 1.0f; |
| 270 if (lowerScale) |
| 271 *lowerScale = 0; |
| 272 } |
| 273 |
| 264 } // namespace blink | 274 } // namespace blink |
| OLD | NEW |