X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_yuv420p%2Ftrgt_yuv.cpp;h=b2d7217ff8a0065c616e4d3b906bf3f3858f3680;hb=6e6b8ce1d75be6a6b99d2cc955faeeea80d62c26;hp=57c8beb23dceed5c758fe61af5073f51ecd5b5e4;hpb=28f28705612902c15cd0702cc891fba35bf2d2df;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_yuv420p/trgt_yuv.cpp b/synfig-core/trunk/src/modules/mod_yuv420p/trgt_yuv.cpp index 57c8beb..b2d7217 100644 --- a/synfig-core/trunk/src/modules/mod_yuv420p/trgt_yuv.cpp +++ b/synfig-core/trunk/src/modules/mod_yuv420p/trgt_yuv.cpp @@ -5,16 +5,17 @@ ** $Id: trgt_yuv.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package 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 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package 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. ** \endlegal */ /* ========================================================================= */ @@ -87,7 +88,7 @@ yuv::set_rend_desc(RendDesc *given_desc) // Set up our surface surface.set_wh(desc.get_w(),desc.get_h()); - + return true; } @@ -145,11 +146,11 @@ yuv::end_frame() if(surface.get_w()>x+1) surface[y][x+1]+=error * ((float)7/(float)16); } - + fputc(i,file.get()); } - - + + // Create new super-sampled surface Surface sm_surface(w/2,h/2); for(y=0;y