ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE - link download
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE - link download
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE - link download
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE - link download
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE -
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE -
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE -
static final int leds[][] = new int[][] {
{0,3,5}, {0,2,5}, {0,1,5}, {0,0,5}, // Bottom edge, left half
{0,0,4}, {0,0,3}, {0,0,2}, {0,0,1}, // Left edge
{0,0,0}, {0,1,0}, {0,2,0}, {0,3,0}, {0,4,0}, // Top edge
{0,5,0}, {0,6,0}, {0,7,0}, {0,8,0}, // More top edge
{0,8,1}, {0,8,2}, {0,8,3}, {0,8,4}, // Right edge
{0,8,5}, {0,7,5}, {0,6,5}, {0,5,5}
}; // Bottom edge, right half
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE -
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE -
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE -
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE -
// PER-DISPLAY INFORMATION ---------------------------------------------------
// This array contains details for each display that the software will
// process. If you have screen(s) attached that are not among those being
// "Adalighted," they should not be in this list. Each entry in this
// array represents one display. The first number is the system screen
// number...typically the "primary" display on most systems is identified
// as screen #1, but since arrays are indexed from zero, use 0 to indicate
// the first screen, 1 to indicate the second screen, and so forth. This
// is the ONLY place system screen numbers are used...ANY subsequent
// references to displays are an index into this list, NOT necessarily the
// same as the system screen number. For example, if you have a three-
// screen setup and are illuminating only the third display, use '2' for
// the screen number here...and then, in subsequent section, '0' will be
// used to refer to the first/only display in this list.
// The second and third numbers of each triplet represent the width and
// height of a grid of LED pixels attached to the perimeter of this display.
// For example, '9,6' = 9 LEDs across, 6 LEDs down.
// The use scaling switch is to ue X and X scaling to select a percentage of
// the full width, height to be used for coordinate calculations. They are
// set as extra X, Y percentage scaling factors in the display array below.
// This is useful if the video display has black bars on the edges. It will
// effectively use the central scale percentage of each dimension of the
// screen to calculate the sampling coordinates.
static final boolean useXScaling = true;
static final boolean useYScaling = true;
static final int displays[][] = new int[][] {
{0,24,16, 100, 90} // Screen 0, 24 LEDs across, 16 LEDs down, 100% X scaling 90% Y
// ,{?,24,16, 100, 100} // Screen ?, also 24 LEDs across and 16 LEDs down. no scaling
};
float f, range, step, start, scalingOffset;
// Precompute columns, rows of each sampled point for this LED
scalingOffset = 0.0;
range = (float)dispBounds[d].width / (float)displays[d][1];
if(useXScaling == true) {
range *= (float)displays[d][3] / 100.0;
scalingOffset = (100.0 - (float)displays[d][3]) / 200.0 * (float)dispBounds[d].width;
}
step = range / 16.0;
start = scalingOffset + range * (float)leds[i][1] + step * 0.5;
for(col=0; col<16; col++) x[col] = (int)(start + step * (float)col);
scalingOffset = 0.0;
range = (float)dispBounds[d].height / (float)displays[d][2];
if(useYScaling == true) {
range *= (float)displays[d][4] / 100.0;
scalingOffset = (100.0 - (float)displays[d][4]) / 200.0 * (float)dispBounds[d].height;
}
step = range / 16.0;
start = scalingOffset + range * (float)leds[i][2] + step * 0.5;
for(row=0; row<16; row++) y[row] = (int)(start + step * (float)row);
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE -
montagnem wrote:Hi everybody,
i've bought the adalight pack for few days now, and it's great i think, but on all movies with letterbox , black screen the color on top and bottom are completly wrong, dark due to the black color, so i decided to develop a release with detection of black bars letterbox on keyboard event (K for cinema mode) (L for normal mode),
i've implemented a property file for customizing some properties
i've implemented a log file , to see why it's does not work
i've implemented a native keybord listener to detect keyboard touch seeing your favorite cinema movies
Hope you 'll like it,
First commit !
Direct link : http://adalight-with-black-bars-letterbox-detection.googlecode.com/files/Adalight-letterboxV1.0.zip
site : http://code.google.com/p/adalight-with- ... akechanges
PLEASE read the HOW-TO-RUN.txt to run adalight, it's very easy to launch it.
just note JAVA MUST BE INSTALLED BEFORE ALL.
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE -
Re: ADALIGHT - DETECT BLACK BARS - LETTERBOX - CINEMA MODE -