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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/vp8_impl.h

Issue 2020593002: Refactor scaling. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Trivial rebase. Created 4 years, 6 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 (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 * WEBRTC VP8 wrapper interface 10 * WEBRTC VP8 wrapper interface
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Set the cpu_speed setting for encoder based on resolution and/or platform. 68 // Set the cpu_speed setting for encoder based on resolution and/or platform.
69 int SetCpuSpeed(int width, int height); 69 int SetCpuSpeed(int width, int height);
70 70
71 // Determine number of encoder threads to use. 71 // Determine number of encoder threads to use.
72 int NumberOfThreads(int width, int height, int number_of_cores); 72 int NumberOfThreads(int width, int height, int number_of_cores);
73 73
74 // Call encoder initialize function and set control settings. 74 // Call encoder initialize function and set control settings.
75 int InitAndSetControlSettings(); 75 int InitAndSetControlSettings();
76 76
77 // Update frame size for codec. 77 // Update frame size for codec.
78 int UpdateCodecFrameSize(const VideoFrame& input_image); 78 int UpdateCodecFrameSize(int width, int height);
79 79
80 void PopulateCodecSpecific(CodecSpecificInfo* codec_specific, 80 void PopulateCodecSpecific(CodecSpecificInfo* codec_specific,
81 const vpx_codec_cx_pkt& pkt, 81 const vpx_codec_cx_pkt& pkt,
82 int stream_idx, 82 int stream_idx,
83 uint32_t timestamp, 83 uint32_t timestamp,
84 bool only_predicting_from_key_frame); 84 bool only_predicting_from_key_frame);
85 85
86 int GetEncodedPartitions(const VideoFrame& input_image, 86 int GetEncodedPartitions(const VideoFrame& input_image,
87 bool only_predicting_from_key_frame); 87 bool only_predicting_from_key_frame);
88 88
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 int image_format_; 162 int image_format_;
163 vpx_ref_frame_t* ref_frame_; 163 vpx_ref_frame_t* ref_frame_;
164 int propagation_cnt_; 164 int propagation_cnt_;
165 int last_frame_width_; 165 int last_frame_width_;
166 int last_frame_height_; 166 int last_frame_height_;
167 bool key_frame_required_; 167 bool key_frame_required_;
168 }; // end of VP8DecoderImpl class 168 }; // end of VP8DecoderImpl class
169 } // namespace webrtc 169 } // namespace webrtc
170 170
171 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ 171 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698