| Index: source/libvpx/vpx/vpx_encoder.h
|
| ===================================================================
|
| --- source/libvpx/vpx/vpx_encoder.h (revision 284462)
|
| +++ source/libvpx/vpx/vpx_encoder.h (working copy)
|
| @@ -155,7 +155,11 @@
|
| enum vpx_codec_cx_pkt_kind {
|
| VPX_CODEC_CX_FRAME_PKT, /**< Compressed video frame */
|
| VPX_CODEC_STATS_PKT, /**< Two-pass statistics for this frame */
|
| + VPX_CODEC_FPMB_STATS_PKT, /**< first pass mb statistics for this frame */
|
| VPX_CODEC_PSNR_PKT, /**< PSNR statistics for this frame */
|
| +#ifdef CONFIG_SPATIAL_SVC
|
| + VPX_CODEC_SPATIAL_SVC_LAYER_SIZES, /**< Sizes for each layer in this frame*/
|
| +#endif
|
| VPX_CODEC_CUSTOM_PKT = 256 /**< Algorithm extensions */
|
| };
|
|
|
| @@ -185,12 +189,16 @@
|
|
|
| } frame; /**< data for compressed frame packet */
|
| struct vpx_fixed_buf twopass_stats; /**< data for two-pass packet */
|
| + struct vpx_fixed_buf firstpass_mb_stats; /**< first pass mb packet */
|
| struct vpx_psnr_pkt {
|
| unsigned int samples[4]; /**< Number of samples, total/y/u/v */
|
| uint64_t sse[4]; /**< sum squared error, total/y/u/v */
|
| double psnr[4]; /**< PSNR, total/y/u/v */
|
| } psnr; /**< data for PSNR packet */
|
| struct vpx_fixed_buf raw; /**< data for arbitrary packets */
|
| +#ifdef CONFIG_SPATIAL_SVC
|
| + size_t layer_sizes[VPX_SS_MAX_LAYERS];
|
| +#endif
|
|
|
| /* This packet size is fixed to allow codecs to extend this
|
| * interface without having to manage storage for raw packets,
|
| @@ -446,6 +454,12 @@
|
| */
|
| struct vpx_fixed_buf rc_twopass_stats_in;
|
|
|
| + /*!\brief first pass mb stats buffer.
|
| + *
|
| + * A buffer containing all of the first pass mb stats packets produced
|
| + * in the first pass, concatenated.
|
| + */
|
| + struct vpx_fixed_buf rc_firstpass_mb_stats_in;
|
|
|
| /*!\brief Target data rate
|
| *
|
| @@ -623,6 +637,15 @@
|
| */
|
| unsigned int ss_number_layers;
|
|
|
| +#ifdef CONFIG_SPATIAL_SVC
|
| + /*!\brief Enable auto alt reference flags for each spatial layer.
|
| + *
|
| + * These values specify if auto alt reference frame is enabled for each
|
| + * spatial layer.
|
| + */
|
| + int ss_enable_auto_alt_ref[VPX_SS_MAX_LAYERS];
|
| +#endif
|
| +
|
| /*!\brief Target bitrate for each spatial layer.
|
| *
|
| * These values specify the target coding bitrate to be used for each
|
|
|