Base: BD-J Adjustments Blu-ray scaffold
Vendored BD-J SDK, tsMuxeR + local VLC plugins, ffmpeg asset generation, and a signed BD-J Xlet menu (org.homebrew.MyXlet) authored into a UDF 2.50 ISO. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
commit
9c88b8f7f6
110 changed files with 19469 additions and 0 deletions
64
src/org/homebrew/MyXlet.java
Normal file
64
src/org/homebrew/MyXlet.java
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
package org.homebrew;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import javax.tv.xlet.Xlet;
|
||||
import javax.tv.xlet.XletContext;
|
||||
import javax.tv.xlet.XletStateChangeException;
|
||||
import org.havi.ui.HScene;
|
||||
import org.havi.ui.HSceneFactory;
|
||||
|
||||
public class MyXlet extends Thread implements Xlet {
|
||||
private HScene scene;
|
||||
private AdjustmentsMenu menu;
|
||||
private boolean running;
|
||||
|
||||
public void initXlet(XletContext context) throws XletStateChangeException {
|
||||
menu = new AdjustmentsMenu();
|
||||
menu.setSize(1280, 720);
|
||||
|
||||
scene = HSceneFactory.getInstance().getDefaultHScene();
|
||||
scene.add(menu, BorderLayout.CENTER);
|
||||
scene.addKeyListener(menu);
|
||||
scene.validate();
|
||||
scene.repaint();
|
||||
}
|
||||
|
||||
public void startXlet() throws XletStateChangeException {
|
||||
running = true;
|
||||
menu.setVisible(true);
|
||||
scene.setVisible(true);
|
||||
menu.requestFocus();
|
||||
scene.requestFocus();
|
||||
start();
|
||||
}
|
||||
|
||||
public void pauseXlet() {
|
||||
if (menu != null) {
|
||||
menu.setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void destroyXlet(boolean unconditional) {
|
||||
running = false;
|
||||
interrupt();
|
||||
|
||||
if (scene != null && menu != null) {
|
||||
menu.setVisible(false);
|
||||
scene.remove(menu);
|
||||
}
|
||||
|
||||
scene = null;
|
||||
menu = null;
|
||||
}
|
||||
|
||||
public void run() {
|
||||
while (running) {
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException e) {
|
||||
running = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue