hornetseye-ffmpeg 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
8
 
9
9
  PKG_NAME = 'hornetseye-ffmpeg'
10
- PKG_VERSION = '0.4.1'
10
+ PKG_VERSION = '0.4.2'
11
11
  CXX = ENV[ 'CXX' ] || 'g++'
12
12
  STRIP = ENV[ 'STRIP' ] || 'strip'
13
13
  RB_FILES = FileList[ 'lib/**/*.rb' ]
@@ -46,7 +46,7 @@ task :all => [ SO_FILE ]
46
46
 
47
47
  file SO_FILE => OBJ do |t|
48
48
  sh "#{CXX} -shared -o #{t.name} #{OBJ} -lavformat -lswscale #{$LIBRUBYARG}"
49
- # sh "#{STRIP} --strip-all #{t.name}"
49
+ sh "#{STRIP} --strip-all #{t.name}"
50
50
  end
51
51
 
52
52
  task :test => [ SO_FILE ]
data/ext/avinput.cc CHANGED
@@ -178,7 +178,7 @@ long long AVInput::startTime(void) throw (Error)
178
178
  return m_ic->streams[ m_idx ]->start_time;
179
179
  }
180
180
 
181
- void AVInput::seek( long timestamp ) throw (Error)
181
+ void AVInput::seek( long long timestamp ) throw (Error)
182
182
  {
183
183
  ERRORMACRO( m_ic != NULL, Error, , "Video \"" << m_mrl << "\" is not open. "
184
184
  "Did you call \"close\" before?" );
data/ext/avinput.hh CHANGED
@@ -51,7 +51,7 @@ public:
51
51
  AVRational frameRate(void) throw (Error);
52
52
  long long duration(void) throw (Error);
53
53
  long long startTime(void) throw (Error);
54
- void seek( long timestamp ) throw (Error);
54
+ void seek( long long timestamp ) throw (Error);
55
55
  long long pts(void) throw (Error);
56
56
  static VALUE cRubyClass;
57
57
  static VALUE registerRubyClass( VALUE rbModule );
data/ext/frame.cc CHANGED
@@ -60,6 +60,11 @@ char *Frame::data(void)
60
60
  return ptr;
61
61
  }
62
62
 
63
+ bool Frame::rgb(void)
64
+ {
65
+ return rb_funcall( m_frame, rb_intern( "rgb?" ), 0 ) != Qfalse;
66
+ }
67
+
63
68
  void Frame::markRubyMember(void)
64
69
  {
65
70
  rb_gc_mark( m_frame );
data/ext/frame.hh CHANGED
@@ -30,6 +30,7 @@ public:
30
30
  int width(void);
31
31
  int height(void);
32
32
  char *data(void);
33
+ bool rgb(void);
33
34
  VALUE rubyObject(void) { return m_frame; }
34
35
  void markRubyMember(void);
35
36
  static int storageSize( const std::string &typecode, int width, int height );
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 1
9
- version: 0.4.1
8
+ - 2
9
+ version: 0.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jan Wedekind
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-08 00:00:00 +01:00
17
+ date: 2010-10-15 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency