Commit 2c5cab2a authored by Felix Paul Kühne's avatar Felix Paul Kühne

opengl vout: fixed chroma issue with dated PowerPC-based Macs, which run...

opengl vout: fixed chroma issue with dated PowerPC-based Macs, which run OpenGL 1.3 only and don't support the GL_ARB_fragment_program extension
(cherry picked from commit ac5631c7)
parent a9b2cd97
...@@ -8,6 +8,8 @@ Video Output: ...@@ -8,6 +8,8 @@ Video Output:
* Various fixes on Mac OS X, notably for crop, zoom, osd and menu support * Various fixes on Mac OS X, notably for crop, zoom, osd and menu support
* Added menu support for libvlc / VLCKit applications on Mac OS X * Added menu support for libvlc / VLCKit applications on Mac OS X
* Misc fixes in OpenGL module * Misc fixes in OpenGL module
* Fixed video output on PowerPC-based Macs equipped with an ATI Radeon 7500,
an ATI Radeon 9200 or a NVIDIA GeForceFX 5200 Ultra.
Access: Access:
* Reworked Digital TV module for Windows. DVB-T and DVB-C work again. * Reworked Digital TV module for Windows. DVB-T and DVB-C work again.
......
...@@ -263,6 +263,18 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt, ...@@ -263,6 +263,18 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
list++; list++;
} }
} }
#if (defined (__ppc__) || defined (__ppc64__) || defined (__powerpc__)) && defined (__APPLE__)
/* This is a work-around for dated PowerPC-based Macs, which run OpenGL 1.3 only and don't
* support the GL_ARB_fragment_program extension.
* Affected devices are all Macs built between 2002 and 2005 with an ATI Radeon 7500,
* an ATI Radeon 9200 or a NVIDIA GeForceFX 5200 Ultra. */
else
{
vgl->tex_format = GL_YCBCR_422_APPLE;
vgl->tex_type = GL_UNSIGNED_SHORT_8_8_APPLE;
vgl->fmt.i_chroma = VLC_CODEC_YUYV;
}
#endif
vgl->chroma = vlc_fourcc_GetChromaDescription(vgl->fmt.i_chroma); vgl->chroma = vlc_fourcc_GetChromaDescription(vgl->fmt.i_chroma);
vgl->use_multitexture = vgl->chroma->plane_count > 1; vgl->use_multitexture = vgl->chroma->plane_count > 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment