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

Side by Side Diff: webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc

Issue 2809653004: Revert of Add content type information to encoded images and corresponding rtp extension header (Closed)
Patch Set: Created 3 years, 8 months 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 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 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 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 webrtc::EncodedImageCallback::Result callback_result( 1035 webrtc::EncodedImageCallback::Result callback_result(
1036 webrtc::EncodedImageCallback::Result::OK); 1036 webrtc::EncodedImageCallback::Result::OK);
1037 if (callback_) { 1037 if (callback_) {
1038 std::unique_ptr<webrtc::EncodedImage> image( 1038 std::unique_ptr<webrtc::EncodedImage> image(
1039 new webrtc::EncodedImage(payload, payload_size, payload_size)); 1039 new webrtc::EncodedImage(payload, payload_size, payload_size));
1040 image->_encodedWidth = width_; 1040 image->_encodedWidth = width_;
1041 image->_encodedHeight = height_; 1041 image->_encodedHeight = height_;
1042 image->_timeStamp = output_timestamp_; 1042 image->_timeStamp = output_timestamp_;
1043 image->capture_time_ms_ = output_render_time_ms_; 1043 image->capture_time_ms_ = output_render_time_ms_;
1044 image->rotation_ = output_rotation_; 1044 image->rotation_ = output_rotation_;
1045 image->content_type_ =
1046 (codec_mode_ == webrtc::VideoCodecMode::kScreensharing)
1047 ? webrtc::VideoContentType::SCREENSHARE
1048 : webrtc::VideoContentType::UNSPECIFIED;
1049 image->_frameType = 1045 image->_frameType =
1050 (key_frame ? webrtc::kVideoFrameKey : webrtc::kVideoFrameDelta); 1046 (key_frame ? webrtc::kVideoFrameKey : webrtc::kVideoFrameDelta);
1051 image->_completeFrame = true; 1047 image->_completeFrame = true;
1052 webrtc::CodecSpecificInfo info; 1048 webrtc::CodecSpecificInfo info;
1053 memset(&info, 0, sizeof(info)); 1049 memset(&info, 0, sizeof(info));
1054 info.codecType = codec_type; 1050 info.codecType = codec_type;
1055 if (codec_type == kVideoCodecVP8) { 1051 if (codec_type == kVideoCodecVP8) {
1056 info.codecSpecific.VP8.pictureId = picture_id_; 1052 info.codecSpecific.VP8.pictureId = picture_id_;
1057 info.codecSpecific.VP8.nonReference = false; 1053 info.codecSpecific.VP8.nonReference = false;
1058 info.codecSpecific.VP8.simulcastIdx = 0; 1054 info.codecSpecific.VP8.simulcastIdx = 0;
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 } 1344 }
1349 } 1345 }
1350 1346
1351 void MediaCodecVideoEncoderFactory::DestroyVideoEncoder( 1347 void MediaCodecVideoEncoderFactory::DestroyVideoEncoder(
1352 webrtc::VideoEncoder* encoder) { 1348 webrtc::VideoEncoder* encoder) {
1353 ALOGD << "Destroy video encoder."; 1349 ALOGD << "Destroy video encoder.";
1354 delete encoder; 1350 delete encoder;
1355 } 1351 }
1356 1352
1357 } // namespace webrtc_jni 1353 } // namespace webrtc_jni
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698