diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-11 09:15:59 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-11 09:15:59 +0000 |
commit | 97654ce7f3c6f711b270487d2f43f70c8e872024 (patch) | |
tree | 0f1114905f0bf07ce11c72ef8e2b650a17715e29 /dec_video.c | |
parent | 8db2a741bbe904bdc7068bec4dca9a92625c1c45 (diff) | |
download | mpv-97654ce7f3c6f711b270487d2f43f70c8e872024.tar.bz2 mpv-97654ce7f3c6f711b270487d2f43f70c8e872024.tar.xz |
add initial mPNG support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4657 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r-- | dec_video.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dec_video.c b/dec_video.c index c96674ffdc..e9e3c456df 100644 --- a/dec_video.c +++ b/dec_video.c @@ -180,6 +180,16 @@ void decode_duck_tm1( int height, int bytes_per_pixel); +#ifdef HAVE_PNG +void decode_mpng( + unsigned char *encoded, + int encoded_size, + unsigned char *decoded, + int width, + int height, + int bytes_per_pixel); +#endif + void qt_decode_rpza( unsigned char *encoded, int encoded_size, @@ -706,6 +716,9 @@ switch(sh_video->codec->driver){ case VFM_FLI: case VFM_QTRLE: case VFM_DUCKTM1: +#ifdef HAVE_PNG + case VFM_MPNG: +#endif case VFM_QTRPZA: { #ifdef USE_MP_IMAGE @@ -1139,6 +1152,16 @@ if(verbose>1){ ((out_fmt&255)+7)/8); blit_frame = 3; break; +#ifdef HAVE_PNG + case VFM_MPNG: + decode_mpng( + start, in_size, sh_video->our_out_buffer, + sh_video->disp_w,sh_video->disp_h, + 24 + ); + blit_frame = 3; + break; +#endif case VFM_CYUV: decode_cyuv(start, in_size, sh_video->our_out_buffer, sh_video->disp_w, sh_video->disp_h, (out_fmt==IMGFMT_YUY2)?16:(out_fmt&255)); |