Lines Matching defs:name

166 MediaProfiles::findTagForName(const MediaProfiles::NameToTagMap *map, size_t nMappings, const char *name)
170 if (!strcmp(map[i].name, name)) {
226 CHECK(!strcmp("name", atts[0]) &&
242 CHECK(!strcmp("name", atts[0]) &&
258 CHECK(!strcmp("name", atts[0]) &&
284 CHECK(!strcmp("name", atts[0]) &&
308 CHECK(!strcmp("name", atts[0]));
403 CHECK(!strcmp("name", atts[0]) &&
438 MediaProfiles::startElementHandler(void *userData, const char *name, const char **atts)
441 if (strcmp("Video", name) == 0) {
443 } else if (strcmp("Audio", name) == 0) {
445 } else if (strcmp("VideoEncoderCap", name) == 0 &&
448 } else if (strcmp("AudioEncoderCap", name) == 0 &&
451 } else if (strcmp("VideoDecoderCap", name) == 0 &&
454 } else if (strcmp("AudioDecoderCap", name) == 0 &&
457 } else if (strcmp("EncoderOutputFileFormat", name) == 0) {
459 } else if (strcmp("CamcorderProfiles", name) == 0) {
462 } else if (strcmp("EncoderProfile", name) == 0) {
465 } else if (strcmp("ImageEncoding", name) == 0) {
467 } else if (strcmp("VideoEditorCap", name) == 0) {
469 } else if (strcmp("ExportVideoProfile", name) == 0) {
980 int MediaProfiles::getVideoEncoderParamByName(const char *name, video_encoder codec) const
982 ALOGV("getVideoEncoderParamByName: %s for codec %d", name, codec);
995 if (!strcmp("enc.vid.width.min", name)) return mVideoEncoders[index]->mMinFrameWidth;
996 if (!strcmp("enc.vid.width.max", name)) return mVideoEncoders[index]->mMaxFrameWidth;
997 if (!strcmp("enc.vid.height.min", name)) return mVideoEncoders[index]->mMinFrameHeight;
998 if (!strcmp("enc.vid.height.max", name)) return mVideoEncoders[index]->mMaxFrameHeight;
999 if (!strcmp("enc.vid.bps.min", name)) return mVideoEncoders[index]->mMinBitRate;
1000 if (!strcmp("enc.vid.bps.max", name)) return mVideoEncoders[index]->mMaxBitRate;
1001 if (!strcmp("enc.vid.fps.min", name)) return mVideoEncoders[index]->mMinFrameRate;
1002 if (!strcmp("enc.vid.fps.max", name)) return mVideoEncoders[index]->mMaxFrameRate;
1004 ALOGE("The given video encoder param name %s is not found", name);
1008 const char *name, int codec) const
1010 ALOGV("getVideoEditorExportParamByName: name %s codec %d", name, codec);
1024 if (!strcmp("videoeditor.export.profile", name))
1026 if (!strcmp("videoeditor.export.level", name))
1029 ALOGE("The given video editor export param name %s is not found", name);
1032 int MediaProfiles::getVideoEditorCapParamByName(const char *name) const
1034 ALOGV("getVideoEditorCapParamByName: %s", name);
1041 if (!strcmp("videoeditor.input.width.max", name))
1043 if (!strcmp("videoeditor.input.height.max", name))
1045 if (!strcmp("videoeditor.output.width.max", name))
1047 if (!strcmp("videoeditor.output.height.max", name))
1049 if (!strcmp("maxPrefetchYUVFrames", name))
1052 ALOGE("The given video editor param name %s is not found", name);
1065 int MediaProfiles::getAudioEncoderParamByName(const char *name, audio_encoder codec) const
1067 ALOGV("getAudioEncoderParamByName: %s for codec %d", name, codec);
1080 if (!strcmp("enc.aud.ch.min", name)) return mAudioEncoders[index]->mMinChannels;
1081 if (!strcmp("enc.aud.ch.max", name)) return mAudioEncoders[index]->mMaxChannels;
1082 if (!strcmp("enc.aud.bps.min", name)) return mAudioEncoders[index]->mMinBitRate;
1083 if (!strcmp("enc.aud.bps.max", name)) return mAudioEncoders[index]->mMaxBitRate;
1084 if (!strcmp("enc.aud.hz.min", name)) return mAudioEncoders[index]->mMinSampleRate;
1085 if (!strcmp("enc.aud.hz.max", name)) return mAudioEncoders[index]->mMaxSampleRate;
1087 ALOGE("The given audio encoder param name %s is not found", name);
1122 int MediaProfiles::getCamcorderProfileParamByName(const char *name,
1127 name, cameraId, quality);
1136 if (!strcmp("duration", name)) return mCamcorderProfiles[index]->mDuration;
1137 if (!strcmp("file.format", name)) return mCamcorderProfiles[index]->mFileFormat;
1138 if (!strcmp("vid.codec", name)) return mCamcorderProfiles[index]->mVideoCodec->mCodec;
1139 if (!strcmp("vid.width", name)) return mCamcorderProfiles[index]->mVideoCodec->mFrameWidth;
1140 if (!strcmp("vid.height", name)) return mCamcorderProfiles[index]->mVideoCodec->mFrameHeight;
1141 if (!strcmp("vid.bps", name)) return mCamcorderProfiles[index]->mVideoCodec->mBitRate;
1142 if (!strcmp("vid.fps", name)) return mCamcorderProfiles[index]->mVideoCodec->mFrameRate;
1143 if (!strcmp("aud.codec", name)) return mCamcorderProfiles[index]->mAudioCodec->mCodec;
1144 if (!strcmp("aud.bps", name)) return mCamcorderProfiles[index]->mAudioCodec->mBitRate;
1145 if (!strcmp("aud.ch", name)) return mCamcorderProfiles[index]->mAudioCodec->mChannels;
1146 if (!strcmp("aud.hz", name)) return mCamcorderProfiles[index]->mAudioCodec->mSampleRate;
1148 ALOGE("The given camcorder profile param id %d name %s is not found", cameraId, name);