00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _UEP_RCPCC_H_
00021 #define _UEP_RCPCC_H_
00022
00023 #include "Buffer.h"
00024 #include "rcpc.h"
00025 #include "bytes.h"
00026
00027
00028
00029 #define MAXINPUTBITS 1024
00030
00031
00032
00033
00034
00035
00036
00037 int rcpcc16_encode();
00038 int rcpcc16_decode();
00039 int rcpcc16_getK();
00040
00041 void Makeppx(int Rtype);
00042 void GetRcpcBytes(buf_rcpc *b1, int *rcpc_bits1, int *rcpc_bits2, int Rtype,
00043 int N);
00044
00045 unsigned char *DecodeVideoPacket(int Rtype, int N, buf_rcpc *b1, int *CRC_flag,
00046 int *K, int CRCBytes, int arq_type);
00047
00048 void rcpcc_coder();
00049 void rcpcc_decoder();
00050 double distance();
00051
00052 void ConvBits2Bytes(int *bit_array, unsigned char *byte_array, int N);
00053 void ConvBytes2Bits(unsigned char *byte_array, int *bit_array, int N);
00054
00055 void MakeCRCBytes(byte *in_bits, int info_dim, int CRC_dim);
00056 int CheckCRC(byte *out_bits, int info_dim, int CRC_dim);
00057
00058 buf_rcpc *MakeNewVideoPacket(int Rtype, int N, Buffer *VideoBuff,
00059 int CRCBytes, int arq_type);
00060
00061 unsigned char *DecodeVideoPacket(int Rtype, int N, buf_rcpc *b1,
00062 int *CRC_flag, int *K, int CRCBytes,
00063 int arq_type);
00064
00065
00066 #endif