diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-12-09 12:03:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-12-09 12:03:43 +0000 |
commit | 492cd3a9203779380cea24f23190b92af2b48007 (patch) | |
tree | 4a673a16c3e2c0ac4dc28a10ae2d5f6b6a32fda4 /libavcodec/utils.c | |
parent | f694168d524d1c84f5f20f4260fcab1f4d8c11d7 (diff) | |
download | ffmpeg-492cd3a9203779380cea24f23190b92af2b48007.tar.gz |
AVVideoFrame -> AVFrame
Originally committed as revision 1327 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 768e8b6546..5733bdf2a3 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -120,7 +120,7 @@ typedef struct DefaultPicOpaque{ uint8_t *data[4]; }DefaultPicOpaque; -int avcodec_default_get_buffer(AVCodecContext *s, AVVideoFrame *pic){ +int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){ int i; const int width = s->width; const int height= s->height; @@ -202,7 +202,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVVideoFrame *pic){ return 0; } -void avcodec_default_release_buffer(AVCodecContext *s, AVVideoFrame *pic){ +void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic){ int i; assert(pic->type==FF_BUFFER_TYPE_INTERNAL); @@ -249,11 +249,11 @@ AVCodecContext *avcodec_alloc_context(void){ } /** - * allocates a AVPicture and set it to defaults. + * allocates a AVPFrame and set it to defaults. * this can be deallocated by simply calling free() */ -AVVideoFrame *avcodec_alloc_picture(void){ - AVVideoFrame *pic= av_mallocz(sizeof(AVVideoFrame)); +AVFrame *avcodec_alloc_frame(void){ + AVFrame *pic= av_mallocz(sizeof(AVFrame)); return pic; } @@ -290,7 +290,7 @@ int avcodec_encode_audio(AVCodecContext *avctx, UINT8 *buf, int buf_size, } int avcodec_encode_video(AVCodecContext *avctx, UINT8 *buf, int buf_size, - const AVVideoFrame *pict) + const AVFrame *pict) { int ret; @@ -305,7 +305,7 @@ int avcodec_encode_video(AVCodecContext *avctx, UINT8 *buf, int buf_size, /* decode a frame. return -1 if error, otherwise return the number of bytes used. If no frame could be decompressed, *got_picture_ptr is zero. Otherwise, it is non zero */ -int avcodec_decode_video(AVCodecContext *avctx, AVVideoFrame *picture, +int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, UINT8 *buf, int buf_size) { @@ -672,7 +672,7 @@ void avcodec_flush_buffers(AVCodecContext *avctx) for(i=0; i<MAX_PICTURE_COUNT; i++){ if(s->picture[i].data[0] && ( s->picture[i].type == FF_BUFFER_TYPE_INTERNAL || s->picture[i].type == FF_BUFFER_TYPE_USER)) - avctx->release_buffer(avctx, (AVVideoFrame*)&s->picture[i]); + avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]); } break; default: |