📄 vc25pro_doc_unaencoderapi.html
字号:
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaAbstractEncoder"><SPAN class="class">unaAbstractEncoder</SPAN></A>.read(buf: pointer; size: unsigned = 0): unsigned;</SPAN><P />
Reads data from the encoder output buffer.
<BR>Returns number of bytes read from output buffer.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaAbstractEncoder"><SPAN class="class">unaAbstractEncoder</SPAN></A>.availableOutputDataSize: unsigned;</SPAN><P />
Returns number of bytes available to read from output stream.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaAbstractEncoder"><SPAN class="class">unaAbstractEncoder</SPAN></A>.availableInputDataSize: unsigned;</SPAN><P />
Returns number of bytes awaiting to be processed in the input stream.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaAbstractEncoder"><SPAN class="class">unaAbstractEncoder</SPAN></A>.availableLazyDataSize: unsigned;</SPAN><P />
Returns number of bytes awaiting to be processed in the input stream of lazy thread.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaAbstractEncoder"><SPAN class="class">unaAbstractEncoder</SPAN></A>.inputChunkSize: unsigned;</SPAN><P />
Size of input chunk in bytes.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaAbstractEncoder"><SPAN class="class">unaAbstractEncoder</SPAN></A>.encodedDataSize: unsigned;</SPAN><P />
Number of bytes encoded so far.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaAbstractEncoder"><SPAN class="class">unaAbstractEncoder</SPAN></A>.errorCode: UNA_ENCODER_ERR;</SPAN><P />
Encoder status code.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaAbstractEncoder"><SPAN class="class">unaAbstractEncoder</SPAN></A>.priority: integer;</SPAN><P />
Priority of encoder thread.
Has meaning only when you are using lazyWrite().
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaAbstractEncoder"><SPAN class="class">unaAbstractEncoder</SPAN></A>.onDataAvailable: tUnaEncoderDataAvailableEvent;</SPAN><P />
Can be fired from internal thread, so do not use VCL calls in the handler.
If you assign a handler for this event, and will not change the copyToStream parameter, data will not be copied into output stream.
</TD></TR></TABLE></DIV>
<DIV><P /><H4>Class <A NAME="class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>(<A HREF="#class_unaAbstractEncoder"><SPAN class="class">unaAbstractEncoder</SPAN></A>)</H4><P />
Provides access to Blade MP3 encoder.
<BR>Requires Blade library DLL (BladeEnc.dll)
<P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.loadDLL(): int; virtual;</SPAN><P />
Loads Blade encoder DLL into process memory.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.unloadDLL(): int; virtual;</SPAN><P />
Unloads Blade encoder DLL from process memory.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.getVersion(); virtual;</SPAN><P />
Returns version of loaded Blade encoder.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.doOpen(): UNA_ENCODER_ERR; override;</SPAN><P />
Opens Blade encoder.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.doSetConfig(config: pointer): UNA_ENCODER_ERR; override;</SPAN><P />
Configures Blade encoder.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.doClose(): UNA_ENCODER_ERR; override;</SPAN><P />
Closes Blade encoder.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.doEncode(data: pointer; nBytes: unsigned; out bytesUsed: unsigned): UNA_ENCODER_ERR; override;</SPAN><P />
Encodes a chunk of data.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">constructor <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.create(const dllPathAndName: string = ''; priority: integer = THREAD_PRIORITY_NORMAL);</SPAN><P />
Creates Blade encoder API provider.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.AfterConstruction(); override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.BeforeDestruction(); override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>.version: PBE_VERSION;</SPAN><P />
Version of Blade encoder.
</TD></TR></TABLE></DIV>
<DIV><P /><H4>Class <A NAME="class_unaLameMp3Enc"><SPAN class="class">unaLameMp3Enc</SPAN></A>(<A HREF="#class_unaBladeMp3Enc"><SPAN class="class">unaBladeMp3Enc</SPAN></A>)</H4><P />
Provides access to Lame MP3 encoder.
<BR>Requires Lame library DLL (lame_enc.dll)
<P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaLameMp3Enc"><SPAN class="class">unaLameMp3Enc</SPAN></A>.loadDLL(): int; override;</SPAN><P />
Loads Lame encoder DLL into process memory.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaLameMp3Enc"><SPAN class="class">unaLameMp3Enc</SPAN></A>.unloadDLL(): int; override;</SPAN><P />
Unloads Lame encoder DLL into process memory.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaLameMp3Enc"><SPAN class="class">unaLameMp3Enc</SPAN></A>.getVersion(); override;</SPAN><P />
Returns version of loaded Lame encoder.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaLameMp3Enc"><SPAN class="class">unaLameMp3Enc</SPAN></A>.doSetConfig(config: pointer): UNA_ENCODER_ERR; override;</SPAN><P />
Configures Lame encoder.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaLameMp3Enc"><SPAN class="class">unaLameMp3Enc</SPAN></A>.doClose(): UNA_ENCODER_ERR; override;</SPAN><P />
Closes Lame encoder.
</TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaLameMp3Enc"><SPAN class="class">unaLameMp3Enc</SPAN></A>.doEncode(data: pointer; nBytes: unsigned; out bytesUsed: unsigned): UNA_ENCODER_ERR; override;</SPAN><P />
Encodes a chunk of data.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -