Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

18.4.2 #1164

Closed
wants to merge 13 commits into from
Closed

18.4.2 #1164

wants to merge 13 commits into from

Conversation

dvrogozh
Copy link
Contributor

@dvrogozh dvrogozh commented Feb 5, 2019

18.4.2 scope.

Kokoshnikov, Alexey S and others added 3 commits February 5, 2019 08:08
-Enable setting MaFrameSize for SWBRC
-CheckVideoParamQueryLile() should not set default values
-Move all check to the function - CheckMaxFrameSize()
Fixes: Intel-Media-SDK#1165

cmake option() rewrites set() without FORCE flag which we tried
to use to instuct gtest to avoid installation path.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
SaveParams(par);
// int the case of MaxSliceSize BRC works in VBR mode (instead LA)
par.mfx.RateControlMethod = MFX_RATECONTROL_VBR;
par.mfx.MaxKbps = par.mfx.TargetKbps * 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VBR is define with single bitrate. Now it is based on mfx.MaxKbps. Better use par.mfx.MaxKbps = par.mfx.TargetKbps

_studio/mfx_lib/shared/src/mfx_h264_enc_common_hw.cpp Outdated Show resolved Hide resolved
Kokoshnikov, Alexey S added 4 commits February 11, 2019 23:02
-Fix wrong condition for supported rate controls

Fixes: 99743da ("h264e: Rework check MaxFrameSize")
-LowDelayBRC not need setting MaxFrameSize:
 if MaxFrameSize not specified
 Query() should returns ERR_NONE
 Init() should set MaxFrameSize = AVG frame size
-Replace GetExtBuffer() by GetExtBufferRef for avoid possible
 dereferencing nullptr
-AdaptiveMaxFrameSize can't be ON if MaxFrameSizeP = 0 or LowPower is ON
@dvrogozh dvrogozh requested a review from fzhar as a code owner March 5, 2019 17:54
@dvrogozh
Copy link
Contributor Author

dvrogozh commented Mar 5, 2019

@onabiull : PR updated.

@dvrogozh
Copy link
Contributor Author

dvrogozh commented Mar 5, 2019

@azhogov : why CI trigger failed?

This just made build possible. Functionality not tested..

Partially addresses Intel-Media-SDK#1195
@azhogov
Copy link

azhogov commented Mar 6, 2019

@dvrogozh: It is fixed now. Need to update failed PRs.

Fix for Intel-Media-SDK#1165

This patch keeps gtest google tests in-house avoiding their installation.
The idea is that user will run 'make test' or 'ctest' or execute tests
directly from the build tree rather than under installed environment. These
tests are intended to make sure that mediasdk behaves correctly before install.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
We might have gtests elsewhere in the project, not only in tests
directory. Let's enable tests separately before including any
source directories.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
Fixes: Intel-Media-SDK#1165

We may face situaiton that system has installed gtest/gmock which
will be incompatible with the version against which we linked our
tests. Hence, force using our own built gtest, gmock.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
Fixes: Intel-Media-SDK#1285

This change allows builds against system installed gtest if
cmake -DUSE_SYSTEM_GTEST=ON is specified. Mind that this change
does not provide any configure level check over gtest. And it does not
provide proper target configuration if gtest is installed to custom
location. Build will work if gtest will happen to be in the right place
at the right time.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
@dvrogozh dvrogozh mentioned this pull request Mar 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants