Commit Graph

6 Commits

Author SHA1 Message Date
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
992da29c75 A tool that crops the top pixel rows of a YUV video.
TEST=./tools/barcode_tools/yuv_cropper.py --width=640
--height=480 --crop_height=32
--yuv_file=<path_and_name_to_yuv_file>
--output_file=<path_and_name_to_output_file>

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2692 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-08-31 09:47:47 +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
8327c85bf5 Fixing a syntax error in barcode_tools DEPS.
BUG=

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2614 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-08-15 11:52:46 +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