VDPAU hardware acceleration has two modules.
More...
|
file | vdpau.h |
| Public libavcodec VDPAU header.
|
|
VDPAU hardware acceleration has two modules.
- VDPAU decoding
- VDPAU presentation
The VDPAU decoding module parses all headers using FFmpeg parsing mechanisms and uses VDPAU for the actual decoding.
As per the current implementation, the actual decoding and rendering (API calls) are done as part of the VDPAU presentation (vo_vdpau.c) module.
#define FF_VDPAU_STATE_USED_FOR_RENDER 1 |
The videoSurface is used for rendering.
Definition at line 174 of file vdpau.h.
#define FF_VDPAU_STATE_USED_FOR_REFERENCE 2 |
The videoSurface is needed for reference/prediction.
The codec manipulates this.
Definition at line 180 of file vdpau.h.
typedef int(* AVVDPAU_Render2)(struct AVCodecContext *, struct AVFrame *, const VdpPictureInfo *, uint32_t, const VdpBitstreamBuffer *) |
allocation function for AVVDPAUContext
Allows extending the struct without breaking API/ABI
Definition at line 41 of file vdpau.c.
int av_vdpau_get_profile |
( |
AVCodecContext * |
avctx, |
|
|
VdpDecoderProfile * |
profile |
|
) |
| |
Get a decoder profile that should be used for initializing a VDPAU decoder.
Should be called from the AVCodecContext.get_format() callback.
- Parameters
-
avctx | the codec context being used for decoding the stream |
profile | a pointer into which the result will be written on success. The contents of profile are undefined if this function returns an error. |
- Returns
- 0 on success (non-negative), a negative AVERROR on failure.
Definition at line 457 of file vdpau.c.
Referenced by vdpau_init().