| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 : _decodedImage(), | 140 : _decodedImage(), |
| 141 _width(0), | 141 _width(0), |
| 142 _height(0), | 142 _height(0), |
| 143 _inited(false), | 143 _inited(false), |
| 144 _decodeCompleteCallback(NULL) {} | 144 _decodeCompleteCallback(NULL) {} |
| 145 | 145 |
| 146 I420Decoder::~I420Decoder() { | 146 I420Decoder::~I420Decoder() { |
| 147 Release(); | 147 Release(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 int I420Decoder::Reset() { | |
| 151 return WEBRTC_VIDEO_CODEC_OK; | |
| 152 } | |
| 153 | |
| 154 int I420Decoder::InitDecode(const VideoCodec* codecSettings, | 150 int I420Decoder::InitDecode(const VideoCodec* codecSettings, |
| 155 int /*numberOfCores */) { | 151 int /*numberOfCores */) { |
| 156 if (codecSettings == NULL) { | 152 if (codecSettings == NULL) { |
| 157 return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; | 153 return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; |
| 158 } else if (codecSettings->width < 1 || codecSettings->height < 1) { | 154 } else if (codecSettings->width < 1 || codecSettings->height < 1) { |
| 159 return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; | 155 return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; |
| 160 } | 156 } |
| 161 _width = codecSettings->width; | 157 _width = codecSettings->width; |
| 162 _height = codecSettings->height; | 158 _height = codecSettings->height; |
| 163 _inited = true; | 159 _inited = true; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 DecodedImageCallback* callback) { | 228 DecodedImageCallback* callback) { |
| 233 _decodeCompleteCallback = callback; | 229 _decodeCompleteCallback = callback; |
| 234 return WEBRTC_VIDEO_CODEC_OK; | 230 return WEBRTC_VIDEO_CODEC_OK; |
| 235 } | 231 } |
| 236 | 232 |
| 237 int I420Decoder::Release() { | 233 int I420Decoder::Release() { |
| 238 _inited = false; | 234 _inited = false; |
| 239 return WEBRTC_VIDEO_CODEC_OK; | 235 return WEBRTC_VIDEO_CODEC_OK; |
| 240 } | 236 } |
| 241 } // namespace webrtc | 237 } // namespace webrtc |
| OLD | NEW |