ref: b4a8ac3c46dfcc46ecb30c8730d3312d07419533
parent: fadfea8a6abb3a100fc63788ec0f4d14ee26b0f7
author: angiebird <angiebird@google.com>
date: Thu Dec 12 07:40:43 EST 2019
Add detailed description about GroupOfPicture Change-Id: I96a447e59bdcf156ab6fbf9e766d867633ca47f3
--- a/vp9/simple_encode.h
+++ b/vp9/simple_encode.h
@@ -44,7 +44,18 @@
};
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<EncodeFrameInfo> 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;
};