2
* This file is part of mpv.
4
* mpv is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* mpv is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License along
15
* with mpv. If not, see <http://www.gnu.org/licenses/>.
21
struct mp_decoder_entry {
22
const char *family; // decoder module (e.g. ad_lavc => "lavc")
23
const char *codec; // name of the codec (e.g. "mp3")
24
const char *decoder; // decoder name (e.g. "mp3float")
25
const char *desc; // human readable description
28
struct mp_decoder_list {
29
struct mp_decoder_entry *entries;
33
void mp_add_decoder(struct mp_decoder_list *list, const char *family,
34
const char *codec, const char *decoder, const char *desc);
36
struct mp_decoder_list *mp_select_decoders(struct mp_decoder_list *all,
38
const char *selection);
40
void mp_print_decoders(int msgt, int msgl, const char *header,
41
struct mp_decoder_list *list);