🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.videoio
クラス IStreamReader
- java.lang.Object
-
- org.opencv.videoio.IStreamReader
public class IStreamReader extends java.lang.Objectデータストリーム読み込みインターフェース
-
-
フィールドの要約
フィールド Modifier and Type Field Description protected longnativeObj
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedIStreamReader()Constructor of streaming callback object with abstract 'read' and 'seek' methods that should be implemented in Java code.
NOTE: Implemented callbacks should be called from the creation thread to avoid JNI performance degradationprotectedIStreamReader​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static IStreamReader__fromPtr__​(long addr)longgetNativeObjAddr()longread​(byte[] buffer, long size)Read bytes from streamlongseek​(long offset, int origin)Sets the stream position
-
-
-
コンストラクタの詳細
-
IStreamReader
protected IStreamReader​(long addr)
-
IStreamReader
protected IStreamReader()
Constructor of streaming callback object with abstract 'read' and 'seek' methods that should be implemented in Java code.
NOTE: Implemented callbacks should be called from the creation thread to avoid JNI performance degradation
-
-
メソッドの詳細
-
getNativeObjAddr
public long getNativeObjAddr()
-
__fromPtr__
public static IStreamReader __fromPtr__​(long addr)
-
read
public long read​(byte[] buffer, long size)Read bytes from stream- 引数:
buffer- 少なくともsizeバイトの、すでに確保済みのバッファsize- 読み込む最大バイト数- 戻り値:
- 実際に読み取ったバイト数
-
seek
public long seek​(long offset, int origin)Sets the stream position- 引数:
offset- シーク offsetorigin- SEEK_SET / SEEK_END / SEEK_CUR SEE: fseek- 戻り値:
- 自動生成
-
-