summaryrefslogtreecommitdiff
path: root/modules/av1/av1.c
blob: e0590e47f98dc81f2b435bae294ebd4c328aa8f3 (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
/**
 * @file av1.c AV1 Video Codec
 *
 * Copyright (C) 2010 - 2016 Creytiv.com
 */
#include <re.h>
#include <rem.h>
#include <baresip.h>
#include "av1.h"


/**
 * @defgroup av1 av1
 *
 * The AV1 video codec (Experimental)
 *
 * Reference: http://aomedia.org/
 */


static struct vidcodec av1 = {
	.name      = "AV1",
	.encupdh   = av1_encode_update,
	.ench      = av1_encode,
	.decupdh   = av1_decode_update,
	.dech      = av1_decode,
};


static int module_init(void)
{
	vidcodec_register(baresip_vidcodecl(), &av1);

	return 0;
}


static int module_close(void)
{
	vidcodec_unregister(&av1);

	return 0;
}


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