Ticket #2131: myth-zoom.patch
File myth-zoom.patch, 3.2 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/videoout_quartz.cpp
347 347 { 348 348 case kLetterbox_4_3_Zoom: 349 349 // height only fills 3/4 of image, zoom up 350 // (9/16)*4 is 2.25, using 2.25 of 3 350 351 hscale = vscale = h * 1.0 / (sh * 0.75); 351 352 break; 353 case kLetterbox_14_9_Zoom: 354 // height only fills part of image, zoom up 355 // (9/14)*4 is about 2.57, using 2.57 of 3 356 hscale = vscale = w * 7.0 / (sw * 6); 357 break; 352 358 case kLetterbox_16_9_Zoom: 353 359 // width only fills 3/4 of image, zoom up 354 360 hscale = vscale = w * 1.0 / (sw * 0.75); -
libs/libmythtv/tv_play.cpp
5068 5068 case kLetterbox_4_3: text = tr("4:3"); break; 5069 5069 case kLetterbox_16_9: text = tr("16:9"); break; 5070 5070 case kLetterbox_4_3_Zoom: text = tr("4:3 Zoom"); break; 5071 case kLetterbox_14_9_Zoom: text = tr("14:9 Zoom"); break; 5071 5072 case kLetterbox_16_9_Zoom: text = tr("16:9 Zoom"); break; 5072 5073 case kLetterbox_16_9_Stretch: text = tr("16:9 Stretch"); break; 5073 5074 case kLetterbox_Fill: text = tr("Fill"); break; -
libs/libmythtv/videooutbase.cpp
387 387 { 388 388 letterboxed_video_aspect = 4.0f / 3.0f; 389 389 } 390 else if ((kLetterbox_14_9_Zoom == letterbox)) 391 { 392 letterboxed_video_aspect = 4.0f / 3.0f; 393 } 390 394 else if ((kLetterbox_16_9 == letterbox) || 391 395 (kLetterbox_16_9_Zoom == letterbox)) 392 396 { … … 778 782 display_video_rect.width() * 4 / 3, 779 783 display_video_rect.height() * 4 / 3); 780 784 } 785 else if (letterbox == kLetterbox_14_9_Zoom) 786 { 787 // Zoom mode -- Expand by 7/6 and overscan. 788 // Intended to be used to eliminate the top bars 789 // on 14:9 material. 790 // Expanding by 7/6, so remove 1/6 of original from overscan; 791 // take half from each side, so remove 1/12. 792 display_video_rect = QRect( 793 display_video_rect.left() - (display_video_rect.width() / 12), 794 display_video_rect.top() - (display_video_rect.height() / 12), 795 display_video_rect.width() * 7 / 6, 796 display_video_rect.height() * 7 / 6); 797 } 798 781 799 else if (letterbox == kLetterbox_16_9_Stretch) 782 800 { 783 801 // Stretch mode -- intended to be used to eliminate side -
libs/libmythtv/videooutbase.h
93 93 { 94 94 kLetterbox_Toggle = -1, 95 95 kLetterbox_Off = 0, 96 kLetterbox_14_9_Zoom, 96 97 kLetterbox_4_3, 97 98 kLetterbox_16_9, 98 99 kLetterbox_4_3_Zoom,