顯示廣告
隱藏 ✕
看板 kinomoto
作者 kinomoto(轉瞬為風)
標題 [筆記] DirectShow 設定
時間 2010年03月29日 Mon. AM 12:49:54


DS Setting

1. 設定 include 和 library
工具 → 選項 → 專案和方案 → VC++目錄 →
(a) Include檔案 → C:\Microsoft DirectX 9.0 SDK (Summer 2004)\Include
                   C:\Program Files\Microsoft DirectX 9.0 SDK (Summer
2004)\Samples\C++\DirectShow\BaseClasses
(b) 程式庫檔 → C:\Program Files\Microsoft DirectX 9.0 SDK (Summer 2004)

\Samples\C++\DirectShow\BaseClasses\Debug_Unicode
※記得編譯 BaseClasses
※需要修改原始函式庫
[1] COARefTime(LONG);
    operator=(LONG);

修改為
    COARefTime&operator=(LONG);

[2] LONG iLost = 0;
    for (long iDone = 0;

修改為
    LONG iLost=0;
    long iDone=0;
    for (iDone=0;

[3] for (Count = 0;Count < Result;Count++) {

修改為
    for (unsigned int Count = 0;Count < Result;Count++) {

[4] for (Count = PalLoCount;INT(Count) < min(PalHiStart,iColours);Count++) {

修改為
    for (unsigned int Count = PalLoCount;INT(Count) <
min(PalHiStart,iColours);Count++) {


[5] static g_dwLastRefresh = 0;

修改為
    static int g_dwLastRefresh = 0;

2. 設定字元集 (撰寫DirectShow檔案讀寫程式時使用)
專案 → 屬性 → 組態屬性 → 字元集 → 使用多位元組字元集

3. 加入 library
專案 → 屬性 →連結器 → 其他相依性 → 加入 strmbasd.lib Quartz.lib


--
※ 來源: DISP BBS (http://disp.cc)
※ 作者: kinomoto  來自: 140.112.175.128  時間: 2010-03-29 00:49:54
※ 看板: kinomoto 文章推薦值: 1 目前人氣: 0 累積人氣: 347 
( ̄︶ ̄)b z1987090 說讚!
e)編輯 d)刪除 ^x)轉錄 同主題: =)首篇 [)上篇 ])下篇