forked from gwik/ffmpeg-rb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,47 @@ | |||
require 'ffmpeg/test_case' | |||
|
|||
class TestFFMPEGFormatParameters < FFMPEG::TestCase | |||
|
|||
def setup | |||
super | |||
|
|||
@fp = FFMPEG::FormatParameters.new | |||
end | |||
|
|||
def test_channel | |||
@fp.channel = 1 | |||
assert_equal 1, @fp.channel | |||
end | |||
|
|||
def test_channels | |||
@fp.channels = 2 | |||
assert_equal 2, @fp.channels | |||
end | |||
|
|||
def test_height | |||
@fp.height = 30 | |||
assert_equal 30, @fp.height | |||
end | |||
|
|||
def test_pixel_format | |||
@fp.channel = FFMPEG::PixelFormat::YUV420P | |||
assert_equal FFMPEG::PixelFormat::YUV420P, @fp.pixel_format | |||
end | |||
|
|||
def test_sample_rate | |||
@fp.sample_rate = 16_000 | |||
assert_equal 16_000, @fp.sample_rate | |||
end | |||
|
|||
def test_width | |||
@fp.width = 40 | |||
assert_equal 40, @fp.width | |||
end | |||
|
|||
def test_standard | |||
@fp.standard = 'NTSC' | |||
assert_equal 'NTSC', @fp.standard | |||
end | |||
|
|||
end | |||
|