FFmpeg
|
HW-Accelerated decoding example. More...
#include <stdio.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/pixdesc.h>
#include <libavutil/hwcontext.h>
#include <libavutil/opt.h>
#include <libavutil/avassert.h>
#include <libavutil/imgutils.h>
Go to the source code of this file.
Functions | |
static int | hw_decoder_init (AVCodecContext *ctx, const enum AVHWDeviceType type) |
static enum AVPixelFormat | get_hw_format (AVCodecContext *ctx, const enum AVPixelFormat *pix_fmts) |
static int | decode_write (AVCodecContext *avctx, AVPacket *packet) |
int | main (int argc, char *argv[]) |
Variables | |
static AVBufferRef * | hw_device_ctx = NULL |
static enum AVPixelFormat | hw_pix_fmt |
static FILE * | output_file = NULL |
HW-Accelerated decoding example.
Definition in file hw_decode.c.
|
static |
|
static |
|
static |
Definition at line 147 of file hw_decode.c.
|
static |
Definition at line 43 of file hw_decode.c.
Referenced by configure_filtergraph(), cuvid_init(), nvdec_decoder_create(), qsv_device_init(), qsv_init(), and transcode().
|
static |
Definition at line 44 of file hw_decode.c.
Referenced by decode_write(), get_hw_format(), and main().
|
static |
Definition at line 45 of file hw_decode.c.
Referenced by decode_write(), and main().