FFmpeg
4.0
|
AV1 encoder support via libaom. More...
#include <aom/aom_encoder.h>
#include <aom/aomcx.h>
#include "libavutil/avassert.h"
#include "libavutil/base64.h"
#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "internal.h"
#include "profiles.h"
Go to the source code of this file.
Data Structures | |
struct | FrameListData |
Portion of struct vpx_codec_cx_pkt from vpx_encoder.h. More... | |
struct | AOMContext |
Macros | |
#define | AOM_DISABLE_CTRL_TYPECHECKS 1 |
#define | OFFSET(x) offsetof(AOMContext, x) |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
static av_cold void | log_encoder_error (AVCodecContext *avctx, const char *desc) |
static av_cold void | dump_enc_cfg (AVCodecContext *avctx, const struct aom_codec_enc_cfg *cfg) |
static void | coded_frame_add (void *list, struct FrameListData *cx_frame) |
static av_cold void | free_coded_frame (struct FrameListData *cx_frame) |
static av_cold void | free_frame_list (struct FrameListData *list) |
static av_cold int | codecctl_int (AVCodecContext *avctx, enum aome_enc_control_id id, int val) |
static av_cold int | aom_free (AVCodecContext *avctx) |
static int | set_pix_fmt (AVCodecContext *avctx, aom_codec_caps_t codec_caps, struct aom_codec_enc_cfg *enccfg, aom_codec_flags_t *flags, aom_img_fmt_t *img_fmt) |
static void | set_color_range (AVCodecContext *avctx) |
static av_cold int | aom_init (AVCodecContext *avctx, const struct aom_codec_iface *iface) |
static void | cx_pktcpy (struct FrameListData *dst, const struct aom_codec_cx_pkt *src) |
static int | storeframe (AVCodecContext *avctx, struct FrameListData *cx_frame, AVPacket *pkt) |
Store coded frame information in format suitable for return from encode2(). More... | |
static int | queue_frames (AVCodecContext *avctx, AVPacket *pkt_out) |
Queue multiple output frames from the encoder, returning the front-most. More... | |
static int | aom_encode (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) |
static av_cold void | av1_init_static (AVCodec *codec) |
static av_cold int | av1_init (AVCodecContext *avctx) |
Variables | |
static const char *const | ctlidstr [] |
static enum AVPixelFormat | av1_pix_fmts [] |
static enum AVPixelFormat | av1_pix_fmts_highbd [] |
static const AVOption | options [] |
static const AVCodecDefault | defaults [] |
static const AVClass | class_aom |
AVCodec | ff_libaom_av1_encoder |
AV1 encoder support via libaom.
Definition in file libaomenc.c.
#define AOM_DISABLE_CTRL_TYPECHECKS 1 |
Definition at line 26 of file libaomenc.c.
#define OFFSET | ( | x | ) | offsetof(AOMContext, x) |
Definition at line 690 of file libaomenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 691 of file libaomenc.c.
|
static |
Definition at line 83 of file libaomenc.c.
Referenced by aom_encode(), aom_init(), and codecctl_int().
|
static |
Definition at line 94 of file libaomenc.c.
Referenced by aom_init().
|
static |
Definition at line 148 of file libaomenc.c.
Referenced by queue_frames().
|
static |
Definition at line 158 of file libaomenc.c.
Referenced by free_frame_list(), and queue_frames().
|
static |
Definition at line 164 of file libaomenc.c.
Referenced by aom_free().
|
static |
Definition at line 175 of file libaomenc.c.
Referenced by aom_init(), and set_color_range().
|
static |
Definition at line 197 of file libaomenc.c.
|
static |
Definition at line 208 of file libaomenc.c.
Referenced by aom_init().
|
static |
Definition at line 269 of file libaomenc.c.
Referenced by aom_init(), vpx_free(), and vpx_init().
|
static |
Definition at line 285 of file libaomenc.c.
Referenced by av1_init().
|
inlinestatic |
Definition at line 477 of file libaomenc.c.
Referenced by queue_frames().
|
static |
Store coded frame information in format suitable for return from encode2().
Write information from cx_frame to pkt
Definition at line 494 of file libaomenc.c.
Referenced by queue_frames().
|
static |
Queue multiple output frames from the encoder, returning the front-most.
In cases where aom_codec_get_cx_data() returns more than 1 frame append the frame queue. Return the head frame if available.
Definition at line 519 of file libaomenc.c.
Referenced by aom_encode().
|
static |
Definition at line 600 of file libaomenc.c.
Definition at line 676 of file libaomenc.c.
|
static |
Definition at line 685 of file libaomenc.c.
|
static |
Definition at line 72 of file libaomenc.c.
Referenced by codecctl_int().
|
static |
Definition at line 656 of file libaomenc.c.
Referenced by av1_init_static().
|
static |
Definition at line 663 of file libaomenc.c.
Referenced by av1_init_static().
|
static |
Definition at line 692 of file libaomenc.c.
|
static |
Definition at line 711 of file libaomenc.c.
|
static |
Definition at line 719 of file libaomenc.c.
AVCodec ff_libaom_av1_encoder |
Definition at line 726 of file libaomenc.c.