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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Select a Desired Video Codec ...
Maybe ICCompressorChoose()?
Tobia |
Ads |
#2
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|