From b4a8ac3c46dfcc46ecb30c8730d3312d07419533 Mon Sep 17 00:00:00 2001 From: angiebird Date: Thu, 12 Dec 2019 12:40:43 -0800 Subject: [PATCH] Add detailed description about GroupOfPicture Change-Id: I96a447e59bdcf156ab6fbf9e766d867633ca47f3 --- vp9/simple_encode.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vp9/simple_encode.h b/vp9/simple_encode.h index 33f6138e7..704aa4882 100644 --- a/vp9/simple_encode.h +++ b/vp9/simple_encode.h @@ -44,7 +44,18 @@ struct EncodeFrameResult { }; struct GroupOfPicture { + // This list will be updated internally in StartEncode() and + // EncodeFrame()/EncodeFrameWithQuantizeIndex(). + // In EncodeFrame()/EncodeFrameWithQuantizeIndex(), the update will only be + // triggered when the coded frame is the last one in the previous group of + // pictures. std::vector encode_frame_list; + // Indicates the index of the next coding frame in encode_frame_list. + // In other words, EncodeFrameInfo of the next coding frame can be + // obtained with encode_frame_list[encode_frame_index]. + // Internally, encode_frame_index will be set to zero after the last frame of + // the group of pictures is coded. Otherwise, encode_frame_index will be + // increased after each EncodeFrame()/EncodeFrameWithQuantizeIndex() call. int encode_frame_index; }; -- 2.40.0