VP8 encoder support via libvpx. More...
#include <vpx/vpx_encoder.h>
#include <vpx/vp8cx.h>
#include "avcodec.h"
#include "internal.h"
#include "libavutil/base64.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 | VP8EncoderContext |
Macros | |
#define | VPX_DISABLE_CTRL_TYPECHECKS 1 |
#define | VPX_CODEC_DISABLE_COMPAT 1 |
#define | OFFSET(x) offsetof(VP8Context, x) |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Typedefs | |
typedef struct VP8EncoderContext | VP8Context |
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 | vp8_free (AVCodecContext *avctx) |
static av_cold int | vp8_init (AVCodecContext *avctx) |
static void | cx_pktcpy (struct FrameListData *dst, const struct vpx_codec_cx_pkt *src) |
static int | storeframe (AVCodecContext *avctx, struct FrameListData *cx_frame, uint8_t *buf, int buf_size, AVFrame *coded_frame) |
Store coded frame information in format suitable for return from encode(). | |
static int | queue_frames (AVCodecContext *avctx, uint8_t *buf, int buf_size, AVFrame *coded_frame) |
Queue multiple output frames from the encoder, returning the front-most. | |
static int | vp8_encode (AVCodecContext *avctx, uint8_t *buf, int buf_size, void *data) |
Variables | |
static const char * | ctlidstr [] |
String mappings for enum vp8e_enc_control_id. | |
static const AVOption | options [] |
class { | |
class_name = "libvpx encoder" | |
item_name = av_default_item_name | |
option = options | |
version = LIBAVUTIL_VERSION_INT | |
}; | |
static const AVCodecDefault | defaults [] |
AVCodec | ff_libvpx_encoder |
VP8 encoder support via libvpx.
Definition in file libvpxenc.c.
#define OFFSET | ( | x | ) | offsetof(VP8Context, x) |
Definition at line 523 of file libvpxenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 524 of file libvpxenc.c.
#define VPX_CODEC_DISABLE_COMPAT 1 |
Definition at line 27 of file libvpxenc.c.
#define VPX_DISABLE_CTRL_TYPECHECKS 1 |
Definition at line 26 of file libvpxenc.c.
typedef struct VP8EncoderContext VP8Context |
|
static |
Definition at line 181 of file libvpxenc.c.
Referenced by vp8_init().
|
static |
Definition at line 154 of file libvpxenc.c.
Referenced by queue_frames().
|
inlinestatic |
Definition at line 354 of file libvpxenc.c.
Referenced by queue_frames().
|
static |
Definition at line 99 of file libvpxenc.c.
Referenced by vp8_init().
|
static |
Definition at line 164 of file libvpxenc.c.
Referenced by free_frame_list(), and queue_frames().
|
static |
Definition at line 170 of file libvpxenc.c.
Referenced by vp8_free().
|
static |
Definition at line 88 of file libvpxenc.c.
Referenced by codecctl_int(), vp8_encode(), and vp8_init().
|
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 402 of file libvpxenc.c.
Referenced by vp8_encode().
|
static |
Store coded frame information in format suitable for return from encode().
Write buffer information from cx_frame to buf & buf_size. Timing/frame details to coded_frame.
Definition at line 372 of file libvpxenc.c.
Referenced by queue_frames().
|
static |
Definition at line 480 of file libvpxenc.c.
|
static |
Definition at line 202 of file libvpxenc.c.
Referenced by vp8_init().
|
static |
Definition at line 214 of file libvpxenc.c.
const { ... } |
class_name = "libvpx encoder" |
Definition at line 553 of file libvpxenc.c.
|
static |
String mappings for enum vp8e_enc_control_id.
Definition at line 69 of file libvpxenc.c.
Referenced by codecctl_int().
|
static |
Definition at line 559 of file libvpxenc.c.
AVCodec ff_libvpx_encoder |
Definition at line 567 of file libvpxenc.c.
item_name = av_default_item_name |
Definition at line 554 of file libvpxenc.c.
option = options |
Definition at line 555 of file libvpxenc.c.
|
static |
Definition at line 525 of file libvpxenc.c.
version = LIBAVUTIL_VERSION_INT |
Definition at line 556 of file libvpxenc.c.