summaryrefslogtreecommitdiffstats
path: root/dec_video.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-27 21:32:17 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-27 21:32:17 +0000
commit58724e7a50f4a2d9adfd32b6dcffe1c4c863277f (patch)
tree5aac187ca2990b4e8fe33e633e56f208d3c6e7cd /dec_video.c
parentd1c0bc997b530be68a3daef792f07b3ea7185c18 (diff)
downloadmpv-58724e7a50f4a2d9adfd32b6dcffe1c4c863277f.tar.bz2
mpv-58724e7a50f4a2d9adfd32b6dcffe1c4c863277f.tar.xz
NuppelVideo decoder added, based on Panagiotis Issaris' patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3805 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r--dec_video.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/dec_video.c b/dec_video.c
index fd9ba206ba..2963613563 100644
--- a/dec_video.c
+++ b/dec_video.c
@@ -128,6 +128,13 @@ void qt_decode_rle(
int encoded_bpp,
int bytes_per_pixel);
+void decode_nuv(
+ unsigned char *encoded,
+ int encoded_size,
+ unsigned char *decoded,
+ int width,
+ int height);
+
//**************************************************************************//
// The OpenDivX stuff:
//**************************************************************************//
@@ -544,7 +551,10 @@ if ((sh_video->codec->driver == VFM_QTRLE) && (sh_video->bih->biBitCount != 24))
" this Quicktime file to the MPlayer FTP, the team could look at it.\n",
sh_video->bih->biBitCount);
+ break;
}
+ case VFM_NUV:
+ sh_video->our_out_buffer = (char *)memalign(64, sh_video->disp_w*sh_video->disp_h*3/2);
break;
}
}
@@ -805,6 +815,12 @@ if(verbose>1){
((out_fmt&255)+7)/8);
blit_frame = 3;
break;
+ case VFM_NUV:
+ decode_nuv(
+ start, in_size, sh_video->our_out_buffer,
+ sh_video->disp_w, sh_video->disp_h);
+ blit_frame = 3;
+ break;
case VFM_QTRLE:
qt_decode_rle(
start, in_size, sh_video->our_out_buffer,