csrc/cffmpeg.cpp
@@ -102,3 +102,16 @@ } return p; } // pic encoder void *c_ffmpeg_create_encoder(const int w, const int h, const int fps, const int br, const int scale_flag, const int gi){ return CreateEncoder(w, h, fps, br, scale_flag, gi); } void c_ffmpeg_destroy_encoder(void *h){ DestroyEncoder(h); } int c_ffmpeg_encode(void *hdl, uint8_t *in, const int w, const int h, uint8_t **out, int *size, int *key){ return Encode(hdl, in, w, h, out, size, key); }