Mercurial > mplayer.hg
comparison libmpcodecs/vd_odivx.c @ 5003:88481d4b9e0e
divx_quality and equalizer support done
author | arpi |
---|---|
date | Sat, 09 Mar 2002 19:18:46 +0000 |
parents | 5efa42dd4cd8 |
children | d53725339d5d |
comparison
equal
deleted
inserted
replaced
5002:70751bbd6404 | 5003:88481d4b9e0e |
---|---|
95 } | 95 } |
96 | 96 |
97 // init driver | 97 // init driver |
98 static int init(sh_video_t *sh){ | 98 static int init(sh_video_t *sh){ |
99 DEC_PARAM dec_param; | 99 DEC_PARAM dec_param; |
100 // DEC_SET dec_set; | 100 DEC_SET dec_set; |
101 memset(&dec_param,0,sizeof(dec_param)); | 101 memset(&dec_param,0,sizeof(dec_param)); |
102 #ifdef NEW_DECORE | 102 #ifdef NEW_DECORE |
103 dec_param.output_format=DEC_USER; | 103 dec_param.output_format=DEC_USER; |
104 #else | 104 #else |
105 dec_param.color_depth = 32; | 105 dec_param.color_depth = 32; |
109 dec_param.build_number = 0; | 109 dec_param.build_number = 0; |
110 #endif | 110 #endif |
111 dec_param.x_dim = sh->disp_w; | 111 dec_param.x_dim = sh->disp_w; |
112 dec_param.y_dim = sh->disp_h; | 112 dec_param.y_dim = sh->disp_h; |
113 decore(0x123, DEC_OPT_INIT, &dec_param, NULL); | 113 decore(0x123, DEC_OPT_INIT, &dec_param, NULL); |
114 // dec_set.postproc_level = divx_quality; | 114 |
115 // decore(0x123, DEC_OPT_SETPP, &dec_set, NULL); | 115 dec_set.postproc_level = divx_quality; |
116 decore(0x123, DEC_OPT_SETPP, &dec_set, NULL); | |
116 | 117 |
117 mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: OpenDivX video codec init OK!\n"); | 118 mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: OpenDivX video codec init OK!\n"); |
118 | 119 |
119 mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YV12); | 120 mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YV12); |
120 return 1; | 121 return 1; |