Sha256: e518cd2e6d6c08256435fa7dcbbd22f654fc60402e2e8f14854321751bd4412a

Contents?: true

Size: 1.65 KB

Versions: 6

Compression:

Stored size: 1.65 KB

Contents

module Hydra
  module Derivatives
    class Config
      attr_writer :ffmpeg_path, :libreoffice_path, :temp_file_base, :fits_path,
        :enable_ffmpeg, :kdu_compress_path, :kdu_compress_recipes
      def ffmpeg_path
        @ffmpeg_path ||= 'ffmpeg'
      end

      def libreoffice_path
        @libreoffice_path ||= 'soffice'
      end

      def temp_file_base
        @temp_file_base ||= '/tmp'
      end

      def fits_path
        @fits_path ||= 'fits.sh'
      end

      def enable_ffmpeg
        @enable_ffmpeg ||= true
      end

      def kdu_compress_path
        @kdu_compress_path ||= 'kdu_compress'
      end

      def kdu_compress_recipes
        @kdu_compress_recipes ||= {
          default_color: %Q{-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_grey: %Q{-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

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hydra-derivatives-1.2.1 lib/hydra/derivatives/config.rb
hydra-derivatives-1.2.0 lib/hydra/derivatives/config.rb
hydra-derivatives-1.1.0 lib/hydra/derivatives/config.rb
hydra-derivatives-1.0.0 lib/hydra/derivatives/config.rb
hydra-derivatives-1.0.0.rc1 lib/hydra/derivatives/config.rb
hydra-derivatives-1.0.0.beta1 lib/hydra/derivatives/config.rb