所使用的操作系统为windows xp,当然win7也可以,所使用的开发环境为Microsoft visual studio 2010
1.首先找到HM10.0软件存放目录,打开该目录下的Build目录下HM_vc10.sln。
2.接下来右键单击解决方案‘HM_vc10’,在出现的列表框中选择“生成解决方案”,编译器会对该方案编译、链接生成可执行文件TAppEncoder.exe,TAppDecoder.exe等,生成的文件在.\bin\vc10\Win32\Debug目录下可以找到。
3.若想对编码器进行调试,需要对编码器作相应的配置,同H264/AVC。
具体配置过程为:
1).右键单击TAppEncoder,选定“设为启动项目”。
2).接下来需要右键单击TAppEncoder,选定属性->配置属性->调试,在出现的对话框中的“工作目录”中选择浏览,选择bin\vc10\Win32\Debug作为工作目录,该目录用来存放配置文件和测试序列文件,如encoder_intra_main.cfg、foreman_cif.yuv等文件;在命令参数栏中输入-c encoder_intra_main.cfg -c akiyo.cfg,注意第二个-c 不要忽略。
3). 打开cfg目录,将encoder_intra_main.cfg 拷贝到.bin\vc10\Win32\Debug目录下,从cfg\per-sequence的目录下找到BasketballDrill.cfg,将其也拷贝到.bin\vc10\Win32\Debug目录下对其进行修改,并保存为akiyo.cfg。
修改过程如:
#======== File I/O =====================
InputFile : akiyo_qcif.yuv
InputBitDepth : 8 # Input bitdepth
FrameRate : 30 # Frame Rate per second
FrameSkip : 0 # Number of frames to be skipped in input
SourceWidth : 176 # Input frame width
SourceHeight : 144 # Input frame height
FramesToBeEncoded : 3 # Number of frames to be coded
4).将akiyo_qcif.yuv文件拷贝到.bin\vc10\Win32\Debug下。
4.接下来可以对编码器进行调试运行了。