Closed ryanewel closed 5 years ago
Perhaps, we should just consider wrapping these raw SwsContext
, AVCodecContext
, AVFrame
pointers into smart pointers (unique_ptr
) with custom deleters.
Merging #37 into master will increase coverage by
0.86%
. The diff coverage is89.74%
.
@@ Coverage Diff @@
## master #37 +/- ##
==========================================
+ Coverage 78.72% 79.59% +0.86%
==========================================
Files 3 3
Lines 188 196 +8
==========================================
+ Hits 148 156 +8
Misses 40 40
Flag | Coverage Δ | |
---|---|---|
#ROS_1 | 79.59% <89.74%> (+0.86%) |
:arrow_up: |
#ROS_2 | 79.48% <89.74%> (+0.87%) |
:arrow_up: |
#dashing | 79.48% <89.74%> (+0.87%) |
:arrow_up: |
#kinetic | 76.41% <74.35%> (+2.07%) |
:arrow_up: |
#melodic | 79.48% <89.74%> (+0.87%) |
:arrow_up: |
Impacted Files | Coverage Δ | |
---|---|---|
h264_encoder_core/src/h264_encoder.cpp | 85.54% <89.74%> (+0.7%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 487b331...5daabb1. Read the comment docs.
Signed-off-by: Ryan Newell ryanewel@amazon.com
Issue #, if available: https://github.com/aws-robotics/kinesisvideo-encoder-common/issues/36
Description of changes: Rearrange the codec opening logic so that parameters are included Unit tests passed Tested following cases manually
Running with hardware encoding enabled Node correctly uses hardware encoding Saw video in Kinesis console
Running with an unavailable codec specified in config Node then exited as intended
Running node with broken hardware encoding Node successfully backs off to software encoding, Saw video in kinesis console
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.