~ubuntu-branches/ubuntu/oneiric/libav/oneiric

« back to all changes in this revision

Viewing changes to libavcodec/xsubenc.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2011-04-30 14:27:42 UTC
  • mfrom: (1.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110430142742-quvblxk1tj6adlh5
Tags: 4:0.7~b1-1ubuntu1
* Merge from debian. Remaining changes:
  - don't build against libfaad, libdirac, librtmp and libopenjpeg
    (all in universe)
  - explicitly --enable-pic on powerpc, cf. LP #654666
  - different arm configure bits that should probably better be
    merged into debian
* Cherry-picked from git: 
  - install doc/APIChanges and refer to them in NEWS.Debian (Closes: #623682)
  - don't try to install non-existing documentation, fixes FTBFS on powerpc

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * Copyright (c) 2005 DivX, Inc.
4
4
 * Copyright (c) 2009 Bjorn Axelsson
5
5
 *
6
 
 * This file is part of FFmpeg.
 
6
 * This file is part of Libav.
7
7
 *
8
 
 * FFmpeg is free software; you can redistribute it and/or
 
8
 * Libav is free software; you can redistribute it and/or
9
9
 * modify it under the terms of the GNU Lesser General Public
10
10
 * License as published by the Free Software Foundation; either
11
11
 * version 2.1 of the License, or (at your option) any later version.
12
12
 *
13
 
 * FFmpeg is distributed in the hope that it will be useful,
 
13
 * Libav is distributed in the hope that it will be useful,
14
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
16
 * Lesser General Public License for more details.
17
17
 *
18
18
 * You should have received a copy of the GNU Lesser General Public
19
 
 * License along with FFmpeg; if not, write to the Free Software
 
19
 * License along with Libav; if not, write to the Free Software
20
20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
21
 */
22
22
 
35
35
#define PADDING_COLOR 0
36
36
 
37
37
/**
38
 
 * Encodes a single color run. At most 16 bits will be used.
 
38
 * Encode a single color run. At most 16 bits will be used.
39
39
 * \param len   length of the run, values > 255 mean "until end of line", may not be < 0.
40
40
 * \param color color to encode, only the lowest two bits are used and all others must be 0.
41
41
 */
49
49
}
50
50
 
51
51
/**
52
 
 * Encodes a 4-color bitmap with XSUB rle.
 
52
 * Encode a 4-color bitmap with XSUB rle.
53
53
 *
54
54
 * The encoded bitmap may be wider than the source bitmap due to padding.
55
55
 */
210
210
    return 0;
211
211
}
212
212
 
213
 
AVCodec xsub_encoder = {
 
213
AVCodec ff_xsub_encoder = {
214
214
    "xsub",
215
215
    AVMEDIA_TYPE_SUBTITLE,
216
216
    CODEC_ID_XSUB,