encoder runtime

This commit is contained in:
Devaev Maxim
2019-03-02 11:29:57 +03:00
parent 142c8c84ac
commit 667e3610b2
3 changed files with 46 additions and 30 deletions

View File

@@ -45,9 +45,8 @@ enum encoder_type_t {
#endif
};
struct encoder_t {
enum encoder_type_t type;
unsigned quality;
struct encoder_runtime_t {
enum encoder_type_t type;
#ifdef OMX_ENCODER
unsigned n_omxs;
struct omx_encoder_t **omxs;
@@ -55,6 +54,14 @@ struct encoder_t {
};
struct encoder_t {
enum encoder_type_t type;
unsigned quality;
struct encoder_runtime_t *run;
};
struct encoder_t *encoder_init();
void encoder_destroy(struct encoder_t *encoder);