RU:Interfaces

From AVObjects Knowledge Base
(Difference between revisions)
Jump to: navigation, search
Line 62: Line 62:
 
|nReserved  
 
|nReserved  
 
|Library specific variable (see library description)
 
|Library specific variable (see library description)
 +
|-
 +
|pbReserved
 +
|Library specific variable (see library description)
 +
|}
 +
 +
====CanPutFrame====
 +
<syntaxhighlight lang=cpp>
 +
HRESULT CanPutFrame(
 +
    [in] int nStream,
 +
    [in] DWORD nWait
 +
    );
 +
</syntaxhighlight>
 +
Метод проверяет возможность отправки данных объекту
 +
{|
 +
|-
 +
|Parameters:
 +
|
 +
|-
 +
|nStream
 +
|Number of stream
 +
|-
 +
|nWait
 +
|Время ожидания ответа в мкс.
 +
|}
 +
 +
====PutFrame====
 +
<syntaxhighlight lang=cpp>
 +
HRESULT PutFrame(
 +
    [in] int nStream,
 +
    [in] BYTE* pbBuffer,
 +
    [in] DWORD cbActual,
 +
    [in] DWORD dwFlags,
 +
    [in] REFERENCE_TIME tS,
 +
    [in] REFERENCE_TIME tE,
 +
    [in] BYTE* pbReserved
 +
    );
 +
</syntaxhighlight>
 +
Метод для отправки данных объекту
 +
 +
{|
 +
|-
 +
|Parameters:
 +
|
 +
|-
 +
|nStream
 +
|Number of stream
 +
|-
 +
|pbBuffer
 +
|buffer with data.
 +
|-
 +
|cbActual
 +
|Size of data in buffer in bytes.
 +
|-
 +
|dwFlags 
 +
|Library specific bitmap (see library description)
 +
|-
 +
|tS
 +
|Start time
 +
|-
 +
|tE 
 +
|End time
 
|-
 
|-
 
|pbReserved
 
|pbReserved
 
|Library specific variable (see library description)
 
|Library specific variable (see library description)
 
|}
 
|}

Revision as of 15:02, 25 June 2014

Этот раздел содержит ссылочную информацию об интерфейсах и методах AVObjects Media Library.

Contents

IAVObject interface

Init

HRESULT Init()

Производит инициализацию данных объекта, для объектов - сплитеров или ридеров производит открытие файлов и начальный парсинг.

Close

HRESULT Close()

Освобождает ресурсы используемые объектом, закрывает файлы, освобождает блоки памяти.

BeginFlush

HRESULT BeginFlush()

EndFlush

HRESULT EndFlush()

Convert

HRESULT Convert(
    [in] BYTE* pbSrc,
    [in] int cbSrc,
    [in] BYTE* pbDst,
    [in] int cbDst,
    [out] int* pcbActual,
    [in] int nReserved,
    [in] BYTE* pbReserved
    );

Method for synchronous conversions. If this method is implemented then methods for asynchronous conversions (CanPutFrame(), PutFrame(), CanGetFrame(), GetFrame()) can be not implemented.

Parameters:
pbSrc Source buffer for conversion.
cbSrc Size of data in source buffer in bytes.
pbDst Destination buffer for result of conversion.
cbDst Size of destination buffer in bytes
pcbActual Size of returned data in destination buffer in bytes
nReserved Library specific variable (see library description)
pbReserved Library specific variable (see library description)

CanPutFrame

HRESULT CanPutFrame(
    [in] int nStream,
    [in] DWORD nWait
    );

Метод проверяет возможность отправки данных объекту

Parameters:
nStream Number of stream
nWait Время ожидания ответа в мкс.

PutFrame

HRESULT PutFrame(
    [in] int nStream,
    [in] BYTE* pbBuffer,
    [in] DWORD cbActual, 
    [in] DWORD dwFlags,
    [in] REFERENCE_TIME tS,
    [in] REFERENCE_TIME tE,
    [in] BYTE* pbReserved
    );

Метод для отправки данных объекту

Parameters:
nStream Number of stream
pbBuffer buffer with data.
cbActual Size of data in buffer in bytes.
dwFlags Library specific bitmap (see library description)
tS Start time
tE End time
pbReserved Library specific variable (see library description)
Personal tools