2011-8-12 17:23:21

 


 

2011-8-12 17:23:21


OpenStream 

确定解码器  帧率  宽高


open的时候只是打开了DirectX

然后起了个显示线程

接着就送数据 

到了解码线程的buffer中

文件回放

还需要解析

文件回放 需要进行文件解析

创建索引


 HANDLE ThreadHandle;
 ThreadHandle = (HANDLE)_beginthreadex(NULL, 0, &CreateIFrameIndexThread, this, 0, &m_CreateIFrameIndexThreadId);
 CloseHandle (ThreadHandle);

 SetFilePointer(m_hPlayFile, sizeof(TFILE_HEADER) + sizeof(TSTREAM_HEADER), NULL, FILE_BEGIN);
 m_bPlayFile = true;
 ThreadHandle = (HANDLE)_beginthreadex(NULL, 0, &ReadFileThread, this, 0, &m_ReadFileThreadId);
 CloseHandle (ThreadHandle);

 索引创建应该没问题
 
 xt800的回放还是放一个黑I帧比较合适
  打印出I帧  P 帧信息  以及相应的丢包信息
 

自有编码还真不出图像了


line 503  threadId 6188 
line 503  threadId 2148 
line 503  threadId 4948 
line 503  threadId 8456 
line 503  threadId 3380 
line 503  threadId 204 
line 503  threadId 8284 
line 503  threadId 3952 
line 503  threadId 1996 
line 503  threadId 9896 
line 503  threadId 2796 
line 503  threadId 3480 
line 503  threadId 2684 
line 503  threadId 7704 
line 503  threadId 1380 
line 503  threadId 8516 
line 503  threadId 2408 
line 503  threadId 8684 
line 503  threadId 8260 
line 503  threadId 5884 
line 503  threadId 8760 
line 503  threadId 6680 
line 503  threadId 8732 
line 503  threadId 6272 
line 503  threadId 4244 
line 503  threadId 9888 
line 503  threadId 7976 
line 503  threadId 6908 
line 503  threadId 5848 
line 503  threadId 5380 
line 503  threadId 8044 
line 503  threadId 9872 
The thread 'Win32 Thread' (0x834) has exited with code 0 (0x0).
line 112 
line 129 
line 148 
line 168 
line 112 
line 129 
line 148 
line 168 
The thread '_unlock' (0x280) has exited with code 0 (0x0).

 

 
 
 
 
 

你可能感兴趣的:(2011-8-12 17:23:21)