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
27294bc2
Commit
27294bc2
authored
Jul 28, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpegvideo_enc: export per frame PSNR through side data
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
5d95f32b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+4
-2
No files found.
libavcodec/mpegvideo_enc.c
View file @
27294bc2
...
...
@@ -1831,8 +1831,6 @@ vbv_retry:
av_assert0
(
s
->
avctx
->
rc_max_rate
);
}
ff_side_data_set_encoder_stats
(
pkt
,
s
->
current_picture
.
f
->
quality
,
NULL
,
0
,
s
->
pict_type
);
if
(
s
->
avctx
->
flags
&
AV_CODEC_FLAG_PASS1
)
ff_write_pass1_stats
(
s
);
...
...
@@ -1842,6 +1840,10 @@ vbv_retry:
s
->
current_picture
.
error
[
i
];
avctx
->
error
[
i
]
+=
s
->
current_picture_ptr
->
f
->
error
[
i
];
}
ff_side_data_set_encoder_stats
(
pkt
,
s
->
current_picture
.
f
->
quality
,
s
->
current_picture_ptr
->
f
->
error
,
(
s
->
avctx
->
flags
&
AV_CODEC_FLAG_PSNR
)
?
4
:
0
,
s
->
pict_type
);
if
(
s
->
avctx
->
flags
&
AV_CODEC_FLAG_PASS1
)
assert
(
avctx
->
header_bits
+
avctx
->
mv_bits
+
avctx
->
misc_bits
+
...
...
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