Ejemplo n.º 1
0
 /// <summary> Initializes the source of wavelet transform coefficients. The
 /// constructor takes information on whether the quantizer is in
 /// reversible, derived or expounded mode. If the quantizer is reversible
 /// the value of 'derived' is ignored. If the source data is not integer
 /// (int) then the quantizer can not be reversible.
 ///
 /// <p>After initializing member attributes, getAnSubbandTree is called for
 /// all components setting the 'stepWMSE' for all subbands in the current
 /// tile.</p>
 ///
 /// </summary>
 /// <param name="src">The source of wavelet transform coefficients.
 ///
 /// </param>
 /// <param name="encSpec">The encoder specifications
 ///
 /// </param>
 public StdQuantizer(CBlkWTDataSrc src, EncoderSpecs encSpec) : base(src)
 {
     qts  = encSpec.qts;
     qsss = encSpec.qsss;
     gbs  = encSpec.gbs;
 }
Ejemplo n.º 2
0
		/// <summary> Creates a Quantizer object for the appropriate type of quantization
		/// specified in the options in the parameter list 'pl', and having 'src'
		/// as the source of data to be quantized. The 'rev' flag indicates if the
		/// quantization should be reversible.
		/// 
		/// NOTE: At the moment only sources of wavelet data that implement the
		/// 'CBlkWTDataSrc' interface are supported.
		/// 
		/// </summary>
		/// <param name="src">The source of data to be quantized
		/// 
		/// </param>
		/// <param name="encSpec">Encoder specifications
		/// 
		/// </param>
		/// <exception cref="IllegalArgumentException">If an error occurs while parsing
		/// the options in 'pl'
		/// 
		/// </exception>
		public static Quantizer createInstance(CBlkWTDataSrc src, EncoderSpecs encSpec)
		{
			// Instantiate quantizer
			return new StdQuantizer(src, encSpec);
		}
Ejemplo n.º 3
0
		/// <summary> Initializes the source of wavelet transform coefficients.
		/// 
		/// </summary>
		/// <param name="src">The source of wavelet transform coefficients.
		/// 
		/// </param>
		public Quantizer(CBlkWTDataSrc src):base(src)
		{
			this.src = src;
		}
Ejemplo n.º 4
0
		/// <summary> Initializes the source of wavelet transform coefficients. The
		/// constructor takes information on whether the quantizer is in
		/// reversible, derived or expounded mode. If the quantizer is reversible
		/// the value of 'derived' is ignored. If the source data is not integer
		/// (int) then the quantizer can not be reversible.
		/// 
		/// <p>After initializing member attributes, getAnSubbandTree is called for
		/// all components setting the 'stepWMSE' for all subbands in the current
		/// tile.</p>
		/// 
		/// </summary>
		/// <param name="src">The source of wavelet transform coefficients.
		/// 
		/// </param>
		/// <param name="encSpec">The encoder specifications
		/// 
		/// </param>
		public StdQuantizer(CBlkWTDataSrc src, EncoderSpecs encSpec):base(src)
		{
			qts = encSpec.qts;
			qsss = encSpec.qsss;
			gbs = encSpec.gbs;
		}
Ejemplo n.º 5
0
 /// <summary> Creates a Quantizer object for the appropriate type of quantization
 /// specified in the options in the parameter list 'pl', and having 'src'
 /// as the source of data to be quantized. The 'rev' flag indicates if the
 /// quantization should be reversible.
 ///
 /// NOTE: At the moment only sources of wavelet data that implement the
 /// 'CBlkWTDataSrc' interface are supported.
 ///
 /// </summary>
 /// <param name="src">The source of data to be quantized
 ///
 /// </param>
 /// <param name="encSpec">Encoder specifications
 ///
 /// </param>
 /// <exception cref="IllegalArgumentException">If an error occurs while parsing
 /// the options in 'pl'
 ///
 /// </exception>
 public static Quantizer createInstance(CBlkWTDataSrc src, EncoderSpecs encSpec)
 {
     // Instantiate quantizer
     return(new StdQuantizer(src, encSpec));
 }
Ejemplo n.º 6
0
 /// <summary> Initializes the source of wavelet transform coefficients.
 ///
 /// </summary>
 /// <param name="src">The source of wavelet transform coefficients.
 ///
 /// </param>
 public Quantizer(CBlkWTDataSrc src) : base(src)
 {
     this.src = src;
 }