mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 05:42:19 +00:00
dc5fcced23
This restores cuda/cuvid under Windows. Cuvid is relatively useless under Windows, but this was requested.
16 lines
392 B
C
16 lines
392 B
C
#define CUDA_VERSION 7050
|
|
|
|
typedef void * CUcontext;
|
|
|
|
#include <libavcodec/avcodec.h>
|
|
#include <libavutil/hwcontext.h>
|
|
#include <libavutil/hwcontext_cuda.h>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
enum AVHWDeviceType type = AV_HWDEVICE_TYPE_CUDA;
|
|
AVCUDADeviceContextInternal *foo;
|
|
AVCodecContext *avctx = avcodec_alloc_context3(NULL);
|
|
avctx->hw_device_ctx = NULL;
|
|
return 0;
|
|
}
|