From 98bf08bdcf2edd9d397f32650a8bfe62186fbecf Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sun, 9 Feb 2014 11:50:07 +0100 Subject: baresip 0.4.10 --- modules/vpx/vpx.c | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 modules/vpx/vpx.c (limited to 'modules/vpx/vpx.c') diff --git a/modules/vpx/vpx.c b/modules/vpx/vpx.c new file mode 100644 index 0000000..4b492cf --- /dev/null +++ b/modules/vpx/vpx.c @@ -0,0 +1,60 @@ +/** + * @file vpx.c VP8 video codec + * + * Copyright (C) 2010 Creytiv.com + */ +#include +#include +#include +#include +#define VPX_CODEC_DISABLE_COMPAT 1 +#define VPX_DISABLE_CTRL_TYPECHECKS 1 +#include +#include +#include +#include +#include "vp8.h" + + +/* + * Experimental support for WebM VP8 video codec: + * + * http://www.webmproject.org/ + * + * http://tools.ietf.org/html/draft-ietf-payload-vp8-08 + */ + + +static struct vp8_vidcodec vpx = { + .vc = { + .name = "VP8", + .encupdh = vp8_encode_update, + .ench = vp8_encode, + .decupdh = vp8_decode_update, + .dech = vp8_decode, + .fmtp_ench = vp8_fmtp_enc, + }, + .max_fs = 3600 +}; + + +static int module_init(void) +{ + vidcodec_register((struct vidcodec *)&vpx); + return 0; +} + + +static int module_close(void) +{ + vidcodec_unregister((struct vidcodec *)&vpx); + return 0; +} + + +EXPORT_SYM const struct mod_export DECL_EXPORTS(vpx) = { + "vpx", + "codec", + module_init, + module_close +}; -- cgit v1.2.3