History

pixfmt: add a CUDA hwaccelled format

Anton Khirnov committed 10 years ago

Commit 7bc780c1 parent c51b2c73 files · +11 −0Browse files

Unified · Split

3 files
  1. doc/APIchanges +1 −0
  2. libavutil/pixdesc.c +4 −0
  3. libavutil/pixfmt.h +6 −0
doc/APIchanges+1−0
@@ -19,6 +19,7 @@ API changes, most recent first: · 18 unmodified lines
1919 for handling hwaccel frames.
2020 xxxxxxx hwcontext_vdpau.h - Add a new installed header hwcontext_vdpau.h with
2121 VDPAU-specific hwcontext definitions.
22+ xxxxxxx pixfmt.h - Add AV_PIX_FMT_CUDA.
2223
2324 2016-xx-xx - xxxxxxx - lavf 57.3.0 - avformat.h
2425 Add AVFormatContext.opaque, io_open and io_close, allowing custom IO
libavutil/pixdesc.c+4−0
@@ -1577,6 +1577,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 1576 unmodified lines
15771577 .name = "mmal",
15781578 .flags = AV_PIX_FMT_FLAG_HWACCEL,
15791579 },
1580+ [AV_PIX_FMT_CUDA] = {
1581+ .name = "cuda",
1582+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
1583+ },
15801584 };
15811585 #if FF_API_PLUS1_MINUS1
15821586 FF_ENABLE_DEPRECATION_WARNINGS
libavutil/pixfmt.h+6−0
@@ -217,6 +217,12 @@ enum AVPixelFormat { · 216 unmodified lines
217217
218218 AV_PIX_FMT_D3D11VA_VLD, ///< HW decoding through Direct3D11, Picture.data[3] contains a ID3D11VideoDecoderOutputView pointer
219219
220+ /**
221+ * HW acceleration through CUDA. data[i] contain CUdeviceptr pointers
222+ * exactly as for system memory frames.
223+ */
224+ AV_PIX_FMT_CUDA,
225+
220226 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
221227 };
222228

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t