Skip to content

Commit 4a8306e

Browse files
committed
Don't check num of components in mono images
1 parent c6bb34d commit 4a8306e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Example/Tests/Tests.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)