File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,8 +217,6 @@ -(void)assertMono8: (NSString*)filename img:(CGImageRef)img expectedNumComponent
217217 size_t const stride = CGImageGetBytesPerRow (img);
218218 size_t const bitsPerPixel = CGImageGetBitsPerPixel (img);
219219 size_t const bytesPerPixel = bitsPerPixel/8 ;
220- size_t const numComponents = bitsPerPixel / CGImageGetBitsPerComponent (img);
221- XCTAssertTrue (numComponents >= expectedNumComponents);
222220 for (size_t y = 0 ; y < height; ++y) {
223221 for (size_t x = 0 ; x < width; ++x) {
224222 UInt16* pix = (UInt16*)(buf + (stride * y) + (bytesPerPixel * x));
@@ -255,8 +253,6 @@ -(void)assertMono16: (NSString*)filename img:(CGImageRef)img expectedNumComponen
255253 size_t const stride = CGImageGetBytesPerRow (img);
256254 size_t const bitsPerPixel = CGImageGetBitsPerPixel (img);
257255 size_t const bytesPerPixel = bitsPerPixel/8 ;
258- size_t const numComponents = bitsPerPixel / CGImageGetBitsPerComponent (img);
259- XCTAssertTrue (numComponents >= expectedNumComponents);
260256 for (size_t y = 0 ; y < height; ++y) {
261257 for (size_t x = 0 ; x < width; ++x) {
262258 UInt16* pix = (UInt16*)(buf + (stride * y) + (bytesPerPixel * x));
You can’t perform that action at this time.
0 commit comments