44 #define VPX_ENCODER_ABI_VERSION (2 + VPX_CODEC_ABI_VERSION)
56 #define VPX_CODEC_CAP_PSNR 0x10000
63 #define VPX_CODEC_CAP_OUTPUT_PARTITION 0x20000
73 #define VPX_CODEC_USE_PSNR 0x10000
74 #define VPX_CODEC_USE_OUTPUT_PARTITION 0x20000
82 typedef struct vpx_fixed_buf
105 #define VPX_FRAME_IS_KEY 0x1
106 #define VPX_FRAME_IS_DROPPABLE 0x2
109 #define VPX_FRAME_IS_INVISIBLE 0x4
111 #define VPX_FRAME_IS_FRAGMENT 0x8
120 typedef uint32_t vpx_codec_er_flags_t;
121 #define VPX_ERROR_RESILIENT_DEFAULT 0x1
123 #define VPX_ERROR_RESILIENT_PARTITIONS 0x2
138 enum vpx_codec_cx_pkt_kind
246 #define VPX_EFLAG_FORCE_KF (1<<0)
255 typedef struct vpx_codec_enc_cfg
268 unsigned int g_usage;
277 unsigned int g_threads;
288 unsigned int g_profile;
356 unsigned int g_lag_in_frames;
379 unsigned int rc_dropframe_thresh;
389 unsigned int rc_resize_allowed;
398 unsigned int rc_resize_up_thresh;
407 unsigned int rc_resize_down_thresh;
433 unsigned int rc_target_bitrate;
449 unsigned int rc_min_quantizer;
460 unsigned int rc_max_quantizer;
478 unsigned int rc_undershoot_pct;
491 unsigned int rc_overshoot_pct;
508 unsigned int rc_buf_sz;
518 unsigned int rc_buf_initial_sz;
528 unsigned int rc_buf_optimal_sz;
544 unsigned int rc_2pass_vbr_bias_pct;
552 unsigned int rc_2pass_vbr_minsection_pct;
560 unsigned int rc_2pass_vbr_maxsection_pct;
583 unsigned int kf_min_dist;
593 unsigned int kf_max_dist;
631 #define vpx_codec_enc_init(ctx, iface, cfg, flags) \
632 vpx_codec_enc_init_ver(ctx, iface, cfg, flags, VPX_ENCODER_ABI_VERSION)
691 #define VPX_DL_REALTIME (1)
693 #define VPX_DL_GOOD_QUALITY (1000000)
695 #define VPX_DL_BEST_QUALITY (0)
733 vpx_codec_err_t vpx_codec_encode(vpx_codec_ctx_t *ctx,
736 unsigned long duration,
737 vpx_enc_frame_flags_t flags,
738 unsigned long deadline);
786 unsigned int pad_before,
787 unsigned int pad_after);
Rational Number.
Definition: vpx_encoder.h:210
struct vpx_fixed_buf twopass_stats
Definition: vpx_encoder.h:187
struct vpx_codec_iface vpx_codec_iface_t
Codec interface structure.
Definition: vpx_codec.h:167
vpx_codec_err_t vpx_codec_set_cx_data_buf(vpx_codec_ctx_t *ctx, const vpx_fixed_buf_t *buf, unsigned int pad_before, unsigned int pad_after)
Set compressed data output buffer.
Image Descriptor.
Definition: vpx_image.h:97
vpx_codec_pts_t pts
Definition: vpx_encoder.h:174
vpx_kf_mode
Keyframe placement mode.
Definition: vpx_encoder.h:243
Definition: vpx_encoder.h:230
struct vpx_codec_enc_cfg vpx_codec_enc_cfg_t
Encoder configuration structure.
struct vpx_fixed_buf vpx_fixed_buf_t
Generic fixed size buffer structure.
struct vpx_fixed_buf raw
Definition: vpx_encoder.h:194
int den
Definition: vpx_encoder.h:213
Definition: vpx_encoder.h:154
int partition_id
Definition: vpx_encoder.h:179
vpx_enc_pass
Multi-pass Encoding Pass.
Definition: vpx_encoder.h:218
Encoder configuration structure.
Definition: vpx_encoder.h:268
Definition: vpx_encoder.h:156
Definition: vpx_encoder.h:155
Definition: vpx_encoder.h:246
Encoder output packet.
Definition: vpx_encoder.h:165
void * buf
Definition: vpx_encoder.h:85
vpx_codec_err_t vpx_codec_enc_config_set(vpx_codec_ctx_t *ctx, const vpx_codec_enc_cfg_t *cfg)
Set or change configuration.
Generic fixed size buffer structure.
Definition: vpx_encoder.h:83
uint32_t vpx_codec_frame_flags_t
Compressed Frame Flags.
Definition: vpx_encoder.h:105
Definition: vpx_encoder.h:221
Definition: vpx_encoder.h:222
struct vpx_codec_cx_pkt::@1::@2 frame
uint64_t sse[4]
Definition: vpx_encoder.h:191
size_t sz
Definition: vpx_encoder.h:173
enum vpx_codec_cx_pkt_kind kind
Definition: vpx_encoder.h:167
long vpx_enc_frame_flags_t
Encoded Frame Flags.
Definition: vpx_encoder.h:258
int num
Definition: vpx_encoder.h:212
char pad[128-sizeof(enum vpx_codec_cx_pkt_kind)]
Definition: vpx_encoder.h:201
vpx_codec_err_t vpx_codec_enc_config_default(vpx_codec_iface_t *iface, vpx_codec_enc_cfg_t *cfg, unsigned int usage)
Get a default configuration.
long vpx_codec_flags_t
Initialization-time Feature Enabling.
Definition: vpx_codec.h:158
vpx_codec_cx_pkt_kind
Encoder output packet variants.
Definition: vpx_encoder.h:151
Definition: vpx_encoder.h:229
double psnr[4]
Definition: vpx_encoder.h:192
Definition: vpx_encoder.h:245
unsigned int samples[4]
Definition: vpx_encoder.h:190
vpx_rc_mode
Rate control mode.
Definition: vpx_encoder.h:227
vpx_codec_err_t vpx_codec_enc_init_ver(vpx_codec_ctx_t *ctx, vpx_codec_iface_t *iface, vpx_codec_enc_cfg_t *cfg, vpx_codec_flags_t flags, int ver)
Initialize an encoder instance.
const vpx_image_t * vpx_codec_get_preview_frame(vpx_codec_ctx_t *ctx)
Get Preview Frame.
unsigned long duration
Definition: vpx_encoder.h:176
uint32_t vpx_codec_er_flags_t
Error Resilient flags.
Definition: vpx_encoder.h:125
vpx_codec_err_t
Algorithm return codes.
Definition: vpx_codec.h:81
const vpx_codec_cx_pkt_t * vpx_codec_get_cx_data(vpx_codec_ctx_t *ctx, vpx_codec_iter_t *iter)
Encoded data iterator.
union vpx_codec_cx_pkt::@1 data
struct vpx_codec_cx_pkt vpx_codec_cx_pkt_t
Encoder output packet.
struct vpx_rational vpx_rational_t
Rational Number.
Definition: vpx_encoder.h:247
int64_t vpx_codec_pts_t
Time Stamp Type.
Definition: vpx_encoder.h:95
vpx_fixed_buf_t * vpx_codec_get_global_headers(vpx_codec_ctx_t *ctx)
Get global stream headers.
Definition: vpx_encoder.h:231
Describes the codec algorithm interface to applications.
const void * vpx_codec_iter_t
Iterator.
Definition: vpx_codec.h:182
Definition: vpx_encoder.h:153
vpx_codec_frame_flags_t flags
Definition: vpx_encoder.h:178
void * buf
Definition: vpx_encoder.h:172
Definition: vpx_encoder.h:220
Codec context structure.
Definition: vpx_codec.h:193