at terminal
# rm -R osdfiles
# cd app
# rm osd_thread.c osd_thread.h picture.c picture.h thread.c thread.h video_osd.c video_osd.h
** video_thread.c
1. removed dAttrs, hDisplay, hBufTabDisplay and dBuf variable declarations.
2. added FILE *outfile variable declaration
3. added #define OUTFILE "/tmp/video.raw"
3. removed Buftab_create for hBufTabDisplay and display_create for hDisplay
4. changed #define DISPLAYDEVICEINITIALIZED to OUTPUTFILEOPENED
5. removed display_get, memcpy and display_put from while loop
6. replaced display with fwrite of buffer size followed by buffer inside while loop
7. removed Display_delete and replaced with fclose on outfile
8. changed while loop to a for loop that gathers only 10 frames -- this version of linux doesn't seem to have a separate /tmp directory space in RAM, so if we use too much, the display algo won't run, uses up all of linux's memory.
** main.c
8. removed #include <pthread.h>, "thread.h", "osd_thread.h"
9. removed osd_env global variable declaration
10. removed osd_env.quit from signal handler
11. removed OSD #defines from initMask
12. removed pthread_t variable declarations for both OSD and video
13. removed osdThreadReturn
14. removed launch_pthread for video thread and replaced with direct function call
15. removed launch_pthread for osd thread
16. removed pthread_join calls for both video and osd threads
** makefile_profile.mak
17. removed ti_rgb24_640x80.bmp from install rule
