Example #1
0
zimg::AlignedVector<char> alloc_filter_tmp(const zimg::IZimgFilter &filter, const Frame &in, Frame &out)
{
	FakeAllocator alloc;

	alloc.allocate(filter.get_context_size());
	alloc.allocate(filter.get_tmp_size(0, out.width()));

	return allocate_buffer(alloc.count(), PixelType::BYTE);
}
Example #2
0
size_t Resize::tmp_size(PixelType type) const
{
	FakeAllocator alloc;
	get_context(alloc, type);
	return alloc.count();
}