Mercurial > mplayer.hg
comparison mplayer.c @ 1548:eee7951a23af
changes according to proper subfont bar positioning and char spaceing - sub.c
changes to scale from 0.100 to 0..255 for proper OSD displaying - mplayer.c
author | atlka |
---|---|
date | Thu, 16 Aug 2001 09:25:32 +0000 |
parents | d4cd08b06665 |
children | 9fa2a290fa99 |
comparison
equal
deleted
inserted
replaced
1547:4b0046db8e64 | 1548:eee7951a23af |
---|---|
1558 | 1558 |
1559 #ifdef USE_OSD | 1559 #ifdef USE_OSD |
1560 if(osd_level){ | 1560 if(osd_level){ |
1561 osd_visible=sh_video->fps; // 1 sec | 1561 osd_visible=sh_video->fps; // 1 sec |
1562 vo_osd_progbar_type=OSD_VOLUME; | 1562 vo_osd_progbar_type=OSD_VOLUME; |
1563 vo_osd_progbar_value=(mixer_l+mixer_r)*5/4; | 1563 vo_osd_progbar_value=(mixer_l+mixer_r)*255/200; |
1564 //printf("volume: %d\n",vo_osd_progbar_value); | 1564 //printf("volume: %d\n",vo_osd_progbar_value); |
1565 } | 1565 } |
1566 #endif | 1566 #endif |
1567 } | 1567 } |
1568 break; | 1568 break; |
1581 if(set_video_colors(sh_video,"Contrast",v_cont)){ | 1581 if(set_video_colors(sh_video,"Contrast",v_cont)){ |
1582 #ifdef USE_OSD | 1582 #ifdef USE_OSD |
1583 if(osd_level){ | 1583 if(osd_level){ |
1584 osd_visible=sh_video->fps; // 1 sec | 1584 osd_visible=sh_video->fps; // 1 sec |
1585 vo_osd_progbar_type=OSD_CONTRAST; | 1585 vo_osd_progbar_type=OSD_CONTRAST; |
1586 vo_osd_progbar_value=(v_cont)*10/4; | 1586 vo_osd_progbar_value=(v_cont)*255/100; |
1587 } | 1587 } |
1588 #endif | 1588 #endif |
1589 } | 1589 } |
1590 break; | 1590 break; |
1591 | 1591 |
1600 if(set_video_colors(sh_video,"Brightness",v_bright)){ | 1600 if(set_video_colors(sh_video,"Brightness",v_bright)){ |
1601 #ifdef USE_OSD | 1601 #ifdef USE_OSD |
1602 if(osd_level){ | 1602 if(osd_level){ |
1603 osd_visible=sh_video->fps; // 1 sec | 1603 osd_visible=sh_video->fps; // 1 sec |
1604 vo_osd_progbar_type=OSD_BRIGHTNESS; | 1604 vo_osd_progbar_type=OSD_BRIGHTNESS; |
1605 vo_osd_progbar_value=(v_bright)*10/4; | 1605 vo_osd_progbar_value=(v_bright)*255/100; |
1606 } | 1606 } |
1607 #endif | 1607 #endif |
1608 } | 1608 } |
1609 break; | 1609 break; |
1610 | 1610 |
1619 if(set_video_colors(sh_video,"Hue",v_hue)){ | 1619 if(set_video_colors(sh_video,"Hue",v_hue)){ |
1620 #ifdef USE_OSD | 1620 #ifdef USE_OSD |
1621 if(osd_level){ | 1621 if(osd_level){ |
1622 osd_visible=sh_video->fps; // 1 sec | 1622 osd_visible=sh_video->fps; // 1 sec |
1623 vo_osd_progbar_type=OSD_HUE; | 1623 vo_osd_progbar_type=OSD_HUE; |
1624 vo_osd_progbar_value=(v_hue)*10/4; | 1624 vo_osd_progbar_value=(v_hue)*255/100; |
1625 } | 1625 } |
1626 #endif | 1626 #endif |
1627 } | 1627 } |
1628 break; | 1628 break; |
1629 | 1629 |
1638 if(set_video_colors(sh_video,"Saturation",v_saturation)){ | 1638 if(set_video_colors(sh_video,"Saturation",v_saturation)){ |
1639 #ifdef USE_OSD | 1639 #ifdef USE_OSD |
1640 if(osd_level){ | 1640 if(osd_level){ |
1641 osd_visible=sh_video->fps; // 1 sec | 1641 osd_visible=sh_video->fps; // 1 sec |
1642 vo_osd_progbar_type=OSD_SATURATION; | 1642 vo_osd_progbar_type=OSD_SATURATION; |
1643 vo_osd_progbar_value=(v_saturation)*10/4; | 1643 vo_osd_progbar_value=(v_saturation)*255/100; |
1644 } | 1644 } |
1645 #endif | 1645 #endif |
1646 } | 1646 } |
1647 break; | 1647 break; |
1648 | 1648 |