From bd0e3aecdf3c7de9e24ea7bb949a01020d6dca8d Mon Sep 17 00:00:00 2001 From: KP Choi Date: Sat, 8 Aug 2026 12:38:14 +0900 Subject: [PATCH] Note that oapvd_info_tile can report the tile count on its own Signed-off-by: KP Choi --- readme/programmers_guide.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme/programmers_guide.md b/readme/programmers_guide.md index 7c87a09..cbf4389 100644 --- a/readme/programmers_guide.md +++ b/readme/programmers_guide.md @@ -189,6 +189,9 @@ pos = malloc(finfo.num_tiles * sizeof(oapv_tile_pos_t)) num = finfo.num_tiles oapvd_info_tile(pbu_buf, pbu_size, pos, &num) +// oapvd_info_tile() can report the count on its own as well, by passing a +// NULL tile array: num = 0; oapvd_info_tile(pbu_buf, pbu_size, NULL, &num) + // select the tiles to decode, e.g. the ones covering a viewport part_tile_idxs = { 3, 4, 7, 8 } num_part_tiles = 4