Sha256: 2ffc277a0d6ee0cdc0f6cc9dacfef574706ea91f6164f2206f29f4d3386ea2cb
Contents?: true
Size: 336 Bytes
Versions: 3
Compression:
Stored size: 336 Bytes
Contents
require "spec_helper" describe SmartAss::YCbCrConverter do it "can mangle RGB doing RGB ->(bt601) YCbCr ->(b709) RGB" do bt601 = SmartAss::YCbCrConverter.new(:bt601) bt709 = SmartAss::YCbCrConverter.new(:bt709) yuv = bt601.to_ycbcr(16, 138, 187) rgb = bt709.to_rgb(*yuv) rgb.should =~ [5, 129, 191] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
smart_ass-0.3.0 | spec/ycbcr_converter_spec.rb |
smart_ass-0.2.0 | spec/ycbcr_converter_spec.rb |
smart_ass-0.1.0 | spec/ycbcr_converter_spec.rb |