Move temporal-layer properties to FrameConfig.
Removes keying on pattern_idx inside TemporalLayers implementations for several properties that are different between screencast temporal layers and normal/default temporal layers. This is a step towards sharing PopulateCodecSpecific between the layer patterns and code deduplication to longer term be able to separate the packetizer step from encoder settings, so that temporal patterns can be used for asynchronous hardware encoders where there may be outstanding frames. BUG=chromium:702017, webrtc:7349 R=brandtr@webrtc.org Review-Url: https://codereview.webrtc.org/2924993002 Cr-Commit-Position: refs/heads/master@{#19097}
This commit is contained in:
@ -765,9 +765,8 @@ int VP8EncoderImpl::Encode(const VideoFrame& frame,
|
||||
}
|
||||
|
||||
vpx_codec_control(&encoders_[i], VP8E_SET_FRAME_FLAGS, flags[stream_idx]);
|
||||
vpx_codec_control(
|
||||
&encoders_[i], VP8E_SET_TEMPORAL_LAYER_ID,
|
||||
temporal_layers_[stream_idx]->GetTemporalLayerId(tl_configs[i]));
|
||||
vpx_codec_control(&encoders_[i], VP8E_SET_TEMPORAL_LAYER_ID,
|
||||
tl_configs[i].encoder_layer_id);
|
||||
}
|
||||
// TODO(holmer): Ideally the duration should be the timestamp diff of this
|
||||
// frame and the next frame to be encoded, which we don't have. Instead we
|
||||
|
||||
Reference in New Issue
Block a user