ocssw
V2022
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
Include dependency graph for Usds.c:
Go to the source code of this file.
Macros | |
#define | MIN(x, y) ((x)<(y)? (x): (y)) |
#define | MAXLINE 80 |
#define | INBLK_size 1024 |
#define | TYP 0 |
#define | EXT2 1 |
#define | ZERO 2 |
#define | ID_DECODE 3 |
#define | MAX_BLKREF 128 |
#define | MAX_REFPAC 128 |
#define | MAX_ZBLKS 64 |
#define | J_MAX 16 |
#define | PIXREF_DEFAULT 256 |
#define | N_DEFAULT 8 |
#define | J_DEFAULT 16 |
Functions | |
int | get_ref () |
int | un_z () |
int | check_end (int id, int end_fill) |
int | get_input (int *max_data, int32_t inBytes, uint8_t *encryptData) |
int | get_EP_IN (FILE *file_ptr, int pixels) |
void | un_K () |
void | un_ext2 () |
void | un_FS (int flag) |
void | un_DEF () |
void | data_output (uint16_t *decryptData, int *decryptPtr) |
void | flush_buffer (uint16_t *decryptData, int32_t *decryptPtr) |
void | check_ref_per_sample (int blkref_flag, int pixref_flag) |
void | open_files (int argc, char *argv[]) |
void | set_flags (int argc, char *argv[], int *pixref_flag, int *blkref_flag) |
void | initialize (int pixref_flag, int blkref_flag) |
void | do_uncoding (int32_t inBytes, uint8_t *encryptData, uint16_t *decryptData) |
int | usds (int argc, argv, int32_t inBytes, uint8_t *encryptData, uint16_t *decryptData) |
int | get_id3 () |
int | get_id4 () |
void | unmap_NN (int start, int pixels) |
void | unmap_EP (int start, int pixels) |
void | unmap_TWOD (int start, int pixels) |
void | unmap_MS (int start, int pixels) |
int | findid (int max_data) |
void | help () |
void | set_flags (int argc, argv, int *pixref_flag, int *blkref_flag) |
void | open_files (int argc, argv) |
Variables | |
int | SIGN_EXT_OUTPUT =1 |
unsigned | IN_array [INBLK_size+1] |
unsigned | XP_IN [INBLK_size+1] |
char | Buffer_in [INBLK_size *2+2] |
char | Buffer_in2 [10000] |
char * | Binptr |
unsigned | SIG [2048+1] |
unsigned short | OUT [4096+1] |
char | Buffer_out [10240] |
char * | Bptr |
char * | Bend |
int | N |
int | NN |
int | J |
int | XP |
int | MASK_SIGN |
int | MASK_IN |
int | MASKN_neg |
unsigned short | MASKNOT [17] |
int | NEG_data |
int | IDbits |
int | REF |
int | REF2REF |
int | REFREF_flag |
int | TRUEREF |
int | SCANLINE |
int | BYTE_pixel |
int | IN_INDEX =0 |
int | NEXT_BIT =15 |
int | BYPASS_flag |
int | NN_mode |
int | EP_mode |
int | TWOD_mode |
int | TWOD_line_mode |
int | MS_mode |
int | BYPASS_mode |
int | ENT_CODING |
int | BlkPac |
int | PixRef |
int | BlkRef |
int | RefPac |
int | PACKET_flag |
int | EXT2_flag |
int | EXT2_bit |
int | ZOP_flag |
int | ZBLKS |
int | ZFLAG |
int | LAST_word |
int | XMAX |
int | XMAX_MS |
int | XMAXneg |
FILE * | In_ptr |
FILE * | Ep_ptr |
FILE * | Out_ptr |
FILE * | Twod_ptr |
FILE * | Ms_ptr |
char | In_file [MAXLINE] |
unsigned | REFERENCE |
int | K_bits |
int | Kfactor |
long | BLKCNT |
int | FS_id |
int | Low_id |
int | D_id |
int | MS [] ={0,1,3,6,10,15,21,28} |
int | M [] |
char | copyright [] = "@(#) (C) Copyright 1993,1994 University of New Mexico. All Rights Reserved." |
Macro Definition Documentation
◆ EXT2
◆ ID_DECODE
◆ INBLK_size
◆ J_DEFAULT
◆ J_MAX
◆ MAX_BLKREF
◆ MAX_REFPAC
◆ MAX_ZBLKS
◆ MAXLINE
◆ MIN
◆ N_DEFAULT
◆ PIXREF_DEFAULT
◆ TYP
◆ ZERO
Function Documentation
◆ check_end()
int check_end | ( | int | id, |
int | end_fill | ||
) |
◆ check_ref_per_sample()
void check_ref_per_sample | ( | int | blkref_flag, |
int | pixref_flag | ||
) |
◆ data_output()
void data_output | ( | uint16_t * | decryptData, |
int * | decryptPtr | ||
) |
◆ do_uncoding()
void do_uncoding | ( | int32_t | inBytes, |
uint8_t * | encryptData, | ||
uint16_t * | decryptData | ||
) |
◆ findid()
◆ flush_buffer()
void flush_buffer | ( | uint16_t * | decryptData, |
int32_t * | decryptPtr | ||
) |
◆ get_EP_IN()
◆ get_id3()
◆ get_id4()
◆ get_input()
int get_input | ( | int * | max_data, |
int32_t | inBytes, | ||
uint8_t * | encryptData | ||
) |
◆ get_ref()
◆ help()
◆ initialize()
◆ open_files() [1/2]
◆ open_files() [2/2]
void open_files | ( | int | argc, |
char * | argv[] | ||
) |
◆ set_flags() [1/2]
void set_flags | ( | int | argc, |
argv | , | ||
int* | pixref_flag, | ||
int * | blkref_flag | ||
) |
◆ set_flags() [2/2]
void set_flags | ( | int | argc, |
char * | argv[], | ||
int * | pixref_flag, | ||
int * | blkref_flag | ||
) |
◆ un_DEF()
◆ un_ext2()
◆ un_FS()
◆ un_K()
◆ un_z()
◆ unmap_EP()
◆ unmap_MS()
◆ unmap_NN()
◆ unmap_TWOD()
◆ usds()
int usds | ( | int | argc, |
argv | , | ||
int32_t | inBytes, | ||
uint8_t * | encryptData, | ||
uint16_t * | decryptData | ||
) |
Variable Documentation
◆ Bend
◆ Binptr
◆ BLKCNT
◆ BlkPac
◆ BlkRef
◆ Bptr
◆ Buffer_in
char Buffer_in[INBLK_size *2+2] |
◆ Buffer_in2
◆ Buffer_out
◆ BYPASS_flag
◆ BYPASS_mode
◆ BYTE_pixel
◆ copyright
◆ D_id
◆ ENT_CODING
◆ EP_mode
◆ Ep_ptr
◆ EXT2_bit
◆ EXT2_flag
◆ FS_id
◆ IDbits
◆ IN_array
unsigned IN_array[INBLK_size+1] |
◆ In_file
◆ IN_INDEX
◆ In_ptr
◆ J
◆ K_bits
◆ Kfactor
◆ LAST_word
◆ Low_id
◆ M
int M[] |
◆ MASK_IN
◆ MASK_SIGN
◆ MASKN_neg
◆ MASKNOT
◆ MS
◆ MS_mode
◆ Ms_ptr
◆ N
◆ NEG_data
◆ NEXT_BIT
◆ NN
◆ NN_mode
◆ OUT
◆ Out_ptr
◆ PACKET_flag
◆ PixRef
◆ REF
◆ REF2REF
◆ REFERENCE
◆ RefPac
◆ REFREF_flag
◆ SCANLINE
◆ SIG
◆ SIGN_EXT_OUTPUT
◆ TRUEREF
◆ TWOD_line_mode
◆ TWOD_mode
◆ Twod_ptr
◆ XMAX
◆ XMAX_MS
◆ XMAXneg
◆ XP
◆ XP_IN
unsigned XP_IN[INBLK_size+1] |