summaryrefslogtreecommitdiff
path: root/modules/vp8/vp8.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/vp8/vp8.h')
-rw-r--r--modules/vp8/vp8.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/vp8/vp8.h b/modules/vp8/vp8.h
new file mode 100644
index 0000000..934e3ee
--- /dev/null
+++ b/modules/vp8/vp8.h
@@ -0,0 +1,30 @@
+/**
+ * @file vp8.h Private VP8 Interface
+ *
+ * Copyright (C) 2010 Creytiv.com
+ */
+
+struct vp8_vidcodec {
+ struct vidcodec vc;
+ uint32_t max_fs;
+};
+
+/* Encode */
+int vp8_encode_update(struct videnc_state **vesp, const struct vidcodec *vc,
+ struct videnc_param *prm, const char *fmtp,
+ videnc_packet_h *pkth, void *arg);
+int vp8_encode(struct videnc_state *ves, bool update,
+ const struct vidframe *frame);
+
+
+/* Decode */
+int vp8_decode_update(struct viddec_state **vdsp, const struct vidcodec *vc,
+ const char *fmtp);
+int vp8_decode(struct viddec_state *vds, struct vidframe *frame,
+ bool marker, uint16_t seq, struct mbuf *mb);
+
+
+/* SDP */
+uint32_t vp8_max_fs(const char *fmtp);
+int vp8_fmtp_enc(struct mbuf *mb, const struct sdp_format *fmt,
+ bool offer, void *arg);