Skip to content

Add option to loop the mng #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

alvesbm
Copy link

@alvesbm alvesbm commented Feb 18, 2016

Add option to loop MNG from PNG files.

Changes framing mode in FRAM chunk to mode 3

unsigned char loopchunk[5];
unsigned fram_size;

loopchunk[0] = 1; /* Priority Layer */
Copy link

Choose a reason for hiding this comment

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

Indenting here is off with respect to other lines.


unsigned int type = ('L' << 24 | 'O' << 16 | 'O' << 8 | 'P');

if (adv_png_write_chunk(f, type, loopchunk, 5, fc) != 0) {
Copy link

Choose a reason for hiding this comment

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

Ditto.


eloopchunk[0] = 1; /* Priority Layer */

unsigned type = ('E' << 24 | 'N' << 16 | 'D' << 8 | 'L');
Copy link

Choose a reason for hiding this comment

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

Ditto.

@@ -1019,7 +1027,7 @@ struct option long_options[] = {
{"list-crc", 0, 0, 'L'},
{"extract", 0, 0, 'x'},
{"add", 1, 0, 'a'},

{"loop", 0, 0, 'p'},
Copy link

Choose a reason for hiding this comment

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

Ditto

@@ -1264,6 +1275,8 @@ void process(int argc, char* argv[])

int main(int argc, char* argv[])
{
loop=false;
firstloop=true;
Copy link

Choose a reason for hiding this comment

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

Ditto in general.

@amadvance amadvance force-pushed the master branch 4 times, most recently from e2409f0 to f4fc067 Compare November 22, 2022 21:53
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