source: nanovis/branches/1.2/PPMWriter.h @ 6716

Last change on this file since 6716 was 4937, checked in by ldelgass, 9 years ago

merge threading

  • Property svn:eol-style set to native
File size: 711 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_PPMWRITER_H
9#define NV_PPMWRITER_H
10
11#ifdef USE_THREADS
12#include "ResponseQueue.h"
13#endif
14
15namespace nv {
16extern
17bool writePPMFile(const char *path,
18                  const unsigned char *imgData,
19                  int width, int height);
20#ifdef USE_THREADS
21extern
22void queuePPM(ResponseQueue *queue, const char *cmdName,
23              const unsigned char *data, int width, int height);
24#else
25extern
26void writePPM(int fd, const char *cmdName,
27              const unsigned char *data, int width, int height);
28#endif
29}
30#endif
Note: See TracBrowser for help on using the repository browser.