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
0ddca7d4
Commit
0ddca7d4
authored
Feb 06, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsputil: fixup half a dozen bugs with ptrdiff vs int linesize
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ede45c4e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
10 deletions
+12
-10
dsputil.h
libavcodec/dsputil.h
+1
-1
dsputil_template.c
libavcodec/dsputil_template.c
+1
-1
hpel_template.c
libavcodec/hpel_template.c
+3
-3
snow.c
libavcodec/snow.c
+1
-1
vc1dsp.h
libavcodec/vc1dsp.h
+4
-2
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+2
-2
No files found.
libavcodec/dsputil.h
View file @
0ddca7d4
...
...
@@ -170,7 +170,7 @@ DEF_OLD_QPEL(qpel8_mc13_old_c)
DEF_OLD_QPEL
(
qpel8_mc33_old_c
)
#define CALL_2X_PIXELS(a, b, n)\
static void a(uint8_t *block, const uint8_t *pixels,
in
t line_size, int h){\
static void a(uint8_t *block, const uint8_t *pixels,
ptrdiff_
t line_size, int h){\
b(block , pixels , line_size, h);\
b(block+n, pixels+n, line_size, h);\
}
...
...
libavcodec/dsputil_template.c
View file @
0ddca7d4
...
...
@@ -361,7 +361,7 @@ static inline void FUNCC(OPNAME ## _pixels4_xy2)(uint8_t *block, const uint8_t *
}\
}\
\
static inline void FUNCC(OPNAME ## _pixels8_xy2)(uint8_t *block, const uint8_t *pixels,
in
t line_size, int h)\
static inline void FUNCC(OPNAME ## _pixels8_xy2)(uint8_t *block, const uint8_t *pixels,
ptrdiff_
t line_size, int h)\
{\
/* FIXME HIGH BIT DEPTH */
\
int j;\
...
...
libavcodec/hpel_template.c
View file @
0ddca7d4
...
...
@@ -20,7 +20,7 @@
*/
#define DEF_HPEL(OPNAME, OP) \
static inline void FUNCC(OPNAME ## _pixels2)(uint8_t *block, const uint8_t *pixels,
in
t line_size, int h){\
static inline void FUNCC(OPNAME ## _pixels2)(uint8_t *block, const uint8_t *pixels,
ptrdiff_
t line_size, int h){\
int i;\
for(i=0; i<h; i++){\
OP(*((pixel2*)(block )), AV_RN2P(pixels ));\
...
...
@@ -28,7 +28,7 @@ static inline void FUNCC(OPNAME ## _pixels2)(uint8_t *block, const uint8_t *pixe
block +=line_size;\
}\
}\
static inline void FUNCC(OPNAME ## _pixels4)(uint8_t *block, const uint8_t *pixels,
in
t line_size, int h){\
static inline void FUNCC(OPNAME ## _pixels4)(uint8_t *block, const uint8_t *pixels,
ptrdiff_
t line_size, int h){\
int i;\
for(i=0; i<h; i++){\
OP(*((pixel4*)(block )), AV_RN4P(pixels ));\
...
...
@@ -36,7 +36,7 @@ static inline void FUNCC(OPNAME ## _pixels4)(uint8_t *block, const uint8_t *pixe
block +=line_size;\
}\
}\
static inline void FUNCC(OPNAME ## _pixels8)(uint8_t *block, const uint8_t *pixels,
in
t line_size, int h){\
static inline void FUNCC(OPNAME ## _pixels8)(uint8_t *block, const uint8_t *pixels,
ptrdiff_
t line_size, int h){\
int i;\
for(i=0; i<h; i++){\
OP(*((pixel4*)(block )), AV_RN4P(pixels ));\
...
...
libavcodec/snow.c
View file @
0ddca7d4
...
...
@@ -378,7 +378,7 @@ void ff_snow_pred_block(SnowContext *s, uint8_t *dst, uint8_t *tmp, int stride,
}
#define mca(dx,dy,b_w)\
static void mc_block_hpel ## dx ## dy ## b_w(uint8_t *dst, const uint8_t *src,
in
t stride, int h){\
static void mc_block_hpel ## dx ## dy ## b_w(uint8_t *dst, const uint8_t *src,
ptrdiff_
t stride, int h){\
av_assert2(h==b_w);\
mc_block(NULL, dst, src-(HTAPS_MAX/2-1)-(HTAPS_MAX/2-1)*stride, stride, b_w, b_w, dx, dy);\
}
...
...
libavcodec/vc1dsp.h
View file @
0ddca7d4
...
...
@@ -30,6 +30,8 @@
#include "dsputil.h"
typedef
void
(
*
vc1op_pixels_func
)(
uint8_t
*
block
/*align width (8 or 16)*/
,
const
uint8_t
*
pixels
/*align 1*/
,
int
line_size
,
int
h
);
typedef
struct
VC1DSPContext
{
/* vc1 functions */
void
(
*
vc1_inv_trans_8x8
)(
int16_t
*
b
);
...
...
@@ -54,8 +56,8 @@ typedef struct VC1DSPContext {
/* put 8x8 block with bicubic interpolation and quarterpel precision
* last argument is actually round value instead of height
*/
op_pixels_func
put_vc1_mspel_pixels_tab
[
16
];
op_pixels_func
avg_vc1_mspel_pixels_tab
[
16
];
vc1
op_pixels_func
put_vc1_mspel_pixels_tab
[
16
];
vc1
op_pixels_func
avg_vc1_mspel_pixels_tab
[
16
];
/* This is really one func used in VC-1 decoding */
h264_chroma_mc_func
put_no_rnd_vc1_chroma_pixels_tab
[
3
];
...
...
libavcodec/x86/dsputil_mmx.c
View file @
0ddca7d4
...
...
@@ -468,7 +468,7 @@ void ff_add_pixels_clamped_mmx(const int16_t *block, uint8_t *pixels,
}
static
void
put_pixels8_mmx
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
in
t
line_size
,
int
h
)
ptrdiff_
t
line_size
,
int
h
)
{
__asm__
volatile
(
"lea (%3, %3), %%"
REG_a
"
\n\t
"
...
...
@@ -495,7 +495,7 @@ static void put_pixels8_mmx(uint8_t *block, const uint8_t *pixels,
}
static
void
put_pixels16_mmx
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
in
t
line_size
,
int
h
)
ptrdiff_
t
line_size
,
int
h
)
{
__asm__
volatile
(
"lea (%3, %3), %%"
REG_a
"
\n\t
"
...
...
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