Image、Audio 及 Video Extenders 管理與程式設計

DBvInsertShot


影像 音效 視訊
    X

在快照型錄中插入一個快照。

授權

插入、控制

檔案庫
OS/2 與 Windows AIX、HP-UX 及 Solaris
dmbshot.lib libdmbshot.a (AIX)

libdmbshot.sl (HP-UX)

libdmbshot.so (Solaris)

併入檔

dmbshot.h

語法

long DBvInsertShot(
      char *catalogName,
      DBvShotType *shot,
      DBvIOType *video,
      char *shotHandle,
      SQLHDBC hdbc
      );

參數

catalogName (in)
型錄的名稱。

shot (in)
指向要插入到型錄中之擴充快照的指標。

shotHandle (in)
快照 handle。

hdbc (in)
取自 SQLConnect 中的資料庫 handle。

錯誤碼

MMDB_SUCCESS
API 呼叫程序執行成功。

MMDB_RC_ACCESS
呼叫程式不具備適當的存取權限。

MMDB_RC_NOT_CONNECTED
應用程式與資料庫之間無有效連接。

MMDB_RC_INVALID_CATALOG
型錄無效或不存在。

範例

在快照型錄 hotshots 中插入一個快照:

    rc = DBvInsertShot(
                "hotshots",           /* shot catalog name */
    shot,                          /* pointer to shot structure */
       video,              /* pointer to video structure */
    shotHandle,                    /* pointer to shot handle */
                hdbc);                /* database connection handle */


[ 頁面頂端 | 前一頁 | 下一頁 | 目錄 | 索引 ]