FFmpeg
|
#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "libavutil/time.h"
#include "libavutil/pixdesc.h"
#include "internal.h"
#include "qsvvpp.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | QSVAsyncFrame |
Macros | |
#define | MFXUnload(a) do { } while(0) |
#define | IS_VIDEO_MEMORY(mode) |
#define | IS_OPAQUE_MEMORY(mode) (mode & MFX_MEMTYPE_OPAQUE_FRAME) |
#define | IS_SYSTEM_MEMORY(mode) (mode & MFX_MEMTYPE_SYSTEM_MEMORY) |
#define | MFX_IMPL_VIA_MASK(impl) (0x0f00 & (impl)) |
#define | QSV_HAVE_AUDIO !QSV_ONEVPL |
Functions | |
int | ff_qsvvpp_print_iopattern (void *log_ctx, int mfx_iopattern, const char *extra_string) |
static int | qsv_map_error (mfxStatus mfx_err, const char **desc) |
int | ff_qsvvpp_print_error (void *log_ctx, mfxStatus err, const char *error_string) |
int | ff_qsvvpp_print_warning (void *log_ctx, mfxStatus err, const char *warning_string) |
static mfxStatus | frame_alloc (mfxHDL pthis, mfxFrameAllocRequest *req, mfxFrameAllocResponse *resp) |
static mfxStatus | frame_free (mfxHDL pthis, mfxFrameAllocResponse *resp) |
static mfxStatus | frame_lock (mfxHDL pthis, mfxMemId mid, mfxFrameData *ptr) |
static mfxStatus | frame_unlock (mfxHDL pthis, mfxMemId mid, mfxFrameData *ptr) |
static mfxStatus | frame_get_hdl (mfxHDL pthis, mfxMemId mid, mfxHDL *hdl) |
static int | pix_fmt_to_mfx_fourcc (int format) |
static int | map_frame_to_surface (AVFrame *frame, mfxFrameSurface1 *surface) |
static int | fill_frameinfo_by_link (mfxFrameInfo *frameinfo, AVFilterLink *link) |
static void | clear_unused_frames (QSVFrame *list) |
static void | clear_frame_list (QSVFrame **list) |
static QSVFrame * | get_free_frame (QSVFrame **list) |
static QSVFrame * | submit_frame (QSVVPPContext *s, AVFilterLink *inlink, AVFrame *picref) |
static QSVFrame * | query_frame (QSVVPPContext *s, AVFilterLink *outlink) |
static int | init_vpp_session (AVFilterContext *avctx, QSVVPPContext *s) |
int | ff_qsvvpp_init (AVFilterContext *avctx, QSVVPPParam *param) |
int | ff_qsvvpp_close (AVFilterContext *avctx) |
int | ff_qsvvpp_filter_frame (QSVVPPContext *s, AVFilterLink *inlink, AVFrame *picref) |
int | ff_qsvvpp_create_mfx_session (void *ctx, void *loader, mfxIMPL implementation, mfxVersion *pver, mfxSession *psession) |
AVFrame * | ff_qsvvpp_get_video_buffer (AVFilterLink *inlink, int w, int h) |
Variables | |
static const AVRational | default_tb = { 1, 90000 } |
struct { | |
int mfx_iopattern | |
const char * desc | |
} | qsv_iopatterns [] |
struct { | |
mfxStatus mfxerr | |
int averr | |
const char * desc | |
} | qsv_errors [] |
Intel Quick Sync Video VPP base function
Definition in file qsvvpp.c.
#define IS_VIDEO_MEMORY | ( | mode | ) |
#define QSV_HAVE_AUDIO !QSV_ONEVPL |
Definition at line 72 of file qsvvpp.c.
Referenced by ff_qsvvpp_init().
|
static |
Definition at line 139 of file qsvvpp.c.
Referenced by ff_qsvvpp_print_error(), and ff_qsvvpp_print_warning().
int ff_qsvvpp_print_error | ( | void * | log_ctx, |
mfxStatus | err, | ||
const char * | error_string | ||
) |
Definition at line 154 of file qsvvpp.c.
Referenced by ff_qsvvpp_create_mfx_session(), ff_qsvvpp_filter_frame(), ff_qsvvpp_init(), and init_vpp_session().
int ff_qsvvpp_print_warning | ( | void * | log_ctx, |
mfxStatus | err, | ||
const char * | warning_string | ||
) |
Definition at line 164 of file qsvvpp.c.
Referenced by ff_qsvvpp_create_mfx_session(), ff_qsvvpp_filter_frame(), ff_qsvvpp_init(), and init_vpp_session().
|
static |
Definition at line 175 of file qsvvpp.c.
Referenced by init_vpp_session().
|
static |
Definition at line 209 of file qsvvpp.c.
Referenced by init_vpp_session().
|
static |
Definition at line 215 of file qsvvpp.c.
Referenced by init_vpp_session().
|
static |
Definition at line 220 of file qsvvpp.c.
Referenced by init_vpp_session().
|
static |
Definition at line 225 of file qsvvpp.c.
Referenced by init_vpp_session().
Definition at line 237 of file qsvvpp.c.
Referenced by fill_frameinfo_by_link().
Definition at line 259 of file qsvvpp.c.
Referenced by query_frame(), and submit_frame().
|
static |
Definition at line 297 of file qsvvpp.c.
Referenced by ff_qsvvpp_init().
|
static |
Definition at line 352 of file qsvvpp.c.
Referenced by query_frame(), and submit_frame().
|
static |
Definition at line 365 of file qsvvpp.c.
Referenced by ff_qsvvpp_close().
Definition at line 377 of file qsvvpp.c.
Referenced by query_frame(), and submit_frame().
|
static |
Definition at line 403 of file qsvvpp.c.
Referenced by ff_qsvvpp_filter_frame().
|
static |
Definition at line 477 of file qsvvpp.c.
Referenced by ff_qsvvpp_filter_frame().
|
static |
Definition at line 531 of file qsvvpp.c.
Referenced by ff_qsvvpp_init().
int ff_qsvvpp_init | ( | AVFilterContext * | avctx, |
QSVVPPParam * | param | ||
) |
keep fifo size at least 1. Even when async_depth is 0, fifo is used.
Definition at line 702 of file qsvvpp.c.
Referenced by config_output().
int ff_qsvvpp_close | ( | AVFilterContext * | avctx | ) |
Definition at line 823 of file qsvvpp.c.
Referenced by ff_qsvvpp_init(), overlay_qsv_uninit(), qsv_stack_uninit(), and vpp_uninit().
int ff_qsvvpp_filter_frame | ( | QSVVPPContext * | s, |
AVFilterLink * | inlink, | ||
AVFrame * | picref | ||
) |
Definition at line 847 of file qsvvpp.c.
Referenced by activate(), and process_frame().
int ff_qsvvpp_create_mfx_session | ( | void * | ctx, |
void * | loader, | ||
mfxIMPL | implementation, | ||
mfxVersion * | pver, | ||
mfxSession * | psession | ||
) |
Definition at line 998 of file qsvvpp.c.
Referenced by init_vpp_session().
AVFrame* ff_qsvvpp_get_video_buffer | ( | AVFilterLink * | inlink, |
int | w, | ||
int | h | ||
) |
|
static |
Definition at line 49 of file qsvvpp.c.
Referenced by ff_qsvvpp_filter_frame(), and submit_frame().
int mfx_iopattern |
Definition at line 57 of file qsvvpp.c.
Referenced by ff_qsvvpp_print_iopattern().
const char* desc |
Definition at line 58 of file qsvvpp.c.
Referenced by ff_qsvvpp_print_error(), ff_qsvvpp_print_iopattern(), ff_qsvvpp_print_warning(), fill_frameinfo_by_link(), and qsv_map_error().
const { ... } qsv_iopatterns[] |
Referenced by ff_qsvvpp_print_iopattern().
mfxStatus mfxerr |
Definition at line 90 of file qsvvpp.c.
Referenced by qsv_map_error().
const { ... } qsv_errors[] |
Referenced by qsv_map_error().