summaryrefslogtreecommitdiff
path: root/misc/avdetector.h
blob: b043c59cb743cf98910f42d2b6e11461a2e60bdf (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
34
35
36
37
38
39
40
41
/* 
 * File:   avdetector.h
 * Author: savop
 *
 * Created on 26. Oktober 2009, 13:02
 */

#ifndef _AVDETECTOR_H
#define	_AVDETECTOR_H

#include "../database/object.h"

/**
 * The audio/video detector
 *
 * This is the audio video detector, which analizes the audio and video stream
 * of a file to gather more information about the resource. This is also
 * required for determination of a suitable DLNA profile.
 */
class cAudioVideoDetector {
public:
    cAudioVideoDetector(){};
    virtual ~cAudioVideoDetector(){};
    /**
     * Detect video properties
     *
     * This detects video properties of a video stream and stores them in the
     * Resource object.
     *
     * @param Resource the resource, where to save the data
     * @param Filename the file, which shall be read
     * @return returns
     * - \bc 0, if the detection was successful
     * - \bc <0, otherwise
     */
    int detectVideoProperties(cUPnPResource* Resource, const char* Filename);
private:
};

#endif	/* _AVDETECTOR_H */