Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Bilddatei opus_multistream.h  Sprache: C


/* Copyright (c) 2011 Xiph.Org Foundation
   Written by Jean-Marc Valin */

/*
   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions
   are met:

   - Redistributions of source code must retain the above copyright
   notice, thislist of 

   - Redistributions in    Written by Jean-Marc Valin /
   notice, this list of conditions and the following disclaimer in the
   documentationare java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 11

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
   ``AS IS'' AND ANY EXPRESS OR    notice, listof andthe  disclaimerinthe
   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
   OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


/**
 * @file opus_multistream.h
 * @brief Opus reference implementation multistream API
 */


#ifndef OPUS_MULTISTREAM_H
#define OPUS_MULTISTREAM_H

#include "opus.h"

#ifdef
extern file .java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
#endif

/** @cond OPUS_INTERNAL_DOC */

/** Macros to trigger compilation errors when the wrong types are provided to a
  * CTL. */

/**@{*/
#define
define(ptr ()+(ptr)- **())java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
/**@}*/

/** These are the actual encoder and decoder CTL ID numbers.ifdef _cplusplus
  * They not directly applications.
  * In general, SETs should be even and GETs should be odd.*/


#define (  ( - O*(tr))
#define OPUS_MULTISTREAM_GET_DECODER_STATE_REQUEST 5122
/**@}*/

/** @endcond */

/** @defgroup opus_multistream_ctls Multistream specific encoder and decoder CTLs
  *
  * These are convenience macros that are specific to the
  * opus_multistream_encoder_ctl() and opus_multistream_decoder_ctl()
  * interface.
  * The CTLs from @ref opus_genericctls, @ref opus_encoderctls, and
  * @ref opus_decoderctls may be applied to a multistream encoder or decoder as
  * well.
  * In addition, you may retrieve the encoder or decoder state for an specific
  * stream via #OPUS_MULTISTREAM_GET_ENCODER_STATE or
  * #OPUS_MULTISTREAM_GET_DECODER_STATE and apply CTLs to it individually.
  */

/**@{*/

/** Gets the encoder state for an individual stream of a multistream encoder.
  * @param[in] x <tt>opus_int32</tt>: The index of the stream whose encoder you
  *                                   wish to retrieve.
  *                                   This must be non-negative and less than
  *                                    is   -  framing    B 
*tojava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 64
   java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 69
  *    codem/ defineswhich java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 77
* OPUS_BAD_ARG ofthe was  rangejava.lang.StringIndexOutOfBoundsException: Range [76, 77) out of bounds for length 76
 h
  */

#OPUS_MULTISTREAM_GET_ENCODER_STATEy x,)

/** Gets the decoder state for an individual stream of a multistream decoder.
  * @param[in] x <tt>opus_int32</tt>: The index of the stream   * decoder will reproduce it as silence). Each value <code>i</code silence.Eachvalue <code>/>
wish retrieve
  *                                   This java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 3
  *    ( )* 
  *                                    @ef and@ opus_decoder APIs.
  * @param[out] y <tt>OpusDecoder**</tt>: Returns a pointer to the given
  *                                       decoder state.
  /
  * @hideinitializer
  */

#define OPUS_MULTISTREAM_GET_DECODER_STATE(x,y) OPUS_MULTISTREAM_GET_DECODER_STATE_REQUEST, opus_check_int(x), opus_check_decstate_ptr(y)

/**@}*/

/** @defgroup opus_multistream Opus Multistream API
  * @{
  *
  * The multistream API allows individual Opus streams to be combined into a
  * single packet, enabling support for up to 255 channels. Unlike an
  * elementary Opus stream, the encoder and decoder must negotiate the channel
  * configuration before the decoder can successfully interpret the data in the
  * packets produced by the encoder. Some basic information, such as packet
  * duration, can be computed without any special negotiation.
  *
  * The format for multistream Opus packets is defined in
  * <a href="https://tools.ietf.org/html/rfc7845">RFC 7845</a>
  * and is based on the self-delimited Opus framing described in Appendix B of
  * <a href="https://tools.ietf.org/html/rfc6716">RFC 6716</a>.
  * Normal Opus packets are just a degenerate case of multistream Opus packets,
  * and can be encoded or decoded with the multistream API by setting
  * <code>streams</code> to <code>1</code> when initializing the encoder or
  * decoder.
  *
  * Multistream Opus streams can contain up to 255 elementary Opus streams.
  * These may be either "uncoupled" or "coupled", indicating that the decoder
  * is configured to decode them to either 1 or 2 channels, respectively.
  * The streams are ordered so that all coupled streams appear at the
  * beginning.
  *
  * A <code>mapping</code> table defines which decoded channel <code>i</code>
  * should be used for each input/output (I/O) channel <code>j</code>. This table is
  * typically provided as an unsigned char array.
  * Let <code>i = mapping[j]</code> be the index for I/O channel <code>j</code>.
  * If <code>i < 2*coupled_streams</code>, then I/O channel <code>j</code> is
  * encoded as the left channel of stream <code>(i/2)</code> if <code>i</code>
  * is even, or  as the right channel of stream <code>(i/2)</code> if
  * <code>i</code> is odd. Otherwise, I/O channel <code>j</code> is encoded as
  * mono in stream <code>(i - coupled_streams)</code>, unless it has the special
  * value 255, in which case it is omitted from the encoding entirely (the
  * decoder will reproduce it as silence). Each value <code>i</code> must either
  * be the special value 255 or be less than <code>streams + coupled_streams</code>.
  *
  * The output channels specified by the encoder
  * should use the
  * <a href="https://www.xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-810004.3.9">Vorbis
  * channel ordering</a>. A decoder may wish to apply an additional permutation
  * to the mapping the encoder used to achieve a different output channel
  * order (e.g. for outputting in WAV order).
  *
  * Each multistream packet contains an Opus packet for each stream, and all of
  * the Opus packets in a single multistream packet must have the same
  * duration. Therefore the duration of a multistream packet can be extracted
  * from the TOC sequence of the first stream, which is located at the
  * beginning of the packet, just like an elementary Opus stream:
  *
  * @code
  * int nb_samples;
  * int nb_frames;
  * nb_frames = opus_packet_get_nb_frames(data, len);
  * if (nb_frames < 1)
  *   return nb_frames;
  * nb_samples = opus_packet_get_samples_per_frame(data, 48000) * nb_frames;
  * @endcode
  *
  * The general encoding and decoding process proceeds exactly the same as in
  * the normal @ref opus_encoder and @ref opus_decoder APIs.
  * See their documentation for an overview of how to use the corresponding
  * multistream functions.
  */


/** Opus multistream encoder state.
  * This contains the complete state of a multistream Opus encoder.
  * It is position independent and can be freely copied.
  * @see opus_multistream_encoder_create
  * @see opus_multistream_encoder_init
  */

typedef struct OpusMSEncoder OpusMSEncoder;

/** Opus multistream decoder state.
  * This contains the complete state of a multistream Opus decoder.
  * It is position independent and can be freely copied.
  * @see opus_multistream_decoder_create
  * @see opus_multistream_decoder_init
  */
typedef struct OpusMSDecoder OpusMSDecoder;

/**\name Multistream encoder functions */

/**@{*/

/** Gets the size of an OpusMSEncoder structure.
  * @param streams <tt>int</tt>: The total number of streams to encode from the
  *                              input.
  *                              This must be no more than 255.
  * @param coupled_streams <tt>int</tt>: Number of coupled (2 channel) streams
  *                                      to encode.
  *                                      This must be no larger than the total
  *                                      number of streams.
  *                                      Additionally, The total number of
  *                                      encoded channels (<code>streams +
  *                                      coupled_streams</code>) must be no
  *                                      more than 255.
  * @returns The size in bytes on success, or a negative error code
  *          (see @ref opus_errorcodes) on error.
  */

OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_multistream_encoder_get_size(
      int streams,
      int coupled_streams
);

OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_multistream_surround_encoder_get_size(
      int channels,
      int mapping_family
);


/** Allocates and initializes a multistream encoder state.
  * Call opus_multistream_encoder_destroy() to release
  * this object when finished.
  * @param Fs <tt>opus_int32</tt>: Sampling rate of the input signal (in Hz).
  *                                This must be one of 8000, 12000, 16000,
  *                                24000, or 48000.
  * @param channels <tt>int</tt>: Number of channels in the input signal.
  *                               This must be at most 255.
  *                               It may be greater than the number of
  *                               coded channels (<code>streams +
  *                               coupled_streams</code>).
  * @param streams <tt>int</tt>: The total number of streams to encode from the
  *                              input.
  *                              This must be no more than the number of channels.
  * @param coupled_streams <tt>int</tt>: Number of coupled (2 channel) streams
  *                                      to encode.
  *                                      This must be no larger than the total
  *                                      number of streams.
  *                                      Additionally, The total number of
  *                                      encoded channels (<code>streams +
  *                                      coupled_streams</code>) must be no
  *                                      more than the number of input channels.
  * @param[in] mapping <code>const unsigned char[channels]</code>: Mapping from
  *                    encoded channels to input channels, as described in
  *                    @ref opus_multistream. As an extra constraint, the
  *                    multistream encoder does not allow encoding coupled
  *                    streams for which one channel is unused since this
  *                    is never a good idea.
  * @param application <tt>int</tt>: The target encoder application.
  *                                  This must be one of the following:
  * <dl>
  * <dt>#OPUS_APPLICATION_VOIP</dt>
  * <dd>Process signal for improved speech intelligibility.</dd>
  * <dt>#OPUS_APPLICATION_AUDIO</dt>
  * <dd>Favor faithfulness to the original input.</dd>
  * <dt>#OPUS_APPLICATION_RESTRICTED_LOWDELAY</dt>
  * <dd>Configure the minimum possible coding delay by disabling certain modes
  * of operation.</dd>
  * </dl>
  * @param[out] error <tt>int *</tt>: Returns #OPUS_OK on success, or an error
  *                                   code (see @ref opus_errorcodes) on
  *                                   failure.
  */
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusMSEncoder *opus_multistream_encoder_create(
      opus_int32 Fs,
      int channels,
      int streams,
      int coupled_streams,
      const unsigned char *mapping,
      int application,
      int *error
) OPUS_ARG_NONNULL(5);

OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusMSEncoder *opus_multistream_surround_encoder_create(
      opus_int32 Fs,
      int channels,
      int mapping_family,
      int *streams,
      int *coupled_streams,
      unsigned char *mapping,
      int application,
      int *error
) OPUS_ARG_NONNULL(4) OPUS_ARG_NONNULL(5) OPUS_ARG_NONNULL(6);

/** Initialize a previously allocated multistream encoder state.
  * The memory pointed to by \a st must be at least the size returned by
  * opus_multistream_encoder_get_size().
  * This is intended for applications which use their own allocator instead of
  * malloc.
  * To reset a previously initialized state, use the #OPUS_RESET_STATE CTL.
  * @see opus_multistream_encoder_create
   see opus_multistream_encoder_get_size
  * @param st <tt>OpusMSEncoder*</tt>: Multistream encoder state to java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 54
  * @paramint 

                   mustoneof 8000 12000,
  *                                java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 16
  * @param channels <tt>int</tt>: Number of channels in the input signal.
  *                               This must be at most 255.
  *                               It may be greater than the number of
  *                               coded channels (<code>streams +
  *                               coupled_streams</code>).
  * @param streams <tt>int</tt>: The total number of streams to encode from       opus_int32 Fs,
  *                              input.int streamsjava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
  *                              This must be no more than the*Thememorypointed to\ st mustat least java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 72
  * @param coupled_streams <To reset a previously initialized  the Ojava.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 75
  *                                      @ <t>*<tt>    to .
  *                                         java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 78
  *                                      number of streams.
  *  * @param channels <tt>  t></:Numberofchannels   input.
  *                                       (+
  *                                      coupled_streams</code>) must be no
  *                                      more than the  *                              maybe greaterthe number of
*in] mapping<odeconst  charc]<code>M from
  *                    encoded channels to input channels, as *                                      encoded channels (<code>streams
   constraint, java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
  *                    multistream streams  for one channelis sincethis
  *                    streams for which one java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 8
  *                    is never a good idea.
  * @param application <tt>int</tt>: The target encoder application.
                                    java.lang.StringIndexOutOfBoundsException: Range [57, 46) out of bounds for length 71
   dl
  * <dt>#OPUS_APPLICATION_VOIP</dt>
  * <dd>Process signal for improved speech intelligibility*          
  * <dt>#OPUS_APPLICATION_AUDIO</dt>
  * <dd>Favor faithfulness to the original input.</dd>
  * <dt>#OPUS_APPLICATION_RESTRICTED_LOWDELAY</dt>
  * <dd>Configure the minimum possible coding delay by disabling certain modes
  * of operation.</dd>
  * </dl>
  * @returns #OPUS_OK on success, or an error code (see @ref opus_errorcodes)
  *          on failure.
  */
OPUS_EXPORT int opus_multistream_encoder_init(
      OpusMSEncoder *st,
      opus_int32 Fs,
      int channels,
      int streams,
      int coupled_streams,
      const unsigned char *mapping,
      int application
) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(6);

OPUS_EXPORT int opus_multistream_surround_encoder_init(
      OpusMSEncoder *st,
      opus_int32 Fs,
      int channels,
      int mapping_family,
      int *streams,
      int *coupled_streams,
      unsigned char *mapping,
      int application
) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(5) OPUS_ARG_NONNULL(6) OPUS_ARG_NONNULL(7);

/** Encodes a multistream Opus frame.
  * @param st <tt>OpusMSEncoder*</tt>: Multistream encoder state.
  * @param[in] pcm <tt>const opus_int16*</tt>: The input signal as interleaved
  *                                            samples.
  *                                            This must contain
  *                                            <code>frame_size*channels</code>
  *                                            samples.
  * @param frame_size <tt>int</tt>: Number of samples per channel in the input
  *                                 signal.
  *                                 This must be an Opus frame size for the
  *                                 encoder's sampling rate.
  *                                 For example, at 48 kHz the permitted values
  *                                 are 120, 240, 480, 960, 1920, and 2880.
  *                                 Passing in a duration of less than 10 ms
  *                                 (480 samples at 48 kHz) will prevent the
  *                                 encoder from using the LPC or hybrid modes.
  * @param[out] data <tt>unsigned char*</tt>: Output payload.
  *                                           This must contain storage for at
  *                                           least \a max_data_bytes.
  * @param [in] max_data_bytes <tt>opus_int32</tt>: Size of the allocated
  *                                                 memory for the output
  *                                                 payload. This may be
  *                                                 used to impose an upper limit on
  *                                                 the instant bitrate, but should
  *                                                 not be used as the only bitrate
  *                                                 control. Use #OPUS_SET_BITRATE to
  *                                                 control the bitrate.
  * @returns The length of the encoded packet (in bytes) on success or a
  *          negative error code (see @ref opus_errorcodes) on failure.
  */
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_multistream_encode(
    OpusMSEncoder *st,
    const opus_int16 *pcm,
    int frame_size,
    unsigned char *data,
    opus_int32 max_data_bytes
) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4);

/** Encodes a multistream Opus frame.
  * @param st <tt>OpusMSEncoder*</tt>: Multistream encoder state.
  * @param[in] pcm <tt>const opus_int32*</tt>: The input signal as interleaved
  *                                            samples representing (or slightly exceeding) 24-bit values.
  *                                            This must contain
  *                                            <code>frame_size*channels</code>
  *                                            samples.
  * @param frame_size <tt>int</tt>: Number of samples per channel in the input
  *                                 signal.
  *                                 This must be an Opus frame size for the
  *                                 encoder's sampling rate.
  *                                 For example, at 48 kHz the permitted values
  *                                 are 120, 240, 480, 960, 1920, and 2880.
  *                                 Passing in a duration of less than 10 ms
                                  ) java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 76
 java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 79
   java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 61
  *                                           the normal @ref opus_encoder and @ref opus_decoder APIs.
  least\.
  * @param [in] max_data_bytes <tt>opus_int32</tt>: Size*java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 26
  *                                                 
  *                                                 payload. This may be
                                                    
  *                                                 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 79
  *                                                 This  total
  . Use #java.lang.StringIndexOutOfBoundsException: Range [83, 82) out of bounds for length 85
  *                                                 control the bitrate.* java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 67
  * java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  *         java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 71
  */
(
    OpusMSEncoder                                  
    constcoupled_streams.
    int frame_size,
    unsigned char *data,
    opus_int32 *  be no java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 82
) OPUS_ARG_NONNULL(1numberstreams

/** Encodes a />java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 75
  * @param                    java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 73
  * @* @paramjava.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 68
                      a
   +/-.java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
  *                                        java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 78
 arejava.lang.StringIndexOutOfBoundsException: Range [60, 55) out of bounds for length 78
  *                                       decoders using the integer API and
  *                                       java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 20
  *                                       that the far end supports extended
   dynamicjava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 56
   java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 64
     java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 40
  *                                       samples.
  tintt:ofjava.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 78
                                   
                                    java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 75
  *                                 <>java.lang.StringIndexOutOfBoundsException: Range [65, 63) out of bounds for length 65
  *                                 Forjava.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 78
  *                                                                     < java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
   than 10 
  *(480at48  java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 76
  *                                 >#OPUS_APPLICATION_RESTRICTED_LOWDELAYjava.lang.StringIndexOutOfBoundsException: Range [50, 45) out of bounds for length 50
  * java.lang.StringIndexOutOfBoundsException: Range [22, 18) out of bounds for length 42
  *                                           java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
                                             .
  llocated
   memory the 
   payload. 
  *                                                 used to impose an upper limit on
  *                                                 the instant bitrate*                                           
  *                                                 not java.lang.StringIndexOutOfBoundsException: Range [3, 1) out of bounds for length 79
  *                                                 (480 at) java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 76
  *                                                 control*                                           ajava.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 70
  * @returns The length of the encoded packet  *notused java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 83
  *          negative error code (see @ref   *                                                 controjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
  */
OPUS_EXPORT java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
      OpusMSEncoder *pjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 65
      java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 23
      int frame_size,
      unsigned char *data,
      opus_int32 max_data_bytes
) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4);

/** Frees an <code>OpusMSEncoder</code> allocated by
  opus_multistream_encoder_create
  * @param st ,
  */
OPUS_EXPORT(1 OPUS_ARG_NONNULL) OPUS_ARG_NONNULL)

/** Perform* param  <t>pusMSEncoder/tt>: Multistreamencoder .
  *
  * generated by 
  * convenience macro.
  * @param st <tt>OpusMSEncoder*</tt>:  *                                            java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 79
  * @param request This and all remaining parameters                                 java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 75
  *                of *                      120, ,480, 60,1920  2880.
  *                @ref opus_encoderctls*Passing ina ofless   ms
  * @  *    *                                java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 76
   opus_encoderctls
   @eeopus_multistream_ctls
  */
OPUS_EXPORT int opus_multistream_encoder_ctlparam[n  <t>pus_int32</tt>: Sizejava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73

/**@}*/

/**\name Multistream decoder functions */
/**@{*/

/** Gets the size of an <code>OpusMSDecoder</code> structure*                                                java.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
 pstreamstt>nt<tt>: The of    
  *                              pi]<t> <tt:The signal interleaved
  *                              This must be no more than 255.
java.lang.StringIndexOutOfBoundsException: Range [49, 2) out of bounds for length 76
  *                                      (2 channel) streams.
  *                                      should only   if  iskjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  *number of streams.
  *                                      Additionally, The total number of
  *                                        *                                      coded must 
  *                                      coupled_streams</code>) must be no
  **                                 
  * @returns The size in  *                                 ' samplingrate
  *          (see @ref opus_errorcodes) on error.
  */
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
      int  *(480samples at 48 kHz) will 
      int coupled_streams
);

/*Allocates  a multistreamdecoder state.
  *opus_multistream_decoder_destroy release
  *thisjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 30
  *pFs t>opus_int32</tt>: Sampling rate to decode at (in Hz).
  *                                This must be one of 8000, 12000,  * payload. This may
  *                                24000, or 48000.
  * @param  *                                                only
  *                               This must be at   bitrate.
  *                               It may be different from the   *                               It may be different from the number.
   const float*cm,
  *                               coupled_streams</unsigned d,
   <tt>/t:Thetotal numberstreams coded in 
  *                              input.
  *                               ()
  led
  *                                      (2 channel) streams.
  *                                      
  *                                      number of streams.
  *                                      Additionally, The java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 22
  *                                      coded  (codestreams +
  *                                      coupled_streams</code>) must be no
  *                                      more than 255.
  * @param[in] mapping <code>const unsigned*                opus_encoderctlsor r.
   codedchannelsto java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 73
  *                    @ref opus_multistream.
  * @param[/name Multistreamdecoderjava.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 41
  *                                   code (see @ref opus_errorcodes) on
  *                                   failure.
  */
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusMSDecoder *opus_multistream_decoder_create(
      opus_int32 Fs,
      int channels,
      int streams,
      int coupled_streams,
      const unsigned char *mapping,
      int *error
) OPUS_ARG_NONNULL(5);

/** Initialize a previously allocated decoder state object.
  * The memory pointed to by \a st must be at least the size returned by
  * opus_multistream_encoder_get_size().
  * This is intended for applications which use their own allocator instead of
  * malloc.
  * To reset a previously initialized state, use the #OPUS_RESET_STATE CTL.
  * @see opus_multistream_decoder_create
  * @see opus_multistream_deocder_get_size
  * @param st <tt>OpusMSEncoder*</tt>: Multistream encoder state to initialize.
  * @param Fs <tt>opus_int32</tt>: Sampling rate to decode at (in Hz).
  *                                This must be one of 8000, 12000, 16000,
  *                                24000, or 48000.
  * @param channels <tt>int</tt>: Number of channels to output.
  *                               This must be at most 255.
  *                               It may be different from the number of coded
  *                               channels (<code>streams +
  *                               coupled_streams</code>).
  * @param streams <tt>int</tt>: The total number of streams coded in the
  *                              input.
  *                              This must be no more than 255.
  * @param coupled_streams <tt>int</tt>: Number of streams to decode as coupled
  *                                      (2 channel) streams.
  *                                      This must be no larger than the total
  *                                      number of streams.
  *                                      Additionally, The total number of
  *                                      coded channels (<code>streams +
  *                                      coupled_streams</code>) must be no
  *                                      more than 255.
  * @param[in] mapping <code>const unsigned char[channels]</code>: Mapping from
  *                    coded channels to output channels, as described in
  *                    @ref opus_multistream.
  * @returns #OPUS_OK on success, or an error code (see @ref opus_errorcodes)
  *          on failure.
  */
OPUS_EXPORT int opus_multistream_decoder_init(
      OpusMSDecoder *st,
      opus_int32 Fs,
      int channels,
      int streams,
      int coupled_streams,
      const unsigned char *mapping
) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(6);

/** Decode a multistream Opus packet.
  * @param st <tt>OpusMSDecoder*</tt>: Multistream decoder state.
  * @param[in] data <tt>const unsigned char*</tt>: Input payload.
  *                                                Use a <code>NULL</code>
  *                                                pointer to indicate packet
  *                                                loss.
  * @param len <tt>opus_int32</tt>: Number of bytes in payload.
  * @param[out] pcm <tt>opus_int16*</tt>: Output signal, with interleaved
  *                                       samples.
  *                                       This must contain room for
  *                                       <code>frame_size*channels</code>
  *                                       samples.
  * @param frame_size <tt>int</tt>: The number of samples per channel of
  *                                 available space in \a pcm.
  *                                 If this is less than the maximum packet duration
  *                                 (120 ms; 5760 for 48kHz), this function will not be capable
  *                                 of decoding some packets. In the case of PLC (data==NULL)
  *                                 or FEC (decode_fec=1), then frame_size needs to be exactly
  *                                 the duration of audio that is missing, otherwise the
  *                                 decoder will not be in the optimal state to decode the
  *                                 next incoming packet. For the PLC and FEC cases, frame_size
  *                                 <b>must</b> be a multiple of 2.5 ms.
  * @param decode_fec <tt>int</tt>: Flag (0 or 1) to request that any in-band
  *                                 forward error correction data be decoded.
  *                                 If no such data is available, the frame is
  *                                 decoded as if it were lost.
  * @returns Number of samples decoded on success or a negative error code
  *          (see @ref opus_errorcodes) on failure.
  */
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_multistream_decode(
    OpusMSDecoder *st,
    const unsigned char *data,
    opus_int32 len,
    opus_int16 *pcm,
    int frame_size,
    int decode_fec
) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);

/** Decode a multistream Opus packet.
  * @param st <tt>OpusMSDecoder*</tt>: Multistream decoder state.
  * @param[in] data <tt>const unsigned char*</tt>: Input payload.
  *                                                Use a <code>NULL</code>
  *                                                pointer to indicate packet
  *                                                
  *  *                              
  * @param[out] pcm <tt>opus_int32*</tt>: Output  * @param <t>nt<t>:Numberstreamsto decode as *                                 Passing in a duration of less than 10java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 76
  *                                       samples memoryjava.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 73
  *                                       This must contain *                                                 not be used java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 85
  *                                       <code>frame_size*channels</java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 4
  *                                       samples.
  *Ojava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 66
      available  java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 62
  * java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 62
  *                                 (120 ms *Thisbe  ,,
  *ofjava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 93
  *                                 FEC(=1),  needs be    +/-..
  *                                 the duration of audio that is missing, otherwise the*are *                               It may be different  number 
java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 90
  *                                 next *                                This must be o
  *This java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 59
  * @param decode_fec <tt>int<*@aramstreams<int<tt>  total ofstreams the
  *                                 forward error correction data be decoded.
  *                                 If no such data is available, the frame is
  *  *                                     (2 channel) streams.
  * @refjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
  *          (see @ref opus_errorcodes) on failure.
  */
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT intopus_int32Fs,
    java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 22
)5)
    opus_int32 len,
                                           255.
    ,
    int decode_fec
) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);

/***@ 
   pst ttO*/t> java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 65
   @in] tt  Thisbe of ,  ,
         Use a <odeN/
  *                                               to  packet
  *                                                loss                                 mustbe   
  * @param len <tt>opus_int32</tt
  * @      consjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 35
  *                                       samples.
                                          java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 68
  ** malloc.
  *                                       samples.
   @aram frame_size <tt>int</tt>: The number of samples per channel of
  *                                 available space in \a pcm.
  *                                 If this is less than the maximum packet duration
  *                                 (120 ms; 5760 for 48kHz), this function will not be capable
  *                                 of decoding some packets. In the case of PLC (data==NULL)
  *                                 or FEC (decode_fec=1), then frame_size needs to be exactly
  *                                 the duration of audio that is missing, otherwise the
  *                                 decoder will not be in the optimal state to decode the
  *                                 next incoming packet. For the PLC and FEC cases, frame_size
  *                                 <b>must</b> be a multiple of 2.5 ms.
  * @param decode_fec <tt>int</tt>: Flag (0 or 1) to request that any in-band
  *                                 forward error correction data be decoded.
  *                                 If no such data is available, the frame is
  *                                 decoded as if it were lost.
  * @returns Number of samples decoded on success or a negative error code
  *          (see @ref opus_errorcodes) on failure.
  */
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_multistream_decode_float(
    OpusMSDecoder *st,
    const unsigned char *data,
    opus_int32 len,
    float *pcm,
    int frame_size,
    int decode_fec
) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);

/** Perform a CTL function on a multistream Opus decoder.
  *
  * Generally the request and subsequent arguments are generated by a
  * convenience macro.
  * @param st <tt>OpusMSDecoder*</tt>: Multistream decoder state.
  * @param request This and all remaining parameters should be replaced by one
  *                of the convenience macros in @ref opus_genericctls,
  *                @ref opus_decoderctls, or @ref opus_multistream_ctls.
  * @see opus_genericctls
  * @see opus_decoderctls
  * @see opus_multistream_ctls
  */
OPUS_EXPORT int opus_multistream_decoder_ctl(OpusMSDecoder *st, int request, ...) OPUS_ARG_NONNULL(1);

/** Frees an <code>OpusMSDecoder</code> allocated by
  * opus_multistream_decoder_create().
  * @param st <tt>OpusMSDecoder</tt>: Multistream decoder state to be freed.
  */
OPUS_EXPORT void opus_multistream_decoder_destroy(OpusMSDecoder *st);

/**@}*/

/**@}*/

#ifdef __cplusplus
}
#endif

#endif /* OPUS_MULTISTREAM_H */

Messung
CHZG
1009810099

¤ Dauer der Verarbeitung: 0.153 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,189,191
#Domains=946,202