diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-08-07 19:46:28 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-08-07 19:46:28 +0000 |
commit | 4b4e6ae115219bac7488463bfd74f2ca3faf031d (patch) | |
tree | 41ac133c9e1eb9b686ffe3d08c34fbeb15b04a18 /src/libffmpeg/libavcodec/utils.c | |
parent | a56d88fc434e5ee124867b1af13d6398ce5e9a5a (diff) | |
download | xine-lib-4b4e6ae115219bac7488463bfd74f2ca3faf031d.tar.gz xine-lib-4b4e6ae115219bac7488463bfd74f2ca3faf031d.tar.bz2 |
- sync with ffmpeg cvs
- apply Zdenek Kabelac patches to enable -fpic compiling (why this stuff isn't in
ffmpeg cvs?)
CVS patchset: 2402
CVS date: 2002/08/07 19:46:28
Diffstat (limited to 'src/libffmpeg/libavcodec/utils.c')
-rw-r--r-- | src/libffmpeg/libavcodec/utils.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/libffmpeg/libavcodec/utils.c b/src/libffmpeg/libavcodec/utils.c index 05fd6ab70..943614da6 100644 --- a/src/libffmpeg/libavcodec/utils.c +++ b/src/libffmpeg/libavcodec/utils.c @@ -199,6 +199,8 @@ const char *pix_fmt_str[] = { "bgr24", "yuv422p", "yuv444p", + "rgba32", + "bgra32", "yuv410p" }; @@ -299,7 +301,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) } break; default: - abort(); + av_abort(); } if (bitrate != 0) { snprintf(buf + strlen(buf), buf_size - strlen(buf), @@ -346,6 +348,13 @@ void avpicture_fill(AVPicture *picture, UINT8 *ptr, picture->data[2] = NULL; picture->linesize[0] = width * 3; break; + case PIX_FMT_RGBA32: + case PIX_FMT_BGRA32: + picture->data[0] = ptr; + picture->data[1] = NULL; + picture->data[2] = NULL; + picture->linesize[0] = width * 4; + break; case PIX_FMT_YUV422: picture->data[0] = ptr; picture->data[1] = NULL; @@ -379,6 +388,10 @@ int avpicture_get_size(int pix_fmt, int width, int height) case PIX_FMT_BGR24: size = (size * 3); break; + case PIX_FMT_RGBA32: + case PIX_FMT_BGRA32: + size = (size * 4); + break; case PIX_FMT_YUV422: size = (size * 2); break; |