Add control for video subsampling
Add '-s' to assign jpeg subsampling.
0: 444, 1: 420
Using 420 will make video lack of detail compared to 444, but cut
amount of video data by half. This could be useful for some cases.
Change-Id: I48836a7117f7e3b9986e3f5c6a92974c9268525e
Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
diff --git a/ikvm_manager.cpp b/ikvm_manager.cpp
index d56110d..33e7b17 100644
--- a/ikvm_manager.cpp
+++ b/ikvm_manager.cpp
@@ -8,7 +8,7 @@
Manager::Manager(const Args& args) :
continueExecuting(true), serverDone(false), videoDone(true),
input(args.getKeyboardPath(), args.getPointerPath()),
- video(args.getVideoPath(), input, args.getFrameRate()),
+ video(args.getVideoPath(), input, args.getFrameRate(), args.getSubsampling()),
server(args, input, video)
{
}