Skip to content

Removes direct access to COC segment marker.#312

Merged
aous72 merged 2 commits into
masterfrom
improve_cod
Jul 2, 2026
Merged

Removes direct access to COC segment marker.#312
aous72 merged 2 commits into
masterfrom
improve_cod

Conversation

@aous72

@aous72 aous72 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Direct access to the COC marker segment by the end user of the library proved to be problematic and perhaps confusing.
Here direct access is totally removed. It is now indirectly accessed through the param_cod object.
This commit borrows code and ideas from PRs #272 and #309.

@palemieux I integrated your #272 and #309 PRs. I updated the test code. Have a look and let me know if there are any concerns. I will merge it tomorrow morning if there are none. Cheers, Aous

Comment thread tests/test_mixed_coc.cpp
{
ojph::codestream codestream;
ojph::j2c_infile j2c_file;
j2c_file.open("mixed_rev_irrev_4comp.j2c");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be created in the build directory, so that it is not checked-in.

@aous72 aous72 merged commit 2d0a033 into master Jul 2, 2026
39 checks passed
@aous72 aous72 deleted the improve_cod branch July 2, 2026 07:48
@palemieux palemieux mentioned this pull request Jul 3, 2026
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.

2 participants