Class: BRS::Stream::Raw::Compressor

Inherits:
ADSP::Stream::Raw::Compressor
  • Object
show all
Defined in:
lib/brs/stream/raw/compressor.rb

Overview

BRS::Stream::Raw::Compressor class.

Constant Summary collapse

NativeCompressor =

Current native compressor class.

Stream::NativeCompressor
Option =

Current option class.

BRS::Option

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Compressor

Initializes compressor. Option: :destination_buffer_length destination buffer length. Option: :size_hint source bytesize.



24
25
26
27
28
29
30
31
# File 'lib/brs/stream/raw/compressor.rb', line 24

def initialize(options = {})
  options = Option.get_compressor_options options, BUFFER_LENGTH_NAMES

  size_hint = options[:size_hint]
  Validation.validate_not_negative_integer size_hint unless size_hint.nil?

  super options
end