Exemplo n.º 1
0
bool Video :: open(const char *filename) {
    VideoError err = VIDEO_ERROR_NONE;

    err = make_impl(filename, true);
    if(err) return false;

    err = mImpl->open(filename);
    if(err) return false;

    return true;
}
Exemplo n.º 2
0
VideoError VideoCamera :: open(int w, int h) {
	VideoError err = VIDEO_ERROR_NONE;
	
	mWidth = w;
	mHeight = h;
	
	err = make_impl();
	if(err) return err;
	
	err = mImpl->open(w, h, mFormat);
	mOpen = true;
	return err;
}
Exemplo n.º 3
0
ImageError Image :: save(const char *filename) {
	ImageError err = IMAGE_ERROR_NONE;
	
	// make sure we have the appropriate backend
	err = make_impl(filename, false);
	if(err) return err;
	
	// save the file
	err = mImpl->save(filename, *mData);
	if(err) return err;
	
	mFilename.assign(filename);
	
	return err;
}
Exemplo n.º 4
0
ImageError Image :: load(const char *filename) {
	ImageError err = IMAGE_ERROR_NONE;
	mLoaded = false;
	
	// make sure we have the appropriate backend
	err = make_impl(filename, true);
	if(err) return err;
	
	// load the file
	err = mImpl->load(filename, *mData);
	if(err) return err;
	
	mFilename.assign(filename);
	mLoaded = true;
	
	return err;
}
Exemplo n.º 5
0
// ------------------------------------------------------------------
// ciObjArrayKlass::make
//
// Make an array klass corresponding to the specified primitive type.
ciObjArrayKlass* ciObjArrayKlass::make(ciKlass* element_klass) {
  assert(element_klass->is_java_klass(), "wrong kind of klass");
  GUARDED_VM_ENTRY(return make_impl(element_klass);)
}