| 4122 | |
| 4123 | |
| 4124 | void print_header(const cl_image_format *format, bool err = false) |
| 4125 | { |
| 4126 | if (err) |
| 4127 | { |
| 4128 | log_error("[%-7s %-24s %d]\n", |
| 4129 | GetChannelOrderName(format->image_channel_order), |
| 4130 | GetChannelTypeName(format->image_channel_data_type), |
| 4131 | (int)get_format_channel_count(format)); |
| 4132 | } |
| 4133 | else |
| 4134 | { |
| 4135 | log_info("[%-7s %-24s %d]\n", |
| 4136 | GetChannelOrderName(format->image_channel_order), |
| 4137 | GetChannelTypeName(format->image_channel_data_type), |
| 4138 | (int)get_format_channel_count(format)); |
| 4139 | } |
| 4140 | } |
| 4141 | |
| 4142 | bool find_format(cl_image_format *formatList, unsigned int numFormats, |
| 4143 | cl_image_format *formatToFind) |