FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
qsv_internal.h File Reference
#include <stdint.h>
#include <sys/types.h>
#include <mfx/mfxvideo.h>
#include "libavutil/frame.h"
#include "libavutil/pixfmt.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  QSVFrame
 
struct  QSVContext
 

Macros

#define QSV_VERSION_MAJOR   1
 
#define QSV_VERSION_MINOR   1
 
#define ASYNC_DEPTH_DEFAULT   4
 

Functions

int ff_qsv_error (int mfx_err)
 Convert a libmfx error code into a ffmpeg error code.
 
int ff_qsv_map_pixfmt (enum AVPixelFormat format)
 
int ff_qsv_init (AVCodecContext *s, QSVContext *q, mfxSession session)
 
int ff_qsv_decode (AVCodecContext *s, QSVContext *q, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
int ff_qsv_close (QSVContext *q)
 

Macro Definition Documentation

#define QSV_VERSION_MAJOR   1

Definition at line 36 of file qsv_internal.h.

Referenced by qsv_init_session().

#define QSV_VERSION_MINOR   1

Definition at line 37 of file qsv_internal.h.

Referenced by qsv_init_session().

#define ASYNC_DEPTH_DEFAULT   4

Definition at line 39 of file qsv_internal.h.

Function Documentation

int ff_qsv_error ( int  mfx_err)

Convert a libmfx error code into a ffmpeg error code.

Definition at line 39 of file qsv.c.

Referenced by ff_qsv_decode(), ff_qsv_init(), and qsv_init_session().

int ff_qsv_map_pixfmt ( enum AVPixelFormat  format)

Definition at line 74 of file qsv.c.

Referenced by qsv_process_data().

int ff_qsv_init ( AVCodecContext s,
QSVContext q,
mfxSession  session 
)

Definition at line 143 of file qsv.c.

Referenced by qsv_process_data().

int ff_qsv_decode ( AVCodecContext s,
QSVContext q,
AVFrame frame,
int *  got_frame,
AVPacket avpkt 
)

Definition at line 277 of file qsv.c.

Referenced by qsv_decode_frame(), and qsv_process_data().

int ff_qsv_close ( QSVContext q)

Definition at line 347 of file qsv.c.

Referenced by qsv_decode_close().