libobs: Add ability to reroute encoders

Allows the ability for one encoder to defer to another in case of
failure or unsupported feature.  Okay, fine, it's mostly a hack so the
new NVENC encoder can fall back to the FFmpeg encoder if NV12 textures
aren't in use, that way it does not have to implement raw fallback
support itself.  The settings and properties are pretty much the same,
so there's no reason not to utilize it in order to save time that could
otherwise be spent more productively.
This commit is contained in:
jp9000
2018-10-12 20:16:04 -07:00
parent 2e1a19456a
commit 9b8bc22ffa
3 changed files with 49 additions and 12 deletions

View File

@@ -1935,6 +1935,9 @@ EXPORT void obs_encoder_packet_ref(struct encoder_packet *dst,
struct encoder_packet *src);
EXPORT void obs_encoder_packet_release(struct encoder_packet *packet);
EXPORT void *obs_encoder_create_rerouted(obs_encoder_t *encoder,
const char *reroute_id);
/* ------------------------------------------------------------------------- */
/* Stream Services */