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

Side by Side Diff: talk/media/webrtc/fakewebrtcvideoengine.h

Issue 1371043003: Unify FrameType and VideoFrameType. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 2 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
« no previous file with comments | « talk/app/webrtc/java/jni/androidmediaencoder_jni.cc ('k') | webrtc/common_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 rtc::CritScope lock(&crit_); 148 rtc::CritScope lock(&crit_);
149 codec_settings_ = *codecSettings; 149 codec_settings_ = *codecSettings;
150 return WEBRTC_VIDEO_CODEC_OK; 150 return WEBRTC_VIDEO_CODEC_OK;
151 } 151 }
152 152
153 webrtc::VideoCodec GetCodecSettings() { 153 webrtc::VideoCodec GetCodecSettings() {
154 rtc::CritScope lock(&crit_); 154 rtc::CritScope lock(&crit_);
155 return codec_settings_; 155 return codec_settings_;
156 } 156 }
157 157
158 virtual int32_t Encode( 158 virtual int32_t Encode(const webrtc::VideoFrame& inputImage,
159 const webrtc::VideoFrame& inputImage, 159 const webrtc::CodecSpecificInfo* codecSpecificInfo,
160 const webrtc::CodecSpecificInfo* codecSpecificInfo, 160 const std::vector<webrtc::FrameType>* frame_types) {
161 const std::vector<webrtc::VideoFrameType>* frame_types) {
162 rtc::CritScope lock(&crit_); 161 rtc::CritScope lock(&crit_);
163 ++num_frames_encoded_; 162 ++num_frames_encoded_;
164 return WEBRTC_VIDEO_CODEC_OK; 163 return WEBRTC_VIDEO_CODEC_OK;
165 } 164 }
166 165
167 virtual int32_t RegisterEncodeCompleteCallback( 166 virtual int32_t RegisterEncodeCompleteCallback(
168 webrtc::EncodedImageCallback* callback) { 167 webrtc::EncodedImageCallback* callback) {
169 return WEBRTC_VIDEO_CODEC_OK; 168 return WEBRTC_VIDEO_CODEC_OK;
170 } 169 }
171 170
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 std::set<webrtc::VideoCodecType> supported_codec_types_; 246 std::set<webrtc::VideoCodecType> supported_codec_types_;
248 std::vector<WebRtcVideoEncoderFactory::VideoCodec> codecs_; 247 std::vector<WebRtcVideoEncoderFactory::VideoCodec> codecs_;
249 std::vector<FakeWebRtcVideoEncoder*> encoders_; 248 std::vector<FakeWebRtcVideoEncoder*> encoders_;
250 int num_created_encoders_; 249 int num_created_encoders_;
251 bool encoders_have_internal_sources_; 250 bool encoders_have_internal_sources_;
252 }; 251 };
253 252
254 } // namespace cricket 253 } // namespace cricket
255 254
256 #endif // TALK_MEDIA_WEBRTC_FAKEWEBRTCVIDEOENGINE_H_ 255 #endif // TALK_MEDIA_WEBRTC_FAKEWEBRTCVIDEOENGINE_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/java/jni/androidmediaencoder_jni.cc ('k') | webrtc/common_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698