]> git.nihav.org Git - nihav.git/commitdiff
nihav_registry/register: make CODEC_CAP_* public and document them
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 25 Jul 2020 16:28:34 +0000 (18:28 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 25 Jul 2020 16:28:34 +0000 (18:28 +0200)
nihav-registry/src/register.rs

index 8c1dcc6d024636f0af36c35604cc1ca5186d87b4..177cf0604546f6797abaa29dff5d4115e6c4f0bd 100644 (file)
@@ -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)]