Commit f465db06 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

consistent use of verbosity in film-plugins

parent d290fc75
......@@ -117,27 +117,27 @@ bool filmAVI :: open(const std::string filename, const gem::Properties&wantProps
m_wantedFormat=d;
if (AVIStreamOpenFromFile(&m_streamVid, filename.c_str(), streamtypeVIDEO, 0, OF_READ, NULL)) {
verbose(2, "[pix_film:AVI]: Unable to open file: %s", filename.c_str());
verbose(0, "[GEM:filmAVI] Unable to open file: %s", filename.c_str());
goto unsupported;
}
if( AVIStreamInfo( m_streamVid, &streaminfo, sizeof(streaminfo)) ||
AVIStreamReadFormat(m_streamVid, AVIStreamStart(m_streamVid), NULL, &lSize)) {
verbose(2, "[pix_film:AVI]: Unable to read file format: %s", filename.c_str());
verbose(0, "[GEM:filmAVI] Unable to read file format: %s", filename.c_str());
goto unsupported;
}
m_pbmihRaw = (BITMAPINFOHEADER*) new char[lSize];
if(AVIStreamReadFormat(m_streamVid, AVIStreamStart(m_streamVid), m_pbmihRaw, &lSize)) {
verbose(2, "[pix_film:AVI]: Unable to read file format: %s", filename.c_str());
verbose(0, "[GEM:filmAVI] Unable to read file format: %s", filename.c_str());
goto unsupported;
}
if ((8 == m_pbmihRaw->biBitCount)
|| ((40 == m_pbmihRaw->biBitCount) && (mmioFOURCC('c','v','i','d') == m_pbmihRaw->biCompression))) {
// HACK: attempt to decompress 8 bit films or BW cinepak films to greyscale
m_pbmihDst = (BITMAPINFOHEADER*) new char[sizeof(BITMAPINFOHEADER) + 256*3];
verbose(3, "[pix_film:AVI]: Loading as greyscale");
verbose(0, "[GEM:filmAVI] Loading as greyscale");
*m_pbmihDst = *m_pbmihRaw;
m_pbmihDst->biSize = sizeof(BITMAPINFOHEADER);
......@@ -179,17 +179,17 @@ bool filmAVI :: open(const std::string filename, const gem::Properties&wantProps
m_image.image.reallocate();
if (!(m_hic = ICLocate(ICTYPE_VIDEO, 0, m_pbmihRaw, m_pbmihDst, ICMODE_DECOMPRESS))){
verbose(2, "[pix_film:AVI]: Could not find decompressor: %s", filename.c_str());
verbose(0, "[GEM:filmAVI] Could not find decompressor: %s", filename.c_str());
goto unsupported;
}
if (m_format==GL_LUMINANCE){
if (ICERR_OK != ICDecompressSetPalette(m_hic, m_pbmihDst)){
verbose(2, "[pix_film:AVI]: Could not set palette: %s", filename.c_str());
verbose(0, "[GEM:filmAVI] Could not set palette: %s", filename.c_str());
}
}
if (ICERR_OK != ICDecompressBegin(m_hic, m_pbmihRaw, m_pbmihDst)){
verbose(2, "[pix_film:AVI]: Could not begin decompression: %s", filename.c_str());
verbose(0, "[GEM:filmAVI] Could not begin decompression: %s", filename.c_str());
goto unsupported;
}
//if (!m_pbmihRaw->biSizeImage)
......
......@@ -251,8 +251,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
AM_MEDIA_TYPE MediaType;
BOOL bFrameTime = TRUE;
GUID Guid;
verbose(1, "Trying DirectShow");
// Convert c-string to Wide string.
memset(&WideFileName, 0, MAXPDSTRING * 2);
......@@ -260,7 +259,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (0 == MultiByteToWideChar(CP_ACP, 0, filename.c_str(), filename.length(), WideFileName,
MAXPDSTRING))
{
error("filmDS: Unable to load %s", filename.c_str());
verbose(0, "[GEM:filmDS] Unable to load %s", filename.c_str());
return false;
}
......@@ -269,7 +268,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK || NULL == VideoFilter)
{
error("filmDS: Unable to render %s", filename.c_str());
verbose(0, "[GEM:filmDS] Unable to render %s", filename.c_str());
return false;
}
......@@ -280,7 +279,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK || NULL == SampleFilter)
{
error("Unable to create SampleFilter interface %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to create SampleFilter interface %d", RetVal);
return false;
}
......@@ -289,7 +288,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to add SampleFilter %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to add SampleFilter %d", RetVal);
return false;
}
......@@ -301,7 +300,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK || NULL == SampleGrabber)
{
error("Unable to create SampleGrabber interface %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to create SampleGrabber interface %d", RetVal);
return false;
}
......@@ -322,7 +321,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to setup sample grabber %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to setup sample grabber %d", RetVal);
return false;
}
......@@ -332,7 +331,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to setup sample grabber %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to setup sample grabber %d", RetVal);
return false;
}
......@@ -343,7 +342,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK || NULL == NullFilter)
{
error("Unable to create NullFilter interface %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to create NullFilter interface %d", RetVal);
return false;
}
......@@ -352,7 +351,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to add NullFilter %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to add NullFilter %d", RetVal);
return false;
}
......@@ -365,7 +364,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to connect filters %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to connect filters %d", RetVal);
return false;
}
......@@ -374,7 +373,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to connect filters %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to connect filters %d", RetVal);
return false;
}
......@@ -394,7 +393,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to set video time format %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to set video time format %d", RetVal);
return false;
}
}
......@@ -405,7 +404,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to get video duration %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to get video duration %d", RetVal);
return false;
}
......@@ -434,7 +433,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to get media type %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to get media type %d", RetVal);
return false;
}
......@@ -453,7 +452,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
else
{
error("Invalid media type returned %s", filename.c_str());
verbose(0, "[GEM:filmDS] Invalid media type returned %s", filename.c_str());
return false;
}
......@@ -469,7 +468,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (NULL == m_frame)
{
error("Unable to allocate memory for the video buffer %s", filename.c_str());
verbose(0, "[GEM:filmDS] Unable to allocate memory for the video buffer %s", filename.c_str());
return false;
}
}
......@@ -517,7 +516,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK && RetVal != S_FALSE)
{
error("Unable to start video %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to start video %d", RetVal);
return false;
}
......@@ -531,7 +530,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK && RetVal != VFW_S_STATE_INTERMEDIATE)
{
error("Unable to run video %d", RetVal);
verbose(0, "[GEM:filmDS] Unable to run video %d", RetVal);
return false;
}
......@@ -552,7 +551,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
#ifdef REGISTER_FILTERGRAPH
if (FAILED(RetVal = filmAddGraphToRot(FilterGraph, &m_GraphRegister))){
error("filmDS: failed to register filter graph with ROT! hr=0x%X", RetVal);
verbose(0, "[GEM:filmDS] failed to register filter graph with ROT! hr=0x%X", RetVal);
m_GraphRegister = 0;
}
#endif
......@@ -668,7 +667,7 @@ pixBlock* filmDS :: getFrame(){
if (RetVal != S_OK)
{
post("filmDS: SetPositions failed");
post("[GEM:filmDS] SetPositions failed");
}
RetVal = SampleGrabber->GetCurrentBuffer(&frameSize, (long *)m_frame);
......@@ -676,7 +675,7 @@ pixBlock* filmDS :: getFrame(){
if (RetVal != S_OK)
{
m_image.image.data = NULL;
post("filmDS: GetCurrentBuffer failed");
post("[GEM:filmDS] GetCurrentBuffer failed");
}
else
......
......@@ -260,7 +260,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (0 == MultiByteToWideChar(CP_ACP, 0, filename.c_str(), filename.length(), WideFileName,
MAXPDSTRING))
{
error("filmDS: Unable to load %s", filename.c_str());
verbose(0, "[GEM:filmDS:legacy]Unable to load %s", filename.c_str());
return false;
}
......@@ -269,7 +269,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK || NULL == VideoFilter)
{
error("filmDS: Unable to render %s", filename.c_str());
verbose(0, "[GEM:filmDS:legacy]Unable to render %s", filename.c_str());
return false;
}
......@@ -280,7 +280,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK || NULL == SampleFilter)
{
error("Unable to create SampleFilter interface %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to create SampleFilter interface %d", RetVal);
return false;
}
......@@ -289,7 +289,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to add SampleFilter %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to add SampleFilter %d", RetVal);
return false;
}
......@@ -301,7 +301,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK || NULL == SampleGrabber)
{
error("Unable to create SampleGrabber interface %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to create SampleGrabber interface %d", RetVal);
return false;
}
......@@ -322,7 +322,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to setup sample grabber %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to setup sample grabber %d", RetVal);
return false;
}
......@@ -332,7 +332,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to setup sample grabber %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to setup sample grabber %d", RetVal);
return false;
}
......@@ -343,7 +343,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK || NULL == NullFilter)
{
error("Unable to create NullFilter interface %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to create NullFilter interface %d", RetVal);
return false;
}
......@@ -352,7 +352,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to add NullFilter %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to add NullFilter %d", RetVal);
return false;
}
......@@ -365,7 +365,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to connect filters %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to connect filters %d", RetVal);
return false;
}
......@@ -374,7 +374,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to connect filters %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to connect filters %d", RetVal);
return false;
}
......@@ -394,7 +394,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to set video time format %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to set video time format %d", RetVal);
return false;
}
}
......@@ -405,7 +405,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to get video duration %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to get video duration %d", RetVal);
return false;
}
......@@ -434,7 +434,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK)
{
error("Unable to get media type %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to get media type %d", RetVal);
return false;
}
......@@ -453,7 +453,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
else
{
error("Invalid media type returned %s", filename.c_str());
verbose(0, "[GEM:filmDS:legacy]Invalid media type returned %s", filename.c_str());
return false;
}
......@@ -469,7 +469,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (NULL == m_frame)
{
error("Unable to allocate memory for the video buffer %s", filename.c_str());
verbose(0, "[GEM:filmDS:legacy]Unable to allocate memory for the video buffer %s", filename.c_str());
return false;
}
}
......@@ -517,7 +517,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK && RetVal != S_FALSE)
{
error("Unable to start video %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to start video %d", RetVal);
return false;
}
......@@ -531,7 +531,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
if (RetVal != S_OK && RetVal != VFW_S_STATE_INTERMEDIATE)
{
error("Unable to run video %d", RetVal);
verbose(0, "[GEM:filmDS:legacy]Unable to run video %d", RetVal);
return false;
}
......@@ -552,7 +552,7 @@ bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
#ifdef REGISTER_FILTERGRAPH
if (FAILED(RetVal = filmAddGraphToRot(FilterGraph, &m_GraphRegister))){
error("filmDS: failed to register filter graph with ROT! hr=0x%X", RetVal);
verbose(0, "[GEM:filmDS:legacy]failed to register filter graph with ROT! hr=0x%X", RetVal);
m_GraphRegister = 0;
}
#endif
......
......@@ -99,14 +99,14 @@ bool filmDarwin :: open(const std::string filename, const gem::Properties&wantPr
err = ::FSPathMakeRef((const UInt8*)filename.c_str(), &ref, NULL);
err = ::FSGetCatalogInfo(&ref, kFSCatInfoNone, NULL, NULL, &theFSSpec, NULL);
if (err) {
//error("filmDarwin: Unable to find file: %s", filename.c_str());
verbose(0, "[GEM:filmDarwin] Unable to find file: %s", filename.c_str());
goto unsupported;
}
}
err = ::OpenMovieFile(&theFSSpec, &refnum, fsRdPerm);
if (err) {
//error("filmDarwin: Couldn't open the movie file: %#s (%d)", theFSSpec.name, err);
verbose(0, "[GEM:filmDarwin] Couldn't open the movie file: %#s (%d)", theFSSpec.name, err);
if (refnum) ::CloseMovieFile(refnum);
goto unsupported;
}
......@@ -118,14 +118,14 @@ bool filmDarwin :: open(const std::string filename, const gem::Properties&wantPr
if(m_curFrame==-1)m_curFrame=-2;
m_lastFrame=-1;
m_numTracks = (int)GetMovieTrackCount(m_movie);
verbose(1, "filmDarwin: m_numTracks = %d",(int)m_numTracks);
verbose(1, "[GEM:filmDarwin] m_numTracks = %d",(int)m_numTracks);
// Get the length of the movie
long movieDur, movieScale;
movieDur = (long)GetMovieDuration(m_movie);
movieScale = (long)GetMovieTimeScale(m_movie);
verbose(1, "Movie duration = %d timescale = %d timebase = %d",movieDur, movieScale, (long)GetMovieTimeBase(m_movie));
verbose(1, "[GEM:filmDarwin] Movie duration = %d timescale = %d timebase = %d",movieDur, movieScale, (long)GetMovieTimeBase(m_movie));
movieTrack = GetMovieIndTrackType(m_movie,
1,
......@@ -141,7 +141,7 @@ bool filmDarwin :: open(const std::string filename, const gem::Properties&wantPr
m_fps=30.f;
m_durationf=static_cast<double>(movieScale)/m_fps;
}
verbose(1, "numFrames= %d...%f", (int)m_numFrames, (float)m_durationf);
verbose(1, "[GEM:filmDarwin] numFrames= %d...%f", (int)m_numFrames, (float)m_durationf);
// Get the bounds for the movie
::GetMovieBox(m_movie, &m_srcRect);
......@@ -149,9 +149,9 @@ bool filmDarwin :: open(const std::string filename, const gem::Properties&wantPr
SetMovieBox(m_movie, &m_srcRect);
m_image.image.xsize = m_srcRect.right - m_srcRect.left;
m_image.image.ysize = m_srcRect.bottom - m_srcRect.top;
verbose(1, "rect rt:%d lt:%d", m_srcRect.right, m_srcRect.left);
verbose(1, "rect top:%d bottom:%d", m_srcRect.top, m_srcRect.bottom);
verbose(1, "movie size x:%d y:%d", m_image.image.xsize, m_image.image.ysize);
verbose(1, "[GEM:filmDarwin] rect rt:%d lt:%d", m_srcRect.right, m_srcRect.left);
verbose(1, "[GEM:filmDarwin] rect top:%d bottom:%d", m_srcRect.top, m_srcRect.bottom);
verbose(1, "[GEM:filmDarwin] movie size x:%d y:%d", m_image.image.xsize, m_image.image.ysize);
switch(m_wantedFormat) {
case 0: // if no other format is requested, use YUV
......@@ -180,7 +180,7 @@ bool filmDarwin :: open(const std::string filename, const gem::Properties&wantPr
m_image.image.data,
m_rowBytes);
if (err) {
//error("filmDarwin: Couldn't make QTNewGWorldFromPtr %d", err);
verbose(0, "[GEM:filmDarwin] Couldn't make QTNewGWorldFromPtr %d", err);
goto unsupported;
}
m_movieTime = 0;
......
......@@ -90,16 +90,16 @@ void filmGMERLIN::log(bgav_log_level_t level, const char *log_domain, const char
{
switch(level) {
case BGAV_LOG_DEBUG:
verbose(2, "[pix_film:%s] %s", log_domain, message);
verbose(1, "[GEM:filmGMERLIN:%s] %s", log_domain, message);
break;
case BGAV_LOG_INFO:
verbose(1, "[pix_film:%s] %s", log_domain, message);
verbose(0, "[GEM:filmGMERLIN:%s] %s", log_domain, message);
break;
case BGAV_LOG_WARNING:
post("[pix_film:%s] %s", log_domain, message);
verbose(0, "[GEM:filmGMERLIN:%s] %s", log_domain, message);
break;
case BGAV_LOG_ERROR:
error("[pix_film:%s!] %s", log_domain, message);
error("[GEM:filmGMERLIN:%s!] %s", log_domain, message);
break;
default:break;
}
......@@ -148,7 +148,7 @@ bool filmGMERLIN :: open(const std::string sfilename, const gem::Properties&want
{
if(!bgav_open_vcd(m_file, filename + 5))
{
//error("Could not open VCD Device %s", filename + 5);
verbose(0, "[GEM:filmGMERLIN] Could not open VCD Device %s", filename + 5);
return false;
}
}
......@@ -156,7 +156,7 @@ bool filmGMERLIN :: open(const std::string sfilename, const gem::Properties&want
{
if(!bgav_open_dvd(m_file, filename + 5))
{
//error("Could not open DVD Device %s", filename + 5);
verbose(0, "[GEM:filmGMERLIN] Could not open DVD Device %s", filename + 5);
return false;
}
}
......@@ -164,13 +164,13 @@ bool filmGMERLIN :: open(const std::string sfilename, const gem::Properties&want
{
if(!bgav_open_dvb(m_file, filename + 6))
{
//error("Could not open DVB Device %s", filename + 6);
verbose(0, "[GEM:filmGMERLIN] Could not open DVB Device %s", filename + 6);
return false;
}
}
else {
if(!bgav_open(m_file, filename)) {
//error("Could not open file %s", filename);
verbose(0, "[GEM:filmGMERLIN] Could not open file %s", filename);
close();
return false;
......@@ -180,10 +180,10 @@ bool filmGMERLIN :: open(const std::string sfilename, const gem::Properties&want
{
int i=0;
int num_urls=bgav_redirector_get_num_urls(m_file);
post("Found redirector:");
verbose(1, "[GEM:filmGMERLIN] Found redirector:");
for(i = 0; i < num_urls; i++)
{
post("#%d: '%s' -> %s", i, bgav_redirector_get_name(m_file, i), bgav_redirector_get_url(m_file, i));
verbose(1, "[GEM:filmGMERLIN] #%d: '%s' -> %s", i, bgav_redirector_get_name(m_file, i), bgav_redirector_get_url(m_file, i));
}
for(i = 0; i < num_urls; i++) {
filename=(char*)bgav_redirector_get_url(m_file, i);
......@@ -206,7 +206,7 @@ bool filmGMERLIN :: open(const std::string sfilename, const gem::Properties&want
if(numvstreams) {
bgav_select_track(m_file, m_track);
} else {
post("track %d does not contain a video-stream: skipping");
verbose(1, "[GEM:filmGMERLIN] track %d does not contain a video-stream: skipping");
}
bgav_set_video_stream(m_file, m_stream, BGAV_STREAM_DECODE);
......@@ -320,10 +320,10 @@ film::errCode filmGMERLIN :: changeImage(int imgNum, int trackNum){
// this really shares a lot of code with open() so it should go into a separate function
if(trackNum) {
if(m_numTracks>trackNum || trackNum<0) {
post("selected invalid track %d of %d", trackNum, m_numTracks);
error("[GEM:filmGMERLIN] selected invalid track %d of %d", trackNum, m_numTracks);
} else {
int numvstreams=bgav_num_video_streams (m_file, m_track);
post("track %d contains %d video streams", m_track, numvstreams);
verbose(1, "[GEM:filmGMERLIN] track %d contains %d video streams", m_track, numvstreams);
if(numvstreams) {
bgav_select_track(m_file, m_track);
#ifdef USE_FRAMETABLE
......@@ -333,7 +333,7 @@ film::errCode filmGMERLIN :: changeImage(int imgNum, int trackNum){
}
#endif
} else {
post("track %d does not contain a video-stream: skipping");
error("[GEM:filmGMERLIN] track %d does not contain a video-stream: skipping");
}
}
}
......
......@@ -86,11 +86,11 @@ bool filmMPEG3 :: open(const std::string filename, const gem::Properties&wantPro
mpeg_file= mpeg3_open(cfilename);
#endif
if(!mpeg_file) {
//error("filmMPEG3: this file %s does not seem to hold any video data", filename.c_str());
verbose(0, "[GEM:filmMPEG3] this file %s does not seem to hold any video data", filename.c_str());
goto unsupported;
}
if (!mpeg3_has_video(mpeg_file)){
error("filmMPEG3: this file %s does not seem to hold any video data", filename.c_str());
verbose(0, "[GEM:filmMPEG3] this file %s does not seem to hold any video data", filename.c_str());
goto unsupported;
}
m_numTracks = mpeg3_total_vstreams(mpeg_file);
......@@ -150,7 +150,7 @@ pixBlock* filmMPEG3 :: getFrame(void) {
m_image.image.xsize, m_image.image.ysize,
MPEG3_RGBA8888,
0)) {
error("filmMPEG3:: could not read frame ! %d", m_curFrame);
error("[GEM:filmMPEG3]: could not read frame ! %d", m_curFrame);
return 0;
}
// unfortunately the ALPHA is set to 0!
......@@ -166,7 +166,7 @@ pixBlock* filmMPEG3 :: getFrame(void) {
} else {
// unfortunately this is upside down.
if(mpeg3_read_yuvframe_ptr(mpeg_file,&y,&u,&v,0)){
error("filmMPEG3:: could not read yuv-frame ! %d", m_curFrame);
error("[GEM:filmMPEG3]: could not read yuv-frame ! %d", m_curFrame);
return 0;
}
m_image.image.fromYV12((unsigned char*)y, (unsigned char*)u, (unsigned char*)v);
......
......@@ -43,13 +43,13 @@ static bool filmQT_initQT(void) {
// Initialize QuickTime Media Layer
OSErr err = noErr;
if ((err = InitializeQTML(0))) {
error("filmQT: Could not initialize quicktime: error %d\n", err);
error("[GEM:filmQT]] Could not initialize quicktime: error %d\n", err);
return false;
}
// Initialize QuickTime
if (err = EnterMovies()) {
error("filmQT: Could not initialize quicktime: error %d\n", err);
error("[GEM:filmQT]] Could not initialize quicktime: error %d\n", err);
return false;
}
return true;
......@@ -138,7 +138,7 @@ bool filmQT :: open(const std::string filename, const gem::Properties&wantProps)