1 /*************************************************************************** 2 Swap Fields.cpp - description 3 ------------------- 4 Swap each line (shift up for odd, down for even) 5 6 7 begin : Thu Mar 21 2002 8 copyright : (C) 2002 by mean 9 email : fixounet@free.fr 10 ***************************************************************************/ 11 12 /*************************************************************************** 13 * * 14 * This program is free software; you can redistribute it and/or modify * 15 * it under the terms of the GNU General Public License as published by * 16 * the Free Software Foundation; either version 2 of the License, or * 17 * (at your option) any later version. * 18 * * 19 ***************************************************************************/ 20 21 #include "ADM_default.h" 22 23 24 #include "ADM_videoFilterDynamic.h" 25 #include "ADM_vidFieldUtil.h" 26 #include "ADM_vidSwapFields.h" 27 28 29 static FILTER_PARAM swapParam={0,{""}}; 30 31 32 33 //********** Register chunk ************ 34 35 VF_DEFINE_FILTER(AVDMVideoKeepOdd,swapParam, 36 keepoddfield, 37 QT_TR_NOOP("Keep odd fields"), 38 1, 39 VF_INTERLACING, 40 QT_TR_NOOP("Keep bottom fields. Gives a half height picture..")); 41 42 43 #include "SwapCommon.cpp" 44 45 46