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
377ec888
Commit
377ec888
authored
May 16, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bigendian fix
Originally committed as revision 1887 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
4c701ac8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
h264.c
libavcodec/h264.c
+13
-5
svq3.c
libavcodec/svq3.c
+1
-1
No files found.
libavcodec/h264.c
View file @
377ec888
...
...
@@ -297,6 +297,14 @@ static VLC run7_vlc;
static
void
svq3_luma_dc_dequant_idct_c
(
DCTELEM
*
block
,
int
qp
);
static
void
svq3_add_idct_c
(
uint8_t
*
dst
,
DCTELEM
*
block
,
int
stride
,
int
qp
,
int
dc
);
static
inline
uint32_t
pack16to32
(
int
a
,
int
b
){
#ifdef WORDS_BIGENDIAN
return
(
b
&
0xFFFF
)
+
(
a
<<
16
);
#else
return
(
a
&
0xFFFF
)
+
(
b
<<
16
);
#endif
}
/**
* fill a rectangle.
* @param h height of the recatangle, should be a constant
...
...
@@ -3226,7 +3234,7 @@ static int decode_mb(H264Context *h){
fill_caches
(
h
,
mb_type
);
//FIXME check what is needed and what not ...
pred_pskip_motion
(
h
,
&
mx
,
&
my
);
fill_rectangle
(
&
h
->
ref_cache
[
0
][
scan8
[
0
]],
4
,
4
,
8
,
0
,
1
);
fill_rectangle
(
h
->
mv_cache
[
0
][
scan8
[
0
]],
4
,
4
,
8
,
(
mx
&
0xFFFF
)
+
(
my
<<
16
),
4
);
fill_rectangle
(
h
->
mv_cache
[
0
][
scan8
[
0
]],
4
,
4
,
8
,
pack16to32
(
mx
,
my
),
4
);
write_back_motion
(
h
,
mb_type
);
s
->
current_picture
.
mb_type
[
mb_xy
]
=
mb_type
;
//FIXME SKIP type
...
...
@@ -3456,7 +3464,7 @@ decode_intra_mb:
my
+=
get_se_golomb
(
&
s
->
gb
);
tprintf
(
"final mv:%d %d
\n
"
,
mx
,
my
);
fill_rectangle
(
h
->
mv_cache
[
list
][
scan8
[
0
]
],
4
,
4
,
8
,
(
mx
&
0xFFFF
)
+
(
my
<<
16
),
4
);
fill_rectangle
(
h
->
mv_cache
[
list
][
scan8
[
0
]
],
4
,
4
,
8
,
pack16to32
(
mx
,
my
),
4
);
}
}
}
...
...
@@ -3479,7 +3487,7 @@ decode_intra_mb:
my
+=
get_se_golomb
(
&
s
->
gb
);
tprintf
(
"final mv:%d %d
\n
"
,
mx
,
my
);
fill_rectangle
(
h
->
mv_cache
[
list
][
scan8
[
0
]
+
16
*
i
],
4
,
2
,
8
,
(
mx
&
0xFFFF
)
+
(
my
<<
16
),
4
);
fill_rectangle
(
h
->
mv_cache
[
list
][
scan8
[
0
]
+
16
*
i
],
4
,
2
,
8
,
pack16to32
(
mx
,
my
),
4
);
}
}
}
...
...
@@ -3503,7 +3511,7 @@ decode_intra_mb:
my
+=
get_se_golomb
(
&
s
->
gb
);
tprintf
(
"final mv:%d %d
\n
"
,
mx
,
my
);
fill_rectangle
(
h
->
mv_cache
[
list
][
scan8
[
0
]
+
2
*
i
],
2
,
4
,
8
,
(
mx
&
0xFFFF
)
+
(
my
<<
16
),
4
);
fill_rectangle
(
h
->
mv_cache
[
list
][
scan8
[
0
]
+
2
*
i
],
2
,
4
,
8
,
pack16to32
(
mx
,
my
),
4
);
}
}
}
...
...
@@ -3999,7 +4007,7 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
AVCodecContext
*
const
avctx
=
s
->
avctx
;
int
buf_index
=
0
;
int
i
;
#if 0
#if 0
for(i=0; i<32; i++){
printf("%X ", buf[i]);
}
...
...
libavcodec/svq3.c
View file @
377ec888
...
...
@@ -438,7 +438,7 @@ static int svq3_decode_mb (H264Context *h, unsigned int mb_type) {
}
/* update mv_cache */
fill_rectangle
(
h
->
mv_cache
[
0
][
scan8
[
k
]],
part_width
>>
2
,
part_height
>>
2
,
8
,
(
mx
&
0xFFFF
)
+
(
my
<<
16
),
4
);
fill_rectangle
(
h
->
mv_cache
[
0
][
scan8
[
k
]],
part_width
>>
2
,
part_height
>>
2
,
8
,
pack16to32
(
mx
,
my
),
4
);
}
}
...
...
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