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
85e338ab
Commit
85e338ab
authored
Sep 23, 2019
by
Guo, Yejun
Committed by
Mark Thompson
Sep 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavcodec/libx265: add a flag to output ROI warnings only once.
Signed-off-by:
Guo, Yejun
<
yejun.guo@intel.com
>
parent
104d4413
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
libx265.c
libavcodec/libx265.c
+10
-1
No files found.
libavcodec/libx265.c
View file @
85e338ab
...
...
@@ -47,6 +47,12 @@ typedef struct libx265Context {
char
*
tune
;
char
*
profile
;
char
*
x265_opts
;
/**
* If the encoder does not support ROI then warn the first time we
* encounter a frame with ROI side data.
*/
int
roi_warned
;
}
libx265Context
;
static
int
is_keyframe
(
NalUnitType
naltype
)
...
...
@@ -310,7 +316,10 @@ static av_cold int libx265_encode_set_roi(libx265Context *ctx, const AVFrame *fr
AVFrameSideData
*
sd
=
av_frame_get_side_data
(
frame
,
AV_FRAME_DATA_REGIONS_OF_INTEREST
);
if
(
sd
)
{
if
(
ctx
->
params
->
rc
.
aqMode
==
X265_AQ_NONE
)
{
av_log
(
ctx
,
AV_LOG_WARNING
,
"Adaptive quantization must be enabled to use ROI encoding, skipping ROI.
\n
"
);
if
(
!
ctx
->
roi_warned
)
{
ctx
->
roi_warned
=
1
;
av_log
(
ctx
,
AV_LOG_WARNING
,
"Adaptive quantization must be enabled to use ROI encoding, skipping ROI.
\n
"
);
}
}
else
{
/* 8x8 block when qg-size is 8, 16*16 block otherwise. */
int
mb_size
=
(
ctx
->
params
->
rc
.
qgSize
==
8
)
?
8
:
16
;
...
...
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