names: add standard factory name definitions

Define a set of standard factory names and document what they
contain. This makes it possible to change the implementation by
mapping the factory-name to a different shared library.
This commit is contained in:
Wim Taymans 2019-06-21 13:31:34 +02:00
parent 4494f9c7c9
commit 6720ded529
40 changed files with 188 additions and 55 deletions

View file

@ -106,10 +106,10 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
return 0;
if (av_codec_is_encoder(c)) {
snprintf(name, 128, "ffenc_%s", c->name);
snprintf(name, 128, "encoder.%s", c->name);
f.init = ffmpeg_enc_init;
} else {
snprintf(name, 128, "ffdec_%s", c->name);
snprintf(name, 128, "decoder.%s", c->name);
f.init = ffmpeg_dec_init;
}
f.name = name;