Lines Matching refs:name

160         const char *name)
164 if (!strcmp(map[i].name, name)) {
220 CHECK(!strcmp("name", atts[0]) &&
236 CHECK(!strcmp("name", atts[0]) &&
252 CHECK(!strcmp("name", atts[0]) &&
278 CHECK(!strcmp("name", atts[0]) &&
301 CHECK(!strcmp("name", atts[0]));
396 MediaProfiles::startElementHandler(void *userData, const char *name, const char **atts)
399 if (strcmp("Video", name) == 0) {
401 } else if (strcmp("Audio", name) == 0) {
403 } else if (strcmp("VideoEncoderCap", name) == 0 &&
406 } else if (strcmp("AudioEncoderCap", name) == 0 &&
409 } else if (strcmp("VideoDecoderCap", name) == 0 &&
412 } else if (strcmp("AudioDecoderCap", name) == 0 &&
415 } else if (strcmp("EncoderOutputFileFormat", name) == 0) {
417 } else if (strcmp("CamcorderProfiles", name) == 0) {
420 } else if (strcmp("EncoderProfile", name) == 0) {
423 } else if (strcmp("ImageEncoding", name) == 0) {
921 int MediaProfiles::getVideoEncoderParamByName(const char *name, video_encoder codec) const
923 ALOGV("getVideoEncoderParamByName: %s for codec %d", name, codec);
936 if (!strcmp("enc.vid.width.min", name)) return mVideoEncoders[index]->mMinFrameWidth;
937 if (!strcmp("enc.vid.width.max", name)) return mVideoEncoders[index]->mMaxFrameWidth;
938 if (!strcmp("enc.vid.height.min", name)) return mVideoEncoders[index]->mMinFrameHeight;
939 if (!strcmp("enc.vid.height.max", name)) return mVideoEncoders[index]->mMaxFrameHeight;
940 if (!strcmp("enc.vid.bps.min", name)) return mVideoEncoders[index]->mMinBitRate;
941 if (!strcmp("enc.vid.bps.max", name)) return mVideoEncoders[index]->mMaxBitRate;
942 if (!strcmp("enc.vid.fps.min", name)) return mVideoEncoders[index]->mMinFrameRate;
943 if (!strcmp("enc.vid.fps.max", name)) return mVideoEncoders[index]->mMaxFrameRate;
945 ALOGE("The given video encoder param name %s is not found", name);
958 int MediaProfiles::getAudioEncoderParamByName(const char *name, audio_encoder codec) const
960 ALOGV("getAudioEncoderParamByName: %s for codec %d", name, codec);
973 if (!strcmp("enc.aud.ch.min", name)) return mAudioEncoders[index]->mMinChannels;
974 if (!strcmp("enc.aud.ch.max", name)) return mAudioEncoders[index]->mMaxChannels;
975 if (!strcmp("enc.aud.bps.min", name)) return mAudioEncoders[index]->mMinBitRate;
976 if (!strcmp("enc.aud.bps.max", name)) return mAudioEncoders[index]->mMaxBitRate;
977 if (!strcmp("enc.aud.hz.min", name)) return mAudioEncoders[index]->mMinSampleRate;
978 if (!strcmp("enc.aud.hz.max", name)) return mAudioEncoders[index]->mMaxSampleRate;
980 ALOGE("The given audio encoder param name %s is not found", name);
1015 int MediaProfiles::getCamcorderProfileParamByName(const char *name,
1020 name, cameraId, quality);
1029 if (!strcmp("duration", name)) return mCamcorderProfiles[index]->mDuration;
1030 if (!strcmp("file.format", name)) return mCamcorderProfiles[index]->mFileFormat;
1031 if (!strcmp("vid.codec", name)) return mCamcorderProfiles[index]->mVideoCodec->mCodec;
1032 if (!strcmp("vid.width", name)) return mCamcorderProfiles[index]->mVideoCodec->mFrameWidth;
1033 if (!strcmp("vid.height", name)) return mCamcorderProfiles[index]->mVideoCodec->mFrameHeight;
1034 if (!strcmp("vid.bps", name)) return mCamcorderProfiles[index]->mVideoCodec->mBitRate;
1035 if (!strcmp("vid.fps", name)) return mCamcorderProfiles[index]->mVideoCodec->mFrameRate;
1036 if (!strcmp("aud.codec", name)) return mCamcorderProfiles[index]->mAudioCodec->mCodec;
1037 if (!strcmp("aud.bps", name)) return mCamcorderProfiles[index]->mAudioCodec->mBitRate;
1038 if (!strcmp("aud.ch", name)) return mCamcorderProfiles[index]->mAudioCodec->mChannels;
1039 if (!strcmp("aud.hz", name)) return mCamcorderProfiles[index]->mAudioCodec->mSampleRate;
1041 ALOGE("The given camcorder profile param id %d name %s is not found", cameraId, name);