video: remove buffer padding

This patch fix video rendering when pixelbuffer have a padding.

Change-Id: I9ab48109c5ad6400ad8da4037f6f508f3db84025
Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
diff --git a/src/VideoCommon.h b/src/VideoCommon.h
new file mode 100644
index 0000000..b308b6d
--- /dev/null
+++ b/src/VideoCommon.h
@@ -0,0 +1,37 @@
+/*
+ *  Copyright (C) 2019 Savoir-faire Linux Inc.
+ *  Author: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.
+ */
+
+#import <Foundation/Foundation.h>
+#import <QuartzCore/QuartzCore.h>
+
+struct AVFrame;
+
+@interface VideoCommon : NSObject
+
++ (void)copyLineByLineSrc:(uint8_t*)src
+                   toDest:(uint8_t*)dest
+              srcLinesize:(size_t)srcLinesize
+             destLinesize:(size_t)destLinesize
+                   height:(size_t)height;
++ (void) fillPixelBuffr:(CVPixelBufferRef *)pixelBuffer
+              fromFrame:(const AVFrame*)frame
+             bufferPool:(CVPixelBufferPoolRef *)pixelBufferPool;
+
+@end
+