source: nanovis/trunk/BMPWriter.h @ 4822

Last change on this file since 4822 was 3605, checked in by ldelgass, 7 years ago

Add writer thread to nanovis (set USE_THREADS in Makefile), more refactoring.

  • Property svn:eol-style set to native
File size: 734 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2004-2012  HUBzero Foundation, LLC
4 *
5 * Author: George A. Howlett <gah@purdue.edu>
6 */
7
8#ifndef NV_BMPWRITER_H
9#define NV_BMPWRITER_H
10
11#ifdef USE_THREADS
12#include "ResponseQueue.h"
13#endif
14
15#define SIZEOF_BMP_HEADER   54
16
17namespace nv {
18extern
19bool writeBMPFile(int frameNumber, const char *directoryName,
20                  unsigned char *imgData, int width, int height);
21
22#ifdef USE_THREADS
23extern
24void queueBMP(ResponseQueue *queue, const char *cmdName, 
25              unsigned char *data, int width, int height);
26#else
27extern
28void writeBMP(int fd, const char *cmdName, 
29              unsigned char *data, int width, int height);
30#endif
31}
32#endif
Note: See TracBrowser for help on using the repository browser.