Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2003-11-07
4
Medium Priority
?
270 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview
Suggested Courses

886 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