1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-20 14:56:55 +00:00
mpv/video/out/cocoa-cb
Akemi 0bea384153 cocoa-cb: simplify CGL pixel format creation
i found the old pixel format creation a bit too messy. pixel format
attribute arrays and look ups were all over the place, the actual logic
what kind of format was created was inscrutable, the software pixel
format was hardcoded and no probing was done.

i split the attributes into mandatory and optional ones, one mandatory
for a hardware and software pixel format each, and moved those to the
top of the class. that way new attributes can be easily added to either
the mandatory or optional attributes and they don't mess up the actual
pixel creation logic any more. furthermore both hardware and software
pixel formats are being probed the same way now. to minimise code
duplications the probing was moved into its own function.
2019-04-02 02:05:11 +03:00
..
events_view.swift cocoa-cb: add support for dragging certain strings onto the window 2019-04-02 02:04:31 +03:00
video_layer.swift cocoa-cb: simplify CGL pixel format creation 2019-04-02 02:05:11 +03:00
window.swift cocoa-cb: fix a Cocoa window position on init bug 2019-04-02 02:01:02 +03:00