diff options
author | Uros Majstorovic <majstor@majstor.org> | 2017-08-22 05:46:13 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2017-08-22 05:46:13 +0200 |
commit | a3f0e09379759e4cfb79e1d5c7d7ac752728fe5f (patch) | |
tree | feba5d13801c8054016e4549ef97fba50e9d8461 /code/test/vid/enc.h | |
parent | 680922c97ca94e832e75b20f5aa22a00a6a80420 (diff) |
added video test
Diffstat (limited to 'code/test/vid/enc.h')
-rw-r--r-- | code/test/vid/enc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/code/test/vid/enc.h b/code/test/vid/enc.h new file mode 100644 index 0000000..d534971 --- /dev/null +++ b/code/test/vid/enc.h @@ -0,0 +1,10 @@ +#include "vpx/vpx_encoder.h" +#include "vpx/vp8cx.h" +#include "tools.h" +#include "video_writer.h" + +int vpx_img_read(vpx_image_t *img, void *img_buf, int sz); +int vpx_encode_frame(vpx_codec_ctx_t *codec, vpx_image_t *img, int frame_index, int flags); +void vpx_open(vpx_codec_ctx_t *codec, vpx_codec_iface_t *codec_interface, int width, int height, int fps, int bitrate, vpx_codec_er_flags_t err_resilient, vpx_image_t *raw); +void vpx_close(vpx_codec_ctx_t *codec, vpx_image_t *raw); +void vpx_init(const char *codec_arg, const char *outfile_arg, int width, int height, int fps); |