Home
last modified time | relevance | path

Searched refs:codecName (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/av/media/tests/benchmark/tests/
DC2DecoderTest.cpp123 for (string codecName : mCodecList) { in TEST_P() local
124 if (codecName.find(GetParam().second) != string::npos && in TEST_P()
125 codecName.find("secure") == string::npos) { in TEST_P()
126 status = mDecoder->createCodec2Component(codecName, format); in TEST_P()
127 ASSERT_EQ(status, 0) << "Create component failed for " << codecName; in TEST_P()
131 ASSERT_EQ(status, 0) << "Decoder failed for " << codecName; in TEST_P()
138 ALOGV("codec : %s", codecName.c_str()); in TEST_P()
139 mDecoder->dumpStatistics(GetParam().first, durationUs, codecName, in TEST_P()
DC2EncoderTest.cpp127 for (string codecName : mCodecList) { in TEST_P() local
128 if (codecName.find(GetParam().second) != string::npos) { in TEST_P()
129 status = mEncoder->createCodec2Component(codecName, format); in TEST_P()
130 ASSERT_EQ(status, 0) << "Create component failed for " << codecName; in TEST_P()
135 ASSERT_EQ(status, 0) << "Encoder failed for " << codecName; in TEST_P()
142 ALOGV("codec : %s", codecName.c_str()); in TEST_P()
143 mEncoder->dumpStatistics(GetParam().first, durationUs, codecName, in TEST_P()
DDecoderTest.cpp78 string codecName = get<1>(params); in TEST_P() local
81 status = decoder->decode(inputBuffer, frameInfo, codecName, asyncMode); in TEST_P()
82 ASSERT_EQ(status, AMEDIA_OK) << "Decoder failed for " << codecName; in TEST_P()
85 ALOGV("codec : %s", codecName.c_str()); in TEST_P()
87 decoder->dumpStatistics(inputReference, codecName, (asyncMode ? "async" : "sync"), in TEST_P()
DEncoderTest.cpp134 string codecName = get<1>(params); in TEST_P() local
136 status = encoder->encode(codecName, eleStream, eleSize, asyncMode, encParams, (char *)mime); in TEST_P()
137 ASSERT_EQ(status, 0) << "Encoder failed for " << codecName; in TEST_P()
140 ALOGV("codec : %s", codecName.c_str()); in TEST_P()
142 encoder->dumpStatistics(inputReference, extractor->getClipDuration(), codecName, in TEST_P()
/frameworks/av/media/libstagefright/xmlparser/test/
DXMLParserTest.cpp35 string codecName; member
42 string codecName; member
60 void setCodecProperties(string codecName, bool isEncoder, int32_t order, set<string> quirkSet,
66 string codecName, vector<pair<string, string>> domain);
72 void checkRoleMap(int32_t index, bool isEncoder, string typeName, string codecName,
174 void XMLParseTest::setCodecProperties(string codecName, bool isEncoder, int32_t order, in setCodecProperties() argument
187 codecProperty.codecName = codecName; in setCodecProperties()
200 string typeName, string codecName, in setRoleProperties() argument
205 roleProperty.codecName = codecName; in setRoleProperties()
254 void XMLParseTest::checkRoleMap(int32_t index, bool isEncoder, string typeName, string codecName, in checkRoleMap() argument
[all …]
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DDecoderTest.java156 for (String codecName : mediaCodecs) { in testDecoder()
173 int status = decoder.decode(inputBuffer, frameInfo, mAsyncMode, format, codecName); in testDecoder()
176 " with codec: " + codecName, 0, status); in testDecoder()
177 decoder.dumpStatistics(mInputFile, codecName, (mAsyncMode ? "async" : "sync"), in testDecoder()
180 codecName); in testDecoder()
209 for (String codecName : mediaCodecs) { in testNativeDecoder()
213 mInputFilePath, mInputFile, mStatsFile, codecName, mAsyncMode); in testNativeDecoder()
DEncoderTest.java228 for (String codecName : mediaCodecs) { in testEncoder()
266 status = encoder.encode(codecName, encodeFormat, mMime, ENCODE_DEFAULT_FRAME_RATE, in testEncoder()
270 codecName + " encoder returned error " + status + " for " + "mime:" + " " + in testEncoder()
285 encoder.dumpStatistics(inputReference, codecName, (asyncMode ? "async" : "sync"), in testEncoder()
287 Log.i(TAG, "Encoding complete for mime: " + mMime + " with codec: " + codecName + in testEncoder()
302 for (String codecName : mediaCodecs) { in testNativeEncoder()
305 .Encode(mFileDirPath, mInputFile, mStatsFile, codecName, mMime, mBitRate, in testNativeEncoder()
308 assertEquals(codecName + " encoder returned error " + status + " for " + "mime:" + " " + in testNativeEncoder()
/frameworks/av/media/tests/benchmark/src/native/common/
DBenchmarkCommon.cpp66 AMediaCodec *createMediaCodec(AMediaFormat *format, const char *mime, string codecName, in createMediaCodec() argument
75 if (!codecName.empty()) { in createMediaCodec()
76 codec = AMediaCodec_createCodecByName(codecName.c_str()); in createMediaCodec()
78 ALOGE("Unable to create codec by name: %s", codecName.c_str()); in createMediaCodec()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeDecoder.cpp98 const char *codecName = env->GetStringUTFChars(jCodecName, nullptr); in Java_com_android_media_benchmark_library_Native_Decode() local
99 string sCodecName = string(codecName); in Java_com_android_media_benchmark_library_Native_Decode()
105 env->ReleaseStringUTFChars(jCodecName, codecName); in Java_com_android_media_benchmark_library_Native_Decode()
114 env->ReleaseStringUTFChars(jCodecName, codecName); in Java_com_android_media_benchmark_library_Native_Decode()
DNativeEncoder.cpp43 const char *codecName = env->GetStringUTFChars(jCodecName, nullptr); in Java_com_android_media_benchmark_library_Native_Encode() local
44 string sCodecName = string(codecName); in Java_com_android_media_benchmark_library_Native_Encode()
108 env->ReleaseStringUTFChars(jCodecName, codecName); in Java_com_android_media_benchmark_library_Native_Encode()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DDecoder.java63 private MediaCodec createCodec(String codecName, MediaFormat format) throws IOException { in createCodec() argument
67 if (codecName.isEmpty()) { in createCodec()
78 codec = MediaCodec.createByCodecName(codecName); in createCodec()
79 Log.i(TAG, "Decoder created with codec name: " + codecName + " mime: " + mime); in createCodec()
84 Log.e(TAG, "Failed to create decoder for " + codecName + " mime:" + mime); in createCodec()
103 @NonNull MediaFormat format, String codecName) throws IOException { in decode() argument
113 mCodec = createCodec(codecName, format); in decode()
DEncoder.java79 private MediaCodec createCodec(String codecName, String mime) throws IOException { in createCodec() argument
82 if (codecName.isEmpty()) { in createCodec()
93 codec = MediaCodec.createByCodecName(codecName); in createCodec()
94 Log.i(TAG, "Encoder created with codec name: " + codecName + " and mime: " + mime); in createCodec()
99 Log.e(TAG, "Failed to create encoder for " + codecName + " mime: " + mime); in createCodec()
116 public int encode(String codecName, MediaFormat encodeFormat, String mime, int frameRate, in encode() argument
124 mCodec = createCodec(codecName, mime); in encode()
DNative.java28 String codecName, boolean asyncMode); in Decode() argument
31 String codecName, String mime, int bitRate, int colorFormat, int frameInterval, in Encode() argument
/frameworks/opt/net/voip/src/jni/rtp/
DAudioCodec.cpp39 AudioCodec *newAudioCodec(const char *codecName) in newAudioCodec() argument
43 if (strcasecmp(codecName, type->name) == 0) { in newAudioCodec()
DAudioCodec.h36 AudioCodec *newAudioCodec(const char *codecName);
/frameworks/av/services/camera/libcameraservice/api2/
DHeicEncoderInfoManager.cpp181 const char* codecName, in getCodecSizeRange() argument
186 if (codecName == nullptr || minSize == nullptr || maxSize == nullptr || in getCodecSizeRange()
194 ALOGE("%s: Failed to query size range for codec %s", __FUNCTION__, codecName); in getCodecSizeRange()
197 ALOGV("%s: %s codec's size range is %s", __FUNCTION__, codecName, sizeRange.c_str()); in getCodecSizeRange()
209 __FUNCTION__, codecName, sizeRange.c_str()); in getCodecSizeRange()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DDecoder.cpp153 string &codecName, bool asyncMode, FILE *outFp) { in decode() argument
165 mCodec = createMediaCodec(mFormat, mime, codecName, false /*isEncoder*/); in decode()
223 if (codecName.empty()) { in decode()
226 codecName.assign(decName); in decode()
DC2Decoder.h32 int32_t createCodec2Component(string codecName, AMediaFormat *format);
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.h80 int32_t encode(std::string &codecName, std::ifstream &eleStream, size_t eleSize, bool asyncMode,
83 void dumpStatistics(string inputReference, int64_t durationUs, string codecName = "",
DEncoder.cpp191 int32_t Encoder::encode(string &codecName, ifstream &eleStream, size_t eleSize, bool asyncMode, in encode() argument
222 mCodec = createMediaCodec(mFormat, mMime, codecName, true /*isEncoder*/); in encode()
297 if (codecName.empty()) { in encode()
300 codecName.assign(encName); in encode()
DC2Encoder.h39 int32_t createCodec2Component(string codecName, AMediaFormat *format);
/frameworks/av/media/libstagefright/
DMediaCodecList.cpp233 std::string codecName = (*it)->getCodecName(); in MediaCodecList() local
234 if (codecsSeen.count(codecName) == 0) { in MediaCodecList()
235 codecsSeen.emplace(codecName); in MediaCodecList()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaCodecListWriter.h57 std::unique_ptr<MediaCodecInfoWriter> findMediaCodecInfo(const char *codecName);
/frameworks/av/media/tests/benchmark/src/native/muxer/
DMuxer.h54 void dumpStatistics(string inputReference, string codecName = "", string statsFile = "");
/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp276 std::string codecName() const { in codecName() function
1026 mState->codecName().c_str(), codec.rank.c_str(), rank); in updateMediaCodec()
1043 ALOGD("enabling %s", mState->codecName().c_str()); in updateMediaCodec()
1046 ALOGD("disabling %s", mState->codecName().c_str()); in updateMediaCodec()
1080 ALOGV("adding %s to %s", key.c_str(), mState->codecName().c_str()); in addQuirk()
1132 mCurrent.push_back({ codecName(), codecIt, typeIt, update }); in enterType()
1462 const auto &codecName = codec.first; in generateRoleMap() local
1463 if (codecName == "<dummy>") { in generateRoleMap()
1511 nodeInfo.name = codecName; in generateRoleMap()

12