channels 76 apps/camera_pipe/process.cpp Buffer<uint8_t> output_c(output.width(), output.height(), output.channels()); channels 87 apps/camera_pipe/process.cpp Buffer<uint8_t> output_asm(output.width(), output.height(), output.channels()); channels 211 apps/interpolate/interpolate.cpp assert(in_png.channels() == 4); channels 21 apps/opengl_demo/main.cpp const int channels = 4; channels 24 apps/opengl_demo/main.cpp buf.stride[0] = channels; channels 25 apps/opengl_demo/main.cpp buf.stride[1] = channels * width; channels 30 apps/opengl_demo/main.cpp buf.extent[2] = channels; channels 113 apps/openglcompute/jni/oglc_run.cpp for (int k = 0; k < buf.channels(); k++) { channels 185 apps/openglcompute/jni/oglc_run.cpp int channels = 4; channels 187 apps/openglcompute/jni/oglc_run.cpp auto input = Buffer<T>::make_interleaved(width, height, channels); channels 188 apps/openglcompute/jni/oglc_run.cpp LOGI("Allocated memory for %dx%dx%d image", width, height, channels); channels 197 apps/openglcompute/jni/oglc_run.cpp auto output = Buffer<T>::make_interleaved(width, height, channels); channels 198 apps/openglcompute/jni/oglc_run.cpp auto output_arm = Buffer<T>::make_interleaved(width, height, channels); channels 25 apps/openglcompute/jni/oglc_two_kernels_run.cpp for (int k = 0; k < buf.channels(); k++) { channels 43 apps/openglcompute/jni/oglc_two_kernels_run.cpp int channels = 4; channels 45 apps/openglcompute/jni/oglc_two_kernels_run.cpp auto input = Halide::Runtime::Buffer<int>::make_interleaved(width, height, channels); channels 46 apps/openglcompute/jni/oglc_two_kernels_run.cpp LOGI("Allocated memory for %dx%dx%d image", width, height, channels); channels 55 apps/openglcompute/jni/oglc_two_kernels_run.cpp auto output = Halide::Runtime::Buffer<int>::make_interleaved(width, height, channels); channels 8 apps/templates/tests/example_generator.cpp GeneratorParam<int> channels{ "channels", 4 }; channels 21 apps/templates/tests/example_generator.cpp .bound(c, 0, channels) channels 26 apps/templates/tests/example_generator.cpp input.set_bounds(2, 0, channels); channels 53 apps/templates/tests/example_test.cpp static int run_test(void *uc, int channels, Implementation imp, Layout layout) { channels 55 apps/templates/tests/example_test.cpp name += std::to_string(channels); channels 59 apps/templates/tests/example_test.cpp Buffer<uint8_t> input(kWidth, kHeight, channels, 0, (layout == kChunky)); channels 60 apps/templates/tests/example_test.cpp Buffer<uint8_t> output(kWidth, kHeight, channels, 0, (layout == kChunky)); channels 78 apps/templates/tests/example_test.cpp ExampleFunc example = exampleFuncs[channels-1][imp]; channels 108 apps/templates/tests/example_test.cpp for (int channels = 1; channels <= 4; channels++) { channels 109 apps/templates/tests/example_test.cpp errors += run_test(uc, channels, kCPU, kChunky); channels 110 apps/templates/tests/example_test.cpp errors += run_test(uc, channels, kCPU, kPlanar); channels 111 apps/templates/tests/example_test.cpp errors += run_test(uc, channels, kGLSL, kChunky); channels 114 apps/templates/tests/example_test.cpp errors += run_test(uc, channels, kGLSL, kPlanar); channels 187 python_bindings/python/Image.cpp return im.channels(); channels 86 python_bindings/python/Param.cpp .def("channels", &ImageParam::channels, p::arg("self"), channels 224 src/Buffer.h static Buffer<T> make_interleaved(int width, int height, int channels, const std::string &name = "") { channels 225 src/Buffer.h return Buffer<T>(Runtime::Buffer<T>::make_interleaved(width, height, channels), channels 229 src/Buffer.h static Buffer<> make_interleaved(Type t, int width, int height, int channels, const std::string &name = "") { channels 230 src/Buffer.h return Buffer<>(Runtime::Buffer<>::make_interleaved(t, width, height, channels), channels 234 src/Buffer.h static Buffer<T> make_interleaved(T *data, int width, int height, int channels, const std::string &name = "") { channels 235 src/Buffer.h return Buffer<T>(Runtime::Buffer<T>::make_interleaved(data, width, height, channels), channels 240 src/Buffer.h make_interleaved(Type t, T *data, int width, int height, int channels, const std::string &name = "") { channels 242 src/Buffer.h return Buffer<T2>(Runtime::Buffer<T2>::make_interleaved(t, data, width, height, channels), channels 327 src/Buffer.h HALIDE_BUFFER_FORWARD_CONST(channels) channels 109 src/OutputImageParam.h EXPORT Expr channels() const; channels 927 src/runtime/HalideBuffer.h int channels() const { channels 1293 src/runtime/HalideBuffer.h static Buffer<void, D> make_interleaved(halide_type_t t, int width, int height, int channels) { channels 1294 src/runtime/HalideBuffer.h Buffer<void, D> im(t, channels, width, height); channels 1306 src/runtime/HalideBuffer.h static Buffer<T, D> make_interleaved(int width, int height, int channels) { channels 1307 src/runtime/HalideBuffer.h Buffer<T, D> im(channels, width, height); channels 1315 src/runtime/HalideBuffer.h make_interleaved(halide_type_t t, T *data, int width, int height, int channels) { channels 1316 src/runtime/HalideBuffer.h Buffer<add_const_if_T_is_const<void>, D> im(t, data, channels, width, height); channels 1323 src/runtime/HalideBuffer.h static Buffer<T, D> make_interleaved(T *data, int width, int height, int channels) { channels 1324 src/runtime/HalideBuffer.h Buffer<T, D> im(data, channels, width, height); channels 817 src/runtime/opengl.cpp const int channels = (buf->dimensions > 2) ? buf->dim[2].extent : 0; channels 826 src/runtime/opengl.cpp if (channels <= 2 && !global_state.have_texture_rg) { channels 833 src/runtime/opengl.cpp switch(channels) { channels 848 src/runtime/opengl.cpp error(user_context) << "OpenGL: Invalid number of color channels: " << channels; channels 887 src/runtime/opengl.cpp GLint *height, GLint *channels) { channels 903 src/runtime/opengl.cpp *channels = (buf->dimensions > 2) ? buf->dim[2].extent : 1; channels 1019 src/runtime/opengl.cpp GLint width, height, channels; channels 1020 src/runtime/opengl.cpp if (!get_texture_dimensions(user_context, buf, &width, &height, &channels)) { channels 1109 src/runtime/opengl.cpp int channels = (src_buf->dimensions > 2) ? src_buf->dim[2].extent : 1; channels 1114 src/runtime/opengl.cpp int dstidx = y * width * channels; channels 1117 src/runtime/opengl.cpp for (int c = 0; c < channels; c++) { channels 1141 src/runtime/opengl.cpp int channels = std_min<int>(src_channels, dst_channels); channels 1147 src/runtime/opengl.cpp for (int c = 0; c < channels; c++) { channels 129 src/runtime/write_debug_image.cpp int32_t channels; channels 135 src/runtime/write_debug_image.cpp channels = shape[2].extent; channels 138 src/runtime/write_debug_image.cpp channels = shape[3].extent; channels 158 src/runtime/write_debug_image.cpp tag++->assign16(262, 1, channels >= 3 ? 2 : 1); // PhotometricInterpretation -- black is zero or RGB channels 159 src/runtime/write_debug_image.cpp tag++->assign32(273, channels, sizeof(header)); // Rows per strip channels 160 src/runtime/write_debug_image.cpp tag++->assign16(277, 1, int16_t(channels)); // Samples per pixel channels 162 src/runtime/write_debug_image.cpp tag++->assign32(279, channels, channels 163 src/runtime/write_debug_image.cpp (channels == 1) ? channels 166 src/runtime/write_debug_image.cpp channels * sizeof(int32_t)); // strip byte counts, bug if 32-bit truncation channels 188 src/runtime/write_debug_image.cpp if (channels > 1) { channels 189 src/runtime/write_debug_image.cpp int32_t offset = sizeof(header) + channels * sizeof(int32_t) * 2; channels 191 src/runtime/write_debug_image.cpp for (int32_t i = 0; i < channels; i++) { channels 199 src/runtime/write_debug_image.cpp for (int32_t i = 0; i < channels; i++) { channels 100 test/common/check_call_graphs.h for (int z = 0; z < im.channels(); z++) { channels 25 test/correctness/float16_t_image_type.cpp h_assert(simple.channels() == 1, "invalid channels"); channels 31 test/correctness/float16_t_implicit_upcast.cpp h_assert(simple.channels() == 1, "invalid channels"); channels 13 test/correctness/implicit_args_tests.cpp for (int z = 0; z < im.channels(); z++) { channels 9 test/correctness/partition_loops.cpp for (int c = 0; c < input.channels(); c++) { channels 39 test/correctness/partition_loops.cpp for (int c = 0; c < input.channels(); c++) { channels 152 test/correctness/reduction_non_rectangular.cpp for (int z = 0; z < im.channels(); z++) { channels 64 test/correctness/tuple_update_ops.cpp for (int j = 0; j < a.channels(); j++) { channels 26 test/correctness/vectorized_load_from_vectorized_allocation.cpp for (int z = 0; z < im.channels(); z++) { channels 31 test/error/float16_t_implicit_downcast.cpp h_assert(simple.channels() == 1, "invalid channels"); channels 6 test/generator/blur2x2_generator.cpp Halide::Expr is_interleaved(const T &p, int channels = 3) { channels 7 test/generator/blur2x2_generator.cpp return p.dim(0).stride() == channels && p.dim(2).stride() == 1 && p.dim(2).extent() == channels; channels 11 test/generator/blur2x2_generator.cpp Halide::Expr is_planar(const T &p, int channels = 3) { channels 12 test/generator/blur2x2_generator.cpp return p.dim(0).stride() == 1 && p.dim(2).extent() == channels; channels 13 test/generator/example_aottest.cpp void verify(const Buffer<int32_t> &img, float compiletime_factor, float runtime_factor, int channels) { channels 29 test/generator/example_aottest.cpp const int channels = 3; channels 33 test/generator/example_aottest.cpp verify(output, compiletime_factor, 3.3245f, channels); channels 36 test/generator/example_aottest.cpp verify(output, compiletime_factor, -1.234f, channels); channels 40 test/generator/example_generator.cpp GeneratorParam<int> channels{ "channels", 3 }; channels 81 test/generator/example_generator.cpp .bound(c, 0, channels) channels 10 test/generator/example_jittest.cpp void verify(const Buffer<int32_t> &img, float compiletime_factor, float runtime_factor, int channels) { channels 31 test/generator/stubtest_aottest.cpp int channels = std::max(1, std::min(input.channels(), output.channels())); channels 34 test/generator/stubtest_aottest.cpp for (int c = 0; c < channels; c++) { channels 38 test/generator/stubtest_jittest.cpp int channels = std::max(1, std::min(input.channels(), output.channels())); channels 41 test/generator/stubtest_jittest.cpp for (int c = 0; c < channels; c++) { channels 34 test/generator/stubuser_aottest.cpp int channels = std::max(1, std::min(input.channels(), output.channels())); channels 37 test/generator/stubuser_aottest.cpp for (int c = 0; c < channels; c++) { channels 8 test/generator/tiled_blur_generator.cpp Halide::Expr is_interleaved(const T &p, int channels = 3) { channels 9 test/generator/tiled_blur_generator.cpp return p.dim(0).stride() == channels && p.dim(2).stride() == 1 && p.dim(2).extent() == channels; channels 13 test/generator/tiled_blur_generator.cpp Halide::Expr is_planar(const T &p, int channels = 3) { channels 14 test/generator/tiled_blur_generator.cpp return p.dim(0).stride() == 1 && p.dim(2).extent() == channels; channels 15 test/opengl/conv_select.cpp const int width = 10, height = 10, channels = 4, res_channels = 2; channels 16 test/opengl/conv_select.cpp Buffer<float> input(width, height, channels); channels 100 test/opengl/select.cpp for (int c = 0; c < image.channels(); c++) { channels 142 test/opengl/select.cpp const int channels = 3; channels 143 test/opengl/select.cpp f.bound(c, 0, channels).glsl(x, y, c); channels 147 test/opengl/select.cpp Buffer<uint8_t> out = f.realize(width, height, channels, target); channels 178 test/opengl/select.cpp const int channels = 3; channels 179 test/opengl/select.cpp f.bound(c, 0, channels).glsl(x, y, c); channels 183 test/opengl/select.cpp Buffer<uint8_t> out = f.realize(width, height, channels, target); channels 13 test/opengl/sum_reduction.cpp const int width = 10, height = 10, channels = 4; channels 14 test/opengl/sum_reduction.cpp Buffer<float> input(width, height, channels); channels 30 test/opengl/sum_reduction.cpp Buffer<float> result = g.realize(width, height, channels, target); channels 13 test/opengl/sumcolor_reduction.cpp const int width = 10, height = 10, channels = 3; channels 14 test/opengl/sumcolor_reduction.cpp Buffer<float> input(width, height, channels); channels 35 test/opengl/testing.h for (int c = 0; c < buf.channels(); c++) { channels 39 test/opengl/testing.h for (int c = 0; c < buf.channels(); c++) { channels 122 tools/halide_image_info.h std::cout << tag << " channels = " << img.channels() << std::endl; channels 180 tools/halide_image_io.h int channels = png_get_channels(png_ptr, info_ptr); channels 188 tools/halide_image_io.h if (channels != 1) { channels 189 tools/halide_image_io.h *im = ImageType(width, height, channels); channels 207 tools/halide_image_io.h int64_t c_stride = (im->channels() == 1) ? 0 : ((&(*im)(0, 0, 1)) - (&(*im)(0, 0, 0))); channels 213 tools/halide_image_io.h for (int c = 0; c < im->channels(); c++) { channels 223 tools/halide_image_io.h for (int c = 0; c < im->channels(); c++) { channels 253 tools/halide_image_io.h if (!check(im.channels() > 0 && im.channels() < 5, channels 259 tools/halide_image_io.h color_type = color_types[im.channels() - 1]; channels 295 tools/halide_image_io.h int64_t c_stride = (im.channels() == 1) ? 0 : ((&im(0, 0, 1)) - (&im(0, 0, 0))); channels 304 tools/halide_image_io.h for (int c = 0; c < im.channels(); c++) { channels 315 tools/halide_image_io.h for (int c = 0; c < im.channels(); c++) { channels 411 tools/halide_image_io.h unsigned int num_channels = im.channels(); channels 476 tools/halide_image_io.h int channels = 3; channels 477 tools/halide_image_io.h *im = ImageType(width, height, channels); channels 521 tools/halide_image_io.h if (!check(im.channels() == 3, "save_ppm() requires a 3-channel image.\n")) { return false; } channels 530 tools/halide_image_io.h int width = im.width(), height = im.height(), channels = im.channels(); channels 536 tools/halide_image_io.h if (channels == 3) { channels 547 tools/halide_image_io.h for (int c = 0; c < channels; c++) { channels 559 tools/halide_image_io.h if (channels == 3) { channels 577 tools/halide_image_io.h for (int c = 0; c < channels; c++) { channels 601 tools/halide_image_io.h int channels = 1; channels 603 tools/halide_image_io.h channels = im.channels(); channels 608 tools/halide_image_io.h (channels == 1 || channels 609 tools/halide_image_io.h channels == 3), channels 632 tools/halide_image_io.h cinfo.input_components = channels; channels 633 tools/halide_image_io.h if (channels == 3) { channels 644 tools/halide_image_io.h std::vector<JSAMPLE> row(im.width() * channels); channels 654 tools/halide_image_io.h for (int c = 0; c < channels; c++) { channels 692 tools/halide_image_io.h int channels = cinfo.output_components; channels 693 tools/halide_image_io.h if (channels > 1) { channels 694 tools/halide_image_io.h *im = ImageType(cinfo.output_width, cinfo.output_height, channels); channels 698 tools/halide_image_io.h std::vector<JSAMPLE> row(im->width() * channels); channels 703 tools/halide_image_io.h if (channels > 1) { channels 705 tools/halide_image_io.h for (int c = 0; c < channels; c++) { channels 95 tutorial/lesson_02_input_image.cpp brighter.realize(input.width(), input.height(), input.channels()); channels 203 tutorial/lesson_12_using_the_gpu.cpp Buffer<uint8_t> output(input.width(), input.height(), input.channels()); channels 235 tutorial/lesson_12_using_the_gpu.cpp curved.realize(input.width(), input.height(), input.channels()); channels 238 tutorial/lesson_12_using_the_gpu.cpp for (int c = 0; c < input.channels(); c++) { channels 263 tutorial/lesson_12_using_the_gpu.cpp Buffer<uint8_t> reference_output(input.width(), input.height(), input.channels());