Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
TVGHI.c
Package: tb_i86_wr_1019_1102. [view]
Upload User: super_houu
Upload Date: 2008-09-21
Package Size: 4099k
Code Size: 1k
Category:
DVD
Development Platform:
Others
- #include "Config.h" // Global Configuration - do not remove!
- #ifdef TV_GUARDIAN_ENABLE
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include "Playcoretvgtvghi.h"
- #include "Playcoretvgtvg.h"
- #include "Playcoretvgtvgcode.h"
- #include "Playcoretvgtvgram.h"
- #include "Playcoretvgtvgpar.h"
- uchar tvg_process_gop( uchar *ccdata, uchar *ccdata_out, uchar index, uchar gop_length ) {
- uchar c1,c2, errcnt, i;
- errcnt=0;
- gop_offset = index;
- // index *= 2;
- // ccin = ccdata + index;
- // ccout = ccdata_out + index;
- if(index==0) { // lets check this whole block
- for(i=0;i<(gop_length << 1);i+=2) {
- c1=ccdata[i+0] & 0x7F;
- c2=ccdata[i+1] & 0x7F;
- if(ccdata[i+0] != mkpar[c1]) errcnt++; // parity err
- if(ccdata[i+1] != mkpar[c2]) errcnt++; // parity err
- }
- if(errcnt > ERR_THRESHOLD) {
- tvg_flags |= FORCE_NULLS;
- } else {
- tvg_flags &= ~FORCE_NULLS;
- }
- }
- tvg_process( ccdata, ccdata_out, 1 );
- return errcnt;
- }
- #endif //TV_GUARDIAN_ENABLE