How to put a Frame (Avi frame) from the memory into two Dimensional array?

I used "AviStreamGetFrame" to access a specific Frame From a AVI File.
I want to put a RGB Bytes into a two Dimensional array For this Frame.
How can I to do this? please help me
s8133252Asked:
Who is Participating?
 
Slick812Commented:
I think the AviStreamGetFrame gives you a DIB bitmap memory block, so this will already have a Block of memory that defines the 2 dimentional block of pixel  colors, although this is a single block of memory, that you can get each scanline from it, what do you mean by -
"put a RGB Bytes into a two Dimensional array For this Frame"

what is this two Dimensional array you want?
0
 
Slick812Commented:
you may be better of if you convert the DIB bitmap memory block from AviStreamGetFrame to a Delphi TBitmap and use the dephi graphics methods for a bitmap
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.