123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- #ifndef AVCODEC_VDPAU_H
- #define AVCODEC_VDPAU_H
- #include <vdpau/vdpau.h>
- #include "libavutil/avconfig.h"
- #include "libavutil/attributes.h"
- #include "avcodec.h"
- #include "version.h"
- struct AVCodecContext;
- struct AVFrame;
- typedef int (*AVVDPAU_Render2)(struct AVCodecContext *, struct AVFrame *,
- const VdpPictureInfo *, uint32_t,
- const VdpBitstreamBuffer *);
- typedef struct AVVDPAUContext {
-
- VdpDecoder decoder;
-
- VdpDecoderRender *render;
- AVVDPAU_Render2 render2;
- } AVVDPAUContext;
- AVVDPAUContext *av_alloc_vdpaucontext(void);
- AVVDPAU_Render2 av_vdpau_hwaccel_get_render2(const AVVDPAUContext *);
- void av_vdpau_hwaccel_set_render2(AVVDPAUContext *, AVVDPAU_Render2);
- int av_vdpau_bind_context(AVCodecContext *avctx, VdpDevice device,
- VdpGetProcAddress *get_proc_address, unsigned flags);
- int av_vdpau_get_surface_parameters(AVCodecContext *avctx, VdpChromaType *type,
- uint32_t *width, uint32_t *height);
- AVVDPAUContext *av_vdpau_alloc_context(void);
- #if FF_API_VDPAU_PROFILE
- attribute_deprecated
- int av_vdpau_get_profile(AVCodecContext *avctx, VdpDecoderProfile *profile);
- #endif
- #endif
|