标签:

一定要解压到 D:\ffmpeg\ 目录下 双击 OpenWith_FFPlay.reg 注册ffplay 在视频文件名上面,单击鼠标右键,选择 FFPlay 无边框,显示播放时间 HH:MM:SS.ms 精确到微妙 ESC 退出 S 下一帧 [ -0.5秒 ] +0.5秒 < -1秒 > +1秒 ; -3秒 ‘ +3秒 -> -10秒 <- +10秒 下键 -60秒 上键 +60秒 PgDn -10分钟 PgUp +10分钟 ffmpeg-2.5.3基础上修改了一些功能 i686-w64-mingw32 gcc 4.9.2 进行编译
------------------------------------------------------------------------------------
SDL1.2 无标题窗口鼠标单击拖动
------------------------------------------------------------------------------------
#include "windows.h"
#include "SDL/SDL.h"
#include "SDL/SDL_syswm.h"
...
static int dragging = 0;
static SDL_SysWMinfo windowInfo;
static HWND windowHandle=0;
static int sx=0,sy=0,wx=0,wy=0,sx2=0,sy2=0;
static RECT rc;
...
case SDL_MOUSEBUTTONDOWN:
SDL_GetWMInfo(&windowInfo);
windowHandle = windowInfo.window;
SDL_GetMouseState(&sx,&sy);
dragging = 1;
break;
case SDL_MOUSEBUTTONUP:
dragging = 0;
break;
case SDL_MOUSEMOTION:
if(dragging)
{
SDL_GetMouseState(&sx2,&sy2);
GetWindowRect(windowHandle,&rc);
MoveWindow(windowHandle,rc.left+sx2-sx,rc.top+sy2-sy,rc.right-rc.left,rc.bottom-rc.top,1);
}
------------------------------------------------------------------------------------
标签:
原文地址:http://www.cnblogs.com/nlsoft/p/4225345.html