method

display_aspect_ratio

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: VideoAnalyzer
display_aspect_ratio() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/analyzer/video_analyzer.rb, line 63
      def display_aspect_ratio
        if descriptor = video_stream["display_aspect_ratio"]
          if terms = descriptor.split(":", 2)
            numerator   = Integer(terms[0])
            denominator = Integer(terms[1])

            [numerator, denominator] unless numerator == 0
          end
        end
      end
Register or log in to add new notes.