diff options
author | Mike Melanson <mike@multimedia.cx> | 2002-12-04 05:33:40 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2002-12-04 05:33:40 +0000 |
commit | 1a5f74a6255d68aeabe51c9edb2d19ec0dc36274 (patch) | |
tree | 46b7d4f0718b232a4933c49b7e51517982171407 /src/libxinevdec/yuv.c | |
parent | 213efefd0b1a5a8dfa51de463ebbe12ec37eca92 (diff) | |
download | xine-lib-1a5f74a6255d68aeabe51c9edb2d19ec0dc36274.tar.gz xine-lib-1a5f74a6255d68aeabe51c9edb2d19ec0dc36274.tar.bz2 |
modified YUV9 -> YV12 converter
CVS patchset: 3423
CVS date: 2002/12/04 05:33:40
Diffstat (limited to 'src/libxinevdec/yuv.c')
-rw-r--r-- | src/libxinevdec/yuv.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libxinevdec/yuv.c b/src/libxinevdec/yuv.c index 08c89c5dd..fcaf7ec09 100644 --- a/src/libxinevdec/yuv.c +++ b/src/libxinevdec/yuv.c @@ -21,7 +21,7 @@ * Actually, this decoder just reorganizes chunks of raw YUV data in such * a way that xine can display them. * - * $Id: yuv.c,v 1.13 2002/12/01 07:16:53 tmmm Exp $ + * $Id: yuv.c,v 1.14 2002/12/04 05:33:40 tmmm Exp $ */ #include <stdio.h> @@ -160,17 +160,21 @@ static void yuv_decode_data (video_decoder_t *this_gen, yuv9_to_yv12( /* Y */ this->buf, + this->width, img->base[0], img->pitches[0], /* U */ this->buf + (this->width * this->height), + this->width / 4, img->base[1], img->pitches[1], /* V */ this->buf + (this->width * this->height) + (this->width * this->height / 16), + this->width / 4, img->base[2], img->pitches[2], + /* width x height */ this->width, this->height); @@ -259,8 +263,6 @@ static void yuv_dispose (video_decoder_t *this_gen) { free (this_gen); } - - static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stream_t *stream) { yuv_decoder_t *this ; |