- 博客(8)
- 资源 (8)
- 收藏
- 关注
原创 POSIX Thread相关
1. 关于pthread_cond系列函数pthread_cond_wait的参数里有一个mutex,其作用往往令人费解。最近在考察OpenMAX系统发现这一部分的实现可能导致较大的风险。一般而言有了这个mutex以后对于cond实现一些增强的特性就比较方便。例如,如果要将cond用作semaphore,以下代码应该能起作用:sem_down(sem){
2008-10-30 17:20:00 940
原创 OpenMAX大意(六) OpenMAX过滤器
OpenMAX过滤器基类由OpenMAX直接继承,在omx_base_port.c中定义。 Filter组件含输入输出各一个端口。 Filter组件主要定义了BufferMgmtFunction方法,即Filter组件进行数据处理的通常行为。 函数主体是一个在OMX_StateIdle、OMX_StateExecuting或OMX_StatePause状态下,或OMX_T
2008-10-09 23:54:00 1510
原创 OpenMAX大意(五) OpenMAX端口
OpenMAX端口基类在omx_base_port.c中定义。1. 端口构造和析构 端口常用的数据包括 sPortParam - 端口参数,包含: nPortIndex - 端口索引 nBufferCountActual - 端口的缓冲个数 nBufferCountMin - 端口最小缓冲个数 bEnabled - 端口使能 bPop
2008-10-09 23:53:00 2568
原创 OpenMAX大意(四) OpenMAX组件
OpenMAX组件基类在omx_base_component.c中定义。1. 组件构造和析构 1) 构造函数 Constructor 基类构造函数为omx_base_component_Constructor 这是基于C方式的构造函数实现,其中openmaxStandComp->pComponentPrivate指针指向可能的私有数据。私有数据指针原型为omx_base_compo
2008-10-07 16:54:00 2712
原创 OpenMAX大意(一~三)
解析以OpenMAX非Tunneled为例,从应用线程开始。一、应用线程基本流程1. OMX_Init()2. 获取句柄,组件转到Loaded状态 OMX_GetHandle(out handle, in componentName, in appData, in callbacks); 其中callbacks结构包括三个回调函数指针(作用后文介绍): 1) EventHan
2008-10-07 13:49:00 4037
原创 Video profiles commonly used in low-bitrate circumstances
The following parameters are only for recommendation.These parameters always slip off my mind.Video chatting(QCIF)MPEG-4 Simple Profile, Level 0 (1object allowed at maximum). (up to 4-object a
2008-10-07 10:44:00 642
原创 How to write a simple Makefile
ENVDIR = (SOME PLACE)/ws # the project environmentinclude $(ENVDIR)/tpmakeenv # predefinition by the environment# directory for output filesOS_OBJDIR = (SOME PLACE)/lib# directory for source
2008-10-07 09:50:00 643
原创 Element Picker (C#, Regular Expression)
The following code picks element from a text file according to the pattern specified.It is first used in collecting source file names from a vc project file in order to list them in a common makefile.
2008-10-06 15:46:00 600
WPF控件实例——可多模式复选的树列表
2012-09-15
Objective C开发参考(英文)
2012-08-31
SliDoc - PowerPoint文件(PPTX)文本内容萃取器(C#编写)
2012-08-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人