FFmpeg
|
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 "av1.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 int | count_uniform_tiling (int dim, int sb_size, int tiles_log2) |
static int | choose_tiling (AVCodecContext *avctx, struct aom_codec_enc_cfg *enccfg) |
static av_cold int | aom_init (AVCodecContext *avctx, const struct aom_codec_iface *iface) |
static void | cx_pktcpy (AOMContext *ctx, 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 970 of file libaomenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 971 of file libaomenc.c.
|
static |
Definition at line 98 of file libaomenc.c.
Referenced by aom_encode(), aom_init(), and codecctl_int().
|
static |
Definition at line 109 of file libaomenc.c.
Referenced by aom_init().
|
static |
Definition at line 167 of file libaomenc.c.
Referenced by queue_frames().
|
static |
Definition at line 177 of file libaomenc.c.
Referenced by free_frame_list(), and queue_frames().
|
static |
Definition at line 183 of file libaomenc.c.
Referenced by aom_free().
|
static |
Definition at line 194 of file libaomenc.c.
Referenced by aom_init(), and set_color_range().
|
static |
Definition at line 216 of file libaomenc.c.
|
static |
Definition at line 228 of file libaomenc.c.
Referenced by aom_init().
|
static |
Definition at line 289 of file libaomenc.c.
Referenced by aom_init(), and vpx_init().
Definition at line 305 of file libaomenc.c.
Referenced by choose_tiling().
|
static |
Definition at line 313 of file libaomenc.c.
Referenced by aom_init().
|
static |
Definition at line 468 of file libaomenc.c.
Referenced by av1_init().
|
inlinestatic |
Definition at line 697 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 726 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 788 of file libaomenc.c.
Referenced by aom_encode().
|
static |
Definition at line 880 of file libaomenc.c.
Definition at line 956 of file libaomenc.c.
|
static |
Definition at line 965 of file libaomenc.c.
|
static |
Definition at line 84 of file libaomenc.c.
Referenced by codecctl_int().
|
static |
Definition at line 936 of file libaomenc.c.
Referenced by av1_init_static().
|
static |
Definition at line 943 of file libaomenc.c.
Referenced by av1_init_static().
|
static |
Definition at line 972 of file libaomenc.c.
|
static |
Definition at line 990 of file libaomenc.c.
|
static |
Definition at line 998 of file libaomenc.c.
AVCodec ff_libaom_av1_encoder |
Definition at line 1005 of file libaomenc.c.