annotate msrledec.h @ 8479:e818b3c06712 libavcodec

Part 2 of Kenan Gillet's QCELP silence handling patch.
author reynaldo
date Fri, 26 Dec 2008 16:49:06 +0000
parents f874e1d5cf07
children c1ed557cd3b8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7885
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
1 /*
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
2 * Micrsoft RLE Decoder
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
3 * Copyright (C) 2008 Konstantin Shishkov
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
4 *
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
5 * This file is part of FFmpeg.
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
6 *
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
11 *
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
15 * Lesser General Public License for more details.
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
16 *
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
20 */
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
21
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
22 #ifndef AVCODEC_MSRLEDEC_H
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
23 #define AVCODEC_MSRLEDEC_H
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
24
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
25 #include "avcodec.h"
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
26
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
27 /**
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
28 * decode stream in MS RLE format into frame
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
29 *
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
30 * @param avctx codec context
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
31 * @param pic destination frame
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
32 * @param depth bit depth
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
33 * @param data input stream
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
34 * @param data_size input size
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
35 */
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
36 int ff_msrle_decode(AVCodecContext *avctx, AVPicture *pic, int depth,
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
37 const uint8_t* data, int data_size);
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
38
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
39 #endif /* AVCODEC_MSRLEDEC_H */
f874e1d5cf07 Factorize out code used for MS RLE format decoding in different decoders.
kostya
parents:
diff changeset
40