DGdecode.dll >>
FORUM for IT

FORUM for IT



SearchSearch   Users   Registration   Entrance
Today: 18.09.2025 - 18:03:01
Pages:  1  2  

DGdecode.dll

AuthorMessage

JAlfredPrufrock

user




Statistics:
Messages: 2,128
Registration: 08.28.2003

Yep I know so many times it as been asked how to get a bitmap out of dgdecode.dll. I already had a look at several sources like Aquaplanings, the "Getpic" code of Donald etc. but I wasnt able to see the right (API?)function to convert that RGB Data at the *rgb24 Pointer to a regular Bitmap for further use. BTW: Parsing out Width, Height, fps and lenght of the d2v works perfect. Im working in PureBasic and as PBs Syntax is very easy you directly can see(understand the steps in my code). Heres the documentated code sniplet: Code:

---------------------
Message # 1 24.04.20 - 05:49:04
RE: DGdecode.dll

M3Jokster

user




Statistics:
Messages: 5,616
Registration: 02.27.2001

Did you have a question or are you just contributing your code?

---------------------
Message # 2 24.04.20 - 05:56:27
RE: DGdecode.dll

Rahul325

user




Statistics:
Messages: 4,928
Registration: 02.26.2001

Noone an idea? Donald maybe?

---------------------
Message # 3 24.04.20 - 06:01:42
RE: DGdecode.dll

TomM

user




Statistics:
Messages: 784
Registration: 12.12.2002

I don't know of an API call to do it, but the code is simple. Please refer to DGIndex's SaveBMP() function.

---------------------
76 2002
Message # 4 24.04.20 - 06:06:10
RE: DGdecode.dll

BMDave

user




Statistics:
Messages: 218
Registration: 04.16.2003

ok Ill have a look at it thanks donald

---------------------
David
Message # 5 24.04.20 - 06:11:41
RE: DGdecode.dll

Roy Cya

user




Statistics:
Messages: 328
Registration: 12.02.2003

What are dll functions to obtain framerate, framecount and fps?

---------------------
Drink Responsibly, Drive FAST! Roy C.
Message # 6 24.04.20 - 06:20:33
RE: DGdecode.dll

erniep

user




Statistics:
Messages: 11
Registration: 06.04.2003

Look at the VideoInfo Structure in my code right on top: Code:

---------------------
Ernie Peters 1999 M3 Coupe Dakar Yellow
Message # 7 24.04.20 - 06:25:27
RE: DGdecode.dll

Stav318is

user




Statistics:
Messages: 347
Registration: 10.16.2003

openMPEG2Source returns a VIDEOINFO*, from that you get what you're looking for. Note that VIDEOINFO is an AviSynth struct so you have to look in AviSynth.h for the prototype.

---------------------
Message # 8 24.04.20 - 06:36:23
RE: DGdecode.dll

CruizinKO

user




Statistics:
Messages: 113
Registration: 03.27.2001

Back to my question, I had a look at createBitmap() in getpic.c and SafeBMP() in dgindex.c. So I understand that *rgb24 will be a mem.pointer to a "naked" flipped RGB Data. Then the right values out of mpeg2source's VideoInfo will be set into a BITMAPINFOHEADER structure included in a BITMAPINFO structure at a setted memorypointer like *Bmp. Code:

---------------------
Message # 9 24.04.20 - 06:41:22
RE: DGdecode.dll

hyepwr

user




Statistics:
Messages: 214
Registration: 07.17.2003

Or use GetDIBits or SetDIBits, these will remap color space as needed.

---------------------
M3 HREs 3 pcs 12 x 20 rears 9.5 x 20 fronts Brembo big brakes / AAtuning exhaust, Groupe M intake / H&R coilovers / shark injected / VIS carbon hood / ACS front lip / Alpine DVD Navi with Audiobahnnnnnnnnnn blowin it up.___________________ http://img
Message # 10 24.04.20 - 06:46:29
RE: DGdecode.dll
Track Folders, Addictive Drums, Multi Out : Previous topic
Pages:  1  2  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants