[Liboil] 2D convolution with Orc

jcupitt at gmail.com jcupitt at gmail.com
Mon Oct 18 01:13:18 PDT 2010


Hi David,

On Monday, October 18, 2010, David Schleef <ds at entropywave.com> wrote:
> On Sun, Oct 17, 2010 at 05:44:15PM +0100, jcupitt at gmail.com wrote:
>> I've been tinkering with Orc trying to make a 2D convolution. It seems
>> to me that I'll need to use loadoffb to get the scattered pixel values
>> from my source array, but the 'off' part needs to be a parameter or
>> constant. This means (I think) that I need to pass in the offset for
>> every array element as a separate parameter.
>
> This is an area I'm actively working on.  Right now, the best you can
> do is about 3x3, using 3 separate source arrays and loadoff[bwl].  This,
> combined with a multiplication value for each element, uses a lot of
> constants, which are limited to 16 right now.  (It uses either 9+2 or
> 9+6, depending on how the constants get folded.)

Thanks, this all sounds promising. Is there a 16 limit for number of
parameters as well? Or just 16 for both?

John


More information about the Liboil mailing list