Macros | Functions
vdpau.c File Reference
#include <limits.h>
#include "avcodec.h"
#include "decode.h"
#include "internal.h"
#include "h264dec.h"
#include "vc1.h"
#include "vdpau.h"
#include "vdpau_internal.h"

Go to the source code of this file.


#define PROFILE(prof)


static int vdpau_error (VdpStatus status)
AVVDPAUContextav_alloc_vdpaucontext (void)
 allocation function for AVVDPAUContext More...
int av_vdpau_get_surface_parameters (AVCodecContext *avctx, VdpChromaType *type, uint32_t *width, uint32_t *height)
 Gets the parameters to create an adequate VDPAU video surface for the codec context using VDPAU hardware decoding acceleration. More...
int ff_vdpau_common_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
int ff_vdpau_common_init (AVCodecContext *avctx, VdpDecoderProfile profile, int level)
int ff_vdpau_common_uninit (AVCodecContext *avctx)
static int ff_vdpau_common_reinit (AVCodecContext *avctx)
int ff_vdpau_common_start_frame (struct vdpau_picture_context *pic_ctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
int ff_vdpau_common_end_frame (AVCodecContext *avctx, AVFrame *frame, struct vdpau_picture_context *pic_ctx)
int ff_vdpau_add_buffer (struct vdpau_picture_context *pic_ctx, const uint8_t *buf, uint32_t size)
int av_vdpau_get_profile (AVCodecContext *avctx, VdpDecoderProfile *profile)
 Get a decoder profile that should be used for initializing a VDPAU decoder. More...
AVVDPAUContextav_vdpau_alloc_context (void)
 Allocate an AVVDPAUContext. More...
int av_vdpau_bind_context (AVCodecContext *avctx, VdpDevice device, VdpGetProcAddress *get_proc, unsigned flags)
 Associate a VDPAU device with a codec context for hardware acceleration. More...

Macro Definition Documentation

#define PROFILE (   prof)
do { \
*profile = VDP_DECODER_PROFILE_##prof; \
return 0; \
} while (0)
mfxU16 profile
Definition: qsvenc.c:44
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a it should return

Referenced by av_vdpau_get_profile().