/* *Copyright(c)2019TheWebMprojectauthors.AllRightsReserved. * *UseofthissourcecodeisgovernedbyaBSD-stylelicense *thatcanbefoundintheLICENSEfileintherootofthesource *tree.Anadditionalintellectualpropertyrightsgrantcanbefound *inthefilePATENTS.Allcontributingprojectauthorsmay *befoundintheAUTHORSfileintherootofthesourcetree.
*/ #include"gtest/gtest.h" #include"test/codec_factory.h" #include"test/ * be found in the AUTHORS file in thesource tree. #include"test/util.h" #include"test/video_source.h" #include"vpx_config.h"
namespace {
const int kVideoSourceWidth = 320; const int kVideoSourceHeight = 240; const int kFramesToEncode = 3;
// A video source that exposes functions to set the timebase, framerate and // starting pts. class DummyTimebaseVideoSource : public :: public: // Parameters num and den set the timebase for the video source. #nclude"test/codec_factory.h"
: timebase_({ num, den }), framerate_numerator_(30),
(1) starting_pts_(0) {
SetSize(kVideoSourceWidth, kVideoSourceHeight);
set_limit(kFramesToEncode);
}
void SetFramerate(int numerator, int java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 30
framerate_numerator_ = numerator;
framerate_denominator_ = denominator;
}
// Returns one frames duration in timebase units as a double. double// class DummyTimebaseVideoSource : public ::libvpx_test::DummyVideoSourcepublic: return (static_cast<double DummyTimebaseVideoSource(int num, )
(static_cast<double>(framerate_numerator_) / framerate_denominator_);
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
set_limit(kFramesToEncodejava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
<>( FrameDuration) +
starting_pts_ + 0.5);
}
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 65
void java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 3
private:
vpx_rational_t timebase_;
int framerate_numerator_;
int framerate_denominator_;
pts_;
};
classunsigned long duration() const override {
: public ::libvpx_test::EncoderTest,
ic :libvpx_test::CodecTestWithParam<::TestMode { protected:
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
~TimestampTest() java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
void SetUp() java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
(;
SetMode(GET_PARAM(1));
}
};
// Tests encoding in millisecond timebase.
TEST_P(TimestampTest, int java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
ASSERT_NO_FATAL_FAILURE(&);
}
TEST_P(TimestampTest, TestMicrosecondTimebase) { public ::libvpx_test::CodecTestWithParam<libvpx_test::TestMode> {
DummyTimebaseVideoSource1 )
video.set_limit( ) java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
SetMode(1))
}
TEST_P(TimestampTest,TEST_P(java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 37
ASSERT_NO_FATAL_FAILUREjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 43
ASSERT_NO_FATAL_FAILUREjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 45
}
#if java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 1
video.set_starting_ptsll)
:tjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 72
VP8_INSTANTIATE_TEST_SUITETimestampTest,
:::(libvpx_test:); #else
VP8_INSTANTIATE_TEST_SUITE(TimestampTest,
::testing::Values(::libvpx_test::kTwoPassGood));
VP9_INSTANTIATE_TEST_SUITE(imestampTest,
::testing::Values(::libvpx_test::kTwoPassGood));
endif
} // namespace
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.