mpv/video
der richter a7c4a113b8 cocoa-cb: remove pre-allocation and initialise only when used
cocoa-cb was always pre-allocated in the Application itself because
libmpv needs to be set up before usage, an opengl context has to be set
and because it was decided mac specific code should be kept out of
libmpv.

this means that a completely working libmpv and opengl renderer was set
up even if it wasn't used. leading to unnecessary log message, resources
being used or reserved on the system that might not be used, triggering
of dedicated GPU unnecessarily and many other things.

even if not optimal, this wasn't the biggest problem since we only had
that one working vo on macOS. though now that we have a vulkan
gpu(-next) backend on macOS that was made the default, we always have
that dangling cocoa-cb instance, which is completely unnecessary.

move the cocoa-cb initialisation into libmpv preinit function and only
init cocoa-cb when we are a standalone App and cocoa-cb support is build
into.
2024-02-27 14:01:38 +01:00
..
decode
filter all: add missing repr assignments 2024-01-26 18:17:02 +02:00
out cocoa-cb: remove pre-allocation and initialise only when used 2024-02-27 14:01:38 +01:00
csputils.c player: ensure runtime updates of certain rendering options 2024-02-05 17:23:47 +00:00
csputils.h csputils: replace more primitives with pl_ 2024-01-22 14:54:55 +00:00
cuda.c
d3d.c vo: add missing return variable assignment 2023-11-18 23:55:28 +00:00
d3d.h
drmprime.c
fmt-conversion.c video: don't define IMGFMT_VULKAN conditionally 2024-02-26 17:37:20 +01:00
fmt-conversion.h
hwdec.c
hwdec.h
image_loader.c
image_loader.h
image_writer.c image_writer: cleanup leftover files if image writing fails 2024-02-25 11:37:44 +01:00
image_writer.h
img_format.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
img_format.h video: don't define IMGFMT_VULKAN conditionally 2024-02-26 17:37:20 +01:00
mp_image.c all: add missing repr assignments 2024-01-26 18:17:02 +02:00
mp_image.h csputils: replace mp_chroma_location with pl_chroma_location 2024-01-22 14:54:55 +00:00
mp_image_pool.c chmap: mp_image_pool: drop stale mentions of Libav in comments 2024-01-20 16:10:20 +00:00
mp_image_pool.h
repack.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
repack.h
sws_utils.c csputils: replace mp_chroma_location with pl_chroma_location 2024-01-22 14:54:55 +00:00
sws_utils.h
vaapi.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
vaapi.h csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
vdpau.c
vdpau.h
vdpau_functions.inc
vdpau_mixer.c csputils: replace more primitives with pl_ 2024-01-22 14:54:55 +00:00
vdpau_mixer.h
zimg.c csputils: replace more primitives with pl_ 2024-01-22 14:54:55 +00:00
zimg.h