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

Side by Side Diff: source/patched-ffmpeg-mt/libavcodec/bink.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 * Bink video decoder 2 * Bink video decoder
3 * Copyright (c) 2009 Konstantin Shishkov 3 * Copyright (c) 2009 Konstantin Shishkov
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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 bink_trees[i].table_allocated = 1 << maxbits; 965 bink_trees[i].table_allocated = 1 << maxbits;
966 init_vlc(&bink_trees[i], maxbits, 16, 966 init_vlc(&bink_trees[i], maxbits, 16,
967 bink_tree_lens[i], 1, 1, 967 bink_tree_lens[i], 1, 1,
968 bink_tree_bits[i], 1, 1, INIT_VLC_USE_NEW_STATIC | INIT_VLC _LE); 968 bink_tree_bits[i], 1, 1, INIT_VLC_USE_NEW_STATIC | INIT_VLC _LE);
969 } 969 }
970 } 970 }
971 c->avctx = avctx; 971 c->avctx = avctx;
972 972
973 c->pic.data[0] = NULL; 973 c->pic.data[0] = NULL;
974 974
975 if (av_check_image_size(avctx->width, avctx->height, 0, avctx) < 0) { 975 if (av_image_check_size(avctx->width, avctx->height, 0, avctx) < 0) {
976 return 1; 976 return 1;
977 } 977 }
978 978
979 avctx->pix_fmt = c->has_alpha ? PIX_FMT_YUVA420P : PIX_FMT_YUV420P; 979 avctx->pix_fmt = c->has_alpha ? PIX_FMT_YUVA420P : PIX_FMT_YUV420P;
980 980
981 avctx->idct_algo = FF_IDCT_BINK; 981 avctx->idct_algo = FF_IDCT_BINK;
982 dsputil_init(&c->dsp, avctx); 982 dsputil_init(&c->dsp, avctx);
983 ff_init_scantable(c->dsp.idct_permutation, &c->scantable, bink_scan); 983 ff_init_scantable(c->dsp.idct_permutation, &c->scantable, bink_scan);
984 984
985 init_bundles(c); 985 init_bundles(c);
(...skipping 18 matching lines...) Expand all
1004 "binkvideo", 1004 "binkvideo",
1005 AVMEDIA_TYPE_VIDEO, 1005 AVMEDIA_TYPE_VIDEO,
1006 CODEC_ID_BINKVIDEO, 1006 CODEC_ID_BINKVIDEO,
1007 sizeof(BinkContext), 1007 sizeof(BinkContext),
1008 decode_init, 1008 decode_init,
1009 NULL, 1009 NULL,
1010 decode_end, 1010 decode_end,
1011 decode_frame, 1011 decode_frame,
1012 .long_name = NULL_IF_CONFIG_SMALL("Bink video"), 1012 .long_name = NULL_IF_CONFIG_SMALL("Bink video"),
1013 }; 1013 };
OLDNEW
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/avcodec.h ('k') | source/patched-ffmpeg-mt/libavcodec/cavsdsp.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698