summaryrefslogtreecommitdiffstats
path: root/tkmpeg/tkmpeg.h
blob: c84b400af1c1568f15362ae91fd855ba039b14c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (C) 1999-2015
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#ifndef __tkmpeg_h__
#define __tkmpeg_h__

extern "C" {
#include "ezmpeg.h"
}

class TkMPEG {
 private:
  Tcl_Interp* interp;
  ezMPEGStream ms;
  int width;
  int height;
  int fps;
  int gop;
  int quality;

 public:
  TkMPEG(Tcl_Interp*);
  ~TkMPEG();

  int create(int, const char*[]);
  int add(int, const char*[]);
  int close(int, const char*[]);
};

extern TkMPEG* tkmpeg;

#endif