bool Win32DllLoader::ResolveImport(const char *dllName, const char *functionName, void **fixup)
{
- char *dll = GetName();
return FunctionNeedsWrapping(win32_exports, functionName, fixup);
}
CLog::Log(LOGERROR, "GL: Error enabling YUV shader");
}
- float imgwidth = planes[0].rect.x2 - planes[0].rect.x1;
- float imgheight = planes[0].rect.y2 - planes[0].rect.y1;
- if (m_textureTarget == GL_TEXTURE_2D)
- {
- imgwidth *= planes[0].texwidth;
- imgheight *= planes[0].texheight;
- }
-
- // 1st Pass to video frame size
+// 1st Pass to video frame size
//TODO
+// float imgwidth = planes[0].rect.x2 - planes[0].rect.x1;
+// float imgheight = planes[0].rect.y2 - planes[0].rect.y1;
+// if (m_textureTarget == GL_TEXTURE_2D)
+// {
+// imgwidth *= planes[0].texwidth;
+// imgheight *= planes[0].texheight;
+// }
+//
// glBegin(GL_QUADS);
//
// glMultiTexCoord2fARB(GL_TEXTURE0, planes[0].rect.x1, planes[0].rect.y1);
VerifyGLState();
- imgwidth /= m_sourceWidth;
- imgheight /= m_sourceHeight;
-
//TODO
+// imgwidth /= m_sourceWidth;
+// imgheight /= m_sourceHeight;
+//
// glBegin(GL_QUADS);
//
// glMultiTexCoord2fARB(GL_TEXTURE0, 0.0f , 0.0f);
int CAMLPlayer::AddSubtitleFile(const std::string &filename, const std::string &subfilename)
{
std::string ext = URIUtils::GetExtension(filename);
- std::string vobsubfile = subfilename;
if(ext == ".idx")
{
/* TODO: we do not handle idx/sub binary subs yet.
+ std::string vobsubfile = subfilename;
if (vobsubfile.empty())
vobsubfile = URIUtils::ReplaceExtension(filename, ".sub");
{
result = m_dllAvFilter.av_buffersink_get_buffer_ref(m_pFilterOut, &m_pBufferRef, 0);
- if(!m_pBufferRef)
+ if(!m_pBufferRef || result < 0)
{
CLog::Log(LOGERROR, "CDVDVideoCodecFFmpeg::FilterProcess - cur_buf");
return VC_ERROR;
// allocate a YV12 DVDVideoPicture buffer.
// first make sure all properties are reset.
memset(&m_videobuffer, 0, sizeof(DVDVideoPicture));
- unsigned int luma_pixels = hints.width * hints.height;
- unsigned int chroma_pixels = luma_pixels/4;
m_videobuffer.dts = DVD_NOPTS_VALUE;
m_videobuffer.pts = DVD_NOPTS_VALUE;
if( m_speed != DVD_PLAYSPEED_NORMAL && limited )
{
+ m_droptime += iFrameDuration;
+#ifndef PROFILE
// calculate frame dropping pattern to render at this speed
// we do that by deciding if this or next frame is closest
// to the flip timestamp
double current = fabs(m_dropbase - m_droptime);
double next = fabs(m_dropbase - (m_droptime + iFrameDuration));
- double frametime = (double)DVD_TIME_BASE / maxfps;
- m_droptime += iFrameDuration;
-#ifndef PROFILE
if( next < current && !(pPicture->iFlags & DVP_FLAG_NOSKIP) )
return result | EOS_DROPPED;
#endif
-
+
+ double frametime = (double)DVD_TIME_BASE / maxfps;
while(!m_bStop && m_dropbase < m_droptime) m_dropbase += frametime;
while(!m_bStop && m_dropbase - frametime > m_droptime) m_dropbase -= frametime;
{
double r = fVolume;
const float* coeff = downmixing_coefficients_8;
- int input_channels = 0;
// normally we normalalise the levels, can be skipped (boosted) at risk of distortion
if(!g_guiSettings.GetBool("audiooutput.normalizelevels"))