Commit Graph

7 Commits

Author SHA1 Message Date
meh
66284eb045 codec: add magic traits to get codecs by name and id 2015-09-25 21:33:08 +02:00
a84b30b3f0 codec/audio: fix ChannelLayoutIter.best()
Somehow the condition `cur.channels() > cur.channels()` slipped in which will
always be `false`. The correct condition is `cur.channels() > acc.channels()`.
2015-09-12 09:24:26 +02:00
c8a38a926f codec/audio: implement ChannelLayoutIter.best()
Is some cases the decoder channel layout is not supported by the selected
encoder. A selection from the channel layouts supported by the encoder is
needed. For this the method `best()` is introduced.
2015-09-11 18:26:40 +02:00
meh
fbf5cd94eb codec: make lifetimes saner 2015-09-04 16:28:56 +02:00
meh
8ed092c0c3 codec: use Option<_> in the getter API 2015-08-29 16:15:57 +02:00
meh
81badeb10d codec/video: fix style 2015-08-28 21:28:28 +02:00
59b1eead16 codec: add several getters 2015-08-28 20:36:55 +02:00