Mercurial > mplayer.hg
comparison mplayer.c @ 6304:ee65527096c2
pan&scan support with -vo xv by ?? <mplayer@svennevid.net>
author | arpi |
---|---|
date | Tue, 04 Jun 2002 20:17:07 +0000 |
parents | cf2c2b92d1a7 |
children | 72c87b2ec779 |
comparison
equal
deleted
inserted
replaced
6303:ad98962908ac | 6304:ee65527096c2 |
---|---|
2542 if ( use_gui ) guiGetEvent( guiIEvent,(char *)MP_CMD_GUI_FULLSCREEN ); | 2542 if ( use_gui ) guiGetEvent( guiIEvent,(char *)MP_CMD_GUI_FULLSCREEN ); |
2543 else | 2543 else |
2544 #endif | 2544 #endif |
2545 if(video_out && vo_config_count) video_out->control(VOCTRL_FULLSCREEN, 0); | 2545 if(video_out && vo_config_count) video_out->control(VOCTRL_FULLSCREEN, 0); |
2546 } break; | 2546 } break; |
2547 case MP_CMD_PANSCAN : { | |
2548 int abs= cmd->args[1].v.i; | |
2549 float v = cmd->args[0].v.f; | |
2550 float res; | |
2551 if(abs) | |
2552 res = v; | |
2553 else | |
2554 res = vo_panscan+v; | |
2555 vo_panscan = res > 1 ? 1 : res < 0 ? 0 : res; | |
2556 #ifdef USE_OSD | |
2557 if(osd_level){ | |
2558 osd_visible=sh_video->fps; // 1 sec | |
2559 vo_osd_progbar_type=OSD_PANSCAN; | |
2560 vo_osd_progbar_value=vo_panscan*256; | |
2561 vo_osd_changed(OSDTYPE_PROGBAR); | |
2562 } | |
2563 #endif | |
2564 } break; | |
2547 case MP_CMD_SUB_POS: | 2565 case MP_CMD_SUB_POS: |
2548 { | 2566 { |
2549 int v; | 2567 int v; |
2550 v = cmd->args[0].v.i; | 2568 v = cmd->args[0].v.i; |
2551 | 2569 |