comparison tools/gfxconv.c @ 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 d91d2a67eda5
comparison
equal deleted inserted replaced
1590:22f29c25b349 1591:3cc7b2aadda3
1022 } 1022 }
1023 } 1023 }
1024 1024
1025 for (int i = 0; i < D64_MAX_ENCDEC_OPS; i++) 1025 for (int i = 0; i < D64_MAX_ENCDEC_OPS; i++)
1026 { 1026 {
1027 const DMC64EncDecOp *op = &dstFmt->encdecOps[i]; 1027 const DMC64EncDecOp *op = fmtGetEncDecOp(dstFmt, i);
1028 size_t size; 1028 size_t size;
1029 1029
1030 // Check for last operator 1030 // Check for last operator
1031 if (op->type == DT_LAST) 1031 if (op->type == DT_LAST)
1032 break; 1032 break;