History

Merge commit '7bc780cd4413f688d3b834037b0f9ddfd6948140'

* commit '7bc780cd4413f688d3b834037b0f9ddfd6948140': pixfmt: add a CUDA hwaccelled format

Derek Buitenhuis committed 10 years ago

Commit 63c3e352 parents 9f2c1c7 7bc780c3 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
@@ -27,6 +27,7 @@ API changes, most recent first: · 26 unmodified lines
2727 for handling hwaccel frames.
2828 xxxxxxx hwcontext_vdpau.h - Add a new installed header hwcontext_vdpau.h with
2929 VDPAU-specific hwcontext definitions.
30+ xxxxxxx pixfmt.h - Add AV_PIX_FMT_CUDA.
3031
3132 -------- 8< --------- FFmpeg 3.0 was cut here -------- 8< ---------
3233
libavutil/pixdesc.c+4−0
@@ -1978,6 +1978,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 1977 unmodified lines
19781978 .name = "mmal",
19791979 .flags = AV_PIX_FMT_FLAG_HWACCEL,
19801980 },
1981+ [AV_PIX_FMT_CUDA] = {
1982+ .name = "cuda",
1983+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
1984+ },
19811985 [AV_PIX_FMT_AYUV64LE] = {
19821986 .name = "ayuv64le",
19831987 .nb_components = 4,
libavutil/pixfmt.h+6−0
@@ -242,6 +242,12 @@ enum AVPixelFormat { · 241 unmodified lines
242242
243243 AV_PIX_FMT_D3D11VA_VLD, ///< HW decoding through Direct3D11, Picture.data[3] contains a ID3D11VideoDecoderOutputView pointer
244244
245+ /**
246+ * HW acceleration through CUDA. data[i] contain CUdeviceptr pointers
247+ * exactly as for system memory frames.
248+ */
249+ AV_PIX_FMT_CUDA,
250+
245251 AV_PIX_FMT_0RGB=0x123+4,///< packed RGB 8:8:8, 32bpp, XRGBXRGB... X=unused/undefined
246252 AV_PIX_FMT_RGB0, ///< packed RGB 8:8:8, 32bpp, RGBXRGBX... X=unused/undefined
247253 AV_PIX_FMT_0BGR, ///< packed BGR 8:8:8, 32bpp, XBGRXBGR... X=unused/undefined

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