Browse Source

Merge commit '930c9d4373e0f3cb7c64fcfc129127a309f6d066'

* commit '930c9d4373e0f3cb7c64fcfc129127a309f6d066':
  avutil: Duplicate ff_log2_tab instead of sharing it across libs

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
d197bd4f5e
7 changed files with 37 additions and 11 deletions
  1. +1
    -0
      libavcodec/Makefile
  2. +1
    -0
      libavcodec/log2_tab.c
  3. +1
    -0
      libavformat/Makefile
  4. +1
    -0
      libavformat/log2_tab.c
  5. +1
    -0
      libavutil/Makefile
  6. +32
    -0
      libavutil/log2_tab.c
  7. +0
    -11
      libavutil/mathematics.c

+ 1
- 0
libavcodec/Makefile View File

@@ -24,6 +24,7 @@ OBJS = allcodecs.o \
fmtconvert.o \ fmtconvert.o \
imgconvert.o \ imgconvert.o \
jrevdct.o \ jrevdct.o \
log2_tab.o \
mathtables.o \ mathtables.o \
options.o \ options.o \
parser.o \ parser.o \


+ 1
- 0
libavcodec/log2_tab.c View File

@@ -0,0 +1 @@
#include "libavutil/log2_tab.c"

+ 1
- 0
libavformat/Makefile View File

@@ -13,6 +13,7 @@ OBJS = allformats.o \
cutils.o \ cutils.o \
id3v1.o \ id3v1.o \
id3v2.o \ id3v2.o \
log2_tab.o \
metadata.o \ metadata.o \
mux.o \ mux.o \
options.o \ options.o \


+ 1
- 0
libavformat/log2_tab.c View File

@@ -0,0 +1 @@
#include "libavutil/log2_tab.c"

+ 1
- 0
libavutil/Makefile View File

@@ -75,6 +75,7 @@ OBJS = adler32.o \
lfg.o \ lfg.o \
lls.o \ lls.o \
log.o \ log.o \
log2_tab.o \
lzo.o \ lzo.o \
mathematics.o \ mathematics.o \
md5.o \ md5.o \


+ 32
- 0
libavutil/log2_tab.c View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2003-2012 Michael Niedermayer <michaelni@gmx.at>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <stdint.h>

const uint8_t ff_log2_tab[256]={
0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
};

+ 0
- 11
libavutil/mathematics.c View File

@@ -29,17 +29,6 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "avassert.h" #include "avassert.h"


const uint8_t ff_log2_tab[256]={
0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
};

const uint8_t av_reverse[256]={ const uint8_t av_reverse[256]={
0x00,0x80,0x40,0xC0,0x20,0xA0,0x60,0xE0,0x10,0x90,0x50,0xD0,0x30,0xB0,0x70,0xF0, 0x00,0x80,0x40,0xC0,0x20,0xA0,0x60,0xE0,0x10,0x90,0x50,0xD0,0x30,0xB0,0x70,0xF0,
0x08,0x88,0x48,0xC8,0x28,0xA8,0x68,0xE8,0x18,0x98,0x58,0xD8,0x38,0xB8,0x78,0xF8, 0x08,0x88,0x48,0xC8,0x28,0xA8,0x68,0xE8,0x18,0x98,0x58,0xD8,0x38,0xB8,0x78,0xF8,


Loading…
Cancel
Save