video_capturer.h

このファイルには、ビデオキャプチャ機能の型定義と、その操作に役立ついくつかの関数の宣言が含まれています。

データ構造: otc_video_capturer_settings, otc_video_capturer_callbacks

内容: config.h, video_frame.h

typedef otc_video_capturer

ビデオキャプチャ装置のタイプ定義。

typedef struct otc_video_capturer otc_video_capturer;

enum otc_video_capturer_content_hint_type

の値を定義します。 content_hint パラメーターの otc_video_capturer_set_content_hint 関数である。

名称 価値 説明
OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_NONE 0 ヒントは指定されていません。デフォルト値「none」が使用されます。
OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_MOTION 1 value = "motion"
OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_DETAIL 2 value = "detail"。
OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_TEXT 3 value = "text"。

機能

名称 説明
otc_video_capturer_provide_frame(capturer, rotation, frame) → {otc_status} ビデオキャプチャ機能にビデオフレームを提供します。
otc_video_capturer_set_content_hint(capturer, content_hint) → {otc_status const} ビデオコンテンツのヒントを、 otc_video_capturer_content_hint_type.
otc_video_capturer_get_content_hint(capturer) → {enum otc_video_capturer_content_hint_type const} キャプチャ対象の動画ソースに対する content_hint の値を返します。

otc_video_capturer_provide_frame(capturer, rotation, frame) →{otc_status}

ビデオキャプチャ機能にビデオフレームを提供します。

パラメータ:
名称 タイプ 説明
capturer const otc_video_capturer * ビデオキャプチャインスタンスへのポインタ。
rotation イント 動画フレームの回転。
frame const otc_video_frame * 渡されるビデオフレームインスタンスへのポインタ。

参照: : - otc_video_frame

リターンズ

エラーか成功かを示す戻り値。

otc_video_capturer_set_content_hint(capturer, content_hint) →{otc_status const}

ビデオコンテンツのヒントを、 otc_video_capturer_content_hint_type. APIが上記で指定された列挙型値以外の値を受け取った場合、その旨の警告をログに記録します。

パラメータ:
名称 タイプ 説明
capturer const otc_video_capturer * キャプチャ元へのポインタ
content_hint enum otc_video_capturer_content_hint_type 型 の列挙値 otc_video_capturer_content_hint_type.
リターンズ

失敗または成功を示す戻り値。

otc_video_capturer_get_content_hint(capturer) →{enum otc_video_capturer_content_hint_type const}

キャプチャ対象の動画ソースに対する content_hint の値を返します。

パラメータ:
名称 タイプ 説明
capturer const otc_video_capturer * キャプチャ元へのポインタ。
リターンズ

型 の列挙値 otc_video_capturer_content_hint_type