Skip to content

Add option to loop the mng#5

Open
alvesbm wants to merge 1 commit intoamadvance:masterfrom
alvesbm:master
Open

Add option to loop the mng#5
alvesbm wants to merge 1 commit intoamadvance:masterfrom
alvesbm:master

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.

{"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

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

Comments