Skip to content

Commit 7d579d1

Browse files
committed
[NETFLIX] Add a package for Netflix 5.2
1 parent 3569c04 commit 7d579d1

5 files changed

Lines changed: 404 additions & 0 deletions

File tree

package/Config.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ menu "Audio and video applications"
4646
source "package/musepack/Config.in"
4747
source "package/netflix/Config.in"
4848
source "package/netflix5/Config.in"
49+
source "package/netflix52/Config.in"
4950
source "package/ncmpc/Config.in"
5051
source "package/omxplayer/Config.in"
5152
source "package/on2-8170-libs/Config.in"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git a/netflix/src/platform/gibbon/decoders/SurfaceDecoderJPEG.cpp b/netflix/src/platform/gibbon/decoders/SurfaceDecoderJPEG.cpp
2+
index f1be1cd..06a62b3 100644
3+
--- a/netflix/src/platform/gibbon/decoders/SurfaceDecoderJPEG.cpp
4+
+++ b/netflix/src/platform/gibbon/decoders/SurfaceDecoderJPEG.cpp
5+
@@ -81,7 +81,8 @@ bool ContextJPEG::decode(const Time &, SurfaceDecoder::DecodeInfo *result)
6+
strides[c] = s / int(heights[c]);
7+
channels[c] = (uint8_t*)malloc(s);
8+
}
9+
- if(tjDecompressToYUVPlanes(jpeg, data.constData(), data.size(), (unsigned char**)channels, result->info.size.width, (int*)strides, result->info.size.height, flags)) {
10+
+ if (tjDecompressToYUVPlanes(jpeg, const_cast<unsigned char *>(data.constData()), data.size(), (unsigned char **)channels, result->info.size.width, (int *)strides, result->info.size.height, flags))
11+
+ {
12+
const char *error = tjGetErrorStr();
13+
result->variant["error"] = error;
14+
Log::error(TRACE_UI_ENGINE, "JPEG Error[%s]: %s", resource->url().str().c_str(), error);
15+
@@ -126,8 +127,8 @@ bool ContextJPEG::decode(const Time &, SurfaceDecoder::DecodeInfo *result)
16+
default:
17+
assert(false);
18+
}
19+
- if(tjDecompress2(jpeg, data.constData(), data.size(), result->data.data(), result->info.size.width,
20+
- result->data.bytesPerLine(), result->info.size.height, format, flags))
21+
+ if (tjDecompress2(jpeg, const_cast<unsigned char *>(data.constData()), data.size(), result->data.data(), result->info.size.width,
22+
+ result->data.bytesPerLine(), result->info.size.height, format, flags))
23+
return false;
24+
}
25+
result->state = SurfaceDecoder::DecodeInfo::State_DecodeSuccess;

package/netflix52/Config.in

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
config BR2_PACKAGE_NETFLIX52
2+
bool "netflix5.2"
3+
select BR2_PACKAGE_LIBMNG
4+
select BR2_PACKAGE_LIBPNG
5+
select BR2_PACKAGE_ICU
6+
select BR2_PACKAGE_OPENJPEG
7+
select BR2_PACKAGE_LCMS2
8+
select BR2_PACKAGE_JPEG
9+
select BR2_PACKAGE_WEBP
10+
select BR2_PACKAGE_HARFBUZZ
11+
select BR2_PACKAGE_FREETYPE
12+
select BR2_PACKAGE_EXPAT
13+
select BR2_PACKAGE_OPENSSL
14+
select BR2_PACKAGE_C_ARES
15+
select BR2_PACKAGE_LIBCURL
16+
select BR2_PACKAGE_GRAPHITE2
17+
select BR2_PACKAGE_NGHTTP2
18+
select BR2_PACKAGE_TREMOR
19+
help
20+
Netflix 5.2
21+
22+
if BR2_PACKAGE_NETFLIX52
23+
24+
menu "Extra options"
25+
26+
choice
27+
bool "Application type"
28+
default BR2_PACKAGE_NETFLIX52_LIB
29+
help
30+
Choose application type.
31+
32+
config BR2_PACKAGE_NETFLIX52_APP
33+
bool "executable"
34+
help
35+
Create Netflix standalone app.
36+
37+
config BR2_PACKAGE_NETFLIX52_LIB
38+
bool "library"
39+
help
40+
Create Netflix library.
41+
42+
endchoice
43+
44+
config BR2_PACKAGE_NETFLIX52_KEYMAP
45+
string "keymap"
46+
help
47+
Install custom keymap
48+
49+
config BR2_PACKAGE_NETFLIX52_GST_GL
50+
bool "gl"
51+
depends on BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_GL
52+
default y
53+
54+
config BR2_PACKAGE_NETFLIX52_WESTEROS_SINK
55+
bool "westeros-sink"
56+
depends on BR2_PACKAGE_WPEFRAMEWORK_COMPOSITOR
57+
default n
58+
59+
config BR2_PACKAGE_NETFLIX52_AUDIO_MIXER
60+
bool "audio-mixer"
61+
select BR2_PACKAGE_TREMOR
62+
default BR2_PACKAGE_HAS_NEXUS
63+
64+
if BR2_PACKAGE_NETFLIX52_AUDIO_MIXER
65+
66+
choice
67+
bool "Audio Mixer type"
68+
default BR2_PACKAGE_NETFLIX52_AUDIO_MIXER_SOFTWARE
69+
help
70+
Choose Audio Mixer type
71+
72+
config BR2_PACKAGE_NETFLIX52_AUDIO_MIXER_SOFTWARE
73+
bool "software"
74+
help
75+
Software Audio Mixer
76+
77+
config BR2_PACKAGE_NETFLIX52_AUDIO_MIXER_NEXUS
78+
bool "nexus"
79+
depends on BR2_PACKAGE_HAS_NEXUS
80+
help
81+
Nexus Audio Mixer
82+
83+
endchoice
84+
endif
85+
86+
choice
87+
bool "DRM"
88+
default BR2_PACKAGE_NETFLIX52_DRM_OCDM
89+
help
90+
Choose DRM Type
91+
92+
config BR2_PACKAGE_NETFLIX52_DRM_PLAYREADY
93+
bool "playready"
94+
select BR2_PACKAGE_PLAYREADY
95+
help
96+
DRM Playready
97+
98+
config BR2_PACKAGE_NETFLIX52_DRM_OCDM
99+
bool "ocdm"
100+
depends on BR2_PACKAGE_WPEFRAMEWORK_CDMI
101+
help
102+
DRM Ocdm
103+
104+
endchoice
105+
106+
config BR2_PACKAGE_NETFLIX52_DISABLE_TOOLS
107+
bool "Disable tools"
108+
help
109+
Do not build tools for netflix
110+
111+
config BR2_PACKAGE_NETFLIX52_CREATE_BINARY_ML_DELIVERY
112+
bool "Create delivery package"
113+
help
114+
Create tarball containing the build to be deployed else where.
115+
116+
endmenu
117+
endif

package/netflix52/netflix.pc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
prefix=/usr
2+
exec_prefix=${prefix}
3+
libdir=${exec_prefix}/lib
4+
includedir=${prefix}/include/netflix
5+
6+
Name: netflix
7+
Description: Netflix
8+
Requires:
9+
Version: 5.2
10+
Libs: -L${libdir} -lnetflix
11+
Cflags: -I${includedir}

0 commit comments

Comments
 (0)