summaryrefslogtreecommitdiff
path: root/contrib/vdr2jpeg/ffm.h
blob: 21fab7734df103af374559b21920fa90e1bfa572 (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
/*
 * Simple program to grab images from VDR Recording
 *
 * Copyright (c) 2005-2008 Andreas Brachold
 *
 * This code is distributed under the terms and conditions of the
 * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
 *
 */

extern void ffm_initalize(void);
extern void ffm_deinitalize(void);

extern bool decode(const char* szMPVfile,
                   const char* szTmpMask, int width, int height); 


// Helperclass for proper init/deinit ffmpeg
struct ffminit
{
    ffminit() { 
      ffm_initalize();    
    }

    virtual ~ffminit() { 
      ffm_deinitalize();   
    }
};