source: branches/vtkvis_threaded/TGAWriter.h @ 2549

Last change on this file since 2549 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: 884 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2011, Purdue Research Foundation
4 *
5 * Author: Leif Delgass <ldelgass@purdue.edu>
6 */
7
8#ifndef __RAPPTURE_VTKVIS_TGAWRITER_H__
9#define __RAPPTURE_VTKVIS_TGAWRITER_H__
10
11#ifdef USE_THREADS
12#include "ResponseQueue.h"
13#endif
14
15namespace Rappture {
16namespace VtkVis {
17#ifdef USE_THREADS
18extern
19void queueTGA(ResponseQueue *queue, const char *cmdName,
20              const unsigned char *data, int width, int height,
21              int bytesPerPixel);
22#else
23extern
24void writeTGA(int fd, const char *cmdName,
25              const unsigned char *data, int width, int height,
26              int bytesPerPixel);
27#endif
28extern
29void writeTGAFile(const char *filename,
30                  const unsigned char *data, int width, int height,
31                  int bytesPerPixel, bool srcIsRGB = false);
32}
33}
34
35#endif
Note: See TracBrowser for help on using the repository browser.