comparison tools/lib64gfx.h @ 1591:3cc7b2aadda3

Add inline helper function fmtGetEncDecOp() and use it.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 May 2018 05:53:22 +0300
parents ca087c0cc9c4
children 91d1bb571fca
comparison
equal deleted inserted replaced
1590:22f29c25b349 1591:3cc7b2aadda3
314 (void) raster; 314 (void) raster;
315 return dmC64GetGenericMCPixel(img, bmoffs, scroffs, vshift, 0, vbitmap, 0, img->bgcolor); 315 return dmC64GetGenericMCPixel(img, bmoffs, scroffs, vshift, 0, vbitmap, 0, img->bgcolor);
316 } 316 }
317 317
318 318
319 static inline const DMC64EncDecOp * fmtGetEncDecOp(const DMC64ImageFormat *fmt, const int index)
320 {
321 return &fmt->encdecOps[index];
322 }
323
324
319 #ifdef __cplusplus 325 #ifdef __cplusplus
320 } 326 }
321 #endif 327 #endif
322 328
323 #endif // LIB64GFX_H 329 #endif // LIB64GFX_H