Mercurial > libavcodec.hg
comparison dv.c @ 925:7fccaa0d699d libavcodec
AVVideoFrame -> AVFrame
author | michaelni |
---|---|
date | Mon, 09 Dec 2002 12:03:43 +0000 |
parents | 22ee74da2cd3 |
children | 693a0797398f |
comparison
equal
deleted
inserted
replaced
924:3814e9115672 | 925:7fccaa0d699d |
---|---|
31 GetBitContext gb; | 31 GetBitContext gb; |
32 VLC *vlc; | 32 VLC *vlc; |
33 int sampling_411; /* 0 = 420, 1 = 411 */ | 33 int sampling_411; /* 0 = 420, 1 = 411 */ |
34 int width, height; | 34 int width, height; |
35 UINT8 *current_picture[3]; /* picture structure */ | 35 UINT8 *current_picture[3]; /* picture structure */ |
36 AVVideoFrame picture; | 36 AVFrame picture; |
37 int linesize[3]; | 37 int linesize[3]; |
38 DCTELEM block[5*6][64] __align8; | 38 DCTELEM block[5*6][64] __align8; |
39 UINT8 dv_zigzag[2][64]; | 39 UINT8 dv_zigzag[2][64]; |
40 UINT8 idct_permutation[64]; | 40 UINT8 idct_permutation[64]; |
41 /* XXX: move it to static storage ? */ | 41 /* XXX: move it to static storage ? */ |
593 } | 593 } |
594 | 594 |
595 emms_c(); | 595 emms_c(); |
596 | 596 |
597 /* return image */ | 597 /* return image */ |
598 *data_size = sizeof(AVVideoFrame); | 598 *data_size = sizeof(AVFrame); |
599 *(AVVideoFrame*)data= s->picture; | 599 *(AVFrame*)data= s->picture; |
600 | 600 |
601 avctx->release_buffer(avctx, &s->picture); | 601 avctx->release_buffer(avctx, &s->picture); |
602 | 602 |
603 return packet_size; | 603 return packet_size; |
604 } | 604 } |