summaryrefslogtreecommitdiff
path: root/inc/profiles/container.h
blob: 26cec8ed7827f321240eb92e4a06b86dea77cd19 (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
42
43
44
45
46
47
/* 
 * File:   container.h
 * Author: savop
 *
 * Created on 8. Januar 2010, 10:45
 */

#ifndef _CONTAINER_H
#define	_CONTAINER_H

#include "profile_data.h"

extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
}

class cContainerDetector {
public:
    static VideoContainerProfile detect(AVFormatContext* Ctx);
private:
    /**
     * MPEG1
     */
    static VideoContainerProfile detectMPEG1Container(AVFormatContext* Ctx);
    /**
     * MPEG2-PS
     * MPEG2-TS
     * MPEG2-TS-DLNA
     * MPEG2-TS-DLNA-T
     */
    static VideoContainerProfile detectMPEG2Container(AVFormatContext* Ctx);
    /**
     * 3GPP
     * MP4
     */
    static VideoContainerProfile detectMP4Container(AVFormatContext* Ctx);
#ifdef WITH_WINDOWS_MEDIA
    /**
     * ASF
     */
    static VideoContainerProfile detectWMFContainer(AVFormatContext* Ctx);
#endif
};

#endif	/* _CONTAINER_H */