• Create Account

### #Actualcodewill

Posted 07 January 2013 - 01:54 PM

In Bink video how to eliminate the black pixel setting the Alpha =0 during at playback time?

In Allegro5 I set a Background image and create a popup new window where I show a .bik video.

This .bik video has black backgroud and has not Alpha Channel when the frame is decompressed.

I need set transparency where black pixel appear. So the main window background can be visible.

In a call to Blit_RAD_3D_image (Blit a 3D image onto the render target) I have this:

      if ( rad_image->download_textures )
{
Submit_texture( pixels,
}

//
// Submit the vertices.
//

Submit_vertices( dest_x,
dest_y,
x_scale,
y_scale,
alpha_level,
is_premultiplied_alpha );


VS2010 C++.

Thank you.

### #1codewill

Posted 07 January 2013 - 12:33 AM

I playback a Bink video file with black zones.

I need to set transparency when a black pixel appear. So the background image can be visible.

In a call to Blit_RAD_3D_image (Blit a 3D image onto the render target) I have this:

      if ( rad_image->download_textures )
{
Submit_texture( pixels,
}

//
// Submit the vertices.
//

Submit_vertices( dest_x,
dest_y,
x_scale,
y_scale,
alpha_level,
is_premultiplied_alpha );


How I find out if the pixel is black?

So I can set transparency.