Commit f1194284 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Handle MS_VIDEO_ENCODER_SET_CONFIGURATION_LIST method in vp8 to be able to apply a video preset.

parent 6b8938fa
......@@ -758,6 +758,17 @@ static int enc_get_configuration_list(MSFilter *f, void *data) {
return 0;
}
static int enc_set_configuration_list(MSFilter *f, void *data) {
EncState *s = (EncState *)f->data;
const MSVideoConfiguration **vconf_list = (const MSVideoConfiguration **)data;
if (*vconf_list == NULL) {
s->vconf_list = &vp8_conf_list[0];
} else {
s->vconf_list = *vconf_list;
}
return 0;
}
static int enc_enable_avpf(MSFilter *f, void *data) {
EncState *s = (EncState *)f->data;
s->avpf_enabled = *((bool_t *)data) ? TRUE : FALSE;
......@@ -778,6 +789,7 @@ static MSFilterMethod enc_methods[] = {
{ MS_VIDEO_ENCODER_NOTIFY_SLI, enc_notify_sli },
{ MS_VIDEO_ENCODER_NOTIFY_RPSI, enc_notify_rpsi },
{ MS_VIDEO_ENCODER_GET_CONFIGURATION_LIST, enc_get_configuration_list },
{ MS_VIDEO_ENCODER_SET_CONFIGURATION_LIST, enc_set_configuration_list },
{ MS_VIDEO_ENCODER_SET_CONFIGURATION, enc_set_configuration },
{ MS_VIDEO_ENCODER_ENABLE_AVPF, enc_enable_avpf },
{ 0, NULL }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment