1 /*
2 * copyright (c) 2009 Michael Niedermayer
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
25
28 {
29 /* TODO: use binary search to look up the two conversion tables
30 if the tables are getting big enough that it would matter speed wise */
34 const char *key;
35
36 if (d_conv == s_conv || !pm)
37 return;
38
41 if (s_conv)
42 for (sc=s_conv; sc->
native; sc++)
45 break;
46 }
47 if (d_conv)
48 for (dc=d_conv; dc->
native; dc++)
51 break;
52 }
54 }
56 *pm = dst;
57 }
58
61 {
62 int i;
70 }