homerHEVC代码阅读(18)——基础结构之mv_candiate_list_t,motion_vector_t,temporal_info_t,wnd_t
2015-12-07 20:05
453 查看
mv_candiate_list_t表示mv候选列表;motion_vector_t表示运动向量(MV);temporal_info_t表示时域信息;wnd_t表示窗口(其实就是管理了一个帧的结构).
// 运动向量 typedef struct motion_vector_t motion_vector_t; struct motion_vector_t { // 横坐标 int32_t hor_vector; // 纵坐标 int32_t ver_vector; }; // 运动向量候选列表 typedef struct mv_candiate_list_t mv_candiate_list_t; struct mv_candiate_list_t { // 候选mv的数量 int num_mv_candidates; // 候选mv motion_vector_t mv_candidates[MV_MAX_NUM_CANDS_MEM]; };
// 窗口 typedef struct wnd_t wnd_t; struct wnd_t { // 指向图像的三个分量的数据(连同扩展部分) void *palloc[NUM_PICT_COMPONENTS];//allocated pointer // 指向图像的三个分量的数据(真实数据) void *pwnd[NUM_PICT_COMPONENTS];//valid data pointer // 窗口尺寸 int window_size_x[NUM_PICT_COMPONENTS]; int window_size_y[NUM_PICT_COMPONENTS]; // 数据扩展尺寸 int data_padding_x[NUM_PICT_COMPONENTS];//left and right padding due to data pading or memory aligment int data_padding_y[NUM_PICT_COMPONENTS];//top and bottom padding due to data pading or memory aligment // 数据尺寸 int data_width[NUM_PICT_COMPONENTS];//wnd data horizontal size int data_height[NUM_PICT_COMPONENTS];//wnd data vertical size // 像素尺寸 int pix_size; //#ifdef WRITE_REF_FRAMES // FILE *out_file;//for debug porposes //#endif }; // 时域信息 typedef union temporal_info_t temporal_info_t; union temporal_info_t { // 表示有效帧的编号 uint64_t pts; // 图像计数 uint32_t poc; };
相关文章推荐
- php文件操作相关函数
- 周一干不干活-PHP+MySQLi
- FragmentPagerAdapter 与 FragmentStatePagerAdapter 的区别
- 黑马程序员——C语言——#include预处理指令
- Java开发 Eclipse使用技巧
- homerHEVC代码阅读(17)——基础结构之cu_partition_info_t
- C#操作XML的方法
- 发现C++Builder 2010一组类BUG
- java中简单工厂模式(静态工厂方法模式)
- homerHEVC代码阅读(16)——基础结构之entropy_model_t、context_model_buff_t、context_model_t、binary_model_t
- c#通用递归生成无限层级树
- java 图片上写入文字
- homerHEVC代码阅读(15)——基础结构之enc_env_t
- java之文件与base64字符之间的相互转换
- Python爬取网易新闻动态评论
- homerHEVC代码阅读(14)——基础结构之ref_pic_set_t、rate_control_t、rate_distortion_t
- phpmyadmin显示数据库中文正确php页面输出??乱码的解决方法
- homerHEVC代码阅读(13)——基础结构之encoder_in_out_t
- C语言感想
- java 中利用Matcher类提供的函数进行文本替换