summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorCheng Chen <chengchen@google.com>2020-01-28 04:41:17 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-01-28 04:41:17 +0000
commitd53645f4982bca27ec69ef41004c3d72ad1f6f22 (patch)
treeee04687bfd3e87ad073cb2483f1ba4fef231fbb3 /vp9
parenta0fa2841b87a357b85fc960837f49d0b0c37af0f (diff)
parentb32cb9876c07158ca60e65c1484fa2f530c5cf90 (diff)
downloadlibvpx-d53645f4982bca27ec69ef41004c3d72ad1f6f22.tar
libvpx-d53645f4982bca27ec69ef41004c3d72ad1f6f22.tar.gz
libvpx-d53645f4982bca27ec69ef41004c3d72ad1f6f22.tar.bz2
libvpx-d53645f4982bca27ec69ef41004c3d72ad1f6f22.zip
Merge "Add some description about partition info"
Diffstat (limited to 'vp9')
-rw-r--r--vp9/simple_encode.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/vp9/simple_encode.h b/vp9/simple_encode.h
index ec2acae06..079547142 100644
--- a/vp9/simple_encode.h
+++ b/vp9/simple_encode.h
@@ -145,6 +145,20 @@ struct EncodeFrameResult {
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;
};