[vlc-commits] [Git][videolan/vlc][master] 2 commits: codec/videotoolbox: Add support for visionOS

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Mar 22 09:04:11 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
d7a7709a by Benjamin King at 2024-03-22T08:33:40+00:00
codec/videotoolbox: Add support for visionOS

- - - - -
dadd1bcc by Maxime Chapelet at 2024-03-22T08:33:40+00:00
codec/videotoolbox: enable metal compatibility everywhere

* OpenGL compatibility only for macOS.
* OpenGLES compatibility everywhere else but visionOS

Given this, every decoded buffers will be compatible for all available
Darwin compatible vout renderers.

- - - - -


1 changed file:

- modules/codec/videotoolbox/decoder.c


Changes:

=====================================
modules/codec/videotoolbox/decoder.c
=====================================
@@ -1173,11 +1173,14 @@ static int StartVideoToolbox(decoder_t *p_dec)
         goto error;
     }
 
-#if !TARGET_OS_IPHONE
     CFDictionarySetValue(destinationPixelBufferAttributes,
-                         kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey,
+                         kCVPixelBufferMetalCompatibilityKey,
                          kCFBooleanTrue);
-#else
+#if TARGET_OS_OSX
+   CFDictionarySetValue(destinationPixelBufferAttributes,
+                        kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey,
+                        kCFBooleanTrue);
+#elif !defined(TARGET_OS_VISION) || !TARGET_OS_VISION
     CFDictionarySetValue(destinationPixelBufferAttributes,
                          kCVPixelBufferOpenGLESCompatibilityKey,
                          kCFBooleanTrue);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/4cdfdd217d463a07967c78721d1a6024092658dc...dadd1bcccd715fad104643ac2e8efbca5d96cef2

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/4cdfdd217d463a07967c78721d1a6024092658dc...dadd1bcccd715fad104643ac2e8efbca5d96cef2
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list