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

« back to all changes in this revision

Viewing changes to libavformat/isom.h

  • 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:
4
4
 * copyright (c) 2002 Francois Revol <revol@free.fr>
5
5
 * copyright (c) 2006 Baptiste Coudurier <baptiste.coudurier@free.fr>
6
6
 *
7
 
 * This file is part of FFmpeg.
 
7
 * This file is part of Libav.
8
8
 *
9
 
 * FFmpeg is free software; you can redistribute it and/or
 
9
 * Libav is free software; you can redistribute it and/or
10
10
 * modify it under the terms of the GNU Lesser General Public
11
11
 * License as published by the Free Software Foundation; either
12
12
 * version 2.1 of the License, or (at your option) any later version.
13
13
 *
14
 
 * FFmpeg is distributed in the hope that it will be useful,
 
14
 * Libav is distributed in the hope that it will be useful,
15
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
17
 * Lesser General Public License for more details.
18
18
 *
19
19
 * You should have received a copy of the GNU Lesser General Public
20
 
 * License along with FFmpeg; if not, write to the Free Software
 
20
 * License along with Libav; if not, write to the Free Software
21
21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
22
 */
23
23
 
25
25
#define AVFORMAT_ISOM_H
26
26
 
27
27
#include "avio.h"
28
 
#include "riff.h"
 
28
#include "internal.h"
29
29
#include "dv.h"
30
30
 
31
31
/* isom.c */
88
88
} MOVTrackExt;
89
89
 
90
90
typedef struct MOVStreamContext {
91
 
    ByteIOContext *pb;
 
91
    AVIOContext *pb;
92
92
    int ffindex;          ///< AVStream index
93
93
    int next_chunk;
94
94
    unsigned int chunk_count;
123
123
    int width;            ///< tkhd width
124
124
    int height;           ///< tkhd height
125
125
    int dts_shift;        ///< dts shift when ctts is negative
 
126
    uint32_t palette[256];
 
127
    int has_palette;
126
128
} MOVStreamContext;
127
129
 
128
130
typedef struct MOVContext {
141
143
    int chapter_track;
142
144
} MOVContext;
143
145
 
144
 
int ff_mp4_read_descr_len(ByteIOContext *pb);
145
 
int ff_mov_read_esds(AVFormatContext *fc, ByteIOContext *pb, MOVAtom atom);
 
146
int ff_mp4_read_descr_len(AVIOContext *pb);
 
147
int ff_mp4_read_descr(AVFormatContext *fc, AVIOContext *pb, int *tag);
 
148
int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext *pb);
 
149
 
 
150
#define MP4IODescrTag                   0x02
 
151
#define MP4ESDescrTag                   0x03
 
152
#define MP4DecConfigDescrTag            0x04
 
153
#define MP4DecSpecificDescrTag          0x05
 
154
 
 
155
int ff_mov_read_esds(AVFormatContext *fc, AVIOContext *pb, MOVAtom atom);
146
156
enum CodecID ff_mov_get_lpcm_codec_id(int bps, int flags);
147
157
 
 
158
int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries);
 
159
 
148
160
#endif /* AVFORMAT_ISOM_H */