Changeset 676 for trunk/user/display
- Timestamp:
- Nov 20, 2020, 12:11:35 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/display/display.c
r657 r676 4 4 // author : Alain Greiner 5 5 /////////////////////////////////////////////////////////////////////////////////////// 6 // This file describes the single thread "display" application .7 // It uses the external chained buffer DMA to display a stream8 // of images on the frame buffer.6 // This file describes the single thread "display" application that simply 7 // open a file containing a raw image stored on disk, ans distplay it on the 8 // Frame Buffer without using the ALMOS-MKH windows manager. 9 9 /////////////////////////////////////////////////////////////////////////////////////// 10 10 … … 15 15 #include <almosmkh.h> 16 16 17 #define PATH_ MAX_LENGHT 12817 #define PATH_NAME "misc/images_128.ram" 18 18 19 19 #define FBF_TYPE 420 … … 80 80 } 81 81 82 // check pixel encoding type 82 83 if( fbf_type != FBF_TYPE ) 83 84 { … … 87 88 } 88 89 89 // get pathname for input file90 while( 1 )91 {92 printf("\n[display] path = ");93 94 error = get_string( pathname , PATH_MAX_LENGHT );95 96 if ( error ) printf("\n[display error] cannot get path for input file\n" );97 else break;98 }99 100 90 // open file 101 int fd = open( pathname , O_RDONLY , 0 ); 102 91 int fd = open( PATH_NAME , O_RDONLY , 0 ); 103 92 if( fd < 0 ) 104 93 {
Note: See TracChangeset
for help on using the changeset viewer.