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

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

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 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 * American Laser Games MM Video Decoder 2 * American Laser Games MM Video Decoder
3 * Copyright (c) 2006,2008 Peter Ross 3 * Copyright (c) 2006,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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 static av_cold int mm_decode_init(AVCodecContext *avctx) 53 static av_cold int mm_decode_init(AVCodecContext *avctx)
54 { 54 {
55 MmContext *s = avctx->priv_data; 55 MmContext *s = avctx->priv_data;
56 56
57 s->avctx = avctx; 57 s->avctx = avctx;
58 58
59 avctx->pix_fmt = PIX_FMT_PAL8; 59 avctx->pix_fmt = PIX_FMT_PAL8;
60 60
61 s->frame.reference = 1; 61 s->frame.reference = 1;
62 if (avctx->get_buffer(avctx, &s->frame)) { 62 if (avctx->get_buffer(avctx, &s->frame)) {
63 av_log(s->avctx, AV_LOG_ERROR, "mmvideo: get_buffer() failed\n"); 63 av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");
64 return -1; 64 return -1;
65 } 65 }
66 66
67 return 0; 67 return 0;
68 } 68 }
69 69
70 static void mm_decode_pal(MmContext *s, const uint8_t *buf, const uint8_t *buf_e nd) 70 static void mm_decode_pal(MmContext *s, const uint8_t *buf, const uint8_t *buf_e nd)
71 { 71 {
72 int i; 72 int i;
73 buf += 4; 73 buf += 4;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 CODEC_TYPE_VIDEO, 203 CODEC_TYPE_VIDEO,
204 CODEC_ID_MMVIDEO, 204 CODEC_ID_MMVIDEO,
205 sizeof(MmContext), 205 sizeof(MmContext),
206 mm_decode_init, 206 mm_decode_init,
207 NULL, 207 NULL,
208 mm_decode_end, 208 mm_decode_end,
209 mm_decode_frame, 209 mm_decode_frame,
210 CODEC_CAP_DR1, 210 CODEC_CAP_DR1,
211 .long_name = NULL_IF_CONFIG_SMALL("American Laser Games MM Video"), 211 .long_name = NULL_IF_CONFIG_SMALL("American Laser Games MM Video"),
212 }; 212 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698