Skip to content

Commit abc6a27

Browse files
kislinskdzenanz
authored andcommitted
COMP: Change IOComponentType to IOComponentEnum
Change last few usages of pre ITK v5 IOComponentType enums to IOComponentEnum enum classes to make ITK compile with ITK_LEGACY_REMOVE.
1 parent b1e080d commit abc6a27

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Modules/Video/BridgeOpenCV/include/itkOpenCVVideoIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class ITKVideoBridgeOpenCV_EXPORT OpenCVVideoIO : public VideoIOBase
168168
const std::vector<SizeValueType> & dim,
169169
const char * fourCC,
170170
unsigned int nChannels,
171-
IOComponentType componentType);
171+
IOComponentEnum componentType);
172172

173173
protected:
174174
OpenCVVideoIO();

Modules/Video/BridgeOpenCV/src/itkOpenCVVideoIO.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,15 +437,15 @@ OpenCVVideoIO::SetWriterParameters(TemporalRatioType fps,
437437
const std::vector<SizeValueType> & dim,
438438
const char * fourCC,
439439
unsigned int nChannels,
440-
IOComponentType componentType)
440+
IOComponentEnum componentType)
441441
{
442442
if (this->m_ReaderOpen || this->m_WriterOpen)
443443
{
444444
itkExceptionMacro("Can not set the writer's parameters when either reader or writer is already open");
445445
}
446446

447447
// Make sure componentType is acceptable (right now we only support char)
448-
if (componentType != UCHAR)
448+
if (componentType != IOComponentEnum::UCHAR)
449449
{
450450
itkExceptionMacro("OpenCV IO only supports writing video with pixels of UCHAR");
451451
}

Modules/Video/BridgeVXL/include/itkVXLVideoIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class VXLVideoIO : public VideoIOBase
146146
const std::vector<SizeValueType> & dim,
147147
const char * fourCC,
148148
unsigned int nChannels,
149-
IOComponentType componentType) override;
149+
IOComponentEnum componentType) override;
150150

151151
protected:
152152
VXLVideoIO();

Modules/Video/BridgeVXL/src/itkVXLVideoIO.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,14 +497,14 @@ VXLVideoIO::SetWriterParameters(TemporalRatioType fps,
497497
const std::vector<SizeValueType> & dim,
498498
const char * fourCC,
499499
unsigned int nChannels,
500-
IOComponentType componentType)
500+
IOComponentEnum componentType)
501501
{
502502
if (this->m_ReaderOpen || this->m_WriterOpen)
503503
{
504504
itkExceptionMacro("Can not set the writer's parameters when either reader or writer is already open");
505505
}
506506

507-
if (componentType != UCHAR && componentType != UINT)
507+
if (componentType != IOComponentEnum::UCHAR && IOComponentEnum::componentType != UINT)
508508
{
509509
itkExceptionMacro("VXL IO only supports writing video with pixels of UCHAR and UINT");
510510
}

0 commit comments

Comments
 (0)