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
bbf0ef57
Commit
bbf0ef57
authored
Jan 21, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bfin: Move all assembly declarations only used within one .c file there
This is done similarly for all other architectures.
parent
80173c71
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
95 deletions
+43
-95
dsputil_bfin.c
libavcodec/bfin/dsputil_bfin.c
+32
-1
dsputil_bfin.h
libavcodec/bfin/dsputil_bfin.h
+0
-59
hpeldsp_bfin.c
libavcodec/bfin/hpeldsp_bfin.c
+8
-0
hpeldsp_bfin.h
libavcodec/bfin/hpeldsp_bfin.h
+0
-6
vp3_bfin.c
libavcodec/bfin/vp3_bfin.c
+3
-2
vp3_bfin.h
libavcodec/bfin/vp3_bfin.h
+0
-27
No files found.
libavcodec/bfin/dsputil_bfin.c
View file @
bbf0ef57
...
...
@@ -21,10 +21,41 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdint.h>
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/bfin/attributes.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/dsputil.h"
#include "dsputil_bfin.h"
void
ff_bfin_idct
(
int16_t
*
block
)
attribute_l1_text
;
void
ff_bfin_fdct
(
int16_t
*
block
)
attribute_l1_text
;
void
ff_bfin_add_pixels_clamped
(
const
int16_t
*
block
,
uint8_t
*
dest
,
int
line_size
)
attribute_l1_text
;
void
ff_bfin_put_pixels_clamped
(
const
int16_t
*
block
,
uint8_t
*
dest
,
int
line_size
)
attribute_l1_text
;
void
ff_bfin_diff_pixels
(
int16_t
*
block
,
const
uint8_t
*
s1
,
const
uint8_t
*
s2
,
int
stride
)
attribute_l1_text
;
void
ff_bfin_get_pixels
(
int16_t
*
restrict
block
,
const
uint8_t
*
pixels
,
int
line_size
)
attribute_l1_text
;
int
ff_bfin_pix_norm1
(
uint8_t
*
pix
,
int
line_size
)
attribute_l1_text
;
int
ff_bfin_pix_sum
(
uint8_t
*
p
,
int
stride
)
attribute_l1_text
;
int
ff_bfin_z_sad8x8
(
uint8_t
*
blk1
,
uint8_t
*
blk2
,
int
dsz
,
int
line_size
,
int
h
)
attribute_l1_text
;
int
ff_bfin_z_sad16x16
(
uint8_t
*
blk1
,
uint8_t
*
blk2
,
int
dsz
,
int
line_size
,
int
h
)
attribute_l1_text
;
int
ff_bfin_sse4
(
void
*
v
,
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
,
int
h
)
attribute_l1_text
;
int
ff_bfin_sse8
(
void
*
v
,
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
,
int
h
)
attribute_l1_text
;
int
ff_bfin_sse16
(
void
*
v
,
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
,
int
h
)
attribute_l1_text
;
static
void
bfin_idct_add
(
uint8_t
*
dest
,
int
line_size
,
int16_t
*
block
)
{
...
...
libavcodec/bfin/dsputil_bfin.h
deleted
100644 → 0
View file @
80173c71
/*
* BlackFin DSPUTILS COMMON OPTIMIZATIONS HEADER
*
* Copyright (C) 2007 Marc Hoffman <mmh@pleasantst.com>
*
* This file is part of Libav.
*
* Libav 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.
*
* Libav 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 Libav; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVCODEC_BFIN_DSPUTIL_BFIN_H
#define AVCODEC_BFIN_DSPUTIL_BFIN_H
#include <stdint.h>
#include "config.h"
#include "libavutil/bfin/attributes.h"
void
ff_bfin_idct
(
int16_t
*
block
)
attribute_l1_text
;
void
ff_bfin_fdct
(
int16_t
*
block
)
attribute_l1_text
;
void
ff_bfin_add_pixels_clamped
(
const
int16_t
*
block
,
uint8_t
*
dest
,
int
line_size
)
attribute_l1_text
;
void
ff_bfin_put_pixels_clamped
(
const
int16_t
*
block
,
uint8_t
*
dest
,
int
line_size
)
attribute_l1_text
;
void
ff_bfin_diff_pixels
(
int16_t
*
block
,
const
uint8_t
*
s1
,
const
uint8_t
*
s2
,
int
stride
)
attribute_l1_text
;
void
ff_bfin_get_pixels
(
int16_t
*
restrict
block
,
const
uint8_t
*
pixels
,
int
line_size
)
attribute_l1_text
;
int
ff_bfin_pix_norm1
(
uint8_t
*
pix
,
int
line_size
)
attribute_l1_text
;
int
ff_bfin_pix_sum
(
uint8_t
*
p
,
int
stride
)
attribute_l1_text
;
int
ff_bfin_z_sad8x8
(
uint8_t
*
blk1
,
uint8_t
*
blk2
,
int
dsz
,
int
line_size
,
int
h
)
attribute_l1_text
;
int
ff_bfin_z_sad16x16
(
uint8_t
*
blk1
,
uint8_t
*
blk2
,
int
dsz
,
int
line_size
,
int
h
)
attribute_l1_text
;
int
ff_bfin_sse4
(
void
*
v
,
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
,
int
h
)
attribute_l1_text
;
int
ff_bfin_sse8
(
void
*
v
,
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
,
int
h
)
attribute_l1_text
;
int
ff_bfin_sse16
(
void
*
v
,
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
,
int
h
)
attribute_l1_text
;
#endif
/* AVCODEC_BFIN_DSPUTIL_BFIN_H */
libavcodec/bfin/hpeldsp_bfin.c
View file @
bbf0ef57
...
...
@@ -25,9 +25,17 @@
#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/bfin/attributes.h"
#include "libavcodec/hpeldsp.h"
#include "hpeldsp_bfin.h"
void
ff_bfin_put_pixels8uc_nornd
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
const
uint8_t
*
s1
,
int
line_size
,
int
h
)
attribute_l1_text
;
void
ff_bfin_put_pixels16uc_nornd
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
const
uint8_t
*
s1
,
int
line_size
,
int
h
)
attribute_l1_text
;
static
void
bfin_put_pixels8
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
...
...
libavcodec/bfin/hpeldsp_bfin.h
View file @
bbf0ef57
...
...
@@ -36,11 +36,5 @@ void ff_bfin_put_pixels8uc(uint8_t *block, const uint8_t *s0,
void
ff_bfin_put_pixels16uc
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
const
uint8_t
*
s1
,
int
dest_size
,
int
line_size
,
int
h
)
attribute_l1_text
;
void
ff_bfin_put_pixels8uc_nornd
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
const
uint8_t
*
s1
,
int
line_size
,
int
h
)
attribute_l1_text
;
void
ff_bfin_put_pixels16uc_nornd
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
const
uint8_t
*
s1
,
int
line_size
,
int
h
)
attribute_l1_text
;
#endif
/* AVCODEC_BFIN_HPELDSP_BFIN_H */
libavcodec/bfin/vp3_bfin.c
View file @
bbf0ef57
...
...
@@ -18,14 +18,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdint.h>
#include <string.h>
#include "libavutil/attributes.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/vp3dsp.h"
#include "libavcodec/dsputil.h"
#include "dsputil_bfin.h"
#include "vp3_bfin.h"
void
ff_bfin_vp3_idct
(
int16_t
*
block
);
/* Intra iDCT offset 128 */
static
void
bfin_vp3_idct_put
(
uint8_t
*
dest
,
int
line_size
,
int16_t
*
block
)
...
...
libavcodec/bfin/vp3_bfin.h
deleted
100644 → 0
View file @
80173c71
/*
* This file is part of Libav.
*
* Libav 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.
*
* Libav 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 Libav; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVCODEC_BFIN_VP3_BFIN_H
#define AVCODEC_BFIN_VP3_BFIN_H
#include <stdint.h>
void
ff_bfin_vp3_idct
(
int16_t
*
block
);
#endif
/* AVCODEC_BFIN_VP3_BFIN_H */
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