|
Hi,
I am trying to read an excel sheet content and exporting it into a file.
Can any one help me how to do it.
Thanks in advance.
|
|
|
|
|
|
I have been working on GDI previously. It is fine, but all the graphics libraries including GDI have limits.
Eg:- Let's say you want to create a gradient with GDI (or any other API), of course they're pre-defined functions for you to use. But What if I want to create my own function for a gradient effect. Maybe with the SetPixel() function.
But those APIs (GDI, GDI+ ....) are high level APIs. Creating such effects with a high level library slows down the program (because, there's a long pipeline from a GDI call to the Graphics Card).
So, What is the lowest possible level of graphics programming on Windows ? Can I program directly to the GPU ? Or Are there any low level Graphics libraries available on Windows ?
|
|
|
|
|
|
yeaaah... It's a pretty good library for Graphics. But it's probably not the one I'm looking for, i guess.
Alright, then, What's under DirectX or GDI or etc.. On what environments are those APIs on ?
|
|
|
|
|
|
Well, that seems a nice one
Thanks
Pravinda
|
|
|
|
|
GDI is actually pretty low-level... not sure what you're trying to accomplish (overall) but maybe you're doing something wrong if GDI is too slow. Remember that you can draw off screen then transition that over to the screen, that method is blazing fast.
|
|
|
|
|
Never heard about a such thing before, but soundly cool. Any clue of how to ?
|
|
|
|
|
BitBlt() is the function that does the move (commonly referred to as "bit blitting")... so just look up methods of using that effectively.
|
|
|
|
|
ooh the Memory DC, it's useful
|
|
|
|
|
|
The lowest level API that you can work with, while still using GDI, is DIBSections. DIBSections allow you to update the pixels of a bitmap manually and draw that bitmap using an HDC. They have always been fast enough, and are many times faster than using the SetPixel method. Hope this helps.
|
|
|
|
|
Hi All,
I want to extract frames from a compressed AVI video file.
I have used WIN32 Apis such as "AVIStreamGetFrameOpen" to extract frames from a uncompressed AVI video file.But for a compressed AVI video file the API "AVIStreamGetFrameOpen" returns NULL.Are there APIs to extract frames from a compressed AVI as well as uncompressed AVI file.
Please let me know.
Thanking in advance,
ashwath.
|
|
|
|
|
Maybe this[^] will help you ...
|
|
|
|
|
HI,
I saw the link but it is not helping me.I have to first decompress the compressed AVI file and then extract individual frames from that decompressed AVI file.
Could you please help me in this.
Thanking in advance,
Ashwath.
|
|
|
|
|
Hi, Ashwath. If you are allowed to use ffmpeg in your project then the solution code becomes trivial. Else you will need to check the documentation for the ICDecompress function. You are using the win32 apis to load your avi file, they are very slow and require you to use COM interfaces to decompress your files - these rely on installed codecs on your machine. Using ffmpeg gives you a solution which comes with its codecs built right into the library. Hope this helps.
|
|
|
|
|
Hi ,
Thanks for your reply.
My aim is to decompress the AVI file and extract each frames pixel values into an array for futher processing.
Is it possible with FFMPEG or using IDecompress function?
Please do let me know.
Thanks,
ashwath.
|
|
|
|
|
Hi, it is possible to do this using both methods:, but it is easier using ffmpeg. I would recommend you Google ffmpeg and check their examples, you could accomplish your task in about 60 lines of code. Happy coding
|
|
|
|
|
Thanks a lot for your reply.
|
|
|
|
|
Hi ,
Thanks for ur suggestion.I have two AVI files.One is compressed and the other is uncompressed.I want to extract the frames from both the AVI files.Will the FFMPEG library work for both compressed and uncompressed AVI files?
Please suggest me on this.
Thanking you in advance,
Ashwath.
|
|
|
|
|
Hi Ashwath, the FFMPEG library will work for both files. As a side note, the library comes with pre built executables which you could use to immediately extract the frames you need, there are tons of articles online about how to do this - just download the library an programs from here and check their online documentation for the parameters you need to extract the frames.
|
|
|
|
|
Hi ,
Actually what i am doing is that i have created a MFC dialog based GUI.And i want to extract the frame buffer from the compressed AVI file by decompressing it first and then copying the buffer values to unsigned char array and display on a picture control as a bitmap image.And i want to extract all the files in the compressed AVI file in this way and display one by one on the picture control on the MFC GUI.
Is it possible to do the above.
Please guide me on this.
Thanking in advance,
ashwath.
|
|
|
|
|
You can get an image from the avi stream using ffmpeg, into an av_picture structure, then use the libswscale functions to scale and convert the image into different resolutions or formats, and finally draw the buffer to a control on your mfc gui. You should really Google for code samples.
|
|
|
|
|
Hi,
In my application, first the CMainFrame construcotr is getting called and then only InitInstance() is called.
What may be the problem?
Pls help me.
Anu
|
|
|
|