~ubuntu-branches/ubuntu/vivid/mpv/vivid

« back to all changes in this revision

Viewing changes to mpvcore/codecs.h

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2013-12-29 20:04:26 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20131229200426-w0qsj8clnui1pxaw
Tags: 0.3.0-1
* New upstream release
  - Fix --vf=expand example in manpage (Closes: #732271)
* Add 03_waf.patch to provide uncompressed waf scripts and modules
* Switch to waf build script
* Drop libmng-dev Build-Depends (not used anymore)
* Bump Standards-Version to 3.9.5 (no changes needed)
* Enable support for dvdnav
* Install more docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * This file is part of mpv.
3
 
 *
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.
8
 
 *
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.
13
 
 *
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/>.
16
 
 */
17
 
 
18
 
#ifndef MP_CODECS_H
19
 
#define MP_CODECS_H
20
 
 
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
26
 
};
27
 
 
28
 
struct mp_decoder_list {
29
 
    struct mp_decoder_entry *entries;
30
 
    int num_entries;
31
 
};
32
 
 
33
 
void mp_add_decoder(struct mp_decoder_list *list, const char *family,
34
 
                    const char *codec, const char *decoder, const char *desc);
35
 
 
36
 
struct mp_decoder_list *mp_select_decoders(struct mp_decoder_list *all,
37
 
                                           const char *codec,
38
 
                                           const char *selection);
39
 
 
40
 
void mp_print_decoders(int msgt, int msgl, const char *header,
41
 
                       struct mp_decoder_list *list);
42
 
 
43
 
#endif