Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9fd6ea93
Commit
9fd6ea93
authored
Feb 03, 2016
by
Timothy Gu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dirac_dwt: Make x86 files/functions names consistent
parent
17ab8f7e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
40 deletions
+10
-40
dirac_dwt.c
libavcodec/dirac_dwt.c
+2
-3
dirac_dwt.h
libavcodec/dirac_dwt.h
+1
-0
Makefile
libavcodec/x86/Makefile
+3
-3
dirac_dwt.asm
libavcodec/x86/dirac_dwt.asm
+1
-1
dirac_dwt.h
libavcodec/x86/dirac_dwt.h
+0
-30
dirac_dwt_init.c
libavcodec/x86/dirac_dwt_init.c
+3
-3
No files found.
libavcodec/dirac_dwt.c
View file @
9fd6ea93
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include "libavutil/avassert.h"
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/common.h"
#include "dirac_dwt.h"
#include "dirac_dwt.h"
#include "libavcodec/x86/dirac_dwt.h"
#define TEMPLATE_8bit
#define TEMPLATE_8bit
#include "dirac_dwt_template.c"
#include "dirac_dwt_template.c"
...
@@ -54,8 +53,8 @@ int ff_spatial_idwt_init2(DWTContext *d, uint8_t *buffer, int width, int height,
...
@@ -54,8 +53,8 @@ int ff_spatial_idwt_init2(DWTContext *d, uint8_t *buffer, int width, int height,
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
}
}
if
(
HAVE_MMX
&&
bit_depth
==
8
)
if
(
ARCH_X86
&&
bit_depth
==
8
)
ff_spatial_idwt_init_
mmx
(
d
,
type
);
ff_spatial_idwt_init_
x86
(
d
,
type
);
return
0
;
return
0
;
}
}
...
...
libavcodec/dirac_dwt.h
View file @
9fd6ea93
...
@@ -79,6 +79,7 @@ enum dwt_type {
...
@@ -79,6 +79,7 @@ enum dwt_type {
int
ff_spatial_idwt_init2
(
DWTContext
*
d
,
uint8_t
*
buffer
,
int
width
,
int
height
,
int
ff_spatial_idwt_init2
(
DWTContext
*
d
,
uint8_t
*
buffer
,
int
width
,
int
height
,
int
stride
,
enum
dwt_type
type
,
int
decomposition_count
,
int
stride
,
enum
dwt_type
type
,
int
decomposition_count
,
uint8_t
*
temp
,
int
bit_depth
);
uint8_t
*
temp
,
int
bit_depth
);
void
ff_spatial_idwt_init_x86
(
DWTContext
*
d
,
enum
dwt_type
type
);
void
ff_spatial_idwt_slice2
(
DWTContext
*
d
,
int
y
);
void
ff_spatial_idwt_slice2
(
DWTContext
*
d
,
int
y
);
...
...
libavcodec/x86/Makefile
View file @
9fd6ea93
...
@@ -6,7 +6,8 @@ OBJS-$(CONFIG_AUDIODSP) += x86/audiodsp_init.o
...
@@ -6,7 +6,8 @@ OBJS-$(CONFIG_AUDIODSP) += x86/audiodsp_init.o
OBJS-$(CONFIG_BLOCKDSP)
+=
x86/blockdsp_init.o
OBJS-$(CONFIG_BLOCKDSP)
+=
x86/blockdsp_init.o
OBJS-$(CONFIG_BSWAPDSP)
+=
x86/bswapdsp_init.o
OBJS-$(CONFIG_BSWAPDSP)
+=
x86/bswapdsp_init.o
OBJS-$(CONFIG_DCT)
+=
x86/dct_init.o
OBJS-$(CONFIG_DCT)
+=
x86/dct_init.o
OBJS-$(CONFIG_DIRAC_DECODER)
+=
x86/diracdsp_init.o
OBJS-$(CONFIG_DIRAC_DECODER)
+=
x86/diracdsp_init.o
\
x86/dirac_dwt_init.o
OBJS-$(CONFIG_FDCTDSP)
+=
x86/fdctdsp_init.o
OBJS-$(CONFIG_FDCTDSP)
+=
x86/fdctdsp_init.o
OBJS-$(CONFIG_FFT)
+=
x86/fft_init.o
OBJS-$(CONFIG_FFT)
+=
x86/fft_init.o
OBJS-$(CONFIG_FLACDSP)
+=
x86/flacdsp_init.o
OBJS-$(CONFIG_FLACDSP)
+=
x86/flacdsp_init.o
...
@@ -73,7 +74,6 @@ OBJS-$(CONFIG_WEBP_DECODER) += x86/vp8dsp_init.o
...
@@ -73,7 +74,6 @@ OBJS-$(CONFIG_WEBP_DECODER) += x86/vp8dsp_init.o
# GCC inline assembly optimizations
# GCC inline assembly optimizations
# subsystems
# subsystems
MMX-OBJS-$(CONFIG_DIRAC_DECODER)
+=
x86/dirac_dwt.o
MMX-OBJS-$(CONFIG_FDCTDSP)
+=
x86/fdct.o
MMX-OBJS-$(CONFIG_FDCTDSP)
+=
x86/fdct.o
MMX-OBJS-$(CONFIG_IDCTDSP)
+=
x86/simple_idct.o
MMX-OBJS-$(CONFIG_IDCTDSP)
+=
x86/simple_idct.o
...
@@ -135,7 +135,7 @@ YASM-OBJS-$(CONFIG_ALAC_DECODER) += x86/alacdsp.o
...
@@ -135,7 +135,7 @@ YASM-OBJS-$(CONFIG_ALAC_DECODER) += x86/alacdsp.o
YASM-OBJS-$(CONFIG_APNG_DECODER)
+=
x86/pngdsp.o
YASM-OBJS-$(CONFIG_APNG_DECODER)
+=
x86/pngdsp.o
YASM-OBJS-$(CONFIG_DCA_DECODER)
+=
x86/synth_filter.o
YASM-OBJS-$(CONFIG_DCA_DECODER)
+=
x86/synth_filter.o
YASM-OBJS-$(CONFIG_DIRAC_DECODER)
+=
x86/diracdsp.o
\
YASM-OBJS-$(CONFIG_DIRAC_DECODER)
+=
x86/diracdsp.o
\
x86/d
wt_yasm
.o
x86/d
irac_dwt
.o
YASM-OBJS-$(CONFIG_DNXHD_ENCODER)
+=
x86/dnxhdenc.o
YASM-OBJS-$(CONFIG_DNXHD_ENCODER)
+=
x86/dnxhdenc.o
YASM-OBJS-$(CONFIG_FLAC_DECODER)
+=
x86/flacdsp.o
YASM-OBJS-$(CONFIG_FLAC_DECODER)
+=
x86/flacdsp.o
ifdef
CONFIG_GPL
ifdef
CONFIG_GPL
...
...
libavcodec/x86/d
wt_yasm
.asm
→
libavcodec/x86/d
irac_dwt
.asm
View file @
9fd6ea93
;******************************************************************************
;******************************************************************************
;*
MMX
optimized discrete wavelet trasnform
;*
x86
optimized discrete wavelet trasnform
;* Copyright (c) 2010 David Conrad
;* Copyright (c) 2010 David Conrad
;*
;*
;* This file is part of FFmpeg.
;* This file is part of FFmpeg.
...
...
libavcodec/x86/dirac_dwt.h
deleted
100644 → 0
View file @
17ab8f7e
/*
* 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
*/
#ifndef AVCODEC_X86_DIRAC_DWT_H
#define AVCODEC_X86_DIRAC_DWT_H
#include "libavcodec/dirac_dwt.h"
void
ff_horizontal_compose_dd97i_end_c
(
IDWTELEM
*
b
,
IDWTELEM
*
tmp
,
int
w2
,
int
x
);
void
ff_horizontal_compose_haar1i_end_c
(
IDWTELEM
*
b
,
IDWTELEM
*
tmp
,
int
w2
,
int
x
);
void
ff_horizontal_compose_haar0i_end_c
(
IDWTELEM
*
b
,
IDWTELEM
*
tmp
,
int
w2
,
int
x
);
void
ff_spatial_idwt_init_mmx
(
DWTContext
*
d
,
enum
dwt_type
type
);
#endif
libavcodec/x86/dirac_dwt.c
→
libavcodec/x86/dirac_dwt
_init
.c
View file @
9fd6ea93
/*
/*
*
MMX
optimized discrete wavelet transform
*
x86
optimized discrete wavelet transform
* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
* Copyright (c) 2010 David Conrad
* Copyright (c) 2010 David Conrad
*
*
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "libavutil/x86/asm.h"
#include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h"
#include "libavutil/x86/cpu.h"
#include "dirac_dwt.h"
#include "
libavcodec/
dirac_dwt.h"
#define COMPOSE_VERTICAL(ext, align) \
#define COMPOSE_VERTICAL(ext, align) \
void ff_vertical_compose53iL0##ext(int16_t *b0, int16_t *b1, int16_t *b2, int width); \
void ff_vertical_compose53iL0##ext(int16_t *b0, int16_t *b1, int16_t *b2, int width); \
...
@@ -158,7 +158,7 @@ static void horizontal_compose_dd97i_ssse3(uint8_t *_b, uint8_t *_tmp, int w)
...
@@ -158,7 +158,7 @@ static void horizontal_compose_dd97i_ssse3(uint8_t *_b, uint8_t *_tmp, int w)
}
}
#endif
#endif
void
ff_spatial_idwt_init_
mmx
(
DWTContext
*
d
,
enum
dwt_type
type
)
void
ff_spatial_idwt_init_
x86
(
DWTContext
*
d
,
enum
dwt_type
type
)
{
{
#if HAVE_YASM
#if HAVE_YASM
int
mm_flags
=
av_get_cpu_flags
();
int
mm_flags
=
av_get_cpu_flags
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment