Changeset 676 for trunk/user/kleenex


Ignore:
Timestamp:
Nov 20, 2020, 12:11:35 AM (4 years ago)
Author:
alain
Message:

Introduce chat application to test the named pipes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/kleenex/kleenex.c

    r660 r676  
    1919#include <almosmkh.h>
    2020
    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"
    2323#define FBF_TYPE        420         
    2424#define NPIXELS         1024
     
    3131    int                fd_out;
    3232
    33     unsigned int       fbf_width;
    34     unsigned int       fbf_height;
    35     unsigned int       fbf_type;
     33    int                fbf_width;
     34    int                fbf_height;
     35    int                fbf_type;
    3636
    3737    int                line;
     
    4242    unsigned long long start_cycle;
    4343
    44     unsigned short     buf_in[NPIXELS * NLINES * 2];
    45 //    unsigned char      buf_in[NPIXELS * NLINES];
     44    unsigned char      buf_in[NPIXELS * NLINES];
    4645    unsigned char      buf_out[NPIXELS * NLINES];
    4746
    4847    struct stat        st;
    4948
    50     int                size_in  = NPIXELS * NLINES * 2;
    51 //    int                size_in  = NPIXELS * NLINES;
     49    int                size_in  = NPIXELS * NLINES;
    5250    int                size_out = NPIXELS * NLINES;
    5351
     
    111109        {
    112110            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];
    115112        }
    116113    }
Note: See TracChangeset for help on using the changeset viewer.