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
19 for handling hwaccel frames.19 for handling hwaccel frames.
20 xxxxxxx hwcontext_vdpau.h - Add a new installed header hwcontext_vdpau.h with20 xxxxxxx hwcontext_vdpau.h - Add a new installed header hwcontext_vdpau.h with
21 VDPAU-specific hwcontext definitions.21 VDPAU-specific hwcontext definitions.
22 xxxxxxx pixfmt.h - Add AV_PIX_FMT_CUDA.
22 23
232016-xx-xx - xxxxxxx - lavf 57.3.0 - avformat.h242016-xx-xx - xxxxxxx - lavf 57.3.0 - avformat.h
24 Add AVFormatContext.opaque, io_open and io_close, allowing custom IO25 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
1577 .name = "mmal",1577 .name = "mmal",
1578 .flags = AV_PIX_FMT_FLAG_HWACCEL,1578 .flags = AV_PIX_FMT_FLAG_HWACCEL,
1579 },1579 },
1580 [AV_PIX_FMT_CUDA] = {
1581 .name = "cuda",
1582 .flags = AV_PIX_FMT_FLAG_HWACCEL,
1583 },
1580};1584};
1581#if FF_API_PLUS1_MINUS11585#if FF_API_PLUS1_MINUS1
1582FF_ENABLE_DEPRECATION_WARNINGS1586FF_ENABLE_DEPRECATION_WARNINGS
libavutil/pixfmt.h+6−0
@@ -217,6 +217,12 @@ enum AVPixelFormat { · 216 unmodified lines
217 217
218 AV_PIX_FMT_D3D11VA_VLD, ///< HW decoding through Direct3D11, Picture.data[3] contains a ID3D11VideoDecoderOutputView pointer218 AV_PIX_FMT_D3D11VA_VLD, ///< HW decoding through Direct3D11, Picture.data[3] contains a ID3D11VideoDecoderOutputView pointer
219 219
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
220 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 versions226 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
221};227};
222 228

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