comparison gif.c @ 887:d70e50f1495f libavformat

COSMETICS: tabs --> spaces, some prettyprinting
author diego
date Thu, 22 Dec 2005 01:10:11 +0000
parents da1d5db0ce5c
children edbe5c3717f9
comparison
equal deleted inserted replaced
886:7ed1351f8c7e 887:d70e50f1495f
197 put_byte(pb, (v >> 8) & 0xff); 197 put_byte(pb, (v >> 8) & 0xff);
198 put_byte(pb, (v) & 0xff); 198 put_byte(pb, (v) & 0xff);
199 } 199 }
200 } 200 }
201 201
202 /* update: this is the 'NETSCAPE EXTENSION' that allows for looped animated gif 202 /* update: this is the 'NETSCAPE EXTENSION' that allows for looped animated gif
203 see http://members.aol.com/royalef/gifabout.htm#net-extension 203 see http://members.aol.com/royalef/gifabout.htm#net-extension
204 204
205 byte 1 : 33 (hex 0x21) GIF Extension code 205 byte 1 : 33 (hex 0x21) GIF Extension code
206 byte 2 : 255 (hex 0xFF) Application Extension Label 206 byte 2 : 255 (hex 0xFF) Application Extension Label
207 byte 3 : 11 (hex (0x0B) Length of Application Block 207 byte 3 : 11 (hex (0x0B) Length of Application Block
208 (eleven bytes of data to follow) 208 (eleven bytes of data to follow)
209 bytes 4 to 11 : "NETSCAPE" 209 bytes 4 to 11 : "NETSCAPE"
210 bytes 12 to 14 : "2.0" 210 bytes 12 to 14 : "2.0"
211 byte 15 : 3 (hex 0x03) Length of Data Sub-Block 211 byte 15 : 3 (hex 0x03) Length of Data Sub-Block
212 (three bytes of data to follow) 212 (three bytes of data to follow)
213 byte 16 : 1 (hex 0x01) 213 byte 16 : 1 (hex 0x01)
214 bytes 17 to 18 : 0 to 65535, an unsigned integer in 214 bytes 17 to 18 : 0 to 65535, an unsigned integer in
215 lo-hi byte format. This indicate the 215 lo-hi byte format. This indicate the
216 number of iterations the loop should 216 number of iterations the loop should
217 be executed. 217 be executed.
218 bytes 19 : 0 (hex 0x00) a Data Sub-block Terminator 218 bytes 19 : 0 (hex 0x00) a Data Sub-block Terminator
219 */ 219 */
220 220
221 /* application extension header */ 221 /* application extension header */
222 #ifdef GIF_ADD_APP_HEADER 222 #ifdef GIF_ADD_APP_HEADER
223 if (loop_count >= 0 && loop_count <= 65535) { 223 if (loop_count >= 0 && loop_count <= 65535) {
224 put_byte(pb, 0x21); 224 put_byte(pb, 0x21);