| 1 | /*========================================================================= |
| 2 | * |
| 3 | * Copyright NumFOCUS |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * https://www.apache.org/licenses/LICENSE-2.0.txt |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | * |
| 17 | *=========================================================================*/ |
| 18 | |
| 19 | #include "itkJPEGImageIO.h"cxx . . $ `<file>/Modules/IO/JPEG/include/itkJPEGImageIO.h`/ |
| 20 | #include "itkImageFileReader.h"cxx . . $ `<file>/Modules/IO/ImageBase/include/itkImageFileReader.h`/ |
| 21 | #include "itkTestingMacros.h"cxx . . $ `<file>/Modules/Core/TestKernel/include/itkTestingMacros.h`/ |
| 22 | |
| 23 | |
| 24 | int |
| 25 | itkJPEGImageIODegenerateCasesTestcxx . . $ itkJPEGImageIODegenerateCasesTest(afcd3168fc1188a4).(int argc, char * argv[]) |
| 26 | { |
| 27 | if (argc != 2) |
| 28 | { |
| 29 | stdcxx . . $ std/::cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Missing parameters." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 30 | stdcxx . . $ std/::cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Usage: " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). itkNameOfTestExecutableMacrocxx . . $ `Modules/Core/TestKernel/include/itkTestingMacros.h:289:9`!(argv); |
| 31 | stdcxx . . $ std/::cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " inputFilename" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 32 | return EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!; |
| 33 | } |
| 34 | |
| 35 | constexpr unsigned int Dimension = 2; |
| 36 | using PixelTypecxx . . $ itkJPEGImageIODegenerateCasesTest(afcd3168fc1188a4).PixelType# = unsigned char; |
| 37 | |
| 38 | using ImageTypecxx . . $ itkJPEGImageIODegenerateCasesTest(afcd3168fc1188a4).ImageType# = itkcxx . . $ itk/::Imagecxx . . $ itk/Image#<PixelTypecxx . . $ itkJPEGImageIODegenerateCasesTest(afcd3168fc1188a4).PixelType#, Dimension>; |
| 39 | |
| 40 | itkcxx . . $ itk/::JPEGImageIOcxx . . $ itk/JPEGImageIO#::Pointercxx . . $ itk/JPEGImageIO#Pointer# io = itkcxx . . $ itk/::JPEGImageIOcxx . . $ itk/JPEGImageIO#::Newcxx . . $ itk/JPEGImageIO#New(704622b225333e4e).(); |
| 41 | |
| 42 | ITK_EXERCISE_BASIC_OBJECT_METHODScxx . . $ `Modules/Core/TestKernel/include/itkTestingMacros.h:82:9`!(io, JPEGImageIO, ImageIOBase); |
| 43 | |
| 44 | |
| 45 | auto progressive = true; |
| 46 | ITK_TEST_SET_GET_BOOLEANcxx . . $ `Modules/Core/TestKernel/include/itkTestingMacros.h:254:9`!(io, Progressive, progressive); |
| 47 | |
| 48 | itkcxx . . $ itk/::ImageFileReadercxx . . $ itk/ImageFileReader#<ImageType>::Pointercxx . . $ itk/ImageFileReader#Pointer# reader = itkcxx . . $ itk/::ImageFileReadercxx . . $ itk/ImageFileReader#<ImageType>::Newcxx . . $ itk/ImageFileReader#New(c4db43283bb9bfc1).(); |
| 49 | |
| 50 | reader->cxx . . $ itk/SmartPointer#`operator->`(34d6acfd341ba7ab).SetFileNamecxx . . $ itk/ImageFileReader#SetFileName(9c546c94e5fcce4e).(argvcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).[1]); |
| 51 | reader->cxx . . $ itk/SmartPointer#`operator->`(34d6acfd341ba7ab).SetImageIOcxx . . $ itk/ImageFileReader#SetImageIO(ffa7cf25f096002b).(io); |
| 52 | |
| 53 | ITK_TRY_EXPECT_NO_EXCEPTIONcxx . . $ `Modules/Core/TestKernel/include/itkTestingMacros.h:130:9`!(reader->Update()); |
| 54 | |
| 55 | |
| 56 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Test finished." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 57 | return EXIT_SUCCESScxx . . $ `<external>/10696550936717951914/stdlib.h:93:9`!; |
| 58 | } |