Initialization cfg.rc_target_bitrate

74 views
Skip to first unread message

Damianos Kalanidis

unread,
May 2, 2012, 10:29:02 PM5/2/12
to WebM Discussion
Hello there,

I am running simple encoder.
There is an parameter cfg.rc_target_bitrate tha initializes to 256.
When,how and where at the code happens this initialization?
Thank you
Damianos Kalanidis

James Zern

unread,
May 3, 2012, 2:02:08 PM5/3/12
to webm-d...@webmproject.org
Hi,

On Wed, May 2, 2012 at 7:29 PM, Damianos Kalanidis
<d.kal...@gmail.com> wrote:
> Hello there,
>
> I am running simple encoder.
> There is an parameter cfg.rc_target_bitrate tha initializes to 256.
> When,how and where at the code happens this initialization?
>
I think you're looking for:
res = vpx_codec_enc_config_default(interface, &cfg, 0);
This uses an array (enc.cfg_maps) from the interface definition
(vp8_cx_iface.c:CODEC_INTERFACE(vpx_codec_vp8_cx)), specifically
vp8e_usage_cfg_map[].
Reply all
Reply to author
Forward
0 new messages