* These functions set up YUV tables for colorspace conversion
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
+ * $Id: video_yuv.c,v 1.48 2001/05/01 04:18:18 sam Exp $
*
- * Authors:
+ * Authors: Vincent Seguin <seguin@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "intf_msg.h"
-#include "main.h"
-
/*****************************************************************************
* vout_InitYUV: allocate and initialize translation tables
*****************************************************************************
int vout_InitYUV( vout_thread_t *p_vout )
{
/* Choose the best module */
- p_vout->yuv.p_module = module_Need( p_main->p_bank,
- MODULE_CAPABILITY_YUV, NULL );
+ p_vout->yuv.p_module = module_Need( MODULE_CAPABILITY_YUV, NULL );
if( p_vout->yuv.p_module == NULL )
{
intf_ErrMsg( "vout error: no suitable yuv module" );
- return( -1 );
+ return( -1 );
}
#define yuv_functions p_vout->yuv.p_module->p_functions->yuv.functions.yuv
void vout_EndYUV( vout_thread_t *p_vout )
{
p_vout->yuv.pf_end( p_vout );
- module_Unneed( p_main->p_bank, p_vout->yuv.p_module );
+ module_Unneed( p_vout->yuv.p_module );
}