A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Windows XP and video cards, drivers and similar
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Select a Desired Video Codec ...



 
 
Thread Tools Display Modes
  #1  
Old March 21st 03, 09:26 AM
Tobia Quantrill
external usenet poster
 
Posts: n/a
Default Select a Desired Video Codec ...

Maybe ICCompressorChoose()?

Tobia


Ads
  #2  
Old March 21st 03, 09:38 AM
Vipul Pathak
external usenet poster
 
Posts: n/a
Default Select a Desired Video Codec ...

No Actually, I don't want it to Display any DIALOG BOX ...
Just Selecting a Codec Programatically.




"Tobia Quantrill" wrote in message
...
Maybe ICCompressorChoose()?

Tobia




  #3  
Old March 22nd 03, 10:14 AM
Ted Ferenc
external usenet poster
 
Posts: n/a
Default Select a Desired Video Codec ...

Look in the msdn for

"Locating and Opening Compressors and Decompressors"

This gives an example

--

Ted Ferenc
This address used is maintained only for newsgroup posting.
Mail sent there may not be read by me for several days.
"Vipul Pathak" wrote in message
...
Hello Everybody,
I have a simple question. Please have a look on the code below.
I am Selecting a CODEC for compression. The Input format is specified.
The API "ICLocate()" Select a suitable Codec for me and return its

Handle.

I just want to know this Handle refers to which Codec ? There are many
codec's listed in System/Properties/Video Drivers. Which one is this ?

and also, What should I do if I want to select a particular Codec ?


//================================================== ========================
====
BITMAPINFO sLiveVideoFormat = {0} ;
HIC hCodecC = 0 ;

sLiveVideoFormat.bmiHeader.biSize = sizeof(BITMAPINFOHEADER) ;
sLiveVideoFormat.bmiHeader.biWidth = 160 ;
sLiveVideoFormat.bmiHeader.biHeight = 120 ;
sLiveVideoFormat.bmiHeader.biPlanes = 1 ;
sLiveVideoFormat.bmiHeader.biBitCount = 24 ;
sLiveVideoFormat.bmiHeader.biCompression = 0 ; // RGB
sLiveVideoFormat.bmiHeader.biSizeImage = 160 * 120 * (24 / 8) ;

hCodecC = ICLocate(ICTYPE_VIDEO, 0L, &(sLiveVideoFormat.bmiHeader), 0,
ICMODE_COMPRESS) ;


//================================================== ========================
====

Thank you.

-Vipul ;





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 01:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.