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
80173c71
Commit
80173c71
authored
Jan 22, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bfin: hpeldsp: K&R formatting cosmetics
parent
da785231
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
35 deletions
+62
-35
hpeldsp_bfin.c
libavcodec/bfin/hpeldsp_bfin.c
+46
-29
hpeldsp_bfin.h
libavcodec/bfin/hpeldsp_bfin.h
+16
-6
No files found.
libavcodec/bfin/hpeldsp_bfin.c
View file @
80173c71
...
...
@@ -28,75 +28,92 @@
#include "libavcodec/hpeldsp.h"
#include "hpeldsp_bfin.h"
static
void
bfin_put_pixels8
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels8
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels8uc
(
block
,
pixels
,
pixels
,
line_size
,
line_size
,
h
);
ff_bfin_put_pixels8uc
(
block
,
pixels
,
pixels
,
line_size
,
line_size
,
h
);
}
static
void
bfin_put_pixels8_x2
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels8_x2
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels8uc
(
block
,
pixels
,
pixels
+
1
,
line_size
,
line_size
,
h
);
ff_bfin_put_pixels8uc
(
block
,
pixels
,
pixels
+
1
,
line_size
,
line_size
,
h
);
}
static
void
bfin_put_pixels8_y2
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels8_y2
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels8uc
(
block
,
pixels
,
pixels
+
line_size
,
line_size
,
line_size
,
h
);
ff_bfin_put_pixels8uc
(
block
,
pixels
,
pixels
+
line_size
,
line_size
,
line_size
,
h
);
}
static
void
bfin_put_pixels8_xy2
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels8_xy2
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_z_put_pixels8_xy2
(
block
,
s0
,
line_size
,
line_size
,
h
);
ff_bfin_z_put_pixels8_xy2
(
block
,
s0
,
line_size
,
line_size
,
h
);
}
static
void
bfin_put_pixels16
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels16
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels16uc
(
block
,
pixels
,
pixels
,
line_size
,
line_size
,
h
);
ff_bfin_put_pixels16uc
(
block
,
pixels
,
pixels
,
line_size
,
line_size
,
h
);
}
static
void
bfin_put_pixels16_x2
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels16_x2
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels16uc
(
block
,
pixels
,
pixels
+
1
,
line_size
,
line_size
,
h
);
ff_bfin_put_pixels16uc
(
block
,
pixels
,
pixels
+
1
,
line_size
,
line_size
,
h
);
}
static
void
bfin_put_pixels16_y2
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels16_y2
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels16uc
(
block
,
pixels
,
pixels
+
line_size
,
line_size
,
line_size
,
h
);
ff_bfin_put_pixels16uc
(
block
,
pixels
,
pixels
+
line_size
,
line_size
,
line_size
,
h
);
}
static
void
bfin_put_pixels16_xy2
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels16_xy2
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_z_put_pixels16_xy2
(
block
,
s0
,
line_size
,
line_size
,
h
);
ff_bfin_z_put_pixels16_xy2
(
block
,
s0
,
line_size
,
line_size
,
h
);
}
static
void
bfin_put_pixels8_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels8_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels8uc_nornd
(
block
,
pixels
,
pixels
,
line_size
,
h
);
ff_bfin_put_pixels8uc_nornd
(
block
,
pixels
,
pixels
,
line_size
,
h
);
}
static
void
bfin_put_pixels8_x2_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels8_x2_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels8uc_nornd
(
block
,
pixels
,
pixels
+
1
,
line_size
,
h
);
ff_bfin_put_pixels8uc_nornd
(
block
,
pixels
,
pixels
+
1
,
line_size
,
h
);
}
static
void
bfin_put_pixels8_y2_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels8_y2_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels8uc_nornd
(
block
,
pixels
,
pixels
+
line_size
,
line_size
,
h
);
ff_bfin_put_pixels8uc_nornd
(
block
,
pixels
,
pixels
+
line_size
,
line_size
,
h
);
}
static
void
bfin_put_pixels16_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels16_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels16uc_nornd
(
block
,
pixels
,
pixels
,
line_size
,
h
);
ff_bfin_put_pixels16uc_nornd
(
block
,
pixels
,
pixels
,
line_size
,
h
);
}
static
void
bfin_put_pixels16_x2_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels16_x2_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels16uc_nornd
(
block
,
pixels
,
pixels
+
1
,
line_size
,
h
);
ff_bfin_put_pixels16uc_nornd
(
block
,
pixels
,
pixels
+
1
,
line_size
,
h
);
}
static
void
bfin_put_pixels16_y2_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
static
void
bfin_put_pixels16_y2_nornd
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
)
{
ff_bfin_put_pixels16uc_nornd
(
block
,
pixels
,
pixels
+
line_size
,
line_size
,
h
);
ff_bfin_put_pixels16uc_nornd
(
block
,
pixels
,
pixels
+
line_size
,
line_size
,
h
);
}
av_cold
void
ff_hpeldsp_init_bfin
(
HpelDSPContext
*
c
,
int
flags
)
...
...
libavcodec/bfin/hpeldsp_bfin.h
View file @
80173c71
...
...
@@ -25,12 +25,22 @@
#include "libavutil/bfin/attributes.h"
void
ff_bfin_z_put_pixels16_xy2
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
int
dest_size
,
int
line_size
,
int
h
)
attribute_l1_text
;
void
ff_bfin_z_put_pixels8_xy2
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
int
dest_size
,
int
line_size
,
int
h
)
attribute_l1_text
;
void
ff_bfin_z_put_pixels16_xy2
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
int
dest_size
,
int
line_size
,
int
h
)
attribute_l1_text
;
void
ff_bfin_z_put_pixels8_xy2
(
uint8_t
*
block
,
const
uint8_t
*
s0
,
int
dest_size
,
int
line_size
,
int
h
)
attribute_l1_text
;
void
ff_bfin_put_pixels8uc
(
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_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
;
void
ff_bfin_put_pixels8uc
(
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_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 */
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