Changeset 676 for trunk/user/kleenex
- Timestamp:
- Nov 20, 2020, 12:11:35 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/kleenex/kleenex.c
r660 r676 19 19 #include <almosmkh.h> 20 20 21 #define IN_FILENAME "misc/philips_1024 _2.raw"22 #define OUT_FILENAME "misc/philips_1024. raw"21 #define IN_FILENAME "misc/philips_1024.raw" 22 #define OUT_FILENAME "misc/philips_1024.new" 23 23 #define FBF_TYPE 420 24 24 #define NPIXELS 1024 … … 31 31 int fd_out; 32 32 33 unsigned intfbf_width;34 unsigned intfbf_height;35 unsigned intfbf_type;33 int fbf_width; 34 int fbf_height; 35 int fbf_type; 36 36 37 37 int line; … … 42 42 unsigned long long start_cycle; 43 43 44 unsigned short buf_in[NPIXELS * NLINES * 2]; 45 // unsigned char buf_in[NPIXELS * NLINES]; 44 unsigned char buf_in[NPIXELS * NLINES]; 46 45 unsigned char buf_out[NPIXELS * NLINES]; 47 46 48 47 struct stat st; 49 48 50 int size_in = NPIXELS * NLINES * 2; 51 // int size_in = NPIXELS * NLINES; 49 int size_in = NPIXELS * NLINES; 52 50 int size_out = NPIXELS * NLINES; 53 51 … … 111 109 { 112 110 unsigned int index = (line*NPIXELS) + pixel; 113 buf_out[index] = (unsigned char)(buf_in[index]>>8); 114 // buf_out[index] = buf_in[index]; 111 buf_out[index] = buf_in[index]; 115 112 } 116 113 }
Note: See TracChangeset
for help on using the changeset viewer.