aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-07-25 18:28:34 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-07-25 18:28:34 +0200
commit2793026bf4b826c25ef8fc52fe63a5cd2774d779 (patch)
treeeb064f840f711173adf0627b54c437108c065a0c
parentf65c6fb45c243e937e06b17f2d22aadb61349bd7 (diff)
downloadnihav-2793026bf4b826c25ef8fc52fe63a5cd2774d779.tar.gz
nihav_registry/register: make CODEC_CAP_* public and document them
-rw-r--r--nihav-registry/src/register.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/nihav-registry/src/register.rs b/nihav-registry/src/register.rs
index 8c1dcc6..177cf06 100644
--- a/nihav-registry/src/register.rs
+++ b/nihav-registry/src/register.rs
@@ -31,11 +31,16 @@ impl fmt::Display for CodecType {
}
}
-const CODEC_CAP_INTRAONLY:u32 = 0x0001;
-const CODEC_CAP_LOSSLESS:u32 = 0x0002;
-const CODEC_CAP_REORDER:u32 = 0x0004;
-const CODEC_CAP_HYBRID:u32 = 0x0008;
-const CODEC_CAP_SCALABLE:u32 = 0x0010;
+/// Codec capability flag for intra-only codecs.
+pub const CODEC_CAP_INTRAONLY:u32 = 0x0001;
+/// Codec capability flag for lossless codecs.
+pub const CODEC_CAP_LOSSLESS:u32 = 0x0002;
+/// Codec capability flag for codecs with frame reordering.
+pub const CODEC_CAP_REORDER:u32 = 0x0004;
+/// Codec capability flag for codecs that can be both lossy and lossless.
+pub const CODEC_CAP_HYBRID:u32 = 0x0008;
+/// Codec capability flag for codecs with scalability features.
+pub const CODEC_CAP_SCALABLE:u32 = 0x0010;
/// Codec description structure.
#[derive(Clone)]