Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NV12 #90

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open

NV12 #90

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
707d20a
Update index.html
satgit62 Dec 1, 2024
362e6f3
Update servicecalls.js
satgit62 Dec 1, 2024
c6363f1
Update index.html
satgit62 Dec 1, 2024
ee7cf7b
Update servicecalls.js
satgit62 Dec 2, 2024
aa60a74
Update servicecalls.js
satgit62 Dec 2, 2024
783500d
Update index.html
satgit62 Dec 2, 2024
10fa0e1
Update servicecalls.js
satgit62 Dec 2, 2024
e395a07
Update index.html
satgit62 Dec 2, 2024
10514b2
Update servicecalls.js
satgit62 Dec 2, 2024
c681389
Update index.html
satgit62 Dec 2, 2024
572b4a1
Add files via upload
satgit62 Dec 2, 2024
5d6460a
Update index.html
satgit62 Dec 2, 2024
9684665
Update servicecalls.js
satgit62 Dec 2, 2024
ab2bc4c
Update servicecalls.js
satgit62 Dec 2, 2024
b8ec901
Update hyperion-webos
satgit62 Dec 2, 2024
ec8b4a4
Update servicecalls.js
satgit62 Dec 2, 2024
6728f29
Update package.json
satgit62 Dec 4, 2024
bb9c5ed
Update build_piccap.yml
satgit62 Dec 26, 2024
1e511ac
Add files via upload
satgit62 Dec 27, 2024
a04f3f7
Update package.json
satgit62 Dec 27, 2024
63ad31f
Update appinfo.json
satgit62 Dec 27, 2024
1df55ed
Update package.json
satgit62 Dec 27, 2024
eda7f2b
Update package.json
satgit62 Dec 27, 2024
42450f5
Update package.json
satgit62 Dec 29, 2024
5f73c21
Update servicecalls.js
satgit62 Dec 29, 2024
e6caf36
Update README.md
satgit62 Dec 29, 2024
fdb91ee
Update index.html
satgit62 Dec 29, 2024
d7d8690
Update README.md
satgit62 Dec 29, 2024
61b1efa
Update README.md
satgit62 Dec 29, 2024
f978b81
Merge branch 'TBSniller:main' into NV12
satgit62 Dec 29, 2024
3e137b0
Update appinfo.json
satgit62 Dec 29, 2024
32a5754
Update README.md
satgit62 Dec 29, 2024
b7087de
Update servicecalls.js
satgit62 Jan 15, 2025
b491748
Add files via upload
satgit62 Jan 22, 2025
0c3f624
Add files via upload
satgit62 Jan 22, 2025
a17d306
Add files via upload
satgit62 Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build_piccap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
workflow_dispatch:

env:
TOOLCHAIN_URL: https://github.com/openlgtv/buildroot-nc4/releases/download/webos-c592d84/arm-webos-linux-gnueabi_sdk-buildroot.tar.gz
TOOLCHAIN_SHA256: be5b4249177fc31b3f0120106c761f42ade54fd609a3bd090852899bbdd680b9
TOOLCHAIN_URL: https://github.com/openlgtv/buildroot-nc4/releases/download/webos-d7ed7ee/arm-webos-linux-gnueabi_sdk-buildroot.tar.gz
TOOLCHAIN_SHA256: 32816626e99fb34922a49d0c639f7c8a30356fffb222372d4823027f1382f640
TOOLCHAIN_DIR: /opt/arm-webos-linux-gnueabi_sdk-buildroot
CMAKE_TOOLCHAIN_FILE: /opt/arm-webos-linux-gnueabi_sdk-buildroot/share/buildroot/toolchainfile.cmake
TOOLCHAIN_FILE: /opt/arm-webos-linux-gnueabi_sdk-buildroot/share/buildroot/toolchainfile.cmake

jobs:
build-all:
Expand All @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22

- name: Install webOS CLI
run: sudo npm install --location=global @webosose/ares-cli
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
run: find . && find ./build

- name: Upload PicCap IPK
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: piccap_ipk
path: ./build/*.ipk
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# PicCap - Hyperion Sender App | Ambilight for LG WebOS TVs
# PicCap - Hyperion Sender App | Ambilight for LG WebOS TVs


## What's this?

Expand Down Expand Up @@ -70,7 +71,7 @@ wget -O toolchain.tar.gz $TOOLCHAIN_URL_FROM_RELEASES
tar -xvzf toolchain.tar.gz
rm toolchain.tar.gz
arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh
export CMAKE_TOOLCHAIN_FILE=/desired/path/arm-webos-linux-gnueabi_sdk-buildroot/share/buildroot/toolchainfile.cmake
export TOOLCHAIN_FILE=/desired/path/arm-webos-linux-gnueabi_sdk-buildroot/share/buildroot/toolchainfile.cmake

# Clone project and submodules
git clone --recursive https://github.com/TBSniller/piccap.git
Expand Down
4 changes: 2 additions & 2 deletions frontend/appinfo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "org.webosbrew.piccap",
"version": "0.4.3",
"version": "0.5.0",
"vendor": "Homebrew",
"type": "web",
"main": "index.html",
Expand All @@ -12,4 +12,4 @@
"bgImage": "assets/splash_1080p.png",
"iconColor": "black",
"supportGIP": true
}
}
1 change: 1 addition & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
<div class="checkboxes checklabel blueMode">
<label for="checkSettingsAutostart">Autostart<input type="checkbox" id="checkSettingsAutostart"/></label><br/>
<label for="checkSettingsVSync">VSync<input type="checkbox" id="checkSettingsVSync"/></label>
<label for="checkSettingsNV12">NV12<input type="checkbox" id="checkSettingsNV12"/></label>
</div>
</li>
</ul><br/>
Expand Down
6 changes: 4 additions & 2 deletions frontend/js/servicecalls.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ function getSettings() {
document.getElementById('checkSettingsAutostart').checked = result.autostart;
document.getElementById('checkSettingsNoHDR').checked = result.nohdr;
document.getElementById('checkSettingsNoPowerstate').checked = result.nopowerstate;
document.getElementById('checkSettingsNV12').checked = result.nv12;

logIt('Loading settings done!');
document.getElementById('txtInfoState').innerHTML = 'Settings loaded';
Expand Down Expand Up @@ -298,6 +299,7 @@ window.serviceResetSettings = () => {

vsync: true,
autostart: false,
nv12: false,
};
logIt(config);

Expand Down Expand Up @@ -388,8 +390,8 @@ window.serviceSaveSettings = () => {
autostart: document.getElementById('checkSettingsAutostart').checked,
nohdr: document.getElementById('checkSettingsNoHDR').checked,
nopowerstate: document.getElementById('checkSettingsNoPowerstate').checked,

};
nv12: document.getElementById('checkSettingsNV12').checked,
};

logIt(`Config: ${JSON.stringify(config)}`);

Expand Down
2 changes: 1 addition & 1 deletion hyperion-webos
Submodule hyperion-webos updated 99 files
+3 −3 .github/workflows/build.yml
+3 −4 CMakeLists.txt
+6 −6 README.md
+81 −0 fbs/CMakeLists.txt
+0 −672 fbs/flatbuffers_common_builder.h
+0 −571 fbs/flatbuffers_common_reader.h
+0 −58 fbs/hyperion_reply_builder.h
+0 −48 fbs/hyperion_reply_reader.h
+10 −1 fbs/hyperion_request.fbs
+0 −273 fbs/hyperion_request_builder.h
+0 −203 fbs/hyperion_request_reader.h
+0 −1 flatccrt/.gitignore
+0 −5 flatccrt/CMakeLists.txt
+0 −266 flatccrt/include/flatcc/flatcc.h
+0 −98 flatccrt/include/flatcc/flatcc_accessors.h
+0 −127 flatccrt/include/flatcc/flatcc_alloc.h
+0 −1,894 flatccrt/include/flatcc/flatcc_builder.h
+0 −215 flatccrt/include/flatcc/flatcc_emitter.h
+0 −125 flatccrt/include/flatcc/flatcc_endian.h
+0 −8 flatccrt/include/flatcc/flatcc_epilogue.h
+0 −51 flatccrt/include/flatcc/flatcc_flatbuffers.h
+0 −144 flatccrt/include/flatcc/flatcc_identifier.h
+0 −31 flatccrt/include/flatcc/flatcc_iov.h
+0 −896 flatccrt/include/flatcc/flatcc_json_parser.h
+0 −754 flatccrt/include/flatcc/flatcc_json_printer.h
+0 −14 flatccrt/include/flatcc/flatcc_portable.h
+0 −8 flatccrt/include/flatcc/flatcc_prologue.h
+0 −144 flatccrt/include/flatcc/flatcc_refmap.h
+0 −162 flatccrt/include/flatcc/flatcc_rtconfig.h
+0 −97 flatccrt/include/flatcc/flatcc_types.h
+0 −16 flatccrt/include/flatcc/flatcc_unaligned.h
+0 −239 flatccrt/include/flatcc/flatcc_verifier.h
+0 −14 flatccrt/include/flatcc/flatcc_version.h
+0 −14 flatccrt/include/flatcc/portable/LICENSE
+0 −57 flatccrt/include/flatcc/portable/README.md
+0 −320 flatccrt/include/flatcc/portable/grisu3_math.h
+0 −583 flatccrt/include/flatcc/portable/grisu3_parse.h
+0 −265 flatccrt/include/flatcc/portable/grisu3_print.h
+0 −4 flatccrt/include/flatcc/portable/include/README
+0 −1 flatccrt/include/flatcc/portable/include/linux/endian.h
+0 −1 flatccrt/include/flatcc/portable/include/std/inttypes.h
+0 −1 flatccrt/include/flatcc/portable/include/std/stdalign.h
+0 −1 flatccrt/include/flatcc/portable/include/std/stdbool.h
+0 −1 flatccrt/include/flatcc/portable/include/std/stdint.h
+0 −177 flatccrt/include/flatcc/portable/paligned_alloc.h
+0 −448 flatccrt/include/flatcc/portable/pbase64.h
+0 −72 flatccrt/include/flatcc/portable/pdiagnostic.h
+0 −15 flatccrt/include/flatcc/portable/pdiagnostic_pop.h
+0 −46 flatccrt/include/flatcc/portable/pdiagnostic_push.h
+0 −185 flatccrt/include/flatcc/portable/pendian.h
+0 −118 flatccrt/include/flatcc/portable/pendian_detect.h
+0 −19 flatccrt/include/flatcc/portable/pinline.h
+0 −52 flatccrt/include/flatcc/portable/pinttypes.h
+0 −2 flatccrt/include/flatcc/portable/portable.h
+0 −25 flatccrt/include/flatcc/portable/portable_basic.h
+0 −128 flatccrt/include/flatcc/portable/pparsefp.h
+0 −374 flatccrt/include/flatcc/portable/pparseint.h
+0 −39 flatccrt/include/flatcc/portable/pprintfp.h
+0 −633 flatccrt/include/flatcc/portable/pprintint.h
+0 −67 flatccrt/include/flatcc/portable/pstatic_assert.h
+0 −280 flatccrt/include/flatcc/portable/pstatic_assert_scope.h
+0 −139 flatccrt/include/flatcc/portable/pstdalign.h
+0 −37 flatccrt/include/flatcc/portable/pstdbool.h
+0 −898 flatccrt/include/flatcc/portable/pstdint.h
+0 −190 flatccrt/include/flatcc/portable/punaligned.h
+0 −6 flatccrt/include/flatcc/portable/pversion.h
+0 −52 flatccrt/include/flatcc/portable/pwarnings.h
+0 −19 flatccrt/include/flatcc/reflection/README
+0 −672 flatccrt/include/flatcc/reflection/flatbuffers_common_builder.h
+0 −571 flatccrt/include/flatcc/reflection/flatbuffers_common_reader.h
+0 −344 flatccrt/include/flatcc/reflection/reflection_builder.h
+0 −284 flatccrt/include/flatcc/reflection/reflection_reader.h
+0 −239 flatccrt/include/flatcc/reflection/reflection_verifier.h
+0 −1 flatccrt/include/flatcc/support/README
+0 −39 flatccrt/include/flatcc/support/cdump.h
+0 −73 flatccrt/include/flatcc/support/elapsed.h
+0 −47 flatccrt/include/flatcc/support/hexdump.h
+0 −63 flatccrt/include/flatcc/support/readfile.h
+ flatccrt/lib/libflatccrt.a
+0 −2 libyuv/.gitignore
+6 −3 libyuv/CMakeLists.txt
+0 −2 libyuv/include/.gitignore
+1 −1 src/backends/libdile_vt.c
+1 −1 src/backends/libgm.c
+2 −2 src/backends/libhalgal.c
+5 −5 src/backends/libvtcapture.cpp
+69 −4 src/converter.c
+5 −0 src/converter.h
+19 −2 src/hyperion_client.c
+2 −0 src/hyperion_client.h
+36 −12 src/json_rpc_client.c
+8 −1 src/json_rpc_client.h
+6 −1 src/main.c
+1 −1 src/quirks.h
+18 −20 src/service.c
+4 −0 src/settings.c
+1 −0 src/settings.h
+78 −64 src/unicapture.c
+6 −2 src/unicapture.h
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "org.webosbrew.piccap",
"version": "0.4.3",
"version": "0.5.0",
"description": "PicCap - Hyperion Sender App",
"main": "index.html",
"scripts": {
Expand All @@ -10,8 +10,8 @@
"lint-backend-fix": "cd ./hyperion-webos && python lint/run-clang-format.py --extensions \"c,h,cpp\" --color auto --recursive --inplace true ./src",
"clean": "rm -rf ./build/*; rm -rf ./hyperion-webos/build/*",
"build-frontend": "mkdir -p ./build/piccap-frontend && webpack",
"build-backend": "mkdir -p ./build/hyperion-webos && mkdir -p ./hyperion-webos/build && cd ./hyperion-webos/build && cmake .. && make hyperion-webos gm_backend halgal_backend dile_vt_backend vtcapture_backend && cd ../.. && cp ./hyperion-webos/build/hyperion-webos ./build/hyperion-webos/ && cp ./hyperion-webos/build/libdile_vt_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libgm_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libhalgal_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libvtcapture_backend.so ./build/hyperion-webos/ && cp ./servicefiles/* ./build/hyperion-webos && chmod +x ./build/hyperion-webos/hyperion-webos ./build/hyperion-webos/piccapautostart",
"build-all": "mkdir -p ./build/piccap-frontend && webpack && mkdir -p ./build/hyperion-webos && mkdir -p ./hyperion-webos/build && cd ./hyperion-webos/build && cmake .. && make && cd ../.. && cp ./hyperion-webos/build/hyperion-webos ./build/hyperion-webos/ && cp ./hyperion-webos/build/libdile_vt_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libgm_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libhalgal_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libvtcapture_backend.so ./build/hyperion-webos/ && cp ./servicefiles/* ./build/hyperion-webos && chmod +x ./build/hyperion-webos/hyperion-webos ./build/hyperion-webos/piccapautostart",
"build-backend": "mkdir -p ./build/hyperion-webos && mkdir -p ./hyperion-webos/build && cd ./hyperion-webos/build && cmake -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN_FILE .. && make hyperion-webos gm_backend halgal_backend dile_vt_backend vtcapture_backend && cd ../.. && cp ./hyperion-webos/build/hyperion-webos ./build/hyperion-webos/ && cp ./hyperion-webos/build/libdile_vt_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libgm_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libhalgal_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libvtcapture_backend.so ./build/hyperion-webos/ && cp ./servicefiles/* ./build/hyperion-webos && chmod +x ./build/hyperion-webos/hyperion-webos ./build/hyperion-webos/piccapautostart",
"build-all": "mkdir -p ./build/piccap-frontend && webpack && mkdir -p ./build/hyperion-webos && mkdir -p ./hyperion-webos/build && cd ./hyperion-webos/build && cmake -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN_FILE .. && make && cd ../.. && cp ./hyperion-webos/build/hyperion-webos ./build/hyperion-webos/ && cp ./hyperion-webos/build/libdile_vt_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libgm_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libhalgal_backend.so ./build/hyperion-webos/ && cp ./hyperion-webos/build/libvtcapture_backend.so ./build/hyperion-webos/ && cp ./servicefiles/* ./build/hyperion-webos && chmod +x ./build/hyperion-webos/hyperion-webos ./build/hyperion-webos/piccapautostart",
"package": "ares-package ./build/piccap-frontend ./build/hyperion-webos -o ./build",
"deploy": "ares-install org.webosbrew.piccap_${npm_package_version}_all.ipk",
"launch": "ares-launch org.webosbrew.piccap"
Expand Down
Loading