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

Side by Side Diff: source/patched-ffmpeg-mt/libavcodec/dv.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 * DV decoder 2 * DV decoder
3 * Copyright (c) 2002 Fabrice Bellard 3 * Copyright (c) 2002 Fabrice Bellard
4 * Copyright (c) 2004 Roman Shaposhnik 4 * Copyright (c) 2004 Roman Shaposhnik
5 * 5 *
6 * DV encoder 6 * DV encoder
7 * Copyright (c) 2003 Roman Shaposhnik 7 * Copyright (c) 2003 Roman Shaposhnik
8 * 8 *
9 * 50 Mbps (DVCPRO50) support 9 * 50 Mbps (DVCPRO50) support
10 * Copyright (c) 2006 Daniel Maas <dmaas@maasdigital.com> 10 * Copyright (c) 2006 Daniel Maas <dmaas@maasdigital.com>
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 } 941 }
942 942
943 static int dv_encode_video_segment(AVCodecContext *avctx, void *arg) 943 static int dv_encode_video_segment(AVCodecContext *avctx, void *arg)
944 { 944 {
945 DVVideoContext *s = avctx->priv_data; 945 DVVideoContext *s = avctx->priv_data;
946 DVwork_chunk *work_chunk = arg; 946 DVwork_chunk *work_chunk = arg;
947 int mb_index, i, j; 947 int mb_index, i, j;
948 int mb_x, mb_y, c_offset, linesize, y_stride; 948 int mb_x, mb_y, c_offset, linesize, y_stride;
949 uint8_t* y_ptr; 949 uint8_t* y_ptr;
950 uint8_t* dif; 950 uint8_t* dif;
951 uint8_t scratch[64]; 951 LOCAL_ALIGNED_8(uint8_t, scratch, [64]);
952 EncBlockInfo enc_blks[5*DV_MAX_BPM]; 952 EncBlockInfo enc_blks[5*DV_MAX_BPM];
953 PutBitContext pbs[5*DV_MAX_BPM]; 953 PutBitContext pbs[5*DV_MAX_BPM];
954 PutBitContext* pb; 954 PutBitContext* pb;
955 EncBlockInfo* enc_blk; 955 EncBlockInfo* enc_blk;
956 int vs_bit_size = 0; 956 int vs_bit_size = 0;
957 int qnos[5] = {15, 15, 15, 15, 15}; /* No quantization */ 957 int qnos[5] = {15, 15, 15, 15, 15}; /* No quantization */
958 int* qnosp = &qnos[0]; 958 int* qnosp = &qnos[0];
959 959
960 dif = &s->buf[work_chunk->buf_offset*80]; 960 dif = &s->buf[work_chunk->buf_offset*80];
961 enc_blk = &enc_blks[0]; 961 enc_blk = &enc_blks[0];
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 dvvideo_init, 1301 dvvideo_init,
1302 NULL, 1302 NULL,
1303 dvvideo_close, 1303 dvvideo_close,
1304 dvvideo_decode_frame, 1304 dvvideo_decode_frame,
1305 CODEC_CAP_DR1, 1305 CODEC_CAP_DR1,
1306 NULL, 1306 NULL,
1307 .max_lowres = 3, 1307 .max_lowres = 3,
1308 .long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"), 1308 .long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"),
1309 }; 1309 };
1310 #endif 1310 #endif
OLDNEW
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/dsputil.c ('k') | source/patched-ffmpeg-mt/libavcodec/eacmv.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698