mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
driver/genpsi.cpp: replace old code with class
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
/*
|
||||
$Id: genpsi.h,v 1.1 2005/08/15 14:47:52 metallica Exp $
|
||||
|
||||
Copyright (c) 2004 gmo18t, Germany. All rights reserved.
|
||||
|
||||
aktuelle Versionen gibt es hier:
|
||||
$Source: /cvs/tuxbox/apps/tuxbox/neutrino/src/driver/genpsi.h,v $
|
||||
Copyright (C) 2012 CoolStream International Ltd
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published
|
||||
@@ -26,13 +23,26 @@ $Id: genpsi.h,v 1.1 2005/08/15 14:47:52 metallica Exp $
|
||||
#define __genpsi_h__
|
||||
#include <inttypes.h>
|
||||
|
||||
int genpsi(int fd2);
|
||||
void transfer_pids(uint16_t pid,uint16_t pidart,short isAC3);
|
||||
|
||||
#define EN_TYPE_VIDEO 0x00
|
||||
#define EN_TYPE_AUDIO 0x01
|
||||
#define EN_TYPE_TELTEX 0x02
|
||||
#define EN_TYPE_PCR 0x03
|
||||
#define EN_TYPE_AVC 0x04
|
||||
|
||||
class CGenPsi
|
||||
{
|
||||
private:
|
||||
short nba;
|
||||
uint16_t vpid;
|
||||
uint8_t vtype;
|
||||
uint16_t apid[10];
|
||||
short atypes[10];
|
||||
static int copy_template(uint8_t *dst, uint8_t *src, int len);
|
||||
uint32_t calc_crc32psi(uint8_t *dst, const uint8_t *src, uint32_t len);
|
||||
|
||||
public:
|
||||
CGenPsi();
|
||||
void addPid(uint16_t pid,uint16_t pidtype, short isAC3);
|
||||
int genpsi(int fd);
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user