source: branches/vtkvis_threaded/PPMWriter.h @ 2495

Last change on this file since 2495 was 2495, checked in by ldelgass, 13 years ago

A few mostly style changes to make more consistent with style in vtkvis. Also
fix queueTGA -- no need to copy one scanline at a time and bytes per pixel can
be 3 or 4).

  • Property svn:eol-style set to native
File size: 604 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2011, Purdue Research Foundation
4 *
5 * Author: ?
6 */
7
8#ifndef __RAPPTURE_VTKVIS_PPMWRITER_H__
9#define __RAPPTURE_VTKVIS_PPMWRITER_H__
10
11#ifdef USE_THREADS
12#include "ResponseQueue.h"
13#endif
14
15namespace Rappture {
16namespace VtkVis {
17#ifdef USE_THREADS
18extern
19void queuePPM(ResponseQueue *queue, const char *cmdName,
20              const unsigned char *data, int width, int height);
21#else
22extern
23void writePPM(int fd, const char *cmdName,
24              const unsigned char *data, int width, int height);
25#endif
26}
27}
28#endif
Note: See TracBrowser for help on using the repository browser.