Home
last modified time | relevance | path

Searched refs:ECODataStatus (Results 1 – 5 of 5) sorted by relevance

/hardware/google/av/media/eco/include/eco/
DECOData.h31 enum class ECODataStatus { enum
98 ECODataStatus set(const std::string& key, const ECODataValueType& value);
99 ECODataStatus find(const std::string& key, ECODataValueType* out) const;
102 ECODataStatus setString(const std::string& key, const std::string& value);
103 ECODataStatus findString(const std::string& key, std::string* out) const;
106 ECODataStatus setInt32(const std::string& key, int32_t value);
107 ECODataStatus findInt32(const std::string& key, int32_t* out) const;
110 ECODataStatus setInt64(const std::string& key, int64_t value);
111 ECODataStatus findInt64(const std::string& key, int64_t* out) const;
114 ECODataStatus setFloat(const std::string& key, float value);
[all …]
/hardware/google/av/media/eco/
DECOData.cpp186 ECODataStatus ECOData::setString(const std::string& key, const std::string& value) { in setString()
188 return ECODataStatus::INVALID_ARGUMENT; in setString()
194 return ECODataStatus::OK; in setString()
197 ECODataStatus ECOData::findString(const std::string& key, std::string* value) const { in findString()
199 return ECODataStatus::INVALID_ARGUMENT; in findString()
204 return ECODataStatus::KEY_NOT_EXIST; in findString()
211 return ECODataStatus::OK; in findString()
217 ECODataStatus ECOData::setValue(const std::string& key, T value) { in setValue()
219 return ECODataStatus::INVALID_ARGUMENT; in setValue()
223 return ECODataStatus::OK; in setValue()
[all …]
DECOSession.cpp157 if (stats.findString(KEY_STATS_TYPE, &statsType) != ECODataStatus::OK) { in processStats()
475 &mListenerQpCondition.mQpBlocknessThreshold) != ECODataStatus::OK || in addInfoListener()
477 &mListenerQpCondition.mQpChangeThreshold) != ECODataStatus::OK || in addInfoListener()
/hardware/google/av/media/eco/tests/
DEcoDataTest.cpp62 EXPECT_TRUE(data->findString(ENCODER_TYPE, &testValue) == ECODataStatus::OK); in TEST()
67 EXPECT_EQ(data->findString(ENCODER_TYPE, &testValue), ECODataStatus::OK); in TEST()
85 EXPECT_TRUE(data->findString(it->first, &testValue) == ECODataStatus::OK); in TEST()
94 EXPECT_TRUE(data->findString("encoder-name", nullptr) != ECODataStatus::OK); in TEST()
98 EXPECT_TRUE(data->findString("encoder-name", &testValue) != ECODataStatus::OK); in TEST()
101 EXPECT_TRUE(data->setString("", "avc") != ECODataStatus::OK); in TEST()
104 EXPECT_TRUE(data->findString("", &testValue) != ECODataStatus::OK); in TEST()
112 EXPECT_TRUE(data->findInt32(ENCODER_TARGET_BITRATE_BPS, &testValue) == ECODataStatus::OK); in TEST()
117 EXPECT_EQ(data->findInt32(ENCODER_TARGET_BITRATE_BPS, &testValue), ECODataStatus::OK); in TEST()
135 EXPECT_TRUE(data->findInt32(it->first, &testValue) == ECODataStatus::OK); in TEST()
[all …]
DEcoSessionTest.cpp256 EXPECT_TRUE(info.findString(KEY_INFO_TYPE, &infoType) == ECODataStatus::OK); in TEST_F()
261 EXPECT_TRUE(info.findInt32(ENCODER_TYPE, &codecType) == ECODataStatus::OK); in TEST_F()
265 EXPECT_TRUE(info.findInt32(ENCODER_PROFILE, &profile) == ECODataStatus::OK); in TEST_F()
269 EXPECT_TRUE(info.findInt32(ENCODER_LEVEL, &level) == ECODataStatus::OK); in TEST_F()
273 EXPECT_TRUE(info.findInt32(ENCODER_TARGET_BITRATE_BPS, &bitrate) == ECODataStatus::OK); in TEST_F()
277 EXPECT_TRUE(info.findInt32(ENCODER_KFI_FRAMES, &kfi) == ECODataStatus::OK); in TEST_F()
291 EXPECT_TRUE(info.findString(KEY_INFO_TYPE, &infoType) == ECODataStatus::OK); in TEST_F()
295 EXPECT_TRUE(info.findInt8(FRAME_TYPE, &frameType) == ECODataStatus::OK); in TEST_F()
299 EXPECT_TRUE(info.findInt32(FRAME_NUM, &frameNum) == ECODataStatus::OK); in TEST_F()
303 EXPECT_TRUE(info.findInt64(FRAME_PTS_US, &framePtsUs) == ECODataStatus::OK); in TEST_F()
[all …]