]> git.sesse.net Git - ffmpeg/commitdiff
pixfmt: add a CUDA hwaccelled format
authorAnton Khirnov <anton@khirnov.net>
Wed, 13 Jan 2016 13:17:54 +0000 (14:17 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 14 Feb 2016 21:08:22 +0000 (22:08 +0100)
doc/APIchanges
libavutil/pixdesc.c
libavutil/pixfmt.h

index e17f02cb0b43c8d29f5afbe4cd087331c7b381a7..d815d9fee33c302815429c7c7ffd91cb4e83e788 100644 (file)
@@ -19,6 +19,7 @@ API changes, most recent first:
                         for handling hwaccel frames.
   xxxxxxx hwcontext_vdpau.h - Add a new installed header hwcontext_vdpau.h with
                               VDPAU-specific hwcontext definitions.
+  xxxxxxx pixfmt.h - Add AV_PIX_FMT_CUDA.
 
 2016-xx-xx - xxxxxxx - lavf 57.3.0 - avformat.h
   Add AVFormatContext.opaque, io_open and io_close, allowing custom IO
index 059bd62441eb42e3b34dff7162b8d3b022b831b1..9b948ed2fd36372ae45d416dd792d2e456489453 100644 (file)
@@ -1577,6 +1577,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
         .name = "mmal",
         .flags = AV_PIX_FMT_FLAG_HWACCEL,
     },
+    [AV_PIX_FMT_CUDA] = {
+        .name = "cuda",
+        .flags = AV_PIX_FMT_FLAG_HWACCEL,
+    },
 };
 #if FF_API_PLUS1_MINUS1
 FF_ENABLE_DEPRECATION_WARNINGS
index 4e0c0d392e8308e7318b037019a9f015ddec8572..f2c6c8d232f03b839cd3a3da4e83a6e9a0bcf375 100644 (file)
@@ -217,6 +217,12 @@ enum AVPixelFormat {
 
     AV_PIX_FMT_D3D11VA_VLD,  ///< HW decoding through Direct3D11, Picture.data[3] contains a ID3D11VideoDecoderOutputView pointer
 
+    /**
+     * HW acceleration through CUDA. data[i] contain CUdeviceptr pointers
+     * exactly as for system memory frames.
+     */
+    AV_PIX_FMT_CUDA,
+
     AV_PIX_FMT_NB,        ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions
 };