Rename end_of_superframe to end_of_picture.
For consistency with the VP9 RTP spec which uses term "picture" for set of frames which belong to the same time instance. Bug: none Change-Id: I30e92d5debb008feb58f770b63fe10c2e0029267 Reviewed-on: https://webrtc-review.googlesource.com/72180 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23040}
This commit is contained in:
committed by
Commit Bot
parent
0cb4a25e43
commit
bc0f0d3ded
@ -357,11 +357,11 @@ void VideoProcessor::FrameEncoded(
|
||||
// TODO(ssilkin): Get actual value. For now assume inter-layer prediction
|
||||
// is enabled for all frames.
|
||||
const bool inter_layer_prediction = num_spatial_layers > 1;
|
||||
bool end_of_superframe = false;
|
||||
bool end_of_picture = false;
|
||||
if (codec_type == kVideoCodecVP9) {
|
||||
const CodecSpecificInfoVP9& vp9_info = codec_specific.codecSpecific.VP9;
|
||||
frame_stat->inter_layer_predicted = vp9_info.inter_layer_predicted;
|
||||
end_of_superframe = vp9_info.end_of_superframe;
|
||||
end_of_picture = vp9_info.end_of_picture;
|
||||
}
|
||||
|
||||
const webrtc::EncodedImage* encoded_image_for_decode = &encoded_image;
|
||||
@ -376,7 +376,7 @@ void VideoProcessor::FrameEncoded(
|
||||
if (config_.decode) {
|
||||
DecodeFrame(*encoded_image_for_decode, spatial_idx);
|
||||
|
||||
if (end_of_superframe && inter_layer_prediction) {
|
||||
if (end_of_picture && inter_layer_prediction) {
|
||||
// If inter-layer prediction is enabled and upper layer was dropped then
|
||||
// base layer should be passed to upper layer decoder. Otherwise decoder
|
||||
// won't be able to decode next superframe.
|
||||
|
||||
Reference in New Issue
Block a user