swh:1:snp:2c68c8bd649bf1bd2cf3bf7bd4f98d247b82b5dc
Raw File
Tip revision: 76a8c27a649706a9b18c5b0d19813c62100fb256 authored by Jing Pu on 17 December 2018, 21:46:11 UTC
force a builder rerun.
Tip revision: 76a8c27
halide_image.h
#ifndef HALIDE_TOOLS_IMAGE_H
#define HALIDE_TOOLS_IMAGE_H

/** \file
 *
 * This allows code that relied on halide_image.h and
 * Halide::Tools::Image to continue to work with newer versions of
 * Halide where HalideBuffer.h and Halide::Buffer are the way to work
 * with data.
 *
 * Besides mapping Halide::Tools::Image to Halide::Buffer, it defines
 * USING_HALIDE_BUFFER to allow code to conditionally compile for one
 * or the other.
 *
 * It is intended as a stop-gap measure until the code can be updated.
 */

#include "HalideBuffer.h"

namespace Halide {
namespace Tools {

#define USING_HALIDE_BUFFER

template< typename T >
using Image = Buffer<T>;

}   // namespace Tools
}   // mamespace Halide

#endif  // #ifndef HALIDE_TOOLS_IMAGE_H
back to top