FFmpeg
Data Structures | Functions
qsvdec.c File Reference

Intel QSV-accelerated H.264 decoding example. More...

#include "config.h"
#include <stdio.h>
#include "libavformat/avformat.h"
#include "libavformat/avio.h"
#include "libavcodec/avcodec.h"
#include "libavutil/buffer.h"
#include "libavutil/error.h"
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_qsv.h"
#include "libavutil/mem.h"

Go to the source code of this file.

Data Structures

struct  DecodeContext
 

Functions

static int get_format (AVCodecContext *avctx, const enum AVPixelFormat *pix_fmts)
 
static int decode_packet (DecodeContext *decode, AVCodecContext *decoder_ctx, AVFrame *frame, AVFrame *sw_frame, AVPacket *pkt, AVIOContext *output_ctx)
 
int main (int argc, char **argv)
 

Detailed Description

Intel QSV-accelerated H.264 decoding example.

Definition in file qsvdec.c.

Function Documentation

static int get_format ( AVCodecContext avctx,
const enum AVPixelFormat pix_fmts 
)
static
Examples:
qsvdec.c.

Definition at line 51 of file qsvdec.c.

Referenced by main().

static int decode_packet ( DecodeContext decode,
AVCodecContext decoder_ctx,
AVFrame frame,
AVFrame sw_frame,
AVPacket pkt,
AVIOContext output_ctx 
)
static
Examples:
qsvdec.c.

Definition at line 90 of file qsvdec.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)
Examples:
qsvdec.c.

Definition at line 137 of file qsvdec.c.