summaryrefslogtreecommitdiff
path: root/tools/pip_service_impl.h
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2010-04-04 19:20:29 +0000
committercvs2svn <admin@example.com>2010-04-04 19:20:29 +0000
commitcde3ee7dade952baf6274f38ca81b316fbcf0c6a (patch)
treefd73f71d41a6d9b9a66c37eb3e6e172a6155aed3 /tools/pip_service_impl.h
parent07de8081b90d309a2b8aaa6050b8e71fa017ae2f (diff)
downloadxineliboutput-libbluray-r103.tar.gz
xineliboutput-libbluray-r103.tar.bz2
This commit was manufactured by cvs2svn to create tag 'libbluray-r103'.libbluray-r103
Diffstat (limited to 'tools/pip_service_impl.h')
-rw-r--r--tools/pip_service_impl.h80
1 files changed, 0 insertions, 80 deletions
diff --git a/tools/pip_service_impl.h b/tools/pip_service_impl.h
deleted file mode 100644
index 55d3d83d..00000000
--- a/tools/pip_service_impl.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * pip_service_impl.h:
- *
- * See the main source file 'xineliboutput.c' for copyright information and
- * how to reach the author.
- *
- * $Id: pip_service_impl.h,v 1.1 2010-03-12 21:15:04 phintuka Exp $
- *
- */
-
-#ifndef PIP_SERVICE_IMPL_H
-#define PIP_SERVICE_IMPL_H
-
-#include "../include/vdr-xineliboutput/service_pip.h"
-
-#ifndef TS_SIZE
-# define TS_SIZE 188
-#endif
-
-#define PIP_TS_CHUNK_SIZE (8*TS_SIZE)
-
-class cPipServiceImpl : public cXineliboutputPipService
-{
- private:
-
- cXinelibDevice *m_Dev;
- int m_Id;
-
- uint8_t m_Data[PIP_TS_CHUNK_SIZE + TS_SIZE];
- uint m_DataLen;
-
- public:
-
- cPipServiceImpl(int Index, cXinelibDevice *Device)
- {
- m_Dev = Device;
- m_Id = Index;
- m_DataLen = 0;
-
- int X = 5 + 22 * (Index % 4);
- int Y = 5 + 22 * (Index / 4);
- int W = 20;
- int H = 20;
-
- m_Dev->Pip_Config(m_Id, X, Y, W, H);
- }
-
- private:
-
- virtual void SetPosition(uint X, uint Y, uint W, uint H)
- {
- m_Dev->Pip_Config(m_Id, X, Y, W, H);
- }
-
- virtual int PlayTs(const uint8_t *Data)
- {
- if (Data) {
- /* accumulate data */
- memcpy(m_Data + m_DataLen, Data, TS_SIZE);
- m_DataLen += TS_SIZE;
-
- if (m_DataLen < PIP_TS_CHUNK_SIZE)
- return TS_SIZE;
- }
-
- /* flush to device */
- m_Dev->Pip_Play(m_Id, m_Data, m_DataLen);
- m_DataLen = 0;
-
- return TS_SIZE;
- }
-
- virtual ~cPipServiceImpl()
- {
- m_Dev->Pip_Close(m_Id);
- }
-};
-
-
-#endif /* PIP_SERVICE_IMPL_H */