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
ec7e2582
Commit
ec7e2582
authored
Aug 08, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 4:2:2 psnr
Originally committed as revision 14662 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
b80b5692
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+5
-4
No files found.
libavcodec/mpegvideo_enc.c
View file @
ec7e2582
...
...
@@ -2012,6 +2012,7 @@ static void write_slice_end(MpegEncContext *s){
static
int
encode_thread
(
AVCodecContext
*
c
,
void
*
arg
){
MpegEncContext
*
s
=
arg
;
int
mb_x
,
mb_y
,
pdif
=
0
;
int
chr_h
=
16
>>
s
->
chroma_y_shift
;
int
i
,
j
;
MpegEncContext
best_s
,
backup_s
;
uint8_t
bit_buf
[
2
][
MAX_MB_BYTES
];
...
...
@@ -2606,11 +2607,11 @@ static int encode_thread(AVCodecContext *c, void *arg){
s
,
s
->
new_picture
.
data
[
0
]
+
s
->
mb_x
*
16
+
s
->
mb_y
*
s
->
linesize
*
16
,
s
->
dest
[
0
],
w
,
h
,
s
->
linesize
);
s
->
current_picture
.
error
[
1
]
+=
sse
(
s
,
s
->
new_picture
.
data
[
1
]
+
s
->
mb_x
*
8
+
s
->
mb_y
*
s
->
uvlinesize
*
8
,
s
->
dest
[
1
],
w
>>
1
,
h
>>
1
,
s
->
uvlinesize
);
s
,
s
->
new_picture
.
data
[
1
]
+
s
->
mb_x
*
8
+
s
->
mb_y
*
s
->
uvlinesize
*
chr_h
,
s
->
dest
[
1
],
w
>>
1
,
h
>>
s
->
chroma_y_shift
,
s
->
uvlinesize
);
s
->
current_picture
.
error
[
2
]
+=
sse
(
s
,
s
->
new_picture
.
data
[
2
]
+
s
->
mb_x
*
8
+
s
->
mb_y
*
s
->
uvlinesize
*
8
,
s
->
dest
[
2
],
w
>>
1
,
h
>>
1
,
s
->
uvlinesize
);
s
,
s
->
new_picture
.
data
[
2
]
+
s
->
mb_x
*
8
+
s
->
mb_y
*
s
->
uvlinesize
*
chr_h
,
s
->
dest
[
2
],
w
>>
1
,
h
>>
s
->
chroma_y_shift
,
s
->
uvlinesize
);
}
if
(
s
->
loop_filter
){
if
(
ENABLE_ANY_H263_ENCODER
&&
s
->
out_format
==
FMT_H263
)
...
...
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