Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2003-11-07
4
265 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 34

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 34

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

766 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