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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
use crate::diagnostic::Diagnostic;
use crate::engine::rule::ConstraintRule;
use crate::output::warning::Violation;
use crate::types::{CableCapabilities, CandidateConfig, SinkCapabilities, SourceCapabilities};
use display_types::pixel_clock_khz;
/// Checks that the requested refresh rate falls within the sink's supported range.
pub struct RefreshRateCheck;
impl<V: Diagnostic + From<Violation>> ConstraintRule<V> for RefreshRateCheck {
fn display_name(&self) -> &'static str {
"refresh_rate_range"
}
fn check(
&self,
sink: &SinkCapabilities,
source: &SourceCapabilities,
_cable: &CableCapabilities,
config: &CandidateConfig<'_>,
) -> Option<V> {
use crate::types::source::QuirkFlags;
if source
.quirks
.contains(QuirkFlags::IGNORE_REFRESH_RATE_RANGE)
{
return None;
}
let min_hz = sink.min_v_rate?;
let max_hz = sink.max_v_rate?;
let rate_hz = config.mode.refresh_rate;
if rate_hz < min_hz || rate_hz > max_hz {
Some(
Violation::RefreshRateOutOfRange {
rate_hz,
min_hz,
max_hz,
}
.into(),
)
} else {
None
}
}
}
/// Checks that the pixel clock does not exceed the sink's declared maximum.
///
/// Reads `sink.max_pixel_clock_mhz`, which is populated from the EDID range limits
/// descriptor (descriptor type `0xFD`, byte 9). Applies to all link types — the pixel
/// clock ceiling is independent of encoding, bit depth, and whether the link is TMDS
/// or FRL.
pub struct PixelClockCheck;
impl<V: Diagnostic + From<Violation>> ConstraintRule<V> for PixelClockCheck {
fn display_name(&self) -> &'static str {
"pixel_clock_ceiling"
}
fn check(
&self,
sink: &SinkCapabilities,
_source: &SourceCapabilities,
_cable: &CableCapabilities,
config: &CandidateConfig<'_>,
) -> Option<V> {
let limit_mhz = sink.max_pixel_clock_mhz? as u32;
let pixel_clock_khz = pixel_clock_khz(config.mode);
let required_mhz = pixel_clock_khz / 1000;
if required_mhz > limit_mhz {
use crate::output::warning::LimitSource;
Some(
Violation::PixelClockExceeded {
required_mhz,
limit_mhz,
limit_source: LimitSource::Sink,
}
.into(),
)
} else {
None
}
}
}
/// Checks that the TMDS character rate does not exceed the ceiling for the link.
pub struct TmdsClockCheck;
impl<V: Diagnostic + From<Violation>> ConstraintRule<V> for TmdsClockCheck {
fn display_name(&self) -> &'static str {
"tmds_clock_ceiling"
}
fn check(
&self,
sink: &SinkCapabilities,
source: &SourceCapabilities,
cable: &CableCapabilities,
config: &CandidateConfig<'_>,
) -> Option<V> {
// Skip FRL candidates — TMDS clock is not relevant for FRL links.
use display_types::cea861::HdmiForumFrl;
if config.frl_rate != HdmiForumFrl::NotSupported {
return None;
}
let pixel_clock_khz = pixel_clock_khz(config.mode);
// TMDS character clock depends on color encoding and bit depth.
// YCbCr 4:2:0 halves the pixel rate; deep color multiplies it.
let encoding_denom = match config.color_encoding {
display_types::ColorFormat::YCbCr420 => 2u32,
_ => 1u32,
};
let depth_numer = match config.bit_depth {
display_types::ColorBitDepth::Depth10 => 5u32,
display_types::ColorBitDepth::Depth12 => 6u32,
display_types::ColorBitDepth::Depth16 => 8u32,
_ => 4u32, // 8 bpc: clock × 1
};
// tmds_clock = pixel_clock × depth_numer / (4 × encoding_denom)
let tmds_khz = pixel_clock_khz * depth_numer / (4 * encoding_denom);
// Find the binding ceiling across sink, source, and cable.
// A sink may declare its TMDS ceiling via the HDMI 1.x VSDB, the HDMI 2.x
// HF-SCDB, or both; the tighter of the two is used.
let vsdb_limit = sink
.hdmi_vsdb
.as_ref()
.and_then(|v| v.max_tmds_clock_mhz)
.map(|mhz| mhz as u32 * 1000)
.unwrap_or(u32::MAX);
// HF-SCDB max_tmds_rate_mhz == 0 means ≤ 340 MHz per HDMI 2.1a §10.3.6.
let hf_limit = sink
.hdmi_forum
.as_ref()
.map(|hf| {
if hf.max_tmds_rate_mhz == 0 {
340_000
} else {
hf.max_tmds_rate_mhz as u32 * 1000
}
})
.unwrap_or(u32::MAX);
let sink_limit = vsdb_limit.min(hf_limit);
let source_limit = if source.max_tmds_clock > 0 {
source.max_tmds_clock
} else {
u32::MAX
};
let cable_limit = if cable.max_tmds_clock > 0 {
cable.max_tmds_clock
} else {
u32::MAX
};
let limit_khz = sink_limit.min(source_limit).min(cable_limit);
if limit_khz == u32::MAX || tmds_khz <= limit_khz {
None
} else {
use crate::output::warning::LimitSource;
// Cable takes priority over source over sink when multiple parties share
// the binding limit — cable replacement is the most actionable fix.
let limit_source = if cable_limit == limit_khz {
LimitSource::Cable
} else if source_limit == limit_khz {
LimitSource::Source
} else {
LimitSource::Sink
};
Some(
Violation::TmdsClockExceeded {
required_mhz: tmds_khz / 1000,
limit_mhz: limit_khz / 1000,
limit_source,
}
.into(),
)
}
}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::engine::rule::ConstraintRule;
use crate::output::warning::Violation;
use crate::types::{CableCapabilities, CandidateConfig, SourceCapabilities};
use display_types::cea861::{HdmiForumFrl, HdmiForumSinkCap, HdmiVsdb, HdmiVsdbFlags};
use display_types::{ColorBitDepth, ColorFormat, VideoMode};
fn mode(refresh_rate: u16) -> VideoMode {
VideoMode::new(1920, 1080, refresh_rate, false)
}
fn config(mode: &VideoMode) -> CandidateConfig<'_> {
CandidateConfig {
mode,
color_encoding: ColorFormat::Rgb444,
bit_depth: ColorBitDepth::Depth8,
frl_rate: HdmiForumFrl::NotSupported,
dsc_enabled: false,
}
}
fn tmds_check(
sink: &SinkCapabilities,
source: &SourceCapabilities,
cable: &CableCapabilities,
mode: &VideoMode,
encoding: ColorFormat,
depth: ColorBitDepth,
frl_rate: HdmiForumFrl,
) -> Option<Violation> {
ConstraintRule::<Violation>::check(
&TmdsClockCheck,
sink,
source,
cable,
&CandidateConfig {
mode,
color_encoding: encoding,
bit_depth: depth,
frl_rate,
dsc_enabled: false,
},
)
}
fn pixel_clock_check(sink: &SinkCapabilities, mode: &VideoMode) -> Option<Violation> {
ConstraintRule::<Violation>::check(
&PixelClockCheck,
sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&config(mode),
)
}
fn sink_with_tmds_limit(max_mhz: u16) -> SinkCapabilities {
SinkCapabilities {
hdmi_vsdb: Some(HdmiVsdb::new(
0,
HdmiVsdbFlags::empty(),
Some(max_mhz),
None,
None,
None,
None,
)),
..Default::default()
}
}
fn source_with_tmds_limit(max_khz: u32) -> SourceCapabilities {
SourceCapabilities {
max_tmds_clock: max_khz,
..Default::default()
}
}
/// Sink with an HF-SCDB carrying `max_tmds_rate_mhz` but no VSDB.
/// Pass `0` to exercise the "≤ 340 MHz" sentinel defined in HDMI 2.1a §10.3.6.
fn sink_with_hf_tmds_limit(max_tmds_rate_mhz: u16) -> SinkCapabilities {
SinkCapabilities {
hdmi_forum: Some(HdmiForumSinkCap::new(
1,
max_tmds_rate_mhz,
false,
false,
false,
false,
false,
false,
false,
false,
HdmiForumFrl::Rate12Gbps4Lanes,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
None,
None,
None,
)),
..Default::default()
}
}
fn check(sink: &SinkCapabilities, mode: &VideoMode) -> Option<Violation> {
ConstraintRule::<Violation>::check(
&RefreshRateCheck,
sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&config(mode),
)
}
#[test]
fn within_range_passes() {
let sink = SinkCapabilities {
min_v_rate: Some(24),
max_v_rate: Some(144),
..Default::default()
};
assert!(check(&sink, &mode(60)).is_none());
}
#[test]
fn above_max_rejected() {
let sink = SinkCapabilities {
min_v_rate: Some(24),
max_v_rate: Some(60),
..Default::default()
};
assert!(matches!(
check(&sink, &mode(144)),
Some(Violation::RefreshRateOutOfRange {
rate_hz: 144,
min_hz: 24,
max_hz: 60
})
));
}
#[test]
fn below_min_rejected() {
let sink = SinkCapabilities {
min_v_rate: Some(48),
max_v_rate: Some(144),
..Default::default()
};
assert!(matches!(
check(&sink, &mode(24)),
Some(Violation::RefreshRateOutOfRange {
rate_hz: 24,
min_hz: 48,
max_hz: 144
})
));
}
#[test]
fn no_bounds_skips_check() {
assert!(check(&SinkCapabilities::default(), &mode(240)).is_none());
}
#[test]
fn ignore_refresh_rate_range_quirk_bypasses_check() {
use crate::types::source::QuirkFlags;
let sink = SinkCapabilities {
min_v_rate: Some(24),
max_v_rate: Some(60),
..Default::default()
};
let source = SourceCapabilities {
quirks: QuirkFlags::IGNORE_REFRESH_RATE_RANGE,
..Default::default()
};
// 144 Hz would normally be rejected (above declared max of 60 Hz).
let result = ConstraintRule::<Violation>::check(
&RefreshRateCheck,
&sink,
&source,
&CableCapabilities::default(),
&config(&mode(144)),
);
assert!(
result.is_none(),
"IGNORE_REFRESH_RATE_RANGE must suppress the range check"
);
}
#[test]
fn at_boundary_passes() {
let sink = SinkCapabilities {
min_v_rate: Some(24),
max_v_rate: Some(144),
..Default::default()
};
assert!(check(&sink, &mode(24)).is_none());
assert!(check(&sink, &mode(144)).is_none());
}
// --- PixelClockCheck tests ---
// CVT-RB estimate for 1920×1080@60: ≈ 135_782 kHz ≈ 135 MHz.
#[test]
fn no_pixel_clock_limit_skips_check() {
// SinkCapabilities::default() has max_pixel_clock_mhz = None — check is skipped.
assert!(pixel_clock_check(&SinkCapabilities::default(), &mode(60)).is_none());
}
#[test]
fn within_pixel_clock_limit_passes() {
let sink = SinkCapabilities {
max_pixel_clock_mhz: Some(165),
..Default::default()
};
assert!(pixel_clock_check(&sink, &mode(60)).is_none());
}
#[test]
fn exceeds_pixel_clock_limit_rejected() {
let sink = SinkCapabilities {
max_pixel_clock_mhz: Some(100),
..Default::default()
};
assert!(matches!(
pixel_clock_check(&sink, &mode(60)),
Some(Violation::PixelClockExceeded { limit_mhz: 100, .. })
));
}
#[test]
fn pixel_clock_check_applies_to_frl_candidate() {
// Unlike TmdsClockCheck, the pixel clock ceiling applies regardless of link type.
let sink = SinkCapabilities {
max_pixel_clock_mhz: Some(100),
..Default::default()
};
let m = mode(60);
let result = ConstraintRule::<Violation>::check(
&PixelClockCheck,
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&CandidateConfig {
mode: &m,
color_encoding: ColorFormat::Rgb444,
bit_depth: ColorBitDepth::Depth8,
frl_rate: HdmiForumFrl::Rate12Gbps4Lanes,
dsc_enabled: false,
},
);
assert!(matches!(
result,
Some(Violation::PixelClockExceeded { limit_mhz: 100, .. })
));
}
// --- TmdsClockCheck tests ---
// CVT-RB estimate for 1920×1080@60: (1920+160)×(1080+8)×60/1000 = 135_782 kHz ≈ 136 MHz.
// At 8bpc RGB, TMDS clock == pixel clock (depth_numer=4, denom=4).
// At 10bpc RGB, TMDS clock = pixel_clock × 5/4 ≈ 169_727 kHz ≈ 170 MHz.
// At YCbCr420 8bpc, TMDS clock = pixel_clock / 2 ≈ 67_891 kHz ≈ 68 MHz.
#[test]
fn frl_candidate_skips_tmds_check() {
// Any FRL rate bypasses the TMDS check regardless of limits.
let sink = sink_with_tmds_limit(10); // absurdly low — would fail if checked
let m = mode(60);
assert!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::Rate3Gbps3Lanes,
)
.is_none()
);
}
#[test]
fn no_limits_passes() {
// Default sink (no VSDB), default source (max_tmds_clock=0), unconstrained cable.
let m = mode(60);
assert!(
tmds_check(
&SinkCapabilities::default(),
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
)
.is_none()
);
}
#[test]
fn within_sink_limit_passes() {
// 165 MHz sink limit; 1080p60 8bpc ≈ 136 MHz — passes.
let sink = sink_with_tmds_limit(165);
let m = mode(60);
assert!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
)
.is_none()
);
}
#[test]
fn exceeds_sink_limit_rejected() {
// 100 MHz sink limit; 1080p60 8bpc ≈ 136 MHz — fails.
let sink = sink_with_tmds_limit(100);
let m = mode(60);
assert!(matches!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
),
Some(Violation::TmdsClockExceeded { limit_mhz: 100, .. })
));
}
#[test]
fn exceeds_source_limit_rejected() {
// Source limited to 100_000 kHz; 1080p60 8bpc ≈ 135_782 kHz — fails.
let source = source_with_tmds_limit(100_000);
let m = mode(60);
assert!(matches!(
tmds_check(
&SinkCapabilities::default(),
&source,
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
),
Some(Violation::TmdsClockExceeded { limit_mhz: 100, .. })
));
}
#[test]
fn deep_color_10bpc_increases_clock() {
// At 165 MHz, 8bpc passes (≈136 MHz) but 10bpc fails (≈170 MHz).
let sink = sink_with_tmds_limit(165);
let m = mode(60);
assert!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
)
.is_none()
);
assert!(matches!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth10,
HdmiForumFrl::NotSupported,
),
Some(Violation::TmdsClockExceeded { limit_mhz: 165, .. })
));
}
// --- TmdsClockCheck: HF-SCDB limit tests ---
#[test]
fn hf_scdb_zero_rate_applies_340mhz_ceiling() {
// max_tmds_rate_mhz == 0 means ≤ 340 MHz. 1080p60 8bpc ≈ 136 MHz — passes.
let sink = sink_with_hf_tmds_limit(0);
let m = mode(60);
assert!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
)
.is_none()
);
}
#[test]
fn hf_scdb_nonzero_rate_is_ceiling() {
// Explicit HF-SCDB limit of 100 MHz; 1080p60 8bpc ≈ 136 MHz — rejected.
let sink = sink_with_hf_tmds_limit(100);
let m = mode(60);
assert!(matches!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
),
Some(Violation::TmdsClockExceeded { limit_mhz: 100, .. })
));
}
#[test]
fn hf_scdb_ceiling_tighter_than_vsdb() {
// VSDB allows 600 MHz; HF-SCDB restricts to 100 MHz — HF-SCDB wins.
let sink = SinkCapabilities {
hdmi_vsdb: Some(HdmiVsdb::new(
0,
HdmiVsdbFlags::empty(),
Some(600),
None,
None,
None,
None,
)),
hdmi_forum: Some(HdmiForumSinkCap::new(
1,
100,
false,
false,
false,
false,
false,
false,
false,
false,
HdmiForumFrl::Rate12Gbps4Lanes,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
None,
None,
None,
)),
..Default::default()
};
let m = mode(60);
assert!(matches!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
),
Some(Violation::TmdsClockExceeded { limit_mhz: 100, .. })
));
}
// --- TmdsClockCheck: LimitSource field tests ---
#[test]
fn tmds_limit_source_is_sink_when_sink_is_binding() {
use crate::output::warning::LimitSource;
// Sink limited to 100 MHz; source unconstrained; cable unconstrained.
let sink = sink_with_tmds_limit(100);
let m = mode(60);
assert!(matches!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
),
Some(Violation::TmdsClockExceeded {
limit_source: LimitSource::Sink,
..
})
));
}
#[test]
fn tmds_limit_source_is_source_when_source_is_binding() {
use crate::output::warning::LimitSource;
// Source limited to 100_000 kHz; sink unconstrained; cable unconstrained.
let source = source_with_tmds_limit(100_000);
let m = mode(60);
assert!(matches!(
tmds_check(
&SinkCapabilities::default(),
&source,
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
),
Some(Violation::TmdsClockExceeded {
limit_source: LimitSource::Source,
..
})
));
}
#[test]
fn tmds_limit_source_is_cable_when_cable_is_binding() {
use crate::output::warning::LimitSource;
// Cable limited to 100_000 kHz; sink and source both unconstrained.
let cable = CableCapabilities {
max_tmds_clock: 100_000,
..CableCapabilities::unconstrained()
};
let m = mode(60);
assert!(matches!(
tmds_check(
&SinkCapabilities::default(),
&SourceCapabilities::default(),
&cable,
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
),
Some(Violation::TmdsClockExceeded {
limit_source: LimitSource::Cable,
..
})
));
}
#[test]
fn ycbcr420_halves_clock_stays_within_limit() {
// 80 MHz limit; YCbCr420 8bpc ≈ 68 MHz — passes.
// Same mode with RGB 8bpc ≈ 136 MHz would fail.
let sink = sink_with_tmds_limit(80);
let m = mode(60);
assert!(matches!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::Rgb444,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
),
Some(Violation::TmdsClockExceeded { .. })
));
assert!(
tmds_check(
&sink,
&SourceCapabilities::default(),
&CableCapabilities::default(),
&m,
ColorFormat::YCbCr420,
ColorBitDepth::Depth8,
HdmiForumFrl::NotSupported,
)
.is_none()
);
}
}