ref: b32cb9876c07158ca60e65c1484fa2f530c5cf90
parent: 4138443c33070ffc06498088348547261b3f4ffd
author: Cheng Chen <[email protected]>
date: Mon Jan 27 10:26:13 EST 2020
Add some description about partition info Change-Id: I62e45433aad7887f47e3c88fc40f046feef92ad9
--- a/vp9/simple_encode.h
+++ b/vp9/simple_encode.h
@@ -145,6 +145,20 @@
int num_rows_4x4; // number of row units, in size of 4.
int num_cols_4x4; // number of column units, in size of 4.
// The pointer to the partition information of the frame.
+ // The frame is divided 4x4 blocks of |num_rows_4x4| rows and
+ // |num_cols_4x4| columns.
+ // Each 4x4 block contains the current pixel position (|row|, |column|),
+ // the start pixel position of the partition (|row_start|, |column_start|),
+ // and the |width|, |height| of the partition.
+ // Within the same partition, all 4x4 blocks have the same |row_start|,
+ // |column_start|, |width| and |height|.
+ // For example, if the frame is partitioned to a 32x32 block,
+ // starting at (0, 0). Then, there're 64 4x4 blocks within this partition.
+ // They all have the same |row_start|, |column_start|, |width|, |height|,
+ // which can be used to figure out the start of the current partition and
+ // the start of the next partition block.
+ // Horizontal next: |column_start| + |width|,
+ // Vertical next: |row_start| + |height|.
std::unique_ptr<PartitionInfo[]> partition_info;
};