Sha256: 2c4ccb3f983b2033c298f57aed3b6e5cf9db15f1e496c2bd2992f7cafd5803b2
Contents?: true
Size: 529 Bytes
Versions: 42
Compression:
Stored size: 529 Bytes
Contents
class TestCaps < Test::Unit::TestCase def test_size assert_equal(1, smpte_caps.size) end def test_get_structure assert_equal("video/x-raw-yuv", smpte_caps[0].name) end def test_each assert_equal(["video/x-raw-yuv"], smpte_caps.collect {|structure| structure.name}) end private def smpte_caps smpte = Gst::ElementFactory.find("smpte") assert_not_nil(smpte) smpte.pad_templates.find do |template| template.direction == Gst::Pad::SRC end.caps.to_caps end end
Version data entries
42 entries across 42 versions & 1 rubygems