Commit Graph

13 Commits

Author SHA1 Message Date
Maxime Chapelet fb5cfd5204 codec: videotoolbox: Check wherever a metal device can be fetched on iOS
Metal device is mandatory to handle P010 chroma on mobile/tv devices.
The Metal device API can only be used in ObjC context hence a new ObjC source file had to be created to handle the device detection.
2023-10-04 05:38:35 +00:00
Maxime Chapelet 2838f0c426 codec: videotoolbox: add utility function to map and attach video format color properties to a CoreVideo buffer 2023-09-01 15:49:35 +00:00
Maxime Chapelet 214f8fc46e codec: videotoolbox: move functions to map color properties in vt_utils
Those functions can be useful in other places.
One useful case will be to attach color properties properly in the cvpx converter's output image buffers in a future fix without duplicating this mapping code.
2023-08-29 18:34:23 +02:00
Thomas Guillem 9c8ddad973 vt_utils: add helpers to create cvpx video contexts
Create subtype for cvpx video contexts since Videotoolbox and cifilters video
contexts won't share a common context.
2020-01-10 13:01:56 +01:00
Thomas Guillem 8404b9e977 vt_utils: add cvtx to cvpxpic_create_mapped 2020-01-10 13:01:56 +01:00
Thomas Guillem 41d5af70c6 videotoolbox: use the new push model
Deprecate the "videotoolbox" bool variable. This module should be
enabled/disabled by the "dec-dev" variable like any other hw modules.

The vt decoder device is just used to enable/disable hw decoding on Apple and
act like other hw module. Indeed, VideoToolBox doesn't need any context from
the window to initialize.
2020-01-10 13:01:56 +01:00
Thomas Guillem 02fac81f01 vt_utils: merge cvpxpic_attach functions 2020-01-10 13:01:56 +01:00
Thomas Guillem 5e57c4ecba codec: vt_utils: change cvpxpic_attach_with_cb args
Add CVPixelBufferRef and numbers of picture fields.
2018-01-16 12:12:50 +01:00
Thomas Guillem 884476a90e codec: vt_utils: add cvpxpic_attach_with_cb
In order to be notified when the cvpx buffer is released.
2017-11-24 13:11:33 +01:00
Thomas Guillem 1ce7bacd53 vt_utils: rename cvpxpool_get_cvpx 2017-09-12 16:47:48 +02:00
Thomas Guillem efeb55685f vt_utils: add cvpx_pool helpers 2017-06-02 18:43:35 +02:00
Thomas Guillem 2ea905f4ef vt_utils: add cfdict utils 2017-06-02 18:43:35 +02:00
Thomas Guillem 1521d9bd8c videotoolbox: add vt_utils helper
This helper will be used by the videotoobox codec, the cvpx chroma and by the
cvpx opengl converter.
2017-06-02 18:43:35 +02:00