OLD | NEW |
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 return WEBRTC_VIDEO_CODEC_OK; | 152 return WEBRTC_VIDEO_CODEC_OK; |
153 } | 153 } |
154 | 154 |
155 webrtc::VideoCodec GetCodecSettings() { | 155 webrtc::VideoCodec GetCodecSettings() { |
156 rtc::CritScope lock(&crit_); | 156 rtc::CritScope lock(&crit_); |
157 return codec_settings_; | 157 return codec_settings_; |
158 } | 158 } |
159 | 159 |
160 virtual int32 Encode(const webrtc::VideoFrame& inputImage, | 160 virtual int32 Encode(const webrtc::VideoFrame& inputImage, |
161 const webrtc::CodecSpecificInfo* codecSpecificInfo, | 161 const webrtc::CodecSpecificInfo* codecSpecificInfo, |
162 const std::vector<webrtc::VideoFrameType>* frame_types) { | 162 const std::vector<webrtc::FrameType>* frame_types) { |
163 rtc::CritScope lock(&crit_); | 163 rtc::CritScope lock(&crit_); |
164 ++num_frames_encoded_; | 164 ++num_frames_encoded_; |
165 return WEBRTC_VIDEO_CODEC_OK; | 165 return WEBRTC_VIDEO_CODEC_OK; |
166 } | 166 } |
167 | 167 |
168 virtual int32 RegisterEncodeCompleteCallback( | 168 virtual int32 RegisterEncodeCompleteCallback( |
169 webrtc::EncodedImageCallback* callback) { | 169 webrtc::EncodedImageCallback* callback) { |
170 return WEBRTC_VIDEO_CODEC_OK; | 170 return WEBRTC_VIDEO_CODEC_OK; |
171 } | 171 } |
172 | 172 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 std::set<webrtc::VideoCodecType> supported_codec_types_; | 252 std::set<webrtc::VideoCodecType> supported_codec_types_; |
253 std::vector<WebRtcVideoEncoderFactory::VideoCodec> codecs_; | 253 std::vector<WebRtcVideoEncoderFactory::VideoCodec> codecs_; |
254 std::vector<FakeWebRtcVideoEncoder*> encoders_; | 254 std::vector<FakeWebRtcVideoEncoder*> encoders_; |
255 int num_created_encoders_; | 255 int num_created_encoders_; |
256 bool encoders_have_internal_sources_; | 256 bool encoders_have_internal_sources_; |
257 }; | 257 }; |
258 | 258 |
259 } // namespace cricket | 259 } // namespace cricket |
260 | 260 |
261 #endif // TALK_MEDIA_WEBRTC_FAKEWEBRTCVIDEOENGINE_H_ | 261 #endif // TALK_MEDIA_WEBRTC_FAKEWEBRTCVIDEOENGINE_H_ |
OLD | NEW |