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 UI #89

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# PicCap - Hyperion Sender App | Ambilight for LG WebOS TVs

# NV12 control box added

## What's this?

Expand Down
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: true,
Copy link

@Dak0r Dak0r Dec 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the hyperhdr stable release (v20) does not support it, yet, defaulting to false would be a more fitting default for now, imo

};
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 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.4.4",
"description": "PicCap - Hyperion Sender App",
"main": "index.html",
"scripts": {
Expand Down