File tree 2 files changed +4
-4
lines changed
crates/store/re_types/src/datatypes
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ impl PixelFormat {
46
46
Self :: Y_U_V24_FullRange | Self :: Y_U_V24_LimitedRange => num_pixels * 4 ,
47
47
48
48
// 422 formats.
49
- Self :: Y_U_V16_FullRange | Self :: Y_U_V16_LimitedRange | Self :: NV12 => {
49
+ Self :: Y_U_V16_FullRange | Self :: Y_U_V16_LimitedRange | Self :: YUY2 => {
50
50
16 * num_pixels / 8
51
51
}
52
52
53
53
// 420 formats.
54
- Self :: Y_U_V12_FullRange | Self :: Y_U_V12_LimitedRange | Self :: YUY2 => {
54
+ Self :: Y_U_V12_FullRange | Self :: Y_U_V12_LimitedRange | Self :: NV12 => {
55
55
12 * num_pixels / 8
56
56
}
57
57
Original file line number Diff line number Diff line change @@ -165,13 +165,13 @@ namespace rerun {
165
165
// 422 formats.
166
166
case datatypes::PixelFormat::Y_U_V16_FullRange:
167
167
case datatypes::PixelFormat::Y_U_V16_LimitedRange:
168
- case datatypes::PixelFormat::NV12 :
168
+ case datatypes::PixelFormat::YUY2 :
169
169
return 16 * num_pixels / 8 ;
170
170
171
171
// 420 formats.
172
172
case datatypes::PixelFormat::Y_U_V12_FullRange:
173
173
case datatypes::PixelFormat::Y_U_V12_LimitedRange:
174
- case datatypes::PixelFormat::YUY2 :
174
+ case datatypes::PixelFormat::NV12 :
175
175
return 12 * num_pixels / 8 ;
176
176
177
177
// Monochrome formats.
You can’t perform that action at this time.
0 commit comments