hornetseye-frame 1.0.1 → 1.0.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.
Files changed (3) hide show
  1. data/Rakefile +6 -1
  2. data/ext/colourspace.cc +2 -0
  3. metadata +6 -6
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rbconfig'
8
8
  require 'tempfile'
9
9
 
10
10
  PKG_NAME = 'hornetseye-frame'
11
- PKG_VERSION = '1.0.1'
11
+ PKG_VERSION = '1.0.2'
12
12
  CFG = RbConfig::CONFIG
13
13
  CXX = ENV[ 'CXX' ] || 'g++'
14
14
  RB_FILES = FileList[ 'lib/**/*.rb' ]
@@ -105,11 +105,16 @@ file 'ext/config.h' do |t|
105
105
  # need to compile with -D__STDC_CONSTANT_MACROS
106
106
  if check_c_header 'libswscale/swscale.h'
107
107
  s << "#define HAVE_LIBSWSCALE_INCDIR 1\n"
108
+ s << "#undef HAVE_FFMPEG_LIBSWSCALE_INCDIR 1\n"
109
+ elsif check_c_header 'ffmpeg/libswscale/swscale.h'
110
+ s << "#undef HAVE_LIBSWSCALE_INCDIR\n"
111
+ s << "#define HAVE_FFMPEG_LIBSWSCALE_INCDIR 1\n"
108
112
  else
109
113
  unless check_c_header 'ffmpeg/swscale.h'
110
114
  raise 'Cannot find swscale.h header file'
111
115
  end
112
116
  s << "#undef HAVE_LIBSWSCALE_INCDIR\n"
117
+ s << "#undef HAVE_FFMPEG_LIBSWSCALE_INCDIR 1\n"
113
118
  end
114
119
  File.open( t.name, 'w' ) { |f| f.puts s }
115
120
  end
@@ -19,6 +19,8 @@
19
19
  extern "C" {
20
20
  #ifndef HAVE_LIBSWSCALE_INCDIR
21
21
  #include <ffmpeg/swscale.h>
22
+ #elif HAVE_FFMPEG_LIBSWSCALE_INCDIR
23
+ #include <ffmpeg/libswscale/swscale.h>
22
24
  #else
23
25
  #include <libswscale/swscale.h>
24
26
  #endif
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hornetseye-frame
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-30 00:00:00.000000000 Z
12
+ date: 2013-12-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: malloc
@@ -70,17 +70,17 @@ files:
70
70
  - README.md
71
71
  - COPYING
72
72
  - .document
73
+ - lib/hornetseye-frame/fourcc.rb
74
+ - lib/hornetseye-frame/frame.rb
73
75
  - lib/hornetseye-frame/node.rb
74
76
  - lib/hornetseye-frame/shortcuts.rb
75
- - lib/hornetseye-frame/frame.rb
76
- - lib/hornetseye-frame/fourcc.rb
77
77
  - lib/hornetseye_frame_ext.rb
78
78
  - ext/colourspace.cc
79
- - ext/init.cc
80
79
  - ext/frame.cc
81
- - ext/frame.hh
80
+ - ext/init.cc
82
81
  - ext/colourspace.hh
83
82
  - ext/error.hh
83
+ - ext/frame.hh
84
84
  - ext/rubyinc.hh
85
85
  - test/ts_frame.rb
86
86
  - test/tc_frame.rb