Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: webrtc/modules/video_coding/codecs/i420/i420.cc

Issue 2405173006: Remove deprected functions from EncodedImageCallback and RtpRtcp (Closed)
Patch Set: fix android Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 uint8_t* buffer = _encodedImage._buffer; 109 uint8_t* buffer = _encodedImage._buffer;
110 110
111 buffer = InsertHeader(buffer, width, height); 111 buffer = InsertHeader(buffer, width, height);
112 112
113 int ret_length = 113 int ret_length =
114 ExtractBuffer(inputImage, req_length - kI420HeaderSize, buffer); 114 ExtractBuffer(inputImage, req_length - kI420HeaderSize, buffer);
115 if (ret_length < 0) 115 if (ret_length < 0)
116 return WEBRTC_VIDEO_CODEC_MEMORY; 116 return WEBRTC_VIDEO_CODEC_MEMORY;
117 _encodedImage._length = ret_length + kI420HeaderSize; 117 _encodedImage._length = ret_length + kI420HeaderSize;
118 118
119 _encodedCompleteCallback->Encoded(_encodedImage, NULL, NULL); 119 _encodedCompleteCallback->OnEncodedImage(_encodedImage, nullptr, nullptr);
120
120 return WEBRTC_VIDEO_CODEC_OK; 121 return WEBRTC_VIDEO_CODEC_OK;
121 } 122 }
122 123
123 uint8_t* I420Encoder::InsertHeader(uint8_t* buffer, 124 uint8_t* I420Encoder::InsertHeader(uint8_t* buffer,
124 uint16_t width, 125 uint16_t width,
125 uint16_t height) { 126 uint16_t height) {
126 *buffer++ = static_cast<uint8_t>(width >> 8); 127 *buffer++ = static_cast<uint8_t>(width >> 8);
127 *buffer++ = static_cast<uint8_t>(width & 0xFF); 128 *buffer++ = static_cast<uint8_t>(width & 0xFF);
128 *buffer++ = static_cast<uint8_t>(height >> 8); 129 *buffer++ = static_cast<uint8_t>(height >> 8);
129 *buffer++ = static_cast<uint8_t>(height & 0xFF); 130 *buffer++ = static_cast<uint8_t>(height & 0xFF);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 DecodedImageCallback* callback) { 230 DecodedImageCallback* callback) {
230 _decodeCompleteCallback = callback; 231 _decodeCompleteCallback = callback;
231 return WEBRTC_VIDEO_CODEC_OK; 232 return WEBRTC_VIDEO_CODEC_OK;
232 } 233 }
233 234
234 int I420Decoder::Release() { 235 int I420Decoder::Release() {
235 _inited = false; 236 _inited = false;
236 return WEBRTC_VIDEO_CODEC_OK; 237 return WEBRTC_VIDEO_CODEC_OK;
237 } 238 }
238 } // namespace webrtc 239 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698