#include "awindow.h"
#include "awindowgui.h"
#include "bccmodels.h"
+#include "bcdisplayinfo.h"
#include "bchash.h"
#include "bcsignals.h"
#include "bctimer.h"
if( asset->video_data ) {
if( mwindow->preferences->use_thumbnails ) {
gui->unlock_window();
+ char string[BCTEXTLEN];
+ sprintf(string, _("Reading %s"), name);
+ mwindow->gui->lock_window("AssetPicon::create_objects");
+ mwindow->gui->show_message(string);
+ mwindow->gui->unlock_window();
File *file = mwindow->video_cache->check_out(asset,
mwindow->edl,
1);
asset->width, asset->height,
BC_RGB888, -1);
}
- { char string[BCTEXTLEN];
- sprintf(string, _("Reading %s"), name);
- mwindow->gui->lock_window("AssetPicon::create_objects");
- mwindow->gui->show_message(string);
- mwindow->gui->unlock_window(); }
file->read_frame(gui->temp_picon);
mwindow->video_cache->check_in(asset);
AssetPicon *picon = new AssetPicon(mwindow,
this, current);
new_assets.append(picon);
+ if( current->width > ASSET_MAX_WIDTH || current->height > ASSET_MAX_HEIGHT ) {
+ eprintf(_("Warning: %s\n"
+ " dimensions %dx%d exceed asset maximum limits %dx%d\n"),
+ current->path, current->width, current->height,
+ ASSET_MAX_WIDTH, ASSET_MAX_HEIGHT);
+ }
+ else if( mwindow->edl->session->playback_config->vconfig->driver == PLAYBACK_X11_GL ) {
+ int texture_limit = BC_DisplayInfo::get_gl_max_texture_size();
+ if( texture_limit >= 0 &&
+ (current->width >= texture_limit || current->height >= texture_limit) ) {
+ eprintf(_("Warning: %s\n"
+ " dimensions %dx%d exceed OpenGL texture limit %d\n"),
+ current->path, current->width, current->height, texture_limit);
+ }
+ }
}
}