📄 a00077.html
字号:
</table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Set a new memory pool to use internally for subsequent memory allocation. Warning: it should preferably be called at start-up only, to ensure that cycles of New()/Delete() are performed on the same memory pool. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>Mem</em> </td><td>The memory pool to use. If equal to 0 (default), the C++ heap will be used. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>This function will return the previous memory manager. </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a00074.html">SKL_MEM_I</a> <p><a class="el" href="a00077.html#a15">Get_Mem()</a> </dd></dl> </td> </tr></table><a class="anchor" name="a9" doxytag="SKL_MP4_ANALYZER::Set_Param" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual int SKL_MP4_ANALYZER::Set_Param </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char *const </td> <td class="mdname" nowrap> <em>Param</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const char *const </td> <td class="mdname" nowrap> <em>Value</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets the value of the string parameter described by Param string. <dl compact><dt><b>Returns:</b></dt><dd>0 if parameter is not applicable, or -1 if Value has invalid range. </dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>Param</em> </td><td>can be one of the following constant strings:<br></td></tr> </table></dl><ul><li>"passfile": Name of log file to use for 2-pass bitrate control. This parameter should be set before encoding process begins.<br> </li></ul><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>Value</em> </td><td>the string parameter value to set. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="a8" doxytag="SKL_MP4_ANALYZER::Set_Param" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual int SKL_MP4_ANALYZER::Set_Param </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char *const </td> <td class="mdname" nowrap> <em>Param</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>float </td> <td class="mdname" nowrap> <em>Value</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets the value of the float parameter described by Param string. These parameter settings control the core of the codec during motion estimation and bitstream coding. <dl compact><dt><b>Returns:</b></dt><dd>0 if parameter is not applicable, or -1 if Value has invalid range. </dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>Param</em> </td><td>can be one of the following constant strings:<br></td></tr> </table></dl><ul><li>"dquant-amp": If non-zero, turns luminance-masking on, with the specified Amplitude (the higher, the higher the effect, and the lower the quality).<br> </li><li>"framerate": Number of frame-per-seconds to achieve when bit-rate control is on.<br> </li><li>"quant": Specify the quantizer as a float value.<br> </li><li>"base-quant": Specify the base quantizer as a float value.<br> </li><li>"search-size": Specify the search-window size as a float value.<br> </li><li>"base-search-size":Specify the base search-window size as a float value.<br> </li></ul><p>Note: call to <a class="el" href="a00077.html#a7">Set_Param()</a> can occur any time during the encoding process and will take effect immediately during next call to Encode(). In particular, this method can be used during two-pass encoding to restore modified parameters stored in a first-pass file. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>Value</em> </td><td>the parameter value to set. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="a7" doxytag="SKL_MP4_ANALYZER::Set_Param" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual int SKL_MP4_ANALYZER::Set_Param </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char *const </td> <td class="mdname" nowrap> <em>Param</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>Value</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets the value of the integer parameter described by Param string. These parameter settings control the core of the codec during motion estimation and bitstream coding. <dl compact><dt><b>Returns:</b></dt><dd>0 if parameter is not applicable, or -1 if Value has invalid range. </dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>Param</em> </td><td>can be one of the following constant strings:<br></td></tr> </table></dl><ul><li>"buffer-size": If non-zero, specify the size of coded bits buffer to allocate for each frame coding.<br><p></li><li>"quant": Sets the main quantizer (the lower, the higher the quality). Should be in range [1..31]. When variable bitrate is used, this value is internally adjusted after each frame coding, while trying to meet the desired bitrate.<br> </li><li>"base-quant": Similar to "quant" parameter, but sets the quantizer of key-frames. By default, key-frames are assumed to share the global quantizer, if this parameter is not set.<br> </li><li>"quant-type": Quantization method used: 0 for H263's, 1 for MPEG4's.<br><p></li><li>"hi-mem": Consumes more memory for faster motion search. Only useful for Quarter Pixel.<p></li><li>"intra-limit": Percentage of INTRA macroblock necessary to trigger a scene change (with key frame signaled).<br> </li><li>"intra-max-delay": Maximum allowed number of P-frames between each INTRA key-frame.<br> </li><li>"intra-max-count": Counter for "intra-max-delay". When it reaches 0, an INTRA frame is emitted.<br><p></li><li>"rounding": Block-interpolation rounding mode: 0 (down) or 1 (up)<br> </li><li>"subpixel": Subpixel precision to use: 0=full-pixel, 1=half-pixel (default), 2=quarter pixel.<br> </li><li>"use-trellis": Switch trellis-based quantization on (non-zero Value) or off (Value=0)<br><p></li><li>"search-size": size in 16-pixels units of the search window. When bitrate control is on, this size is changed adaptively.<br> </li><li>"base-search-size": Similar to "search-size", this is the default value used as starting point after each key-frame.<br><p></li><li>"search-method": Internal searcho method (0 to 5)<br> </li><li>"search-metric": Metric for evaluating match: 0=SAD (default), 1=SSD, 2=Hadamard.<br><p></li><li>"4v-probing": Worthiness Threshold (as percentage) of 4-motion-vector blocks to probe.<br><p></li><li>"sad-skip-limit": Metric threshold below which a block is SKIPed <br> </li><li>"sad-intra-limit": Metric threshold above which a block is coded INTRA<br> </li><li>"inter-threshold": Amplitude of INTER coefficient below which a sub-block is skipped (using Coded Block Pattern)<br><p></li><li>"bitrate": If non-zero, turns (simplistic) bitrate control on. It then will adjust "quant", "search-size" parameter, and use the "framerate" setting too.<br><p></li><li>"field-pred-probing": Worthiness Threshold (as percentage) for field/frame block decision.<br> </li><li>"interlace-field": Use interlace-block coding if non-zero<br> </li><li>"interlace-dct": Use interlace-block DCT coding of coefficient, if non-zero<br><p></li><li>"gmc-pts": Number of GMC points to use (0 to 3)<br> </li><li>"gmc-mode": If non-zero, turns GMC estimation on (experimental)<br> </li><li>"gmc-accuracy": GMC interpolation precision (0 to 3)<br><p></li><li>"reduced-frame": Use reduced-frame coding, if non-zero<br> </li><li>"luminance-masking": Switch luminance-masking on (non-zero Value) or off (Value=0)<br><p></li><li>"frequency": Frequency of frame-tick resets.<br> </li><li>"frame-ticks": Precision of frame-tick coding<br><p></li></ul><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>Value</em> </td><td>the parameter value to set.</td></tr> </table></dl>Note: call to <a class="el" href="a00077.html#a7">Set_Param()</a> can occur any time during the encoding process and will take effect immediately during next call to Encode(). In particular, this method can be used during two-pass encoding to restore modified parameters stored in a first-pass file. </td> </tr></table><a class="anchor" name="a3" doxytag="SKL_MP4_ANALYZER::Shut_Down" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void SKL_MP4_ANALYZER::Shut_Down </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>this function is called when the invoked analyzer is about to be disabled. </td> </tr></table><a class="anchor" name="a2" doxytag="SKL_MP4_ANALYZER::Wake_Up" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void SKL_MP4_ANALYZER::Wake_Up </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="a00077.html">SKL_MP4_ANALYZER</a> * </td> <td class="mdname1" valign="top" nowrap> <em>Previous</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function is called when the invoked analyzer is about to be enabled. </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="a00109.html">skl_mpg4.h</a></ul><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 31 17:33:27 2004 for Sklmp4 MPEG-4 library by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.4 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -