Set cpu_speed parameter for low resolutions, for non-simulcast.
Allow for setting different cpu_speed setting based on resolution, for non-simulcast. Use the existing low resolution simulcast cpu_speed setting for the non-simulcast case. No change to simulcast behavior, unless top/highest layer stream is also below CIF resolution, (in which case all layers will use lower the cpu_speed setting =-4). BUG= R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/37319004 Cr-Commit-Position: refs/heads/master@{#8603} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8603 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -59,6 +59,9 @@ class VP8EncoderImpl : public VP8Encoder {
|
||||
void SetupTemporalLayers(int num_streams, int num_temporal_layers,
|
||||
const VideoCodec& codec);
|
||||
|
||||
// Set the cpu_speed setting for encoder based on resolution and/or platform.
|
||||
int SetCpuSpeed(int width, int height);
|
||||
|
||||
// Determine number of encoder threads to use.
|
||||
int NumberOfThreads(int width, int height, int number_of_cores);
|
||||
|
||||
@ -94,6 +97,7 @@ class VP8EncoderImpl : public VP8Encoder {
|
||||
int64_t timestamp_;
|
||||
bool feedback_mode_;
|
||||
int qp_max_;
|
||||
int cpu_speed_default_;
|
||||
uint32_t rc_max_intra_target_;
|
||||
int token_partitions_;
|
||||
ReferencePictureSelection rps_;
|
||||
|
Reference in New Issue
Block a user