Commit Graph

6 Commits

Author SHA1 Message Date
kjellander@webrtc.org
b13dfbffd7 Making barcode tools work on Windows + fixes.
This makes it possible to compile on the bots without hardcoding paths
to Ant, Java and ffmpeg deep into the Python scripts (hardcoded paths exists only in the buildbot configuration).
For bots, the ANT_HOME, JAVA_HOME and FFMPEG_HOME environment variables must be set to the install locations for each of these dependencies, for Windows.

This CL also improves the return code handling to make failures easier to detect when things break.

TEST=running build_zxing.py without Ant or Java in the PATH, but with
ANT_HOME, JAVA_HOME and FFMPEG_HOME set. Running Chromium's src/chrome/test/functional/webrtc_video_quality.py.
BUG=none

Review URL: https://webrtc-codereview.appspot.com/1002005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3311 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-12-18 19:53:00 +00:00
kjellander@webrtc.org
ccb52c2961 Improve error handling for barcode_tools
These changes make the execution abort earlier on an error (like a tool is not found) and makes it easier to figure out what's wrong.

Made build_zxing.py executable.

BUG=None
TEST=Local runs of the PyAuto test src/chrome/test/functional/webrtc_video_quality.py in Chromium.

Review URL: https://webrtc-codereview.appspot.com/840005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2899 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-10 16:11:28 +00:00
kjellander@webrtc.org
ead3005c46 Making Java headless to save execution time
Is seems this only saves a few seconds, but it's a least less confusing for the user executing the test.

BUG=

Review URL: https://webrtc-codereview.appspot.com/761008

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2709 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-09-06 09:33:08 +00:00
vspasova@webrtc.org
1b0a02e12e Fixing a path and Ant invocation issue in build_zxing.py and delete_file issue in helper_functions.py
Review URL: https://webrtc-codereview.appspot.com/761006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2688 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-08-30 12:56:38 +00:00
vspasova@webrtc.org
28655423fd Removed barcode_tools.gyp and added build_zxing.py
BUG=

Review URL: https://webrtc-codereview.appspot.com/735009

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2615 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-08-15 14:35:40 +00:00
vspasova@webrtc.org
400e7da51b Created a barcode encoder and decoder Python tools.
The barcode encoder generates barcodes as PNG files, than converts them to YUV files,
then stitches these into one YUV video file and finaly overlays this video over the
base video to produce a YUV video of the base with encoded barcodes in the upper part
of the video.

The decoder gets a YUV video with overlaid barcodes and first splits it into PNG files,
than decodes every file, and finally generates a stats file.

The encoder and decoder use Zxing and its Java command-line tools for the encoding and
decoding. They also use ffmpeg for the conversion between PNG and YUV and vice versa.

BUG=
TEST=
The tools could be used from trunk as:
./tools/barcode_tools/barcode_encoder.py --barcode_height=32 --base_frame_width=352
--base_frame_height=288 --base_yuv=<path_nad_name_to_base_file>
--output_yuv=<path_nad_name_to_output_file>

./tools/barcode_tools/barcode_decoder.py --yuv_file=<path_and_name_to_yuv_file>
--yuv_frame_width=352 --yuv=frame_height=288 --barcode_height=32
--stats_file=<path_and_name_of_stats_file>

By default the width of the barcodes is the same as the width of the base YUV frames.
This could be changes with the command-line option --barcode_width

Review URL: https://webrtc-codereview.appspot.com/679010

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2612 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-08-15 10:25:12 +00:00