PartitionMotionSearch()函数解析
来源:互联网 发布:测试书籍推荐知乎 编辑:程序博客网 时间:2024/05/16 04:05
encode_one_macroblock()函数中的运动估计分为两大块,对于宏块级的三种模式,分块后直接对patition依次调用PartitionMotionSearch()函数;而对于亚宏块级的(含8x8, 8x4,4x8,4x4)模式,首先将宏块拆分为4个8×8子宏块,针对每个8×8子宏块调用PartitionMotionSearch()函数。
void
PartitionMotionSearch (int
{
static int
static int
int
int
int
int
//partition的尺寸,用于决定block的边界,对非P8×8模式无意义。
int
int
int
//以上尺寸全部以4×4block为单位
numlists=bslice?2:1;
for (list=0; list
{
for (ref=0; ref < listXsize[list+list_offset]; ref++)
{
ref_array = enc_picture->ref_idx[list];
for (v=by0[parttype][block8x8]; v
//以4×4block为单位保存运动向量
//保存参考帧序号
}
[1] static int
如图所示的16×16宏块,首先划分为4个8×8子块(因为PartitionMotionSearch()函数处理的最小块的尺寸为8×8),以4×4block为单位设定坐标,图上已标出4个8×8子块左上角的块坐标。SKIP模式实际上并不牵涉到这个函数,因此坐标全部置零;16×16模式只有第一个坐标起作用,后三个置零;16×8只有前两个有意义,标出两个partition的左上角坐标,如图标出了(0,0),(0,2),对照bx0, by0可以看到相应坐标值;最多子块情况为4个8×8,即最后一组坐标。
原文地址:http://blog.sina.com.cn/s/blog_4258edb001007zp1.html
- PartitionMotionSearch()函数解析
- PartitionMotionSearch()函数解析
- PartitionMotionSearch()函数
- PartitionMotionSearch()
- 宏块的分块模式及函数PartitionMotionSearch
- A problem in function PartitionMotionSearch()
- 函数调用约定解析
- 函数解析字符串(ZT)
- setsockopt函数解析(转)
- ARX函数解析
- 成员函数重载解析
- js 函数深入解析
- Linux wait函数解析
- 函数调用约定解析
- 钩子函数解析
- 虚函数解析
- 函数表达式解析器
- fcntl函数解析
- 自身修养
- Linux下SVN客户端的使用方法
- 深入理解Magento – 第一章 – Magento强大的配置系统
- 深入理解Magento – 第二章 – Magento请求分发与控制器
- 深入理解Magento – 第三章 – Magento的布局(Layout),块(Block)和模板(Template).doc
- PartitionMotionSearch()函数解析
- JVM内存管理之学习(整理自网络)
- MFC中的Rect区别
- Birt的学习
- EL表达式
- miniGUI安装笔记
- fopen与二进制,文本文件
- 自动生成Makefile的详细过程
- 团购倒计时抢购功能