hornetseye-v4l2 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/ext/v4l2input.cc +18 -0
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
8
 
9
9
  PKG_NAME = 'hornetseye-v4l2'
10
- PKG_VERSION = '0.3.0'
10
+ PKG_VERSION = '0.3.1'
11
11
  CFG = RbConfig::CONFIG
12
12
  CXX = ENV[ 'CXX' ] || 'g++'
13
13
  RB_FILES = FileList[ 'lib/**/*.rb' ]
data/ext/v4l2input.cc CHANGED
@@ -493,8 +493,10 @@ VALUE V4L2Input::registerRubyClass( VALUE module )
493
493
  INT2NUM(V4L2_PIX_FMT_YVYU) );
494
494
  rb_define_const( cRubyClass, "MODE_UYVY",
495
495
  INT2NUM(V4L2_PIX_FMT_UYVY) );
496
+ #ifdef V4L2_PIX_FMT_VYUY
496
497
  rb_define_const( cRubyClass, "MODE_VYUY",
497
498
  INT2NUM(V4L2_PIX_FMT_VYUY) );
499
+ #endif
498
500
  rb_define_const( cRubyClass, "MODE_YUV422P",
499
501
  INT2NUM(V4L2_PIX_FMT_YUV422P) );
500
502
  rb_define_const( cRubyClass, "MODE_YUV411P",
@@ -521,16 +523,22 @@ VALUE V4L2Input::registerRubyClass( VALUE module )
521
523
  INT2NUM(V4L2_PIX_FMT_NV12) );
522
524
  rb_define_const( cRubyClass, "MODE_NV21",
523
525
  INT2NUM(V4L2_PIX_FMT_NV21) );
526
+ #ifdef V4L2_PIX_FMT_NV16
524
527
  rb_define_const( cRubyClass, "MODE_NV16",
525
528
  INT2NUM(V4L2_PIX_FMT_NV16) );
529
+ #endif
530
+ #ifdef V4L2_PIX_FMT_NV61
526
531
  rb_define_const( cRubyClass, "MODE_NV61",
527
532
  INT2NUM(V4L2_PIX_FMT_NV61) );
533
+ #endif
528
534
  rb_define_const( cRubyClass, "MODE_SBGGR8",
529
535
  INT2NUM(V4L2_PIX_FMT_SBGGR8) );
530
536
  rb_define_const( cRubyClass, "MODE_SGBRG8",
531
537
  INT2NUM(V4L2_PIX_FMT_SGBRG8) );
538
+ #ifdef V4L2_PIX_FMT_SGRBG8
532
539
  rb_define_const( cRubyClass, "MODE_SGRBG8",
533
540
  INT2NUM(V4L2_PIX_FMT_SGRBG8) );
541
+ #endif
534
542
  rb_define_const( cRubyClass, "MODE_SGRBG10",
535
543
  INT2NUM(V4L2_PIX_FMT_SGRBG10) );
536
544
  rb_define_const( cRubyClass, "MODE_SGRBG10DPCM8",
@@ -549,8 +557,10 @@ VALUE V4L2Input::registerRubyClass( VALUE module )
549
557
  INT2NUM(V4L2_PIX_FMT_WNVA) );
550
558
  rb_define_const( cRubyClass, "MODE_SN9C10X",
551
559
  INT2NUM(V4L2_PIX_FMT_SN9C10X) );
560
+ #ifdef V4L2_PIX_FMT_SN9C20X_I420
552
561
  rb_define_const( cRubyClass, "MODE_SN9C20X_I420",
553
562
  INT2NUM(V4L2_PIX_FMT_SN9C20X_I420) );
563
+ #endif
554
564
  rb_define_const( cRubyClass, "MODE_PWC1",
555
565
  INT2NUM(V4L2_PIX_FMT_PWC1) );
556
566
  rb_define_const( cRubyClass, "MODE_PWC2",
@@ -567,16 +577,24 @@ VALUE V4L2Input::registerRubyClass( VALUE module )
567
577
  INT2NUM(V4L2_PIX_FMT_SPCA561) );
568
578
  rb_define_const( cRubyClass, "MODE_PAC207",
569
579
  INT2NUM(V4L2_PIX_FMT_PAC207) );
580
+ #ifdef V4L2_PIX_FMT_MR97310A
570
581
  rb_define_const( cRubyClass, "MODE_MR97310A",
571
582
  INT2NUM(V4L2_PIX_FMT_MR97310A) );
583
+ #endif
584
+ #ifdef V4L2_PIX_FMT_SQ905C
572
585
  rb_define_const( cRubyClass, "MODE_SQ905C",
573
586
  INT2NUM(V4L2_PIX_FMT_SQ905C) );
587
+ #endif
574
588
  rb_define_const( cRubyClass, "MODE_PJPG",
575
589
  INT2NUM(V4L2_PIX_FMT_PJPG) );
590
+ #ifdef V4L2_PIX_FMT_OV511
576
591
  rb_define_const( cRubyClass, "MODE_OV511",
577
592
  INT2NUM(V4L2_PIX_FMT_OV511) );
593
+ #endif
594
+ #ifdef V4L2_PIX_FMT_OV518
578
595
  rb_define_const( cRubyClass, "MODE_OV518",
579
596
  INT2NUM(V4L2_PIX_FMT_OV518) );
597
+ #endif
580
598
  rb_define_const( cRubyClass, "TYPE_INTEGER",
581
599
  INT2NUM(V4L2_CTRL_TYPE_INTEGER) );
582
600
  rb_define_const( cRubyClass, "TYPE_BOOLEAN",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
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: 2011-01-26 00:00:00 +00:00
17
+ date: 2011-04-11 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency