From 31b59c0fd16f07350091f974d5b9f05c67299796 Mon Sep 17 00:00:00 2001 From: "Liu, Shuo" Date: Mon, 31 Jan 2011 12:27:39 +0800 Subject: Enable video playback in libva Change-Id: I008da4aa5966ef226b3ec65051970498490a1a8e Signed-off-by: Liu, Shuo --- test/encode/loadsurface.h | 121 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 120 insertions(+), 1 deletion(-) mode change 120000 => 100644 test/encode/loadsurface.h (limited to 'test/encode/loadsurface.h') diff --git a/test/encode/loadsurface.h b/test/encode/loadsurface.h deleted file mode 120000 index fb38e2f..0000000 --- a/test/encode/loadsurface.h +++ /dev/null @@ -1 +0,0 @@ -../putsurface/loadsurface.h \ No newline at end of file diff --git a/test/encode/loadsurface.h b/test/encode/loadsurface.h new file mode 100644 index 0000000..ef792c8 --- /dev/null +++ b/test/encode/loadsurface.h @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2008-2009 Intel Corporation. All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sub license, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial portions + * of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. + * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR + * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + + +static int yuvgen_planar(int width, int height, + unsigned char *Y_start, int Y_pitch, + unsigned char *U_start, int U_pitch, + unsigned char *V_start, int V_pitch, + int UV_interleave, int box_width, int row_shift, + int field) +{ + int row; + + /* copy Y plane */ + for (row=0;row