| Index: webrtc/modules/video_coding/codecs/test/videoprocessor.cc
|
| diff --git a/webrtc/modules/video_coding/codecs/test/videoprocessor.cc b/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
|
| index 3bb6b7a749254c09cba33bc70ea6a948d95fab75..7844891c3d4b3f68b4302dcb9d049c725200bcaa 100644
|
| --- a/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
|
| +++ b/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
|
| @@ -59,7 +59,7 @@ VideoProcessorImpl::VideoProcessorImpl(webrtc::VideoEncoder* encoder,
|
| last_frame_missing_(false),
|
| initialized_(false),
|
| encoded_frame_size_(0),
|
| - encoded_frame_type_(kKeyFrame),
|
| + encoded_frame_type_(kVideoFrameKey),
|
| prev_time_stamp_(0),
|
| num_dropped_frames_(0),
|
| num_spatial_resizes_(0),
|
| @@ -199,15 +199,15 @@ bool VideoProcessorImpl::ProcessFrame(int frame_number) {
|
| source_frame_.set_timestamp(frame_number);
|
|
|
| // Decide if we're going to force a keyframe:
|
| - std::vector<FrameType> frame_types(1, kDeltaFrame);
|
| + std::vector<FrameType> frame_types(1, kVideoFrameDelta);
|
| if (config_.keyframe_interval > 0 &&
|
| frame_number % config_.keyframe_interval == 0) {
|
| - frame_types[0] = kKeyFrame;
|
| + frame_types[0] = kVideoFrameKey;
|
| }
|
|
|
| // For dropped frames, we regard them as zero size encoded frames.
|
| encoded_frame_size_ = 0;
|
| - encoded_frame_type_ = kDeltaFrame;
|
| + encoded_frame_type_ = kVideoFrameDelta;
|
|
|
| int32_t encode_result = encoder_->Encode(source_frame_, NULL, &frame_types);
|
|
|
| @@ -257,7 +257,7 @@ void VideoProcessorImpl::FrameEncoded(const EncodedImage& encoded_image) {
|
| // Perform packet loss if criteria is fullfilled:
|
| bool exclude_this_frame = false;
|
| // Only keyframes can be excluded
|
| - if (encoded_image._frameType == kKeyFrame) {
|
| + if (encoded_image._frameType == kVideoFrameKey) {
|
| switch (config_.exclude_frame_types) {
|
| case kExcludeOnlyFirstKeyFrame:
|
| if (!first_key_frame_has_been_excluded_) {
|
|
|