1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 19:22:11 +00:00
mpv/libvo
Stefano Pigozzi e70b5ee2fd cocoa_common: add HiDPI/retina support
With a HiDPI screen, for performance and backwards compatibility
reasons, AppKit requests an OpenGL surface with a pixel number that
equals the user points number. After the image is rendered to this
smaller surface, it is upscaled so that its dimensions are comparable
across screens of different DPIs. The applied scaling is not that good
and makes the video/subtitles blurry; this is not acceptable for a
video player.

Request AppKit to use a high resolution OpenGL surface to back the
mplayer2 OpenGL view. Also set the window pixel size information
correctly in the VO object by converting user points to actual pixels.

All the system version checks are done at runtime so that the feature
is available on OSX 10.7 even with a binary compiled with older SDKs.

Also replace is_lion_or_better() with is_osx_version_at_least(10, 7, 0)
which is defined in osx_common.
2012-08-16 22:41:09 +02:00
..
aspect.c Remove dead code 2012-08-01 17:07:35 +02:00
aspect.h VO: remove old VO glue 2012-08-07 01:29:56 +02:00
cocoa_common.h cocoa: gl3: support querying of colors bit depth 2012-05-15 10:37:58 +02:00
cocoa_common.m cocoa_common: add HiDPI/retina support 2012-08-16 22:41:09 +02:00
csputils.c vo_gl: improve 10-bit YUV->RGB conversion accuracy slightly 2012-03-09 20:48:55 +02:00
csputils.h vo_gl: improve 10-bit YUV->RGB conversion accuracy slightly 2012-03-09 20:48:55 +02:00
d3d_shader_yuv_2ch.h vo_direct3d: add hack for using 2 channel textures for 10 bit pixel formats 2012-03-17 21:06:28 +01:00
d3d_shader_yuv.h vo_direct3d: implement YUV conversion using shaders 2012-03-17 21:05:34 +01:00
d3d_shader_yuv.hlsl vo_direct3d: add hack for using 2 channel textures for 10 bit pixel formats 2012-03-17 21:06:28 +01:00
eosd_packer.c libvo, vo_vdpau: make the EOSD packer code from vo_vdpau generic 2011-12-25 20:42:18 +01:00
eosd_packer.h libvo, vo_vdpau: make the EOSD packer code from vo_vdpau generic 2011-12-25 20:42:18 +01:00
fastmemcpy.h VO: remove vo_directfb2 and vo_directx 2012-08-16 17:17:50 +02:00
filter_kernels.c libvo: add vo_gl3 2012-03-31 02:58:52 +02:00
filter_kernels.h libvo: add vo_gl3 2012-03-31 02:58:52 +02:00
geometry.c Add support for -geometry x syntax since the documentation claims 2010-06-05 06:28:58 +00:00
geometry.h
gl_common.c VO: remove old VO glue 2012-08-07 01:29:56 +02:00
gl_common.h gl_common: fix compilation on OS X 10.8 2012-08-16 22:25:13 +02:00
gl_header_fixes.h gl_common: move header hacks into gl_header_fixes.h 2012-03-31 02:58:53 +02:00
osd_template.c osd: remove FAST_OSD code 2012-08-07 02:21:19 +02:00
osd.c osd: remove FAST_OSD code 2012-08-07 02:21:19 +02:00
osd.h Remove dead code 2012-08-01 17:07:35 +02:00
osx_common.c cocoa_common: add HiDPI/retina support 2012-08-16 22:41:09 +02:00
osx_common.h cocoa_common: add HiDPI/retina support 2012-08-16 22:41:09 +02:00
video_out.c VO: remove vo_directfb2 and vo_directx 2012-08-16 17:17:50 +02:00
video_out.h VO: remove old VO glue 2012-08-07 01:29:56 +02:00
vo_caca.c vo_caca: use new VO API 2012-08-07 01:09:30 +02:00
vo_corevideo.h vo_corevideo: restructure this video output 2012-04-26 21:03:10 +03:00
vo_corevideo.m osx: fix build 2012-08-08 21:23:28 +02:00
vo_direct3d.c win32: fix compilation on MinGW 2012-08-07 01:09:42 +02:00
vo_gl3_shaders.glsl libvo: add vo_gl3 2012-03-31 02:58:52 +02:00
vo_gl3.c VO: remove VO direct rendering 2012-08-02 22:07:38 +02:00
vo_gl.c osd: remove FAST_OSD code 2012-08-07 02:21:19 +02:00
vo_image.c vo_image: add outdir option 2012-08-06 17:52:47 +02:00
vo_null.c vo_null: reformat and use new VO API 2012-08-07 01:09:30 +02:00
vo_vdpau.c vo_vdpau: fix crash when vo_vdpau initialization fails 2012-08-16 17:16:32 +02:00
vo_x11.c vo_x11: reformat, use new VO API 2012-08-07 01:09:22 +02:00
vo_xv.c mplayer: do not create X11 state in player frontend 2012-08-03 05:55:02 +02:00
w32_common.c win32: don't crash if vo_w32_uninit() is called without vo_w32_init() 2012-04-24 01:25:10 +02:00
w32_common.h win32: move global variables into a struct & some refactoring 2012-04-14 17:03:11 +02:00
x11_common.c mplayer: never exit mplayer from within the play loop 2012-08-04 19:59:56 +02:00
x11_common.h VO: remove old VO glue 2012-08-07 01:29:56 +02:00