Lines Matching refs:work

200 	compression_workload* work = static_cast<compression_workload*>(payload);  in compression_workload_runner()  local
202 work->context, work->image, &work->swizzle, in compression_workload_runner()
203 work->data_out, work->data_len, thread_id); in compression_workload_runner()
209 work->error = error; in compression_workload_runner()
227 decompression_workload* work = static_cast<decompression_workload*>(payload); in decompression_workload_runner() local
229 work->context, work->data, work->data_len, in decompression_workload_runner()
230 work->image_out, &work->swizzle, thread_id); in decompression_workload_runner()
236 work->error = error; in decompression_workload_runner()
2094 compression_workload work; in main() local
2095 work.context = codec_context; in main()
2096 work.image = image_uncomp_in; in main()
2097 work.swizzle = cli_config.swz_encode; in main()
2098 work.data_out = buffer; in main()
2099 work.data_len = buffer_size; in main()
2100 work.error = ASTCENC_SUCCESS; in main()
2110 launch_threads(cli_config.thread_count, compression_workload_runner, &work); in main()
2114 work.error = astcenc_compress_image( in main()
2115 work.context, work.image, &work.swizzle, in main()
2116 work.data_out, work.data_len, 0); in main()
2126 if (work.error != ASTCENC_SUCCESS) in main()
2128 printf("ERROR: Codec compress failed: %s\n", astcenc_get_error_string(work.error)); in main()
2157 decompression_workload work; in main() local
2158 work.context = codec_context; in main()
2159 work.data = image_comp.data; in main()
2160 work.data_len = image_comp.data_len; in main()
2161 work.image_out = image_decomp_out; in main()
2162 work.swizzle = cli_config.swz_decode; in main()
2163 work.error = ASTCENC_SUCCESS; in main()
2173 launch_threads(cli_config.thread_count, decompression_workload_runner, &work); in main()
2177 work.error = astcenc_decompress_image( in main()
2178 work.context, work.data, work.data_len, in main()
2179 work.image_out, &work.swizzle, 0); in main()
2189 if (work.error != ASTCENC_SUCCESS) in main()