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

Side by Side Diff: source/patched-ffmpeg-mt/libavcodec/qtrleenc.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
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/qdm2.c ('k') | source/patched-ffmpeg-mt/libavcodec/rv10.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Quicktime Animation (RLE) Video Encoder 2 * Quicktime Animation (RLE) Video Encoder
3 * Copyright (C) 2007 Clemens Fruhwirth 3 * Copyright (C) 2007 Clemens Fruhwirth
4 * Copyright (C) 2007 Alexis Ballier 4 * Copyright (C) 2007 Alexis Ballier
5 * 5 *
6 * This file is based on flashsvenc.c. 6 * This file is based on flashsvenc.c.
7 * 7 *
8 * This file is part of FFmpeg. 8 * This file is part of FFmpeg.
9 * 9 *
10 * FFmpeg is free software; you can redistribute it and/or 10 * FFmpeg is free software; you can redistribute it and/or
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 /** 56 /**
57 * Will contain at ith position the number of consecutive pixels equal to th e previous 57 * Will contain at ith position the number of consecutive pixels equal to th e previous
58 * frame starting from pixel i */ 58 * frame starting from pixel i */
59 uint8_t* skip_table; 59 uint8_t* skip_table;
60 } QtrleEncContext; 60 } QtrleEncContext;
61 61
62 static av_cold int qtrle_encode_init(AVCodecContext *avctx) 62 static av_cold int qtrle_encode_init(AVCodecContext *avctx)
63 { 63 {
64 QtrleEncContext *s = avctx->priv_data; 64 QtrleEncContext *s = avctx->priv_data;
65 65
66 if (av_check_image_size(avctx->width, avctx->height, 0, avctx) < 0) { 66 if (av_image_check_size(avctx->width, avctx->height, 0, avctx) < 0) {
67 return -1; 67 return -1;
68 } 68 }
69 s->avctx=avctx; 69 s->avctx=avctx;
70 70
71 switch (avctx->pix_fmt) { 71 switch (avctx->pix_fmt) {
72 case PIX_FMT_RGB555BE: 72 case PIX_FMT_RGB555BE:
73 s->pixel_size = 2; 73 s->pixel_size = 2;
74 break; 74 break;
75 case PIX_FMT_RGB24: 75 case PIX_FMT_RGB24:
76 s->pixel_size = 3; 76 s->pixel_size = 3;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 "qtrle", 325 "qtrle",
326 AVMEDIA_TYPE_VIDEO, 326 AVMEDIA_TYPE_VIDEO,
327 CODEC_ID_QTRLE, 327 CODEC_ID_QTRLE,
328 sizeof(QtrleEncContext), 328 sizeof(QtrleEncContext),
329 qtrle_encode_init, 329 qtrle_encode_init,
330 qtrle_encode_frame, 330 qtrle_encode_frame,
331 qtrle_encode_end, 331 qtrle_encode_end,
332 .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB555BE, PIX_ FMT_ARGB, PIX_FMT_NONE}, 332 .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB555BE, PIX_ FMT_ARGB, PIX_FMT_NONE},
333 .long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"), 333 .long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"),
334 }; 334 };
OLDNEW
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/qdm2.c ('k') | source/patched-ffmpeg-mt/libavcodec/rv10.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698