realbasic-nug
[Top] [All Lists]

array declare parameter

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: array declare parameter
From: Mike Woodworth <mike at divergentmedia dot com>
Date: Fri, 28 Apr 2006 00:17:08 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
hey,

i'm hoping someone here has run into this problem before and can steer me in the right direction. I'm trying to call the following declare:

  vImage_Error vImageMatrixMultiply_Planar8 (
  const vImage_Buffer *srcs[],
  const vImage_Buffer *dests[],
  uint32_t src_planes,
  uint32_t dest_planes,
  const int16_t matrix[],
  int32_t divisor,
  const int16_t *pre_bias,
  const int32_t *post_bias,
  vImage_Flags flags
  );

for the most part it doesn't scare me... the same kinda stuff i've done piles before - but the line const int16_t matrix[] has me scratching my head. the array i'm trying to pass in is 9 values. I've built a memoryblock of size 18, and passed it to the declare as 2 int64 and an int16. i've written the declare as:

declare function vImageMatrixMultiply_Planar8 lib "Accelerate" (srcs as Ptr, dests as Ptr, src_planes as integer, dest_planes as integer, matrix1 as int64, matrix2 as int64,matrix3 as int16, divisor as integer, prebias as integer, postbias as integer, flags as integer) as Integer

however this crashes the app.

mike
--
Mike Woodworth
mike at divergentmedia dot com



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>