Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | videotoolbox: remove weird format-negotiation between VO and decoder | wm4 | 2017-02-17 | 1 | -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 code | wm4 | 2017-02-17 | 1 | -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_ | wm4 | 2017-01-17 | 1 | -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. |