summaryrefslogtreecommitdiffstats
path: root/video/decode/hw_videotoolbox.c
Commit message (Collapse)AuthorAgeFilesLines
* videotoolbox: use generic code for dummy hwdevice initwm42017-10-311-73/+0
| | | | | And move the remaining code (just 2 struct constant definitions) to vd_lavc.c.
* video: remove old videotoolbox supportwm42017-09-261-173/+0
| | | | | Like as in previous commits, you need a very recent FFmpeg (probably git master).
* videotoolbox: support new libavcodec APIwm42017-05-241-0/+61
| | | | | | | | | | | The new API has literally no advantages (other than that we can drop mp_vt_download_image and other things later), but it's sort-of uniform with the other hwaccels. "--videotoolbox-format=no" is not supported with the new API, because it doesn't "fit in". Probably could be added later again. The iOS code change is untested (no way to test).
* hw_videotoolbox: allow using native decoder output formatwm42017-03-021-2/+8
| | | | | | | Depends on FFmpeg commit ade7c1a2326e2bb9b. It has yet to show whether it actually does what it should. Probably doesn't.
* videotoolbox: remove weird format-negotiation between VO and decoderwm42017-02-171-16/+10
| | | | | | | | | | | | | | | | Originally, there was probably some sort of intention to restrict it to formats supported by the interop, or something. But in the end it was overcomplicated nonsense. In the future, we could use mp_hwdec_ctx.supported_formats or other mechanisms to handle this in a better way. mp_hwdec_ctx.ctx is not set to a dummy pointer - hwdec_devices_load() is only used to detect whether to vo_opengl interop is present, and the common hwdec code expects that the .ctx field is not NULL. This also changes videotoolbox-copy to use --videotoolbox-format, instead of the FFmpeg-set default.
* videotoolbox: factor some duplicated codewm42017-02-171-45/+2
| | | | | | | | The code for copying a videotoolbox surface to mp_image was duplicated (with some minor differences - I picked the hw_videotoolbox.c version, because it was "better"). mp_imgfmt_from_cvpixelformat() is somewhat duplicated with the vt_formats[] table, but this will be fixed in a later commit, and moving the function to shared code is preparation.
* build: prefix hwaccel decoder wrapper filenames with hw_wm42017-01-171-0/+228
Should have done this a long time ago. d3d.c remains as it is, because it's just a bunch of helper functions.