lib/mxfinfo.rb in mxfinfo-0.0.2 vs lib/mxfinfo.rb in mxfinfo-0.0.3
- old
+ new
@@ -21,10 +21,21 @@
end
class InfoObject
extend AttrReaders
+ @@render = ["Center Smooth",
+ "Color Correction",
+ "Crystal",
+ "Flip-Flop",
+ "FluidBlur",
+ "Left Box",
+ "Luma Key",
+ "Mosaic Effect",
+ "Stabilize",
+ "Timecode Burn-In"]
+
# RAW AVIDMXFINFO OUTPUT
def raw_data; @mxfinfo; end
# Attributes
def self.supported_attributes; @supported_attributes ||= []; end
@@ -93,9 +104,14 @@
mxfinfo_attr_reader :file_package_uid
mxfinfo_attr_reader :physical_package_uid
mxfinfo_attr_reader :physical_package_type
mxfinfo_attr_reader :physical_package_name
mxfinfo_attr_reader :physical_package_locator
+
+ def render_file?
+ @@render.map{ |r| return true if clip_name.include?(r) }
+ false
+ end
private
def mxfinfo
# TODO: - add check if return data is valid
`#{MXFinfo.binary} #{@filepath.shellescape} 2>&1`