What kind of variable should I initialize and how do I do it?
For example
byte[][][] data = ?????;
The function is from LibJpeg.NET library. The function definition is
Int32 jpeg_read_raw_data (
Byte[][][] data,
Int32 max_lines
)
There is no good documentation for this function, so I don’t know what to send it, but I want to try to send something and see what the function will return.
The problem is that I don’t know how to call it.
After a short look into the sources of LibJpeg.NET it looks like you should initialize the first dimension of the
dataarray with the number of scan lines:The rest of the array is filled when reading the raw data.
I’m not too familiar with that API so I don’t know how you would get the number of scan lines though.