1
mirror of https://github.com/mpv-player/mpv synced 2024-11-07 01:47:00 +01:00
mpv/video/out
wm4 81698e7116 vo_x11: remove weird inactive code
I guess this code was supposed to handle cases like drawing RGBA as ARGB
by offsetting it by 1 byte.

The code didn't make any sense, though. It used to make sense before mpv
switched internal pixel formats from FourCCs to a simple enum. With the
FourCCs, "fmt | 128" selected the big endian version of a format. Of
course this doesn't work this way with the new pixel formats. It just so
happens that there are no formats with whose values match
IMGFMT_RGB32|128 or IMGFMT_BGR32|128, so this code was inactive.

All involved pixel formats seem to play fine on my setup (though it's
little endian only), and the code strictly matches the mpv pixel formats
against the format of the X image, so I'm not quite sure why this code
was there in the first place.

The original commit that added this was b333ae1 (svn 21602):
  Support for different endianness on client and server with -vo x11
2013-07-18 13:11:13 +02:00
..
aspect.c video: deal with 0x0 window size 2013-03-19 23:34:50 +01:00
aspect.h video: simplify aspect calculation stuff 2013-03-17 22:07:13 +01:00
bitmap_packer.c Silence some compiler warnings 2013-05-21 00:04:27 +02:00
bitmap_packer.h
cocoa_common.h cocoa_common: remove play/pause VOCTRL functions 2013-06-14 07:34:47 +02:00
cocoa_common.m cocoa_common: change video size when changing screen DPI 2013-07-10 22:22:08 +02:00
d3d_shader_yuv.h
d3d_shader_yuv.hlsl vo_direct3d: remove 2ch hack for 10 bit playback 2013-01-13 20:04:14 +01:00
dither.c dither: don't use long double 2013-07-05 20:26:32 +02:00
dither.h gl_video: improve dithering 2013-05-26 16:44:20 +02:00
filter_kernels.c
filter_kernels.h
gl_cocoa.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_common.c gl_common: fix invalid alignment 2013-05-30 15:56:51 +02:00
gl_common.h gl_video: improve dithering 2013-05-26 16:44:20 +02:00
gl_header_fixes.h gl_header_fixes: add GL_RGBA32F 2013-03-28 22:55:56 +01:00
gl_lcms.c core: change open_stream and demux_open signature 2013-07-12 21:56:40 +02:00
gl_lcms.h vo_opengl: split into multiple files, convert to new option API 2013-03-28 21:46:17 +01:00
gl_osd.c add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_osd.h add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_video_shaders.glsl Merge remote-tracking branch 'origin/low_quality_intel_crap' 2013-07-08 18:07:54 +02:00
gl_video.c Merge remote-tracking branch 'origin/low_quality_intel_crap' 2013-07-08 18:07:54 +02:00
gl_video.h vo_opengl: handle chroma location 2013-06-28 21:20:41 +02:00
gl_w32.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_wayland.c wayland: early aspect calculation in vo_config 2013-07-16 19:13:29 +02:00
gl_x11.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
pnm_loader.c
pnm_loader.h
vo_caca.c core: cleanup more mp_fifo leftovers 2013-07-02 14:11:31 +02:00
vo_corevideo.h
vo_corevideo.m video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
vo_direct3d.c w32: use vo_w32_control() for all VOs 2013-05-26 16:44:19 +02:00
vo_image.c vo: remove vo.check_events callback 2013-05-26 16:44:19 +02:00
vo_lavc.c vo_lavc: remove unused variable 2013-06-18 12:22:25 +02:00
vo_null.c vo: remove vo.check_events callback 2013-05-26 16:44:19 +02:00
vo_opengl_old.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
vo_opengl.c video: add a new method to configure filters and VOs 2013-06-28 20:34:46 +02:00
vo_sdl.c core: cleanup more mp_fifo leftovers 2013-07-02 14:11:31 +02:00
vo_vdpau.c Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
vo_x11.c vo_x11: remove weird inactive code 2013-07-18 13:11:13 +02:00
vo_xv.c input: handle mouse movement differently 2013-06-29 22:58:13 +02:00
vo.c video: redo how colorspaces are handled 2013-07-16 23:22:55 +02:00
vo.h core: remove mp_fifo leftovers 2013-07-04 17:53:30 +02:00
w32_common.c w32_common: don't use aspdat.asp for aspect 2013-07-16 00:03:51 +02:00
w32_common.h w32: enable screensaver when paused 2013-06-14 00:39:31 +02:00
wayland_common.c wayland: early aspect calculation in vo_config 2013-07-16 19:13:29 +02:00
wayland_common.h wayland: early aspect calculation in vo_config 2013-07-16 19:13:29 +02:00
x11_common.c core: cleanup more mp_fifo leftovers 2013-07-02 14:11:31 +02:00
x11_common.h Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00