summaryrefslogtreecommitdiff
path: root/code/test/vid/tools.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2017-09-09 15:36:21 +0200
committerUros Majstorovic <majstor@majstor.org>2017-09-09 15:36:21 +0200
commitd40fd9b1adab64182ce8af0b8e19cfc8a93171d7 (patch)
tree0cb83df16cb6f0625aa7ab60fe96f47be2cb75ab /code/test/vid/tools.h
parent55364a819692d63080d23e6dc30daf38f02f5524 (diff)
video streaming test updated; not tested
Diffstat (limited to 'code/test/vid/tools.h')
-rw-r--r--code/test/vid/tools.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/code/test/vid/tools.h b/code/test/vid/tools.h
index 0bbf512..645d5ba 100644
--- a/code/test/vid/tools.h
+++ b/code/test/vid/tools.h
@@ -4,6 +4,7 @@
#include "vpx/vpx_codec.h"
#include "vpx/vpx_image.h"
#include "vpx/vp8cx.h"
+#include "vpx/vp8dx.h"
#define VP8_FOURCC 0x30385056
#define VP9_FOURCC 0x30395056
@@ -19,11 +20,18 @@ typedef struct VpxInterface {
vpx_codec_iface_t *(*const codec_interface)();
} VpxInterface;
-void usage_exit(void);
const VpxInterface *get_vpx_encoder_by_index(int i);
const VpxInterface *get_vpx_encoder_by_name(const char *name);
-void die(const char *fmt, ...);
+const VpxInterface *get_vpx_decoder_by_index(int i);
+const VpxInterface *get_vpx_decoder_by_name(const char *name);
+
void die_codec(vpx_codec_ctx_t *ctx, const char *s);
+int vpx_img_read(vpx_image_t *img, void *img_buf, int sz);
+int vpx_img_write(const vpx_image_t *img, void *img_buf, int sz);
+
+int vpx_img_read_f(vpx_image_t *img, FILE *file);
+int vpx_img_write_f(const vpx_image_t *img, FILE *file);
+
#endif \ No newline at end of file