2000-02-01 16:23:53 +00:00
|
|
|
*** vbidecode.cc.orig Sun Feb 28 18:18:04 1999
|
|
|
|
--- vbidecode.cc Tue Feb 1 16:14:39 2000
|
1999-06-07 22:10:33 +00:00
|
|
|
*************** TODO:
|
|
|
|
*** 52,58 ****
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
|
|
#include "tables.h"
|
|
|
|
! #include "../../driver/bttv.h"
|
|
|
|
|
|
|
|
int verbosity=0;
|
|
|
|
|
|
|
|
--- 52,59 ----
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
|
|
#include "tables.h"
|
|
|
|
! /* #include "../../driver/bttv.h" */
|
|
|
|
! #define VBI_MAXLINES 16
|
|
|
|
|
|
|
|
int verbosity=0;
|
|
|
|
|
2000-02-01 16:23:53 +00:00
|
|
|
*************** struct vpsinfo {
|
|
|
|
*** 214,220 ****
|
|
|
|
int namep;
|
|
|
|
unsigned char *info;
|
|
|
|
|
|
|
|
! getname(char *name) {
|
|
|
|
memcpy(name,lastname,9);
|
|
|
|
}
|
|
|
|
vpsinfo() {
|
|
|
|
--- 215,221 ----
|
|
|
|
int namep;
|
|
|
|
unsigned char *info;
|
|
|
|
|
|
|
|
! int getname(char *name) {
|
|
|
|
memcpy(name,lastname,9);
|
|
|
|
}
|
|
|
|
vpsinfo() {
|
|
|
|
*************** VTchannel vtch;
|
|
|
|
*** 494,506 ****
|
|
|
|
struct VDdeco {
|
|
|
|
int Vflag;
|
|
|
|
|
|
|
|
! write(unsigned char *data, int n) {
|
|
|
|
int i;
|
|
|
|
for (i=0; i<n; i++)
|
|
|
|
decode(data[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
! decode(unsigned char dat) {
|
|
|
|
if (!Vflag) {
|
|
|
|
if (dat==0x56)
|
|
|
|
Vflag=1;
|
|
|
|
--- 495,507 ----
|
|
|
|
struct VDdeco {
|
|
|
|
int Vflag;
|
|
|
|
|
|
|
|
! int write(unsigned char *data, int n) {
|
|
|
|
int i;
|
|
|
|
for (i=0; i<n; i++)
|
|
|
|
decode(data[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
! int decode(unsigned char dat) {
|
|
|
|
if (!Vflag) {
|
|
|
|
if (dat==0x56)
|
|
|
|
Vflag=1;
|