History

pixfmt: add picture format for VDPAU

Rémi Denis-Courmont committed 13 years ago

Commit 169fb941 parent f61272f2 files · +7 −0Browse files

Unified · Split

2 files
  1. libavutil/pixdesc.c +6 −0
  2. libavutil/pixfmt.h +1 −0
libavutil/pixdesc.c+6−0
@@ -1359,6 +1359,12 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 1358 unmodified lines
13591359 },
13601360 .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_RGB,
13611361 },
1362+ [AV_PIX_FMT_VDPAU] = {
1363+ .name = "vdpau",
1364+ .log2_chroma_w = 1,
1365+ .log2_chroma_h = 1,
1366+ .flags = PIX_FMT_HWACCEL,
1367+ },
13621368 };
13631369
13641370 static enum AVPixelFormat get_pix_fmt_internal(const char *name)
libavutil/pixfmt.h+1−0
@@ -178,6 +178,7 @@ enum AVPixelFormat { · 177 unmodified lines
178178 AV_PIX_FMT_YUVA422P16LE, ///< planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)
179179 AV_PIX_FMT_YUVA444P16BE, ///< planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)
180180 AV_PIX_FMT_YUVA444P16LE, ///< planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)
181+ AV_PIX_FMT_VDPAU, ///< HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface
181182 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
182183
183184 #if FF_API_PIX_FMT

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