History

Make ff_cmap_read_palette static to libavcodec/iff.c. Delete iff.h.

The iff.h header only declared one function that is now static, the libavformat/iff.c source file wasn't using it before. Drop the file entirely.

Diego Elio Pettenò committed 15 years ago

Commit 4b21c381 parent dff80043 files · +1 −33Browse files

Unified · Split

3 files
  1. libavcodec/iff.c +1 −2
  2. libavcodec/iff.h +0 −30
  3. libavformat/iff.c +0 −1
libavcodec/iff.c+1−2
@@ -29,7 +29,6 @@ · 28 unmodified lines
2929 #include "bytestream.h"
3030 #include "avcodec.h"
3131 #include "get_bits.h"
32−#include "iff.h"
3332
3433 typedef struct {
3534 AVFrame frame;
@@ -120,7 +119,7 @@ static av_always_inline uint32_t gray2rgb(const uint32_t x) { · 84 unmodified lines
120119 /**
121120 * Convert CMAP buffer (stored in extradata) to lavc palette format
122121 */
123−int ff_cmap_read_palette(AVCodecContext *avctx, uint32_t *pal)
122+static int ff_cmap_read_palette(AVCodecContext *avctx, uint32_t *pal)
124123 {
125124 int count, i;
126125
libavcodec/iff.h+0−30
@@ -1,30 +0,0 @@
1−/*
2− * IFF PBM/ILBM bitmap decoder
3− * Copyright (c) 2010 Peter Ross <pross@xvid.org>
4− *
5− * This file is part of FFmpeg.
6− *
7− * FFmpeg is free software; you can redistribute it and/or
8− * modify it under the terms of the GNU Lesser General Public
9− * License as published by the Free Software Foundation; either
10− * version 2.1 of the License, or (at your option) any later version.
11− *
12− * FFmpeg is distributed in the hope that it will be useful,
13− * but WITHOUT ANY WARRANTY; without even the implied warranty of
14− * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15− * Lesser General Public License for more details.
16− *
17− * You should have received a copy of the GNU Lesser General Public
18− * License along with FFmpeg; if not, write to the Free Software
19− * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20− */
21−
22−#ifndef AVCODEC_IFF_H
23−#define AVCODEC_IFF_H
24−
25−#include <stdint.h>
26−#include "avcodec.h"
27−
28−int ff_cmap_read_palette(AVCodecContext *avctx, uint32_t *pal);
29−
30−#endif /* AVCODEC_IFF_H */
libavformat/iff.c+0−1
@@ -30,7 +30,6 @@ · 29 unmodified lines
3030 */
3131
3232 #include "libavutil/intreadwrite.h"
33−#include "libavcodec/iff.h"
3433 #include "avformat.h"
3534
3635 #define ID_8SVX MKTAG('8','S','V','X')

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t