Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode Grid #1180

Merged
merged 7 commits into from
Jun 25, 2024
Merged

Encode Grid #1180

merged 7 commits into from
Jun 25, 2024

Conversation

dukesook
Copy link
Contributor

@dukesook dukesook commented May 31, 2024

LIBHEIF_API
struct heif_error heif_context_encode_grid()

Resolves #1176, resolves #648

@farindk
Copy link
Contributor

farindk commented Jun 25, 2024

Thank you. This is nice to have.

In the future, we should have another way to build the grid image step by step by adding tiles one by one, but this is a nice convenience function that can still come in handy.

@farindk farindk merged commit 7d7caa6 into strukturag:master Jun 25, 2024
35 checks passed
@dukesook
Copy link
Contributor Author

Great, thanks for merging.

I also wanted a mechanism for encoding grids that are internal to the codec (for example, the uncompressed codec). But I wasn't sure what the best way to do this was.

@farindk
Copy link
Contributor

farindk commented Jun 25, 2024

I also wanted a mechanism for encoding grids that are internal to the codec (for example, the uncompressed codec). But I wasn't sure what the best way to do this was.

Interesting question.
@bradh: Would it be possible to write uncompressed image tiles one by one? Does that pose any problems when the data is zlib compressed?

@bradh
Copy link
Contributor

bradh commented Jun 25, 2024

It should be possible to write tiles one-by-one. There is a way to say "each of these extents needs to be done separately", and to specify the range. That opens up the possibility to recycle the bits in one tile that is used to fill many grid spots (e.g. when using a map, and there is a lot of blue ocean; or when making black fill tiles for an image that is rotated to be north-up).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to create a grid HEIF Writing Gridded Imagery
3 participants