blob: a2a4df64810ba90c529f3c72f086dd6b9725b31b (
plain) (
blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
use nihav_core::codecs::{RegisteredDecoders, RegisteredPacketisers};
use nihav_core::demuxers::{RegisteredDemuxers, RegisteredRawDemuxers};
use nihav_commonfmt::generic_register_all_decoders;
use nihav_commonfmt::generic_register_all_demuxers;
use nihav_duck::duck_register_all_decoders;
use nihav_flash::flash_register_all_decoders;
use nihav_flash::flash_register_all_demuxers;
use nihav_game::game_register_all_decoders;
use nihav_game::game_register_all_demuxers;
use nihav_indeo::indeo_register_all_decoders;
use nihav_llaudio::llaudio_register_all_decoders;
use nihav_llaudio::llaudio_register_all_demuxers;
use nihav_mpeg::mpeg_register_all_decoders;
use nihav_mpeg::mpeg_register_all_packetisers;
use nihav_ms::ms_register_all_decoders;
use nihav_qt::qt_register_all_decoders;
use nihav_rad::rad_register_all_decoders;
use nihav_rad::rad_register_all_demuxers;
use nihav_realmedia::realmedia_register_all_decoders;
use nihav_realmedia::realmedia_register_all_demuxers;
use nihav_vivo::vivo_register_all_decoders;
use nihav_vivo::vivo_register_all_demuxers;
fn register_all_decoders(rd: &mut RegisteredDecoders) {
generic_register_all_decoders(rd);
duck_register_all_decoders(rd);
flash_register_all_decoders(rd);
game_register_all_decoders(rd);
indeo_register_all_decoders(rd);
llaudio_register_all_decoders(rd);
mpeg_register_all_decoders(rd);
ms_register_all_decoders(rd);
qt_register_all_decoders(rd);
rad_register_all_decoders(rd);
realmedia_register_all_decoders(rd);
vivo_register_all_decoders(rd);
}
fn register_all_packetisers(rp: &mut RegisteredPacketisers) {
mpeg_register_all_packetisers(rp);
}
fn register_all_demuxers(rd: &mut RegisteredDemuxers) {
generic_register_all_demuxers(rd);
flash_register_all_demuxers(rd);
game_register_all_demuxers(rd);
llaudio_register_all_demuxers(rd);
rad_register_all_demuxers(rd);
realmedia_register_all_demuxers(rd);
vivo_register_all_demuxers(rd);
}
fn register_all_raw_demuxers(_rd: &mut RegisteredRawDemuxers) {
//llaudio_register_all_raw_demuxers(rd);
}
pub struct FullRegister {
pub dmx_reg: RegisteredDemuxers,
pub rdmx_reg: RegisteredRawDemuxers,
pub pkt_reg: RegisteredPacketisers,
pub dec_reg: RegisteredDecoders,
}
impl FullRegister {
pub fn new() -> Self {
let mut dmx_reg = RegisteredDemuxers::new();
register_all_demuxers(&mut dmx_reg);
let mut rdmx_reg = RegisteredRawDemuxers::new();
register_all_raw_demuxers(&mut rdmx_reg);
let mut dec_reg = RegisteredDecoders::new();
register_all_decoders(&mut dec_reg);
let mut pkt_reg = RegisteredPacketisers::new();
register_all_packetisers(&mut pkt_reg);
Self { dmx_reg, rdmx_reg, pkt_reg, dec_reg }
}
}
|