1 /*************************************************************************** 2 Swap Fields.h - 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 22 class AVDMVideoSwapField:public AVDMGenericVideoStream 23 { 24 25 protected: 26 AVDMGenericVideoStream *_in; 27 virtual char *printConf(void) ; 28 29 public: 30 AVDMVideoSwapField( AVDMGenericVideoStream *in,CONFcouple *setup); 31 ~AVDMVideoSwapField(); 32 virtual uint8_t getFrameNumberNoAlloc(uint32_t frame, uint32_t *len, 33 ADMImage *data,uint32_t *flags); getBinaryConf(uint16_t * size)34 virtual uint8_t *getBinaryConf( uint16_t *size) { *size=0;return (uint8_t *)0;} configure(AVDMGenericVideoStream * instream)35 virtual uint8_t configure( AVDMGenericVideoStream *instream) {return 1;}; 36 37 } ; 38 class AVDMVideoKeepOdd:public AVDMGenericVideoStream 39 { 40 41 protected: 42 AVDMGenericVideoStream *_in; 43 virtual char *printConf(void) ; 44 45 public: 46 AVDMVideoKeepOdd( AVDMGenericVideoStream *in,CONFcouple *setup); 47 ~AVDMVideoKeepOdd(); 48 virtual uint8_t getFrameNumberNoAlloc(uint32_t frame, uint32_t *len, 49 ADMImage *data,uint32_t *flags); 50 configure(AVDMGenericVideoStream * instream)51 virtual uint8_t configure( AVDMGenericVideoStream *instream) {return 1;}; 52 53 } ; 54 class AVDMVideoKeepEven:public AVDMVideoKeepOdd 55 { 56 57 protected: 58 59 virtual char *printConf(void) ; 60 61 public: AVDMVideoKeepEven(AVDMGenericVideoStream * in,CONFcouple * setup)62 AVDMVideoKeepEven( AVDMGenericVideoStream *in,CONFcouple *setup) : AVDMVideoKeepOdd( in,setup) 63 {} 64 65 virtual uint8_t getFrameNumberNoAlloc(uint32_t frame, uint32_t *len, 66 ADMImage *data,uint32_t *flags); 67 68 } ; 69 70