1 | REM |
---|
2 | @echo off |
---|
3 | |
---|
4 | REM damit Zeit aktuakisiert wird: |
---|
5 | SetLocal EnableDelayedExpansion |
---|
6 | |
---|
7 | |
---|
8 | REM |
---|
9 | set ENC="Apps\EncoderApp.exe" |
---|
10 | set DEC="Apps\DecoderApp.exe" |
---|
11 | set CONVERT="Apps\PNM2RAW.exe" |
---|
12 | set PSNR="Apps\PSNR_C.exe" |
---|
13 | |
---|
14 | set resE="VVC_enc.txt" |
---|
15 | set resD="VVC_dec.txt" |
---|
16 | set flag=1 |
---|
17 | REM |
---|
18 | echo #Results >> %resE% |
---|
19 | |
---|
20 | REM single image to be encoded |
---|
21 | set numFrames=1 |
---|
22 | |
---|
23 | rem for %%I in (images\*.ppm ) do ( |
---|
24 | for %%I in (cim10_672x768_crop.ppm) do ( |
---|
25 | |
---|
26 | REM convert and write width and height to stdout |
---|
27 | |
---|
28 | FOR /F "usebackq tokens=1,2" %%a IN (`%CONVERT% -i %%I -o tmp.raw -s`) DO ( |
---|
29 | SET width=%%a |
---|
30 | SET height=%%b |
---|
31 | set out=%%I |
---|
32 | echo !out! |
---|
33 | REM replace ppm by str |
---|
34 | set out=!out:.ppm=.str! |
---|
35 | echo !out! |
---|
36 | REM replace Trimmed by RAW_trimmed |
---|
37 | set out=!out:PPM_trimmed=HEVCset1! |
---|
38 | ) |
---|
39 | SetLocal EnableDelayedExpansion |
---|
40 | echo !width! !height! |
---|
41 | echo !out! |
---|
42 | |
---|
43 | echo Start Encoder: !time:~0,8! |
---|
44 | echo Start Encoder: !time:~0,8! >> %resE% |
---|
45 | |
---|
46 | rem %ENC% -i tmp.raw --BitstreamFile=!out! --FramesToBeEncoded=%numFrames% -c lossless.cfg -fr 1 -g 1 --SourceWidth=!width! --SourceHeight=!height! >> %resE% |
---|
47 | rem %ENC% -i tmp.raw -c encoder_intra_vtm.cfg --SourceWidth=!width! --SourceHeight=!height! --BitstreamFile=!out! -g 1 -f 1 -fr 1 -ip 1 -dr 0 >> %resE% |
---|
48 | %ENC% -i tmp.raw -c lossless.cfg --SourceWidth=!width! --SourceHeight=!height! --BitstreamFile=!out! -f 1 -fr 1 -g 1 >> %resE% |
---|
49 | rem %ENC% -i tmp.raw -c encoder_intra_vtm.cfg -c lossless.cfg --SourceWidth=!width! --SourceHeight=!height! --BitstreamFile=!out! -f 1 -fr 1 -g 1 >> %resE% |
---|
50 | |
---|
51 | echo Start Decoder !time:~0,8! |
---|
52 | echo Start Decoder !time:~0,8! >> %resD% |
---|
53 | |
---|
54 | set recon=!out:.str=.raw! |
---|
55 | |
---|
56 | rem %DEC% -b !out! |
---|
57 | %DEC% --BitstreamFile=!out! --ReconFile=!recon! -opl logDec.txt >> %resD% |
---|
58 | |
---|
59 | echo Finished Decoder !time:~0,8! |
---|
60 | echo Finished Decoder !time:~0,8! >> %resD% |
---|
61 | |
---|
62 | REM pause |
---|
63 | ) |
---|
64 | |
---|
65 | |
---|
66 | |
---|
67 | pause |
---|
68 | |
---|
69 | REM@echo on |
---|