Skip to content

Instantly share code, notes, and snippets.

@chezsick
Last active March 19, 2019 01:31
Show Gist options
  • Save chezsick/3be0e68f42d1da159e017623e7e21fc2 to your computer and use it in GitHub Desktop.
Save chezsick/3be0e68f42d1da159e017623e7e21fc2 to your computer and use it in GitHub Desktop.
Generate The Parametters GUI In CryptImage By Television Identity, Runnable In BeanShell
import bsh.Interpreter;
int idtv = Integer.parseInt(bsh.args[0]);
System.out.println("=== IDTV : " + idtv + " ===");
String[] colormode = {"rgb","pal","secam","pal","pal composite"};
String[] tp = {"one","two","one"};
boolean[] demi = {false,false,true};
int[] start = {40,30,20,15,1,36,22};
int[] end = {215,225,235,240,255,216,222};
boolean[] strict = {false,true,false};
a = Math.floorDiv(idtv,911)%5;
System.out.println("Mode De Couleur : " + colormode[a]);
a = Math.floorDiv(idtv,599)%7;
b = Math.floorDiv(idtv,373)%7;
System.out.println("Point De Coupe VideoCrypt : " + start[a] + " - " + end[b]);
a = Math.floorDiv(idtv,577)%3;
System.out.println("VideoCrypt Stricte : " + strict[a]);
a = Math.floorDiv(idtv,311)%3;
System.out.println("Table Primaire Syster : " + tp[a]);
a = Math.floorDiv(idtv,277)%3;
System.out.println("Demi-Trame Syster : " + demi[a]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment