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

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

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

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

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

示例1: ff_h264_remove_all_refs

void ff_h264_remove_all_refs(H264Context *h){    int i;    for (i = 0; i < 16; i++) {        remove_long(h, i, 0);    }    assert(h->long_ref_count == 0);    if (h->short_ref_count && !h->last_pic_for_ec.f->data[0]) {        ff_h264_unref_picture(h, &h->last_pic_for_ec);        if (h->short_ref[0]->f->buf[0])            ff_h264_ref_picture(h, &h->last_pic_for_ec, h->short_ref[0]);    }    for (i = 0; i < h->short_ref_count; i++) {        unreference_pic(h, h->short_ref[i], 0);        h->short_ref[i] = NULL;    }    h->short_ref_count = 0;    memset(h->default_ref, 0, sizeof(h->default_ref));    for (i = 0; i < h->nb_slice_ctx; i++) {        H264SliceContext *sl = &h->slice_ctx[i];        sl->list_count = sl->ref_count[0] = sl->ref_count[1] = 0;        memset(sl->ref_list, 0, sizeof(sl->ref_list));    }}
开发者ID:kkirby,项目名称:FFmpeg,代码行数:28,


示例2: ff_h264_remove_all_refs

void ff_h264_remove_all_refs(H264Context *h){    int i;    for(i=0; i<16; i++){        remove_long(h, i, 0);    }    assert(h->long_ref_count==0);    for(i=0; i<h->short_ref_count; i++){        unreference_pic(h, h->short_ref[i], 0);        h->short_ref[i]= NULL;    }    h->short_ref_count=0;}
开发者ID:lhc180,项目名称:libffmpeg-c,代码行数:14,


示例3: remove_long

/** * Remove a picture from the long term reference list by its index in * that list. * @return the removed picture or NULL if an error occurs */static Picture * remove_long(H264Context *h, int i, int ref_mask){    Picture *pic;    pic= h->long_ref[i];    if (pic){        if(unreference_pic(h, pic, ref_mask)){            assert(h->long_ref[i]->long_ref == 1);            h->long_ref[i]->long_ref= 0;            h->long_ref[i]= NULL;            h->long_ref_count--;        }    }    return pic;}
开发者ID:lhc180,项目名称:libffmpeg-c,代码行数:20,


示例4: av_log

/** * * @return the removed picture or NULL if an error occurs */static Picture *remove_short(H264Context *h, int frame_num, int ref_mask){    Picture *pic;    int i;    if (h->avctx->debug & FF_DEBUG_MMCO)        av_log(h->avctx, AV_LOG_DEBUG, "remove short %d count %d/n", frame_num, h->short_ref_count);    pic = find_short(h, frame_num, &i);    if (pic) {        if (unreference_pic(h, pic, ref_mask))            remove_short_at_index(h, i);    }    return pic;}
开发者ID:CoerSuer,项目名称:FFmpeg,代码行数:20,


示例5: ff_h264_remove_all_refs

void ff_h264_remove_all_refs(H264Context *h){    int i;    for (i = 0; i < 16; i++) {        remove_long(h, i, 0);    }    assert(h->long_ref_count == 0);    if (h->short_ref_count && !h->last_pic_for_ec.f->data[0]) {        ff_h264_unref_picture(h, &h->last_pic_for_ec);        ff_h264_ref_picture(h, &h->last_pic_for_ec, h->short_ref[0]);    }    for (i = 0; i < h->short_ref_count; i++) {        unreference_pic(h, h->short_ref[i], 0);        h->short_ref[i] = NULL;    }    h->short_ref_count = 0;    memset(h->default_ref, 0, sizeof(h->default_ref));}
开发者ID:BtbN,项目名称:FFmpeg,代码行数:22,



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


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