Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: source/patched-ffmpeg-mt/libavcodec/eatgv.c

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Electronic Arts TGV Video Decoder 2 * Electronic Arts TGV Video Decoder
3 * Copyright (c) 2007-2008 Peter Ross 3 * Copyright (c) 2007-2008 Peter Ross
4 * 4 *
5 * This file is part of FFmpeg. 5 * This file is part of FFmpeg.
6 * 6 *
7 * FFmpeg is free software; you can redistribute it and/or 7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version. 10 * version 2.1 of the License, or (at your option) any later version.
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 } 269 }
270 270
271 pal_count = AV_RL16(&buf[6]); 271 pal_count = AV_RL16(&buf[6]);
272 buf += 12; 272 buf += 12;
273 for(i=0; i<pal_count && i<AVPALETTE_COUNT && buf+2<buf_end; i++) { 273 for(i=0; i<pal_count && i<AVPALETTE_COUNT && buf+2<buf_end; i++) {
274 s->palette[i] = AV_RB24(buf); 274 s->palette[i] = AV_RB24(buf);
275 buf += 3; 275 buf += 3;
276 } 276 }
277 } 277 }
278 278
279 if (av_check_image_size(s->width, s->height, 0, avctx)) 279 if (av_image_check_size(s->width, s->height, 0, avctx))
280 return -1; 280 return -1;
281 281
282 /* shuffle */ 282 /* shuffle */
283 FFSWAP(AVFrame, s->frame, s->last_frame); 283 FFSWAP(AVFrame, s->frame, s->last_frame);
284 if (!s->frame.data[0]) { 284 if (!s->frame.data[0]) {
285 s->frame.reference = 1; 285 s->frame.reference = 1;
286 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID; 286 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
287 s->frame.linesize[0] = s->width; 287 s->frame.linesize[0] = s->width;
288 288
289 /* allocate additional 12 bytes to accomodate av_memcpy_backptr() OUTBUF _PADDED optimisation */ 289 /* allocate additional 12 bytes to accomodate av_memcpy_backptr() OUTBUF _PADDED optimisation */
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 "eatgv", 338 "eatgv",
339 AVMEDIA_TYPE_VIDEO, 339 AVMEDIA_TYPE_VIDEO,
340 CODEC_ID_TGV, 340 CODEC_ID_TGV,
341 sizeof(TgvContext), 341 sizeof(TgvContext),
342 tgv_decode_init, 342 tgv_decode_init,
343 NULL, 343 NULL,
344 tgv_decode_end, 344 tgv_decode_end,
345 tgv_decode_frame, 345 tgv_decode_frame,
346 .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGV video"), 346 .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGV video"),
347 }; 347 };
OLDNEW
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/eamad.c ('k') | source/patched-ffmpeg-mt/libavcodec/fft-test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698