Solved

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

Posted on 2003-11-07
4
263 Views
Last Modified: 2010-04-05
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
0
Comment
Question by:s8133252
  • 2
4 Comments
 
LVL 33

Accepted Solution

by:
Slick812 earned 500 total points
ID: 9707869
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
 
LVL 33

Expert Comment

by:Slick812
ID: 9707876
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now