diff options
author | handbrake <[email protected]> | 2013-01-31 08:18:55 +0000 |
---|---|---|
committer | handbrake <[email protected]> | 2013-01-31 08:18:55 +0000 |
commit | bc3b56381c6ac214b7736a00972c9d0902902453 (patch) | |
tree | 6caffbe88ef2ee5efbd2279cf00556a986a7c22e /test | |
parent | 39821495c82b104b77e628d5cb244be041e285ed (diff) |
add a new compile option: --enable-hwd
change the GUI uvd checkbox's name to hardware decoder
modify the issue compile on linux
modify the issue on Intel platform with Intel integrate graphic
add a new opencl scale algorithm, PSNR goes up (added files: scale.h, scale.c, scale_kernel.h, scale_kernel.c)
merge the cropscaleaccl.c to cropscale.c
merge the decavcodecaccl.c to decavcodec.c
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5227 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r-- | test/module.defs | 3 | ||||
-rw-r--r-- | test/test case/handbrake_test.txt | 73 | ||||
-rw-r--r-- | test/test case/readme.txt | 4 | ||||
-rw-r--r-- | test/test.c | 30 |
4 files changed, 49 insertions, 61 deletions
diff --git a/test/module.defs b/test/module.defs index 246b62a94..ba7eaf5a4 100644 --- a/test/module.defs +++ b/test/module.defs @@ -48,6 +48,9 @@ ifeq (1,$(FEATURE.opencl)) TEST.GCC.l += OpenCL TEST.GCC.D += USE_OPENCL endif +ifeq (1,$(FEATURE.hwd)) + TEST.GCC.D += USE_HWD +endif TEST.GCC.l += pthreadGC2 iconv ws2_32 TEST.GCC.D += PTW32_STATIC_LIB TEST.GCC.args.extra.exe++ += -static diff --git a/test/test case/handbrake_test.txt b/test/test case/handbrake_test.txt index 47fb0dd8e..a0e9397a1 100644 --- a/test/test case/handbrake_test.txt +++ b/test/test case/handbrake_test.txt @@ -7,74 +7,61 @@ #- the names are used as test names and file names
# universal
--i "infile" -t 1 -o "outfile.m4v" -f mp4 -w 720 --loose-anamorphic -e x264 -q 20 --vfr -a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:8x8dct=0:trellis=0:subq=6 --verbose=1
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.m4v" -f mp4 -P -U -w 720 --loose-anamorphic --modulus 2 -e x264 -q 20 -r 30 --pfr -a 1,1 -E faac,copy:ac3 -6 dpl2,auto -R Auto,Auto -B 160,0 -D 0,0 --gain 0,0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\2-1-chapters.csv" --x264-preset=fast --x264-profile=baseline --h264-level="3.0" --verbose=1
# iPod
--i "infile" -t 1 -o "outfile.m4v" -f mp4 -I -w 320 -l 240 -e x264 -b 700 --vfr -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x level=30:bframes=0:weightp=0:cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:subq=6:8x8dct=0:trellis=0 --verbose=1
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.mp4" -f mp4 -I -P -U -w 320 -l 180 --modulus 2 -e x264 -q 22 -r 30 --pfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\2-1-chapters.csv" --x264-profile=baseline --h264-level="1.3" --verbose=1
# iPhone_iPod_Touch
- -i "infile" -t 1 -o "outfile.m4v" -f mp4 -w 480 -l 320 -e x264 -q 20 --vfr -a 1 -E faac -B 128 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:subq=6:8x8dct=0:trellis=0 --verbose=1
-
-
-# iPhone_4
- -i "infile" -t 1 -o "outfile.m4v" -f mp4 -4 -w 960 --loose-anamorphic -e x264 -q 20 -r 29.97 --pfr -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" --verbose=1
-
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.mp4" -f mp4 -4 -P -U -w 960 --loose-anamorphic --modulus 2 -e x264 -q 22 -r 29.97 --pfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\2-1-chapters.csv" --x264-profile=high --h264-level="3.1" --verbose=1
# iPad
+ -i "infile" -t 1 --angle 1 -c 1 -o "outfile.mp4" -f mp4 -4 -P -U -w 1280 --loose-anamorphic --modulus 2 -e x264 -q 20 -r 29.97 --pfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\2-1-chapters.csv" --x264-profile=high --h264-level="3.1" --verbose=1
--i "infile" -t 1 -o "outfile.m4v" -f mp4 -4 -w 1024 --loose-anamorphic -e x264 -q 20 -r 29.97 --pfr -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" --verbose=1
-
-
-# Apple_TV
-
- -i "infile" -t 1 -o "outfile.m4v" -f mp4 -4 -w 960 --loose-anamorphic -e x264 -q 20 --vfr -a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x cabac=0:ref=2:me=umh:b-pyramid=none:b-adapt=2:weightb=0:trellis=0:weightp=0:vbv-maxrate=9500:vbv-bufsize=9500 --verbose=1
-
-# Apple_TV_2
--i "infile" -t 1 -o "outfile.m4v" -f mp4 -4 -w 1280 --loose-anamorphic -e x264 -q 20 -r 29.97 --pfr -a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" --verbose=1
-
-
-# Android_Mid
--i "infile" -t 1 -o "outfile.m4v" -f mp4 -w 480 -l 270 -e x264 -q 22 -r 29.97 --pfr -a 1 -E faac -B 128 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:subq=6:8x8dct=0:trellis=0 --verbose=1
-
-
-# Android_High
- -i "infile" -t 1 -o "outfile.mp4" -f mp4 -w 720 --loose-anamorphic -e x264 -q 22 -r 29.97 --pfr -a 1 -E faac -B 128 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 -x weightp=0:cabac=0 --verbose=1
+# AppleTV
+ -i "infile" -t 1 --angle 1 -c 1 -o "outfile.m4v" -f mp4 -4 -P -U -w 960 --loose-anamorphic --modulus 2 -e x264 -q 20 -r 30 --pfr -a 1,1 -E faac,copy:ac3 -6 dpl2,auto -R Auto,Auto -B 160,0 -D 0,0 --gain 0,0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\2-1-chapters.csv" -x cabac=0:ref=2:b-pyramid=none:weightb=0:weightp=0:vbv-maxrate=9500:vbv-bufsize=9500 --verbose=1
+# AppleTV2
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.m4v" -f mp4 -4 -P -U -w 1280 --loose-anamorphic --modulus 2 -e x264 -q 20 -r 29.97 --pfr -a 1,1 -E faac,copy:ac3 -6 dpl2,auto -R Auto,Auto -B 160,0 -D 0,0 --gain 0,0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\2-1-chapters.csv" --x264-profile=high --h264-level="3.1" --verbose=1
-# Normal_1080p_to_1080p_fixed_qp
--i "infile" -t 1 -o "outfile.m4v" -f mp4 --strict-anamorphic -e x264 -q 20 --vfr -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x ref=1:weightp=1:subq=2:rc-lookahead=10:trellis=0:8x8dct=0 --verbose=1
+# AppleTV3
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.m4v" -f mp4 -4 -P -U --decomb -w 1920 --loose-anamorphic --modulus 2 -e x264 -q 20 -r 30 --pfr -a 1,1 -E faac,copy:ac3 -6 dpl2,auto -R Auto,Auto -B 160,0 -D 0,0 --gain 0,0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\2-1-chapters.csv" --x264-profile=high --h264-level="4.0" --verbose=1
+# Android
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.mp4" -f mp4 -P -U -w 720 --loose-anamorphic --modulus 2 -e x264 -q 22 -r 29.97 --pfr -a 1 -E faac -6 dpl2 -R Auto -B 128 -D 0 --gain 0 --audio-fallback ffac3 --x264-profile=main --h264-level="2.2" --verbose=1
-# Normal_1080p_to_720p_fixed_qp
--i "infile" -t 1 -o "outfile.m4v" -f mp4 -w 1280 -l 720 --custom-anamorphic --display-width 1282 --keep-display-aspect -e x264 -q 20 --vfr -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x ref=1:weightp=1:subq=2:rc-lookahead=10:trellis=0:8x8dct=0 --verbose=1
+# Android_Tablet
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.mp4" -f mp4 -P -U -w 1280 --loose-anamorphic --modulus 2 -e x264 -q 22 -r 29.97 --pfr -a 1 -E faac -6 dpl2 -R Auto -B 128 -D 0 --gain 0 --audio-fallback ffac3 --x264-profile=main --h264-level="3.1" --verbose=1
-# Normal_1080p_to_1080p_13_mbps
--i "infile" -t 1 -o "outfile.m4v" -f mp4 --strict-anamorphic -e x264 -b 13000 --vfr -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x ref=1:weightp=1:subq=2:rc-lookahead=10:trellis=0:8x8dct=0 --verbose=1
+# Normal_to_480p
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.mp4" -f mp4 -P -U -w 720 --loose-anamorphic --modulus 2 -e x264 -q 20 --vfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\1-1-chapters.csv" --x264-preset=veryfast --x264-profile=main --h264-level="4.0" --verbose=1
+# Normal_to_720p
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.mp4" -f mp4 -P -U -w 1280 --loose-anamorphic --modulus 2 -e x264 -q 20 --vfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\1-1-chapters.csv" --x264-preset=veryfast --x264-profile=main --h264-level="4.0" --verbose=1
-# Normal_1080p_to_720p_6_mbps
- -i "infile" -t 1 -c 1 -o "outfile.m4v" -f mp4 -w 1280 -l 720 --custom-anamorphic --display-width 1282 --keep-display-aspect -e x264 -b 6000 --vfr -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x ref=1:weightp=1:subq=2:rc-lookahead=10:trellis=0:8x8dct=0 --verbose=1
-# high_1080p_to_1080p_fixed_qp
--i "infile" -t 1 -o "high_1080p.m4v" -f mp4 -4 --detelecine --decomb -w 1920 --loose-anamorphic -e x264 -q 20 --vfr -a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x b-adapt=2:rc-lookahead=50 --verbose=1
+# Normal_to_1080p
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.mp4" -f mp4 -P -U -w 1920 --loose-anamorphic --modulus 2 -e x264 -q 20 --vfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\1-1-chapters.csv" --x264-preset=veryfast --x264-profile=main --h264-level="4.0" --verbose=1
+# Normal_to_1080p_qp
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.mp4" -f mp4 -P -U -w 1920 -l 1080 --custom-anamorphic --display-width 1920 --keep-display-aspect --modulus 2 -e x264 -q 20 --vfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\1-1-chapters.csv" --x264-preset=veryfast --x264-profile=main --h264-level="4.0" --verbose=1
-# high_1080p_to_720p_fixed qp
- -i "infile" -t 1 -o "outfile.m4v" -f mp4 -4 --detelecine --decomb -w 1280 -l 720 --custom-anamorphic --display-width 1282 --keep-display-aspect -e x264 -q 20 --vfr -a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x b-adapt=2:rc-lookahead=50 --verbose=1
+# High Profile_to_480p
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.m4v" -f mp4 -4 -P -U --decomb -w 720 --loose-anamorphic --modulus 2 -e x264 -q 20 --vfr -a 1,1 -E faac,copy:ac3 -6 dpl2,auto -R Auto,Auto -B 160,0 -D 0,0 --gain 0,0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\1-1-chapters.csv" --x264-profile=high --h264-level="4.1" --verbose=1
-# high_1080p_to_1080p_13_mbps
- -i "infile" -t 1 -o "outfile.m4v" -f mp4 -4 --detelecine --decomb -w 1920 --loose-anamorphic -e x264 -b 13000 --vfr -a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x b-adapt=2:rc-lookahead=50 --verbose=1
+# High Profile_to_720p
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.m4v" -f mp4 -4 -P -U --decomb -w 1280 --loose-anamorphic --modulus 2 -e x264 -q 20 --vfr -a 1,1 -E faac,copy:ac3 -6 dpl2,auto -R Auto,Auto -B 160,0 -D 0,0 --gain 0,0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\1-1-chapters.csv" --x264-profile=high --h264-level="4.1" --verbose=1
-# high_1080p_to_720p_6mbps
--i "infile" -t 1 -o "outfile.m4v" -f mp4 -4 --detelecine --decomb -w 1280 -l 720 --custom-anamorphic --display-width 1282 --keep-display-aspect -e x264 -b 6000 --vfr -a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x b-adapt=2:rc-lookahead=50 --verbose=1
+# High Profile_to_1080p
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.m4v" -f mp4 -4 -P -U --decomb -w 1920 --loose-anamorphic --modulus 2 -e x264 -q 20 --vfr -a 1,1 -E faac,copy:ac3 -6 dpl2,auto -R Auto,Auto -B 160,0 -D 0,0 --gain 0,0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\1-1-chapters.csv" --x264-profile=high --h264-level="4.1" --verbose=1
-# strange_resolution
--i "infile" -t 1 -o "outfile.m4v" -f mp4 -w 480 -l 1078 -e x264 -q 20 --vfr -a 1 -E faac -B 128 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:subq=6:8x8dct=0:trellis=0 --verbose=1
+# High Profile_to_1080p_qp
+-i "infile" -t 1 --angle 1 -c 1 -o "outfile.m4v" -f mp4 -4 -P -U --decomb -w 1920 -l 1080 --custom-anamorphic --display-width 720 --pixel-aspect 720:480 --modulus 2 -e x264 -q 20 --vfr -a 1,1 -E faac,copy:ac3 -6 dpl2,auto -R Auto,Auto -B 160,0 -D 0,0 --gain 0,0 --audio-fallback ffac3 --markers="C:\Users\AMDComal\AppData\Local\Temp\1-1-chapters.csv" --x264-profile=high --h264-level="4.1" --verbose=1
#-end of script
diff --git a/test/test case/readme.txt b/test/test case/readme.txt index 8c182e26c..87c91201f 100644 --- a/test/test case/readme.txt +++ b/test/test case/readme.txt @@ -37,7 +37,9 @@ The handbrake_test.txt is a "script" file that contains the individual tests to blank lines are ignored.
-To enable UVD decoding, add -P -U to each execution line in handbrake_test.txt.
+
+To enable OpenCL, add -P to each execution line in handbrake_test.txt.
+To enable hardware decoding, add -U to each execution line in handbrake_test.txt.
Example:
# universal
-i "infile" -t 1 -o "outfile.m4v" -P -U -f mp4 -w 720 --loose-anamorphic -e x264 -q 20 --vfr -a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3 --markers="C:\Users\jgallmeier\AppData\Local\Temp\Blueangels-1-1-chapters.csv" -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:8x8dct=0:trellis=0:subq=6 --verbose=1
diff --git a/test/test.c b/test/test.c index 82797fd6e..42c53ab8d 100644 --- a/test/test.c +++ b/test/test.c @@ -137,7 +137,7 @@ static int64_t stop_at_pts = 0; static int stop_at_frame = 0; static uint64_t min_title_duration = 10; static int use_opencl = 0; -static int use_uvd = 0; +static int use_hwd = 0; /* Exit cleanly on Ctrl-C */ static volatile int die = 0; @@ -218,7 +218,8 @@ int main( int argc, char ** argv ) h = hb_init( debug, update ); hb_dvd_set_dvdnav( dvdnav ); #ifdef USE_OPENCL - hb_get_opencl_env(); + if ( use_opencl ) + hb_get_opencl_env(); #endif /* Show version */ fprintf( stderr, "%s - %s - %s\n", @@ -260,7 +261,7 @@ int main( int argc, char ** argv ) titleindex = 0; } - hb_set_gui_info(&hb_gui, use_uvd, use_opencl, titleindex); + hb_set_gui_info(&hb_gui, use_hwd, use_opencl, titleindex); hb_scan( h, input, titleindex, preview_count, store_previews, min_title_duration * 90000LL ); /* Wait... */ @@ -429,10 +430,10 @@ static void PrintTitleInfo( hb_title_t * title, int feature ) fprintf( stderr, " + support opencl: yes\n"); else fprintf( stderr, " + support opencl: no\n"); - if (title->uvd_support) - fprintf( stderr, " + support uvd: yes\n"); + if (title->hwd_support) + fprintf( stderr, " + support hwd: yes\n"); else - fprintf( stderr, " + support uvd: no\n"); + fprintf( stderr, " + support hwd: no\n"); fprintf( stderr, " + chapters:\n" ); for( i = 0; i < hb_list_count( title->list_chapter ); i++ ) { @@ -1412,9 +1413,9 @@ static int HandleEvents( hb_handle_t * h ) job->maxWidth = maxWidth; if (maxHeight) job->maxHeight = maxHeight; - if (use_uvd) + if (use_hwd) { - job->use_uvd = use_uvd; + job->use_hwd = use_hwd; } switch( anamorphic_mode ) @@ -1588,13 +1589,8 @@ static int HandleEvents( hb_handle_t * h ) filter_str = hb_strdup_printf("%d:%d:%d:%d:%d:%d", job->width, job->height, job->crop[0], job->crop[1], job->crop[2], job->crop[3] ); - -#ifdef USE_OPENCL - if ( use_opencl ) - filter = hb_filter_init( HB_FILTER_CROP_SCALE_ACCL ); - else -#endif - filter = hb_filter_init( HB_FILTER_CROP_SCALE ); + + filter = hb_filter_init( HB_FILTER_CROP_SCALE ); hb_add_filter( job, filter, filter_str ); free( filter_str ); @@ -3251,7 +3247,7 @@ static int ParseOptions( int argc, char ** argv ) { "optimize", no_argument, NULL, 'O' }, { "ipod-atom", no_argument, NULL, 'I' }, { "use-opencl", no_argument, NULL, 'P' }, - { "use-uvd", no_argument, NULL, 'U' }, + { "use-hwd", no_argument, NULL, 'U' }, { "title", required_argument, NULL, 't' }, { "min-duration",required_argument, NULL, MIN_DURATION }, @@ -3416,7 +3412,7 @@ static int ParseOptions( int argc, char ** argv ) use_opencl = 1; break; case 'U': - use_uvd = 1; + use_hwd = 1; break; case 't': |