Class: Hydra::Derivatives::Config
- Inherits:
-
Object
- Object
- Hydra::Derivatives::Config
- Defined in:
- lib/hydra/derivatives/config.rb
Instance Attribute Summary collapse
-
#active_encode_poll_time ⇒ Object
The poll time (in seconds) that the active encode processor will sleep before it checks the status of an encoding job.
- #enable_ffmpeg ⇒ Object
- #ffmpeg_path ⇒ Object
- #fits_path ⇒ Object
- #kdu_compress_path ⇒ Object
- #kdu_compress_recipes ⇒ Object
- #libreoffice_path ⇒ Object
- #output_file_service ⇒ Object
- #source_file_service ⇒ Object
- #temp_file_base ⇒ Object
Instance Attribute Details
#active_encode_poll_time ⇒ Object
The poll time (in seconds) that the active encode processor will sleep before it checks the status of an encoding job.
81 82 83 |
# File 'lib/hydra/derivatives/config.rb', line 81 def active_encode_poll_time @active_encode_poll_time ||= 10 end |
#enable_ffmpeg ⇒ Object
36 37 38 39 |
# File 'lib/hydra/derivatives/config.rb', line 36 def enable_ffmpeg return @enable_ffmpeg unless @enable_ffmpeg.nil? @enable_ffmpeg = true end |
#ffmpeg_path ⇒ Object
12 13 14 |
# File 'lib/hydra/derivatives/config.rb', line 12 def ffmpeg_path @ffmpeg_path ||= 'ffmpeg' end |
#fits_path ⇒ Object
32 33 34 |
# File 'lib/hydra/derivatives/config.rb', line 32 def fits_path @fits_path ||= 'fits.sh' end |
#kdu_compress_path ⇒ Object
41 42 43 |
# File 'lib/hydra/derivatives/config.rb', line 41 def kdu_compress_path @kdu_compress_path ||= 'kdu_compress' end |
#kdu_compress_recipes ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/hydra/derivatives/config.rb', line 45 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 ⇒ Object
16 17 18 |
# File 'lib/hydra/derivatives/config.rb', line 16 def libreoffice_path @libreoffice_path ||= 'soffice' end |
#output_file_service ⇒ Object
28 29 30 |
# File 'lib/hydra/derivatives/config.rb', line 28 def output_file_service @output_file_service ||= Hydra::Derivatives::PersistBasicContainedOutputFileService end |
#source_file_service ⇒ Object
24 25 26 |
# File 'lib/hydra/derivatives/config.rb', line 24 def source_file_service @source_file_service ||= Hydra::Derivatives::RetrieveSourceFileService end |
#temp_file_base ⇒ Object
20 21 22 |
# File 'lib/hydra/derivatives/config.rb', line 20 def temp_file_base @temp_file_base ||= Dir.tmpdir end |