Download libavfilter/metal/utils.h from camenduru/ffmpeg-cuda: direct link, hf CLI and curl.
- Browser
- Download file 2.53 kB
-
https://huggingface.co/camenduru/ffmpeg-cuda/resolve/refs%2Fpr%2F1/libavfilter/metal/utils.h
- Command line
-
hf download hf://camenduru/ffmpeg-cuda@refs/pr/1/libavfilter/metal/utils.h
-
curl -L -o utils.h https://huggingface.co/camenduru/ffmpeg-cuda/resolve/refs%2Fpr%2F1/libavfilter/metal/utils.h
2.53 kB
| /* | |
| * This file is part of FFmpeg. | |
| * | |
| * FFmpeg is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | |
| * version 2.1 of the License, or (at your option) any later version. | |
| * | |
| * FFmpeg is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Lesser General Public License for more details. | |
| * | |
| * You should have received a copy of the GNU Lesser General Public | |
| * License along with FFmpeg; if not, write to the Free Software | |
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
| */ | |
| // CoreVideo accidentally(?) preprocessor-gates Metal functionality | |
| // on MAC_OS_X_VERSION_MIN_REQUIRED >= 101100 (FB9816002). | |
| // There doesn't seem to be any particular reason for this, | |
| // so here we temporarily redefine it to at least that value | |
| // so CV will give us CVMetalTextureRef and the related functions. | |
| void ff_metal_compute_encoder_dispatch(id<MTLDevice> device, | |
| id<MTLComputePipelineState> pipeline, | |
| id<MTLComputeCommandEncoder> encoder, | |
| NSUInteger width, NSUInteger height) | |
| API_AVAILABLE(macos(10.11), ios(8.0)); | |
| CVMetalTextureRef ff_metal_texture_from_pixbuf(void *avclass, | |
| CVMetalTextureCacheRef textureCache, | |
| CVPixelBufferRef pixbuf, | |
| int plane, | |
| MTLPixelFormat format) | |
| API_AVAILABLE(macos(10.11), ios(8.0)); | |