FFmpeg
4.0
|
Intel VAAPI-accelerated transcoding example. More...
#include <stdio.h>
#include <errno.h>
#include <libavutil/hwcontext.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
Go to the source code of this file.
Functions | |
static enum AVPixelFormat | get_vaapi_format (AVCodecContext *ctx, const enum AVPixelFormat *pix_fmts) |
static int | open_input_file (const char *filename) |
static int | encode_write (AVFrame *frame) |
static int | dec_enc (AVPacket *pkt, AVCodec *enc_codec) |
int | main (int argc, char **argv) |
Variables | |
static AVFormatContext * | ifmt_ctx = NULL |
static AVFormatContext * | ofmt_ctx = NULL |
static AVBufferRef * | hw_device_ctx = NULL |
static AVCodecContext * | decoder_ctx = NULL |
static AVCodecContext * | encoder_ctx = NULL |
static int | video_stream = -1 |
static AVStream * | ost |
static int | initialized = 0 |
Intel VAAPI-accelerated transcoding example.
Definition in file vaapi_transcode.c.
|
static |
Definition at line 46 of file vaapi_transcode.c.
Referenced by open_input_file().
|
static |
Definition at line 110 of file vaapi_transcode.c.
Definition at line 146 of file vaapi_transcode.c.
Referenced by main().
Definition at line 228 of file vaapi_transcode.c.
|
static |
Definition at line 39 of file vaapi_transcode.c.
|
static |
Definition at line 39 of file vaapi_transcode.c.
Referenced by dec_enc(), encode_write(), and main().
|
static |
Definition at line 40 of file vaapi_transcode.c.
|
static |
Definition at line 41 of file vaapi_transcode.c.
Referenced by main().
|
static |
Definition at line 41 of file vaapi_transcode.c.
Referenced by dec_enc(), encode_write(), and main().
|
static |
Definition at line 42 of file vaapi_transcode.c.
Referenced by encode_write(), main(), and open_input_file().
|
static |
Definition at line 43 of file vaapi_transcode.c.
Referenced by choose_output(), choose_pix_fmts(), configure_filtergraph(), configure_output_audio_filter(), configure_output_video_filter(), dash_check_bitstream(), DEF_CHOOSE_FORMAT(), init_output_filter(), new_attachment_stream(), new_audio_stream(), new_data_stream(), new_output_stream(), new_subtitle_stream(), new_unknown_stream(), new_video_stream(), ogg_restore(), ogg_save(), open_output_file(), print_report(), seg_check_bitstream(), transcode(), transcode_init(), and transcode_step().
|
static |
Definition at line 44 of file vaapi_transcode.c.
Referenced by dec_enc(), ff_ccitt_unpack_init(), init_tables(), and writer_register_all().