Add vjeux

This commit is contained in:
Vanilagy
2025-11-02 22:03:35 +01:00
parent aad31009fe
commit efcf5d0069
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -104,6 +104,7 @@ const sponsors = {
{ image: '/sponsors/mux.jpg', name: 'Mux', url: 'https://www.mux.com/' },
],
individual: [
{ image: 'https://avatars.githubusercontent.com/u/197597', name: 'Christopher Chedeau', url: 'https://github.com/vjeux' },
{ image: 'https://avatars.githubusercontent.com/u/84167135', name: 'Memenome', url: 'https://github.com/memenome' },
{ image: 'https://avatars.githubusercontent.com/u/5913254', name: 'Brandon McConnell', url: 'https://github.com/brandonmcconnell' },
{ image: 'https://avatars.githubusercontent.com/u/9549394', name: 'studnitz', url: 'https://github.com/studnitz' },
+4 -3
View File
@@ -139,11 +139,12 @@ test('Can encode transparent video', async () => {
probeContext.drawImage(video, 0, 0);
let imageData = probeContext.getImageData(0, 0, probeCanvas.width, probeCanvas.height);
const index1 = (100 + 100 * probeCanvas.width) * 4;
const pos1 = { x: 100, y: 100 };
const index1 = (pos1.x + pos1.y * probeCanvas.width) * 4;
expect(imageData.data[index1 + 3]).toBe(0); // Transparent
const pos = { x: 300, y: 300 }; // Dead center in the red square
const index2 = (pos.x + pos.y * probeCanvas.width) * 4;
const pos2 = { x: 300, y: 300 }; // Dead center in the red square
const index2 = (pos2.x + pos2.y * probeCanvas.width) * 4;
// Red (within error)
expect(imageData.data[index2 + 0]).greaterThanOrEqual(253);