FFmpeg 5.1.6
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.

Functions

static int get_format (AVCodecContext *avctx, const enum AVPixelFormat *pix_fmts)
 
static int decode_packet (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

◆ get_format()

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

Definition at line 47 of file qsvdec.c.

Referenced by main().

◆ decode_packet()

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

Definition at line 62 of file qsvdec.c.

Referenced by main().

◆ main()

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

Definition at line 109 of file qsvdec.c.