Mercurial > libavcodec.hg
comparison dv.c @ 8716:6056e34b9504 libavcodec
remove some warnings due to avctx->execute
author | bcoudurier |
---|---|
date | Sat, 31 Jan 2009 22:49:58 +0000 |
parents | ba1e52769fc5 |
children | e9d9d946f213 |
comparison
equal
deleted
inserted
replaced
8715:275e2256bb11 | 8716:6056e34b9504 |
---|---|
505 *mb_y -= (*mb_y>17)?18:-72; /* shifting the Y coordinate down by 72/2 macro blocks */ | 505 *mb_y -= (*mb_y>17)?18:-72; /* shifting the Y coordinate down by 72/2 macro blocks */ |
506 } | 506 } |
507 } | 507 } |
508 | 508 |
509 /* mb_x and mb_y are in units of 8 pixels */ | 509 /* mb_x and mb_y are in units of 8 pixels */ |
510 static int dv_decode_video_segment(AVCodecContext *avctx, DVwork_chunk *work_chunk) | 510 static int dv_decode_video_segment(AVCodecContext *avctx, void *arg) |
511 { | 511 { |
512 DVVideoContext *s = avctx->priv_data; | 512 DVVideoContext *s = avctx->priv_data; |
513 DVwork_chunk *work_chunk = arg; | |
513 int quant, dc, dct_mode, class1, j; | 514 int quant, dc, dct_mode, class1, j; |
514 int mb_index, mb_x, mb_y, last_index; | 515 int mb_index, mb_x, mb_y, last_index; |
515 int y_stride, linesize; | 516 int y_stride, linesize; |
516 DCTELEM *block, *block1; | 517 DCTELEM *block, *block1; |
517 int c_offset; | 518 int c_offset; |
992 } | 993 } |
993 } | 994 } |
994 } | 995 } |
995 } | 996 } |
996 | 997 |
997 static int dv_encode_video_segment(AVCodecContext *avctx, DVwork_chunk *work_chunk) | 998 static int dv_encode_video_segment(AVCodecContext *avctx, void *arg) |
998 { | 999 { |
999 DVVideoContext *s = avctx->priv_data; | 1000 DVVideoContext *s = avctx->priv_data; |
1001 DVwork_chunk *work_chunk = arg; | |
1000 int mb_index, i, j; | 1002 int mb_index, i, j; |
1001 int mb_x, mb_y, c_offset, linesize, y_stride; | 1003 int mb_x, mb_y, c_offset, linesize, y_stride; |
1002 uint8_t* y_ptr; | 1004 uint8_t* y_ptr; |
1003 uint8_t* dif; | 1005 uint8_t* dif; |
1004 uint8_t scratch[64]; | 1006 uint8_t scratch[64]; |