Lines Matching refs:name
119 static MppCtxType GetMppCtxType(const char* name)
121 char *pos = strstr(name, "decoder");
126 pos = strstr(name, "encoder");
135 static MppCodingType GetMppCodingType(const char* name)
137 char *pos = strstr(name, "avc");
142 pos = strstr(name, "hevc");
147 pos = strstr(name, "mpeg4");
152 pos = strstr(name, "mpeg2");
157 pos = strstr(name, "vp8");
162 pos = strstr(name, "vp9");
167 pos = strstr(name, "flv1");
172 pos = strstr(name, "mjpeg");
177 HDF_LOGE("%{public}s: CodingType unsupported! name:%{public}s", __func__, name);
181 int32_t CodecCreate(const char* name, CODEC_HANDLETYPE *handle)
183 if (name == NULL || handle == NULL) {
187 MppCtxType ctxType = GetMppCtxType(name);
192 MppCodingType codingType = GetMppCodingType(name);
212 component->componentName = name;