-
Notifications
You must be signed in to change notification settings - Fork 25
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
base: master
Are you sure you want to change the base?
Conversation
unsigned char loopchunk[5]; | ||
unsigned fram_size; | ||
|
||
loopchunk[0] = 1; /* Priority Layer */ |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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'}, |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto in general.
e2409f0
to
f4fc067
Compare
Add option to loop MNG from PNG files.
Changes framing mode in FRAM chunk to mode 3