|
FFmpeg
|
VP8/9 encoder support via libvpx. More...
#include <vpx/vpx_encoder.h>#include <vpx/vp8cx.h>#include "avcodec.h"#include "internal.h"#include "libavutil/avassert.h"#include "libvpx.h"#include "profiles.h"#include "libavutil/base64.h"#include "libavutil/common.h"#include "libavutil/internal.h"#include "libavutil/intreadwrite.h"#include "libavutil/mathematics.h"#include "libavutil/opt.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 | VPxContext |
Macros | |
| #define | VPX_DISABLE_CTRL_TYPECHECKS 1 |
| #define | VPX_CODEC_DISABLE_COMPAT 1 |
| #define | VP8F_ERROR_RESILIENT 0x00000001 |
| Enable measures appropriate for streaming over lossy links. More... | |
| #define | VP8F_AUTO_ALT_REF 0x00000002 |
| Enable automatic alternate reference frame generation. More... | |
| #define | OFFSET(x) offsetof(VPxContext, x) |
| #define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
| #define | VPX_ERROR_RESILIENT_DEFAULT 1 |
| #define | VPX_ERROR_RESILIENT_PARTITIONS 2 |
| #define | COMMON_OPTIONS |
| #define | LEGACY_OPTIONS |
Functions | |
| static av_cold void | log_encoder_error (AVCodecContext *avctx, const char *desc) |
| static av_cold void | dump_enc_cfg (AVCodecContext *avctx, const struct vpx_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 vp8e_enc_control_id id, int val) |
| static av_cold int | vpx_free (AVCodecContext *avctx) |
| static av_cold int | vpx_init (AVCodecContext *avctx, const struct vpx_codec_iface *iface) |
| static void | cx_pktcpy (struct FrameListData *dst, const struct vpx_codec_cx_pkt *src, const struct vpx_codec_cx_pkt *src_alpha, VPxContext *ctx) |
| 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 | vpx_encode (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) |
Variables | |
| static const char *const | ctlidstr [] |
| String mappings for enum vp8e_enc_control_id. More... | |
| static const AVCodecDefault | defaults [] |
VP8/9 encoder support via libvpx.
Definition in file libvpxenc.c.
| #define VPX_DISABLE_CTRL_TYPECHECKS 1 |
Definition at line 26 of file libvpxenc.c.
| #define VPX_CODEC_DISABLE_COMPAT 1 |
Definition at line 27 of file libvpxenc.c.
| #define VP8F_ERROR_RESILIENT 0x00000001 |
Enable measures appropriate for streaming over lossy links.
Definition at line 82 of file libvpxenc.c.
Referenced by vpx_init().
| #define VP8F_AUTO_ALT_REF 0x00000002 |
Enable automatic alternate reference frame generation.
Definition at line 83 of file libvpxenc.c.
Referenced by vpx_init().
| #define OFFSET | ( | x | ) | offsetof(VPxContext, x) |
Definition at line 1019 of file libvpxenc.c.
| #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 1020 of file libvpxenc.c.
| #define VPX_ERROR_RESILIENT_DEFAULT 1 |
Definition at line 1023 of file libvpxenc.c.
| #define VPX_ERROR_RESILIENT_PARTITIONS 2 |
Definition at line 1024 of file libvpxenc.c.
| #define COMMON_OPTIONS |
Definition at line 1027 of file libvpxenc.c.
| #define LEGACY_OPTIONS |
Definition at line 1059 of file libvpxenc.c.
|
static |
Definition at line 140 of file libvpxenc.c.
Referenced by codecctl_int(), vpx_encode(), and vpx_init().
|
static |
Definition at line 151 of file libvpxenc.c.
Referenced by vpx_init().
|
static |
Definition at line 213 of file libvpxenc.c.
Referenced by queue_frames().
|
static |
Definition at line 223 of file libvpxenc.c.
Referenced by free_frame_list(), and queue_frames().
|
static |
Definition at line 231 of file libvpxenc.c.
Referenced by vpx_free().
|
static |
Definition at line 242 of file libvpxenc.c.
Referenced by vpx_init().
|
static |
Definition at line 263 of file libvpxenc.c.
|
static |
Definition at line 413 of file libvpxenc.c.
|
inlinestatic |
Definition at line 715 of file libvpxenc.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 757 of file libvpxenc.c.
Referenced by queue_frames().
|
static |
Queue multiple output frames from the encoder, returning the front-most.
In cases where vpx_codec_get_cx_data() returns more than 1 frame append the frame queue. Return the head frame if available.
Definition at line 835 of file libvpxenc.c.
Referenced by vpx_encode().
|
static |
Definition at line 937 of file libvpxenc.c.
|
static |
String mappings for enum vp8e_enc_control_id.
Definition at line 113 of file libvpxenc.c.
Referenced by codecctl_int().
|
static |
Definition at line 1100 of file libvpxenc.c.
1.8.6