forked from jerry73204/realsense-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocessing_block_kind.rs
96 lines (78 loc) · 2.62 KB
/
processing_block_kind.rs
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
//! Marker traits and types for [ProcessingBlock](crate::processing_block::ProcessingBlock).
use crate::{common::*, kind::Extension};
pub trait ProcessingBlockKind {}
pub trait ExtendableProcessingBlockKind
where
Self: ProcessingBlockKind,
{
const EXTENSION: Extension;
}
#[derive(Debug)]
pub struct Any;
impl ProcessingBlockKind for Any {}
#[derive(Debug)]
pub struct DecimationFilterKind;
impl ProcessingBlockKind for DecimationFilterKind {}
impl ExtendableProcessingBlockKind for DecimationFilterKind {
const EXTENSION: Extension = Extension::DecimationFilter;
}
#[derive(Debug)]
pub struct ThresholdFilterKind;
impl ProcessingBlockKind for ThresholdFilterKind {}
impl ExtendableProcessingBlockKind for ThresholdFilterKind {
const EXTENSION: Extension = Extension::ThresholdFilter;
}
#[derive(Debug)]
pub struct DisparityFilterKind;
impl ProcessingBlockKind for DisparityFilterKind {}
impl ExtendableProcessingBlockKind for DisparityFilterKind {
const EXTENSION: Extension = Extension::DisparityFilter;
}
#[derive(Debug)]
pub struct SpatialFilterKind;
impl ProcessingBlockKind for SpatialFilterKind {}
impl ExtendableProcessingBlockKind for SpatialFilterKind {
const EXTENSION: Extension = Extension::SpatialFilter;
}
#[derive(Debug)]
pub struct TemporalFilterKind;
impl ProcessingBlockKind for TemporalFilterKind {}
impl ExtendableProcessingBlockKind for TemporalFilterKind {
const EXTENSION: Extension = Extension::TemporalFilter;
}
#[derive(Debug)]
pub struct HoleFillingFilterKind;
impl ProcessingBlockKind for HoleFillingFilterKind {}
impl ExtendableProcessingBlockKind for HoleFillingFilterKind {
const EXTENSION: Extension = Extension::HoleFillingFilter;
}
#[derive(Debug)]
pub struct ZeroOrderFilterKind;
impl ProcessingBlockKind for ZeroOrderFilterKind {}
impl ExtendableProcessingBlockKind for ZeroOrderFilterKind {
const EXTENSION: Extension = Extension::ZeroOrderFilter;
}
#[derive(Debug)]
pub struct PointCloudKind;
impl ProcessingBlockKind for PointCloudKind {}
#[derive(Debug)]
pub struct YuyDecoderKind;
impl ProcessingBlockKind for YuyDecoderKind {}
#[derive(Debug)]
pub struct UnitsTransformKind;
impl ProcessingBlockKind for UnitsTransformKind {}
#[derive(Debug)]
pub struct SyncerKind;
impl ProcessingBlockKind for SyncerKind {}
#[derive(Debug)]
pub struct AlignKind;
impl ProcessingBlockKind for AlignKind {}
#[derive(Debug)]
pub struct ColorizerKind;
impl ProcessingBlockKind for ColorizerKind {}
#[derive(Debug)]
pub struct HuffmanDepthDecompressKind;
impl ProcessingBlockKind for HuffmanDepthDecompressKind {}
#[derive(Debug)]
pub struct RatesPrinterKind;
impl ProcessingBlockKind for RatesPrinterKind {}