您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ visual_object_unref函数代码示例

51自学网 2021-06-03 09:43:14
  C++
这篇教程C++ visual_object_unref函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中visual_object_unref函数的典型用法代码示例。如果您正苦于以下问题:C++ visual_object_unref函数的具体用法?C++ visual_object_unref怎么用?C++ visual_object_unref使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了visual_object_unref函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: hashlist_destroy

static int hashlist_destroy (VisCollection *collection){	VisHashlist *hashlist = VISUAL_HASHLIST (collection);	VisListEntry *le = NULL;	/* Destroy all entries in hashlist first */	while (visual_list_next (hashlist->list, &le) != NULL) {		VisListEntry *prev = le;		VisListEntry *next = le;		visual_list_prev (hashlist->list, &prev);		visual_list_next (hashlist->list, &next);		visual_hashlist_remove_list_entry (hashlist, le);		if (next == NULL)			break;		le = prev;	}	/* Destroy the rest */	if (hashlist->list != NULL)		visual_object_unref (VISUAL_OBJECT (hashlist->list));	if (hashlist->index != NULL)		visual_object_unref (VISUAL_OBJECT (hashlist->index));	hashlist->list = NULL;	hashlist->index = NULL;	return VISUAL_OK;}
开发者ID:Libvisual,项目名称:DroidVisuals,代码行数:33,


示例2: visual_bin_set_morph_by_name

int visual_bin_set_morph_by_name (VisBin *bin, char *morphname){	VisMorph *morph;	int depthflag;	visual_log_return_val_if_fail (bin != NULL, -1);	if (bin->morph != NULL)		visual_object_unref (VISUAL_OBJECT (bin->morph));	morph = visual_morph_new (morphname);	bin->morph = morph;	bin->morphmanaged = TRUE;		visual_log_return_val_if_fail (morph->plugin != NULL, -1);	depthflag = visual_morph_get_supported_depth (morph);	if (visual_video_depth_is_supported (depthflag, bin->actvideo->depth) <= 0) {		visual_object_unref (VISUAL_OBJECT (morph));		bin->morph = NULL;		return -2;	}		return 0;}
开发者ID:Denyufka,项目名称:LibVisual,代码行数:28,


示例3: act_jakdaw_cleanup

static int act_jakdaw_cleanup (VisPluginData *plugin){	JakdawPrivate *priv = visual_object_get_private (VISUAL_OBJECT (plugin));	_jakdaw_feedback_close (priv);	visual_object_unref (VISUAL_OBJECT (priv->pcmbuf));	visual_object_unref (VISUAL_OBJECT (priv->freqbuf));	visual_mem_free (priv);	return 0;}
开发者ID:Libvisual,项目名称:LibVisualAndroid,代码行数:13,


示例4: collection_iter_dtor

static int collection_iter_dtor (VisObject *object){	VisCollectionIter *iter = VISUAL_COLLECTIONITER (object);	if (iter->collection != NULL)		visual_object_unref (VISUAL_OBJECT (iter->collection));	if (iter->context != NULL)		visual_object_unref (VISUAL_OBJECT (iter->context));	iter->collection = NULL;	iter->context = NULL;	return VISUAL_OK;}
开发者ID:Denyufka,项目名称:LibVisual,代码行数:15,


示例5: lvavs_pipeline_dtor

/* Object destructors */static int lvavs_pipeline_dtor (VisObject *object){    LVAVSPipeline *pipeline = LVAVS_PIPELINE (object);    if (pipeline->renderstate != NULL)        visual_object_unref (VISUAL_OBJECT (pipeline->renderstate));    if (pipeline->container != NULL)        visual_object_unref (VISUAL_OBJECT (pipeline->container));    pipeline->renderstate = NULL;    pipeline->container = NULL;    return TRUE;}
开发者ID:Denyufka,项目名称:LibVisual,代码行数:16,


示例6: audio_sample_dtor

static int audio_sample_dtor (VisObject *object){	VisAudioSample *sample = VISUAL_AUDIO_SAMPLE (object);	if (sample->buffer != NULL)		visual_object_unref (VISUAL_OBJECT (sample->buffer));	if (sample->processed != NULL)		visual_object_unref (VISUAL_OBJECT (sample->processed));	sample->buffer = NULL;	sample->processed = NULL;	return VISUAL_OK;}
开发者ID:Libvisual,项目名称:DroidVisuals,代码行数:15,


示例7: avs_element_dtor

/* Every object that derives from AVSElement needs to pass on to this dtor when setting a custom dtor */static int avs_element_dtor (VisObject *object){        AVSElement *element = AVS_ELEMENT (object);        if (element->serialize != NULL)                visual_object_unref (VISUAL_OBJECT (element->serialize));        if (element->pcont != NULL)                visual_object_unref (VISUAL_OBJECT (element->pcont));        element->serialize = NULL;        element->pcont = NULL;        return TRUE;}
开发者ID:Starlon,项目名称:FroyVisuals-old,代码行数:16,


示例8: visual_object_unref

  System::~System ()  {      PluginRegistry::deinit ();	  Fourier::deinit();      visual_object_unref (VISUAL_OBJECT (m_impl->params));  }
开发者ID:Libvisual,项目名称:LibVisualAndroid,代码行数:7,


示例9: visual_audio_get_sample_mixed_all

// FIXME: This function is entirely broken from the looks of it.int visual_audio_get_sample_mixed_all (VisAudio *audio, VisBuffer *buffer, int divide){	VisListEntry *le = NULL;	VisAudioSamplePool *samplepool;	VisAudioSamplePoolChannel *channel;	VisBuffer temp;	int first = TRUE;	visual_return_val_if_fail (audio != NULL, -VISUAL_ERROR_AUDIO_NULL);	visual_return_val_if_fail (buffer != NULL, -VISUAL_ERROR_AUDIO_SAMPLEPOOL_NULL);	visual_buffer_init_allocate (&temp, visual_buffer_get_size (buffer), visual_buffer_destroyer_free);	samplepool = visual_audio_samplepool_new (); // this function's broken. This line was added to get rid of a compile warning. Not sure what samplepool's supposed to be, because it appears the below code expects an already existing VisAudioSamplePool. Dunno.	while ((channel = visual_list_next (samplepool->channels, &le)) != NULL) {		if (visual_audio_get_sample (audio, &temp, channel->channelid) == VISUAL_OK) {			if (first == TRUE) {				visual_audio_sample_buffer_mix (buffer, &temp, FALSE, 1.0);				first = FALSE;			} else {				visual_audio_sample_buffer_mix (buffer, &temp, divide, 1.0);			}		}	}	visual_object_unref (VISUAL_OBJECT (&temp));	return VISUAL_OK;}
开发者ID:Libvisual,项目名称:DroidVisuals,代码行数:32,


示例10: param_entry_dtor

static int param_entry_dtor (VisObject *object){    VisParamEntry *param = VISUAL_PARAMENTRY (object);    if (param->string != NULL)        visual_mem_free (param->string);    if (param->name != NULL)        visual_mem_free (param->name);    if (param->objdata != NULL)        visual_object_unref (param->objdata);    if (param->annotation != NULL)        visual_mem_free (param->annotation);    visual_palette_free_colors (&param->pal);    visual_collection_destroy (VISUAL_COLLECTION (&param->callbacks));    param->string = NULL;    param->name = NULL;    param->objdata = NULL;    param->annotation = NULL;    return VISUAL_OK;}
开发者ID:Starlon,项目名称:StarVisuals-And,代码行数:27,


示例11: Java_org_libvisual_android_VisMorph_morphUnref

/** VisMorph.morphUnref() */JNIEXPORT void JNICALL Java_org_libvisual_android_VisMorph_morphUnref(JNIEnv * env, jobject  obj, jint morph){    LOGI("VisMorph.morphUnref()");    VisMorph *m = (VisMorph *) morph;    visual_object_unref(VISUAL_OBJECT(morph));        }
开发者ID:Libvisual,项目名称:LibVisualAndroid,代码行数:8,


示例12: Java_org_libvisual_android_VisInput_inputUnref

/** VisInput.inputUnref() */JNIEXPORT void JNICALL Java_org_libvisual_android_VisInput_inputUnref(JNIEnv * env, jobject  obj, jint input){    LOGI("VisInput.inputUnref()");    VisInput *i = (VisInput *) input;    visual_object_unref(VISUAL_OBJECT(input));        }
开发者ID:Libvisual,项目名称:LibVisualAndroid,代码行数:8,


示例13: Java_org_libvisual_android_VisActor_actorUnref

/** VisActor.actorUnref() */JNIEXPORT void JNICALL Java_org_libvisual_android_VisActor_actorUnref(JNIEnv * env, jobject  obj, jint actor){    LOGI("VisActor.actorUnref()");    VisActor *a = (VisActor *) actor;    visual_object_unref(VISUAL_OBJECT(actor));}
开发者ID:Libvisual,项目名称:LibVisualAndroid,代码行数:8,


示例14: visual_ringbuffer_get_size

int visual_ringbuffer_get_size (VisRingBuffer *ringbuffer){	VisListEntry *le = NULL;	VisRingBufferEntry *entry;	int totalsize = 0;	visual_log_return_val_if_fail (ringbuffer != NULL, -VISUAL_ERROR_RINGBUFFER_NULL);	while ((entry = visual_list_next (ringbuffer->entries, &le)) != NULL) {		int bsize = 0;		if (entry->type == VISUAL_RINGBUFFER_ENTRY_TYPE_BUFFER) {			if ((bsize = visual_buffer_get_size (entry->buffer)) > 0)					totalsize += bsize;		} else if (entry->type == VISUAL_RINGBUFFER_ENTRY_TYPE_FUNCTION) {			if (entry->sizefunc != NULL) {				totalsize += entry->sizefunc (ringbuffer, entry);			} else {				VisBuffer *tempbuf = entry->datafunc (ringbuffer, entry);				if ((bsize = visual_buffer_get_size (tempbuf)) > 0)						totalsize += bsize;				visual_object_unref (VISUAL_OBJECT (tempbuf));			}		}	}	return totalsize;}
开发者ID:Denyufka,项目名称:LibVisual,代码行数:33,


示例15: Java_org_libvisual_android_VisBin_binUnref

/** VisBin.binUnref() */JNIEXPORT void JNICALL Java_org_libvisual_android_VisBin_binUnref(JNIEnv * env, jobject  obj, jint bin){    LOGI("VisBin.binUnref()");    VisBin *b = (VisBin *) bin;    visual_object_unref(VISUAL_OBJECT(bin));        }
开发者ID:Libvisual,项目名称:LibVisualAndroid,代码行数:8,


示例16: Java_org_libvisual_android_VisVideo_videoUnref

/** VisVideo.videoUnref() */JNIEXPORT void JNICALL Java_org_libvisual_android_VisVideo_videoUnref(JNIEnv * env, jobject  obj, jint video){    LOGI("VisVideo.videoUnref()");    VisVideo *v = (VisVideo *) video;    visual_object_unref(VISUAL_OBJECT(video));        }
开发者ID:Libvisual,项目名称:LibVisualAndroid,代码行数:8,


示例17: Java_org_libvisual_android_VisMorph_morphUnref

/** VisMorph.morphUnref() */JNIEXPORT void JNICALL Java_org_libvisual_android_VisMorph_morphUnref(JNIEnv * env, jobject  obj, jobject morph){    LOGI("VisMorph.morphUnref()");    VisMorph *m = getObjectFromCPtr<VisMorph *>(env, morph);    visual_object_unref(VISUAL_OBJECT(m));        }
开发者ID:Starlon,项目名称:LibVisualAndroid,代码行数:8,


示例18: Java_org_libvisual_android_VisBin_binUnref

/** VisBin.binUnref() */JNIEXPORT void JNICALL Java_org_libvisual_android_VisBin_binUnref(JNIEnv * env, jobject  obj, jobject cptr){    LOGI("VisBin.binUnref()");    VisBin *bin = getObjectFromCPtr<VisBin *>(env, cptr);    visual_object_unref(VISUAL_OBJECT(bin));        }
开发者ID:Starlon,项目名称:FroyVisuals-old,代码行数:8,


示例19: lvavs_pipeline_element_dtor

static int lvavs_pipeline_element_dtor (VisObject *object){    LVAVSPipelineElement *element = LVAVS_PIPELINE_ELEMENT (object);    if (element->params != NULL)        visual_object_unref (VISUAL_OBJECT (element->params));    switch (element->type) {        case LVAVS_PIPELINE_ELEMENT_TYPE_ACTOR:            visual_object_unref (VISUAL_OBJECT (element->data.actor));            element->data.actor = NULL;            break;        case LVAVS_PIPELINE_ELEMENT_TYPE_TRANSFORM:            visual_object_unref (VISUAL_OBJECT (element->data.transform));            element->data.transform = NULL;            break;        case LVAVS_PIPELINE_ELEMENT_TYPE_MORPH:            visual_object_unref (VISUAL_OBJECT (element->data.morph));            element->data.morph = NULL;            break;        case LVAVS_PIPELINE_ELEMENT_TYPE_RENDERSTATE:        case LVAVS_PIPELINE_ELEMENT_TYPE_CONTAINER:            break;        default:            visual_log (VISUAL_LOG_WARNING, "Tried to destroy invalid LVAVSPipelineElement type");            break;    }    element->pipeline = NULL;    element->params = NULL;    return TRUE;}
开发者ID:Denyufka,项目名称:LibVisual,代码行数:43,


示例20: visual_actor_video_negotiate

/** * This function negotiates the VisActor with it's target video that is set by visual_actor_set_video. * When needed it also sets up size fitting environment and depth transformation environment. * * The function has a few extra arguments that are mainly to be used from within internal code. * * This function needs to be called everytime there is a change within either the size or depth of * the target video.  * * The main method of calling this function is: "visual_actor_video_negotiate (actor, 0, FALSE, FALSE)" *  * @see visual_actor_set_video * * @param actor Pointer to a VisActor that needs negotiation. * @param rundepth An depth in the form of the VISUAL_VIDEO_DEPTH_* style when a depth is forced. * 	  This could be needed when for example a plugin has both a 8 bits and a 32 bits display method * 	  but while the target video is in 32 bits you still want to run the plugin in 8 bits. If this * 	  is desired the "forced" argument also needs to be set on TRUE. * @param noevent When set on TRUE this does only renegotiate depth transformation environments. For example * 	  when the target display was running in 32 bits and switched to 8 bits while the plugin was already * 	  in 8 bits it doesn't need an events, which possibly reinitializes the plugin. * @param forced This should be set if the rundepth argument is set, so it forces the plugin in a certain * 	  depth. * * @return VISUAL_OK on succes, -VISUAL_ERROR_ACTOR_NULL, -VISUAL_ERROR_PLUGIN_NULL, -VISUAL_ERROR_PLUGIN_REF_NULL, * 	-VISUAL_ERROR_ACTOR_VIDEO_NULL or -VISUAL_ERROR_ACTOR_GL_NEGOTIATE on failure.  */ int visual_actor_video_negotiate (VisActor *actor, int rundepth, int noevent, int forced){	int depthflag;	visual_log_return_val_if_fail (actor != NULL, -VISUAL_ERROR_ACTOR_NULL);	visual_log_return_val_if_fail (actor->plugin != NULL, -VISUAL_ERROR_PLUGIN_NULL);	visual_log_return_val_if_fail (actor->plugin->ref != NULL, -VISUAL_ERROR_PLUGIN_REF_NULL);	visual_log_return_val_if_fail (actor->video != NULL, -VISUAL_ERROR_ACTOR_VIDEO_NULL);	if (actor->transform != NULL) {		visual_object_unref (VISUAL_OBJECT (actor->transform));		actor->transform = NULL;	}	if (actor->fitting != NULL) {		visual_object_unref (VISUAL_OBJECT (actor->fitting));		actor->fitting = NULL;	}	if (actor->ditherpal != NULL) {		visual_object_unref (VISUAL_OBJECT (actor->ditherpal));		actor->ditherpal = NULL;	}	depthflag = visual_actor_get_supported_depth (actor);	visual_log (VISUAL_LOG_INFO, "negotiating plugin %s", actor->plugin->info->name);	/* Set up depth transformation enviroment */	if (visual_video_depth_is_supported (depthflag, actor->video->depth) != TRUE ||			(forced == TRUE && actor->video->depth != rundepth))		/* When the depth is not supported, or if we only switch the depth and not		 * the size */		return negotiate_video_with_unsupported_depth (actor, rundepth, noevent, forced);	else		return negotiate_video (actor, noevent);	return -VISUAL_ERROR_IMPOSSIBLE;}
开发者ID:Starlon,项目名称:StarVisuals-And,代码行数:69,


示例21: audio_dtor

static int audio_dtor (VisObject *object){	VisAudio *audio = VISUAL_AUDIO (object);	if (audio->samplepool != NULL)		visual_object_unref (VISUAL_OBJECT (audio->samplepool));	audio->samplepool = NULL;	return VISUAL_OK;}
开发者ID:Libvisual,项目名称:DroidVisuals,代码行数:11,


示例22: ringbuffer_dtor

static int ringbuffer_dtor (VisObject *object){    VisRingBuffer *ringbuffer = VISUAL_RINGBUFFER (object);    if (ringbuffer->entries != NULL)        visual_object_unref (VISUAL_OBJECT (ringbuffer->entries));    ringbuffer->entries = NULL;    return VISUAL_OK;}
开发者ID:Libvisual,项目名称:LibVisualAndroid,代码行数:11,


示例23: audio_samplepool_dtor

static int audio_samplepool_dtor (VisObject *object){	VisAudioSamplePool *samplepool = VISUAL_AUDIO_SAMPLEPOOL (object);	if (samplepool->channels != NULL)		visual_object_unref (VISUAL_OBJECT (samplepool->channels));	samplepool->channels = NULL;	return VISUAL_OK;}
开发者ID:Libvisual,项目名称:DroidVisuals,代码行数:11,


示例24: vm_dtor

static int vm_dtor(VisObject *object) {    AvsRunnableVariableManager *manager = AVS_VARIABLE_MANAGER(object);    AvsRunnableVariable *var = NULL;    AvsRunnableVariable *tmp = NULL;    for(var = tmp = manager->variables; var; var = tmp) {        tmp = var->next;        visual_object_unref(VISUAL_OBJECT(var));    }    return VISUAL_OK;}
开发者ID:Denyufka,项目名称:LibVisual,代码行数:11,


示例25: actor_dtor

static int actor_dtor (VisObject *object){	VisActor *actor = VISUAL_ACTOR (object);	if (actor->plugin != NULL)		visual_plugin_unload (actor->plugin);	if (actor->transform != NULL)		visual_object_unref (VISUAL_OBJECT (actor->transform));	if (actor->fitting != NULL)		visual_object_unref (VISUAL_OBJECT (actor->fitting));	visual_object_unref (VISUAL_OBJECT (&actor->songcompare));	actor->plugin = NULL;	actor->transform = NULL;	actor->fitting = NULL;	return VISUAL_OK;}
开发者ID:Starlon,项目名称:StarVisuals-And,代码行数:21,


示例26: lv_nebulus_cleanup

static int lv_nebulus_cleanup (VisPluginData *plugin){	NebulusPrivate *priv = visual_object_get_private (VISUAL_OBJECT (plugin));	visual_return_val_if_fail (plugin != NULL, -1);	if (!face_first)		glDeleteLists(facedl, 1);	if (!tentacles_first)		glDeleteLists(cubedl, 1);	if (!child_first)		glDeleteLists(childdl, 1);	delete_gl_texture(knotbg);	delete_gl_texture(tunnel);	delete_gl_texture(tentacle);	delete_gl_texture(twist);	delete_gl_texture(twistbg);	delete_gl_texture(texchild);	delete_gl_texture(childbg);	delete_gl_texture(energy);	visual_object_unref (VISUAL_OBJECT (&child_image));	visual_object_unref (VISUAL_OBJECT (&energy_image));	visual_object_unref (VISUAL_OBJECT (&tentacle_image));	visual_object_unref (VISUAL_OBJECT (&tunnel_image));	visual_object_unref (VISUAL_OBJECT (&twist_image));	visual_object_unref (VISUAL_OBJECT (&background_image));	visual_buffer_free (priv->pcmbuf);	visual_mem_free (priv);	return 0;}
开发者ID:Libvisual,项目名称:LibVisualAndroid,代码行数:35,


示例27: bin_dtor

static int bin_dtor (VisObject *object){	VisBin *bin = VISUAL_BIN (object);	visual_log_return_val_if_fail (bin != NULL, -1);	if (bin->actor != NULL)		visual_object_unref (VISUAL_OBJECT (bin->actor));	if (bin->input != NULL)		visual_object_unref (VISUAL_OBJECT (bin->input));	if (bin->morph != NULL)		visual_object_unref (VISUAL_OBJECT (bin->morph));	if (bin->actmorphmanaged == TRUE) {		if (bin->actmorph != NULL)			visual_object_unref (VISUAL_OBJECT (bin->actmorph));		if (bin->actmorphvideo != NULL)			visual_object_unref (VISUAL_OBJECT (bin->actmorphvideo));	}	if (bin->privvid != NULL)		visual_object_unref (VISUAL_OBJECT (bin->privvid));	bin->actor = NULL;	bin->input = NULL;	bin->morph = NULL;	bin->actmorph = NULL;	bin->actmorphvideo = NULL;	bin->privvid = NULL;	return VISUAL_OK;}
开发者ID:Denyufka,项目名称:LibVisual,代码行数:35,


示例28: avs_container_dtor

static int avs_container_dtor (VisObject *object){        AVSContainer *container = AVS_CONTAINER (object);        if (container->members != NULL)                visual_object_unref (VISUAL_OBJECT (container->members));        container->members = NULL;        avs_element_dtor (object);        return TRUE;}
开发者ID:Starlon,项目名称:FroyVisuals-old,代码行数:13,


示例29: lvavs_preset_container_dtor

static int lvavs_preset_container_dtor (VisObject *object){	LVAVSPresetContainer *container = LVAVS_PRESET_CONTAINER (object);	if (container->members != NULL)		visual_object_unref (VISUAL_OBJECT (container->members));	container->members = NULL;	lvavs_preset_element_dtor (object);	return TRUE;}
开发者ID:Starlon,项目名称:FroyVisuals-old,代码行数:13,



注:本文中的visual_object_unref函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ visual_return_val_if_fail函数代码示例
C++ visualRect函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。