summaryrefslogtreecommitdiff
path: root/dxr3interface_spu_encoder.h
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-10-14 19:30:43 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-10-14 19:30:43 +0200
commitb454f656ee6e20f1baa160fb2715895dc99ab974 (patch)
tree2f2a3b2bb42ff20f4571295ef378f5782586edb2 /dxr3interface_spu_encoder.h
parent48f330d3d75e42ad35e5e90e9bc1cc7488ab4b33 (diff)
downloadvdr-plugin-dxr3-b454f656ee6e20f1baa160fb2715895dc99ab974.tar.gz
vdr-plugin-dxr3-b454f656ee6e20f1baa160fb2715895dc99ab974.tar.bz2
delete old spuencoder files
Diffstat (limited to 'dxr3interface_spu_encoder.h')
-rw-r--r--dxr3interface_spu_encoder.h125
1 files changed, 0 insertions, 125 deletions
diff --git a/dxr3interface_spu_encoder.h b/dxr3interface_spu_encoder.h
deleted file mode 100644
index a05d626..0000000
--- a/dxr3interface_spu_encoder.h
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * dxr3interface_spu_encoder.h - encodes an OSD bitmap as subpicture
- *
- * Assimilated and adapted by
- * Stefan Schluenss <dxr3_osd@schluenss.de>
- * Nov. 2002
- *
- * Based on the subpicture encoding routines from MPlayer and
- * the information given by
- * Samuel Hocevar
- * Michel Lespinasse
- * and http://members.aol.com/mpucoder/DVD/spu.html
- *
- * 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 2 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.
- *
- */
-
-#ifndef _DXR3_INTERFACE_SPU_ENCODER_
-#define _DXR3_INTERFACE_SPU_ENCODER_
-
-#include <vdr/osd.h>
-#include "dxr3colormanager.h"
-#include "dxr3interface.h"
-
-// ==================================
-#define MAXWINDOWS 8
-#define DATASIZE 53220
-#define OSDWIDTH 720
-#define OSDWIDTH2 480
-#define OSDHEIGHT 576
-
-// ==================================
-// used to get active osd area
-struct sRectal
-{
- sRectal() : x0(0), x1(0), y0(0), y1(0) {}
-
- size_t x0;
- size_t x1;
- size_t y0;
- size_t y1;
-};
-
-// ==================================
-struct pixbuf
-{
- int x, y;
- u_int rgb[4];
- u_char* pixels;
-};
-
-// ==================================
-struct encodedata
-{
- u_char data[DATASIZE];
- int count; // the count of bytes written
- int oddstart;
- int nibblewaiting;
-};
-
-// ==================================
-class cSPUEncoder : public Singleton<cSPUEncoder>
-{
-public:
- cSPUEncoder();
- ~cSPUEncoder() {}
-
- int Flush(cPalette *Palette);
- void CopyBlockIntoOSD(int numWindow, int linewidth,
- int x0,int y0, int x1, int y1, const tIndex *data);
- void SetPalette(int numWindow, cPalette* commonPalette,
- cPalette* windowPalette);
- void Clear(void);
-
-private:
- cSPUEncoder(cSPUEncoder&); // no copy constructor
-
- // helper functions
- void EncodePixelbufRle(int x, int y, int w, int h,
- u_char *inbuf, int stride, encodedata *ed);
-#ifndef USE_XINE_SCALER
- void ScaleOSD(double fac, unsigned char* buf, unsigned char NumColors=4);
-#endif
- void encode_put_nibble(encodedata* ed, u_char nibble);
- void encode_pixels(encodedata* ed, int color, int number);
- void encode_eol(encodedata* ed);
- void encode_do_row(encodedata* ed, pixbuf* pb, int row);
- void encode_do_control(int x,int y, encodedata* ed, pixbuf* pb);
-
- void CalculateActiveOsdArea();
-
- int bitmapcolor[8][16];
- cColorManager* m_ColorManager;
- encodedata m_encodeddata;
-
- // our osd :)
- u_char OSD_Screen[OSDWIDTH * OSDHEIGHT];
- u_char OSD_Screen2[OSDWIDTH * OSDHEIGHT];
- u_char OSD_Screen3[OSDWIDTH * OSDHEIGHT];
-
- // 'active' osd sizes
- sRectal m_active_osd;
-};
-
-#endif /*_DXR3_INTERFACE_SPU_ENCODER_*/
-
-// Local variables:
-// mode: c++
-// c-file-style: "stroustrup"
-// c-file-offsets: ((inline-open . 0))
-// tab-width: 4;
-// indent-tabs-mode: nil
-// End: