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
1bc85fb3
Commit
1bc85fb3
authored
Mar 15, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dirac: mark some variables const.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ae76c1af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
diracdsp.c
libavcodec/diracdsp.c
+2
-2
diracdsp.h
libavcodec/diracdsp.h
+2
-2
diracdsp_mmx.c
libavcodec/x86/diracdsp_mmx.c
+3
-3
No files found.
libavcodec/diracdsp.c
View file @
1bc85fb3
...
...
@@ -28,7 +28,7 @@
+3*((src)[-2*stride] + (src)[3*stride]) \
-1*((src)[-3*stride] + (src)[4*stride]) + 16) >> 5)
static
void
dirac_hpel_filter
(
uint8_t
*
dsth
,
uint8_t
*
dstv
,
uint8_t
*
dstc
,
uint8_t
*
src
,
static
void
dirac_hpel_filter
(
uint8_t
*
dsth
,
uint8_t
*
dstv
,
uint8_t
*
dstc
,
const
uint8_t
*
src
,
int
stride
,
int
width
,
int
height
)
{
int
x
,
y
;
...
...
@@ -98,7 +98,7 @@ PIXOP_BILINEAR(avg, OP_AVG, 32)
block += stride; \
} \
} \
static void biweight_dirac_pixels ## W ## _c(uint8_t *dst, uint8_t *src, int stride, int log2_denom, \
static void biweight_dirac_pixels ## W ## _c(uint8_t *dst,
const
uint8_t *src, int stride, int log2_denom, \
int weightd, int weights, int h) { \
int x; \
while (h--) { \
...
...
libavcodec/diracdsp.h
View file @
1bc85fb3
...
...
@@ -24,10 +24,10 @@
#include <stdint.h>
typedef
void
(
*
dirac_weight_func
)(
uint8_t
*
block
,
int
stride
,
int
log2_denom
,
int
weight
,
int
h
);
typedef
void
(
*
dirac_biweight_func
)(
uint8_t
*
dst
,
uint8_t
*
src
,
int
stride
,
int
log2_denom
,
int
weightd
,
int
weights
,
int
h
);
typedef
void
(
*
dirac_biweight_func
)(
uint8_t
*
dst
,
const
uint8_t
*
src
,
int
stride
,
int
log2_denom
,
int
weightd
,
int
weights
,
int
h
);
typedef
struct
{
void
(
*
dirac_hpel_filter
)(
uint8_t
*
dsth
,
uint8_t
*
dstv
,
uint8_t
*
dstc
,
uint8_t
*
src
,
int
stride
,
int
width
,
int
height
);
void
(
*
dirac_hpel_filter
)(
uint8_t
*
dsth
,
uint8_t
*
dstv
,
uint8_t
*
dstc
,
const
uint8_t
*
src
,
int
stride
,
int
width
,
int
height
);
/**
* dirac_pixels_tab[width][subpel]
* width is 2 for 32, 1 for 16, 0 for 8
...
...
libavcodec/x86/diracdsp_mmx.c
View file @
1bc85fb3
...
...
@@ -27,11 +27,11 @@ void ff_put_signed_rect_clamped_mmx(uint8_t *dst, int dst_stride, const int16_t
void
ff_put_signed_rect_clamped_sse2
(
uint8_t
*
dst
,
int
dst_stride
,
const
int16_t
*
src
,
int
src_stride
,
int
width
,
int
height
);
#define HPEL_FILTER(MMSIZE, EXT) \
void ff_dirac_hpel_filter_v_ ## EXT(uint8_t *,
uint8_t *, int, int);
\
void ff_dirac_hpel_filter_h_ ## EXT(uint8_t *,
uint8_t *, int);
\
void ff_dirac_hpel_filter_v_ ## EXT(uint8_t *,
const uint8_t *, int, int);
\
void ff_dirac_hpel_filter_h_ ## EXT(uint8_t *,
const uint8_t *, int);
\
\
static void dirac_hpel_filter_ ## EXT(uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, \
uint8_t *src, int stride, int width, int height) \
const
uint8_t *src, int stride, int width, int height) \
{ \
while( height-- ) \
{ \
...
...
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