Mercurial > mplayer.hg
comparison libmpcodecs/vd_dmo.c @ 12763:f34a7cf4265a
Console message corrected and moved to help_mp-en.h.
author | diego |
---|---|
date | Tue, 06 Jul 2004 11:14:29 +0000 |
parents | 321763255480 |
children | bcd805923554 |
comparison
equal
deleted
inserted
replaced
12762:cf8979836dc5 | 12763:f34a7cf4265a |
---|---|
30 // init driver | 30 // init driver |
31 static int init(sh_video_t *sh){ | 31 static int init(sh_video_t *sh){ |
32 unsigned int out_fmt; | 32 unsigned int out_fmt; |
33 if(!(sh->context=DMO_VideoDecoder_Open(sh->codec->dll,&sh->codec->guid, sh->bih, 0, 0))){ | 33 if(!(sh->context=DMO_VideoDecoder_Open(sh->codec->dll,&sh->codec->guid, sh->bih, 0, 0))){ |
34 mp_msg(MSGT_DECVIDEO,MSGL_ERR,MSGTR_MissingDLLcodec,sh->codec->dll); | 34 mp_msg(MSGT_DECVIDEO,MSGL_ERR,MSGTR_MissingDLLcodec,sh->codec->dll); |
35 mp_msg(MSGT_DECVIDEO,MSGL_HINT,"Maybe you forget to upgrade your win32 codecs?? It's time to download the new\n"); | 35 mp_msg(MSGT_DECVIDEO,MSGL_HINT,MSGTR_DownloadCodecPackage); |
36 mp_msg(MSGT_DECVIDEO,MSGL_HINT,"package from: ftp://mplayerhq.hu/MPlayer/releases/w32codec.tar.bz2!\n"); | |
37 return 0; | 36 return 0; |
38 } | 37 } |
39 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0; | 38 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0; |
40 out_fmt=sh->codec->outfmt[sh->outfmtidx]; | 39 out_fmt=sh->codec->outfmt[sh->outfmtidx]; |
41 switch(out_fmt){ | 40 switch(out_fmt){ |
50 DMO_VideoDecoder_SetDestFmt(sh->context,9,out_fmt);break; | 49 DMO_VideoDecoder_SetDestFmt(sh->context,9,out_fmt);break; |
51 default: | 50 default: |
52 DMO_VideoDecoder_SetDestFmt(sh->context,out_fmt&255,0); // RGB/BGR | 51 DMO_VideoDecoder_SetDestFmt(sh->context,out_fmt&255,0); // RGB/BGR |
53 } | 52 } |
54 DMO_VideoDecoder_StartInternal(sh->context); | 53 DMO_VideoDecoder_StartInternal(sh->context); |
55 mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: Win32/DMOhow video codec init OK!\n"); | 54 mp_msg(MSGT_DECVIDEO,MSGL_V,MSGTR_DMOInitOK); |
56 return 1; | 55 return 1; |
57 } | 56 } |
58 | 57 |
59 // uninit driver | 58 // uninit driver |
60 static void uninit(sh_video_t *sh){ | 59 static void uninit(sh_video_t *sh){ |