diff options
Diffstat (limited to 'dec_video.c')
-rw-r--r-- | dec_video.c | 16 |
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, |