summaryrefslogtreecommitdiff
path: root/modules/vp9/vp9.c
blob: 676d5c564bc0b8f9281a6353dba358c2b25f670a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
 * @file vp9.c  VP9 video codec
 *
 * Copyright (C) 2010 - 2016 Creytiv.com
 */
#include <string.h>
#include <re.h>
#include <rem.h>
#include <baresip.h>
#include "vp9.h"


/**
 * @defgroup vp9 vp9
 *
 * The VP9 video codec
 *
 * This module implements the VP9 video codec that is compatible
 * with the WebRTC standard.
 *
 * Libvpx version 1.3.0 or later is required.
 *
 *
 * References:
 *
 *     http://www.webmproject.org/
 *
 *     draft-ietf-payload-vp9-02
 */


static struct vp9_vidcodec vp9 = {
	.vc = {
		.name      = "VP9",
		.encupdh   = vp9_encode_update,
		.ench      = vp9_encode,
		.decupdh   = vp9_decode_update,
		.dech      = vp9_decode,
		.fmtp_ench = vp9_fmtp_enc,
	},
	.max_fs = 3600
};


static int module_init(void)
{
	vidcodec_register((struct vidcodec *)&vp9);
	return 0;
}


static int module_close(void)
{
	vidcodec_unregister((struct vidcodec *)&vp9);
	return 0;
}


EXPORT_SYM const struct mod_export DECL_EXPORTS(vp9) = {
	"vp9",
	"codec",
	module_init,
	module_close
};