class Hydra::Derivatives::Config

Attributes

active_encode_poll_time[W]
enable_ffmpeg[W]
ffmpeg_path[W]
fits_path[W]
kdu_compress_path[W]
kdu_compress_recipes[W]
libreoffice_path[W]
output_file_service[W]
source_file_service[W]
temp_file_base[W]

Public Instance Methods

active_encode_poll_time() click to toggle source

The poll time (in seconds) that the active encode processor will sleep before it checks the status of an encoding job.

# File lib/hydra/derivatives/config.rb, line 80
def active_encode_poll_time
  @active_encode_poll_time ||= 10
end
enable_ffmpeg() click to toggle source
# File lib/hydra/derivatives/config.rb, line 35
def enable_ffmpeg
  return @enable_ffmpeg unless @enable_ffmpeg.nil?
  @enable_ffmpeg = true
end
ffmpeg_path() click to toggle source
# File lib/hydra/derivatives/config.rb, line 11
def ffmpeg_path
  @ffmpeg_path ||= 'ffmpeg'
end
fits_path() click to toggle source
# File lib/hydra/derivatives/config.rb, line 31
def fits_path
  @fits_path ||= 'fits.sh'
end
kdu_compress_path() click to toggle source
# File lib/hydra/derivatives/config.rb, line 40
def kdu_compress_path
  @kdu_compress_path ||= 'kdu_compress'
end
kdu_compress_recipes() click to toggle source
# File lib/hydra/derivatives/config.rb, line 44
def kdu_compress_recipes
  @kdu_compress_recipes ||= {
    default_color: %(-rate 2.4,1.48331273,.91673033,.56657224,.35016049,.21641118,.13374944,.08266171
      -jp2_space sRGB
      -double_buffering 10
      -num_threads 4
      -no_weights
      Clevels=6
      Clayers=8
      "Cblk={64,64}"
      Cuse_sop=yes
      Cuse_eph=yes
      Corder=RPCL
      ORGgen_plt=yes
      ORGtparts=R
      "Stiles={1024,1024}" ).gsub(/\s+/, " ").strip,
    default_gray: %(-rate 2.4,1.48331273,.91673033,.56657224,.35016049,.21641118,.13374944,.08266171
      -jp2_space sLUM
      -double_buffering 10
      -num_threads 4
      -no_weights
      Clevels=6
      Clayers=8
      "Cblk={64,64}"
      Cuse_sop=yes
      Cuse_eph=yes
      Corder=RPCL
      ORGgen_plt=yes
      ORGtparts=R
      "Stiles={1024,1024}" ).gsub(/\s+/, " ").strip
  }
end
libreoffice_path() click to toggle source
# File lib/hydra/derivatives/config.rb, line 15
def libreoffice_path
  @libreoffice_path ||= 'soffice'
end
output_file_service() click to toggle source
# File lib/hydra/derivatives/config.rb, line 27
def output_file_service
  @output_file_service ||= Hydra::Derivatives::PersistBasicContainedOutputFileService
end
source_file_service() click to toggle source
# File lib/hydra/derivatives/config.rb, line 23
def source_file_service
  @source_file_service ||= Hydra::Derivatives::RetrieveSourceFileService
end
temp_file_base() click to toggle source
# File lib/hydra/derivatives/config.rb, line 19
def temp_file_base
  @temp_file_base ||= Dir.tmpdir
end