lib.rs 1.64 KB
Newer Older
1
2
3
4
5
6
7
8
9
// Copyright (c) 2017-2018, The rav1e contributors. All rights reserved
//
// This source code is subject to the terms of the BSD 2 Clause License and
// the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
// was not distributed with this source code in the LICENSE file, you can
// obtain it at www.aomedia.org/license/software. If the Alliance for Open
// Media Patent License 1.0 was not distributed with this source code in the
// PATENTS file, you can obtain it at www.aomedia.org/license/patent.

Guillaume Martres's avatar
Guillaume Martres committed
10
#![allow(safe_extern_statics)]
Luca Barbato's avatar
Luca Barbato committed
11
#![deny(bare_trait_objects)]
Guillaume Martres's avatar
Guillaume Martres committed
12

13
14
#[macro_use]
extern crate serde_derive;
15
extern crate bincode;
16

17
18
19
#[cfg(all(test, feature="decode_test_dav1d"))]
extern crate dav1d_sys;

20
21
22
#[cfg(test)]
extern crate interpolate_name;

23
24
25
26
#[cfg(test)]
#[macro_use]
extern crate pretty_assertions;

27
28
pub mod ec;
pub mod partition;
Guillaume Martres's avatar
Guillaume Martres committed
29
pub mod plane;
30
31
32
33
pub mod transform;
pub mod quantize;
pub mod predict;
pub mod rdo;
34
pub mod rdo_tables;
35
#[macro_use]
Michael Bebenita's avatar
Michael Bebenita committed
36
pub mod util;
SmilingWolf's avatar
SmilingWolf committed
37
pub mod context;
38
39
pub mod entropymode;
pub mod token_cdfs;
40
pub mod deblock;
41
pub mod segmentation;
42
pub mod cdef;
43
pub mod lrf;
44
pub mod encoder;
45
pub mod mc;
46
pub mod me;
47
pub mod metrics;
tmpcnt's avatar
tmpcnt committed
48
pub mod scan_order;
Josh Holmer's avatar
Josh Holmer committed
49
pub mod scenechange;
50
pub mod rate;
Romain Vimont's avatar
Romain Vimont committed
51
pub mod tiling;
Thomas Daede's avatar
Thomas Daede committed
52

Luca Barbato's avatar
Luca Barbato committed
53
mod api;
54
mod header;
Luca Barbato's avatar
Luca Barbato committed
55
mod frame;
Luca Barbato's avatar
Luca Barbato committed
56

Raphaël Zumer's avatar
Raphaël Zumer committed
57
58
pub use crate::api::*;
pub use crate::encoder::*;
59
pub use crate::header::*;
60
pub use crate::util::{CastFromPrimitive, Pixel};
61

Luca Barbato's avatar
Luca Barbato committed
62
63
pub use crate::frame::Frame;

64
65
66
#[cfg(all(test, any(feature="decode_test", feature="decode_test_dav1d")))]
mod test_encode_decode;

Luca Barbato's avatar
Luca Barbato committed
67
#[cfg(all(test, feature="decode_test"))]
68
69
70
71
72
mod test_encode_decode_aom;

#[cfg(all(test, feature="decode_test_dav1d"))]
mod test_encode_decode_dav1d;