hornetseye-frame 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config.rb +1 -1
- data/ext/colourspace.cc +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaec34f25734b2d0f708433a1de0c23e8eb43e4e
|
4
|
+
data.tar.gz: dda60fa602ccdd4a30936ebaa572adda9642f3a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3b01fbb7c2db6239f2ed4f5737f74086da600fc442b76412e24e8d21ca7b973cfdc49dc0eb9d9037b4d1f01fe67a5a3f0a1ec0b675a830d7fef9d3fbfd8a19f
|
7
|
+
data.tar.gz: 1f9c09871a980d5c2b470667017294f5adb7951e688e679428794bfedd96fb6c5b62a20a6ad40808a78f5a6759c9056782f2c4185f14e6a3b47260fd696d34c0
|
data/config.rb
CHANGED
data/ext/colourspace.cc
CHANGED
@@ -33,23 +33,23 @@ static void setupFormat( const string &typecode, int width, int height, char *me
|
|
33
33
|
uint8_t **data, int *lineSize ) throw (Error)
|
34
34
|
{
|
35
35
|
if ( typecode == "UBYTE" ) {
|
36
|
-
*format =
|
36
|
+
*format = AV_PIX_FMT_GRAY8;
|
37
37
|
data[ 0 ] = (uint8_t *)memory;
|
38
38
|
lineSize[ 0 ] = width;
|
39
39
|
} else if ( typecode == "UBYTERGB" ) {
|
40
|
-
*format =
|
40
|
+
*format = AV_PIX_FMT_RGB24;
|
41
41
|
data[ 0 ] = (uint8_t *)memory;
|
42
42
|
lineSize[ 0 ] = width * 3;
|
43
43
|
} else if ( typecode == "BGR" ) {
|
44
|
-
*format =
|
44
|
+
*format = AV_PIX_FMT_BGR24;
|
45
45
|
data[ 0 ] = (uint8_t *)memory;
|
46
46
|
lineSize[ 0 ] = width * 3;
|
47
47
|
} else if ( typecode == "BGRA" ) {
|
48
|
-
*format =
|
48
|
+
*format = AV_PIX_FMT_BGRA;
|
49
49
|
data[ 0 ] = (uint8_t *)memory;
|
50
50
|
lineSize[ 0 ] = width * 4;
|
51
51
|
} else if ( typecode == "YV12" ) {
|
52
|
-
*format =
|
52
|
+
*format = AV_PIX_FMT_YUV420P;
|
53
53
|
int
|
54
54
|
width2 = ( width + 1 ) / 2,
|
55
55
|
height2 = ( height + 1 ) / 2,
|
@@ -62,7 +62,7 @@ static void setupFormat( const string &typecode, int width, int height, char *me
|
|
62
62
|
lineSize[ 1 ] = width2a;
|
63
63
|
lineSize[ 2 ] = width2a;
|
64
64
|
} else if ( typecode == "I420" ) {
|
65
|
-
*format =
|
65
|
+
*format = AV_PIX_FMT_YUV420P;
|
66
66
|
int
|
67
67
|
width2 = ( width + 1 ) / 2,
|
68
68
|
height2 = ( height + 1 ) / 2;
|
@@ -73,13 +73,13 @@ static void setupFormat( const string &typecode, int width, int height, char *me
|
|
73
73
|
lineSize[ 1 ] = width2;
|
74
74
|
lineSize[ 2 ] = width2;
|
75
75
|
} else if ( typecode == "YUY2" ) {
|
76
|
-
*format =
|
76
|
+
*format = AV_PIX_FMT_YUYV422;
|
77
77
|
int
|
78
78
|
widtha = ( width + 3 ) & ~0x3;
|
79
79
|
data[ 0 ] = (uint8_t *)memory;
|
80
80
|
lineSize[ 0 ] = 2 * widtha;
|
81
81
|
} else if ( typecode == "UYVY" ) {
|
82
|
-
*format =
|
82
|
+
*format = AV_PIX_FMT_UYVY422;
|
83
83
|
int widtha = ( width + 3 ) & ~0x3;
|
84
84
|
data[ 0 ] = (uint8_t *)memory;
|
85
85
|
lineSize[ 0 ] = 2 * widtha;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hornetseye-frame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Wedekind
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: malloc
|