[FFmpeg-devel] [PATCH 1/2] libvpxenc: Support targeting a VP9 level
James Zern
jzern at google.com
Sat Nov 19 01:44:53 EET 2016
On Fri, Nov 18, 2016 at 2:01 PM, Alex Converse <alex.converse at gmail.com> wrote:
> Levels are specified at https://www.webmproject.org/vp9/levels/
> ---
> libavcodec/libvpxenc.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
lgtm
> diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
> index 68f25a4..51f423a 100644
> --- a/libavcodec/libvpxenc.c
> +++ b/libavcodec/libvpxenc.c
> @@ -107,6 +107,7 @@ typedef struct VPxEncoderContext {
> int drop_threshold;
> int noise_sensitivity;
> int vpx_cs;
> + float level;
> } VPxContext;
>
> /** String mappings for enum vp8e_enc_control_id */
> @@ -134,6 +135,9 @@ static const char *const ctlidstr[] = {
> #if VPX_ENCODER_ABI_VERSION >= 11
> [VP9E_SET_COLOR_RANGE] = "VP9E_SET_COLOR_RANGE",
> #endif
> +#if VPX_ENCODER_ABI_VERSION >= 12
>
you can check VPX_CTRL_VP9E_SET_TARGET_LEVEL for this.
More information about the ffmpeg-devel
mailing list