Lines Matching defs:MediaProfiles
20 #define LOG_TAG "MediaProfiles"
27 #include <media/MediaProfiles.h>
33 Mutex MediaProfiles::sLock;
34 bool MediaProfiles::sIsInitialized = false;
35 MediaProfiles *MediaProfiles::sInstance = NULL;
37 const MediaProfiles::NameToTagMap MediaProfiles::sVideoEncoderNameMap[] = {
43 const MediaProfiles::NameToTagMap MediaProfiles::sAudioEncoderNameMap[] = {
51 const MediaProfiles::NameToTagMap MediaProfiles::sFileFormatMap[] = {
56 const MediaProfiles::NameToTagMap MediaProfiles::sVideoDecoderNameMap[] = {
60 const MediaProfiles::NameToTagMap MediaProfiles::sAudioDecoderNameMap[] = {
64 const MediaProfiles::NameToTagMap MediaProfiles::sCamcorderQualityNameMap[] = {
85 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec)
96 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec)
106 MediaProfiles::logVideoEncoderCap(const MediaProfiles::VideoEncoderCap& cap)
117 MediaProfiles::logAudioEncoderCap(const MediaProfiles::AudioEncoderCap& cap)
127 MediaProfiles::logVideoDecoderCap(const MediaProfiles::VideoDecoderCap& cap)
134 MediaProfiles::logAudioDecoderCap(const MediaProfiles::AudioDecoderCap& cap)
141 MediaProfiles::logVideoEditorCap(const MediaProfiles::VideoEditorCap& cap)
151 MediaProfiles::findTagForName(const MediaProfiles::NameToTagMap *map, size_t nMappings, const char *name)
163 /*static*/ MediaProfiles::VideoCodec*
164 MediaProfiles::createVideoCodec(const char **atts, MediaProfiles *profiles)
176 MediaProfiles::VideoCodec *videoCodec =
177 new MediaProfiles::VideoCodec(static_cast<video_encoder>(codec),
187 /*static*/ MediaProfiles::AudioCodec*
188 MediaProfiles::createAudioCodec(const char **atts, MediaProfiles *profiles)
198 MediaProfiles::AudioCodec *audioCodec =
199 new MediaProfiles::AudioCodec(static_cast<audio_encoder>(codec),
208 /*static*/ MediaProfiles::AudioDecoderCap*
209 MediaProfiles::createAudioDecoderCap(const char **atts)
218 MediaProfiles::AudioDecoderCap *cap =
219 new MediaProfiles::AudioDecoderCap(static_cast<audio_decoder>(codec));
224 /*static*/ MediaProfiles::VideoDecoderCap*
225 MediaProfiles::createVideoDecoderCap(const char **atts)
234 MediaProfiles::VideoDecoderCap *cap =
235 new MediaProfiles::VideoDecoderCap(static_cast<video_decoder>(codec));
240 /*static*/ MediaProfiles::VideoEncoderCap*
241 MediaProfiles::createVideoEncoderCap(const char **atts)
258 MediaProfiles::VideoEncoderCap *cap =
259 new MediaProfiles::VideoEncoderCap(static_cast<video_encoder>(codec),
266 /*static*/ MediaProfiles::AudioEncoderCap*
267 MediaProfiles::createAudioEncoderCap(const char **atts)
282 MediaProfiles::AudioEncoderCap *cap =
283 new MediaProfiles::AudioEncoderCap(static_cast<audio_encoder>(codec), atoi(atts[5]), atoi(atts[7]),
291 MediaProfiles::createEncoderOutputFileFormat(const char **atts)
311 /*static*/ MediaProfiles::CamcorderProfile*
312 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds)
326 MediaProfiles::CamcorderProfile *profile = new MediaProfiles::CamcorderProfile;
337 MediaProfiles::ImageEncodingQualityLevels*
338 MediaProfiles::findImageEncodingQualityLevels(int cameraId) const
350 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts)
367 MediaProfiles::getCameraId(const char** atts)
374 void MediaProfiles::addStartTimeOffset(int cameraId, const char** atts)
385 /*static*/ MediaProfiles::ExportVideoProfile*
386 MediaProfiles::createExportVideoProfile(const char **atts)
397 MediaProfiles::ExportVideoProfile *profile =
398 new MediaProfiles::ExportVideoProfile(
403 /*static*/ MediaProfiles::VideoEditorCap*
404 MediaProfiles::createVideoEditorCap(const char **atts, MediaProfiles *profiles)
412 MediaProfiles::VideoEditorCap *pVideoEditorCap =
413 new MediaProfiles::VideoEditorCap(atoi(atts[1]), atoi(atts[3]),
423 MediaProfiles::startElementHandler(void *userData, const char *name, const char **atts)
425 MediaProfiles *profiles = (MediaProfiles *) userData;
469 void MediaProfiles::initRequiredProfileRefs(const Vector<int>& cameraIds) {
487 int MediaProfiles::getRequiredProfileRefIndex(int cameraId) {
496 void MediaProfiles::checkAndAddRequiredProfilesIfNecessary() {
614 /*static*/ MediaProfiles*
615 MediaProfiles::getInstance()
642 /*static*/ MediaProfiles::VideoEncoderCap*
643 MediaProfiles::createDefaultH263VideoEncoderCap()
645 return new MediaProfiles::VideoEncoderCap(
649 /*static*/ MediaProfiles::VideoEncoderCap*
650 MediaProfiles::createDefaultM4vVideoEncoderCap()
652 return new MediaProfiles::VideoEncoderCap(
658 MediaProfiles::createDefaultVideoEncoders(MediaProfiles *profiles)
664 /*static*/ MediaProfiles::CamcorderProfile*
665 MediaProfiles::createDefaultCamcorderTimeLapseQcifProfile(camcorder_quality quality)
667 MediaProfiles::VideoCodec *videoCodec =
668 new MediaProfiles::VideoCodec(VIDEO_ENCODER_H263, 1000000, 176, 144, 20);
671 CamcorderProfile *profile = new MediaProfiles::CamcorderProfile;
681 /*static*/ MediaProfiles::CamcorderProfile*
682 MediaProfiles::createDefaultCamcorderTimeLapse480pProfile(camcorder_quality quality)
684 MediaProfiles::VideoCodec *videoCodec =
685 new MediaProfiles::VideoCodec(VIDEO_ENCODER_H263, 20000000, 720, 480, 20);
688 CamcorderProfile *profile = new MediaProfiles::CamcorderProfile;
699 MediaProfiles::createDefaultCamcorderTimeLapseLowProfiles(
700 MediaProfiles::CamcorderProfile **lowTimeLapseProfile,
701 MediaProfiles::CamcorderProfile **lowSpecificTimeLapseProfile) {
707 MediaProfiles::createDefaultCamcorderTimeLapseHighProfiles(
708 MediaProfiles::CamcorderProfile **highTimeLapseProfile,
709 MediaProfiles::CamcorderProfile **highSpecificTimeLapseProfile) {
714 /*static*/ MediaProfiles::CamcorderProfile*
715 MediaProfiles::createDefaultCamcorderQcifProfile(camcorder_quality quality)
717 MediaProfiles::VideoCodec *videoCodec =
718 new MediaProfiles::VideoCodec(VIDEO_ENCODER_H263, 192000, 176, 144, 20);
720 MediaProfiles::AudioCodec *audioCodec =
721 new MediaProfiles::AudioCodec(AUDIO_ENCODER_AMR_NB, 12200, 8000, 1);
723 MediaProfiles::CamcorderProfile *profile = new MediaProfiles::CamcorderProfile;
733 /*static*/ MediaProfiles::CamcorderProfile*
734 MediaProfiles::createDefaultCamcorderCifProfile(camcorder_quality quality)
736 MediaProfiles::VideoCodec *videoCodec =
737 new MediaProfiles::VideoCodec(VIDEO_ENCODER_H263, 360000, 352, 288, 20);
740 CamcorderProfile *profile = new MediaProfiles::CamcorderProfile;
751 MediaProfiles::createDefaultCamcorderLowProfiles(
752 MediaProfiles::CamcorderProfile **lowProfile,
753 MediaProfiles::CamcorderProfile **lowSpecificProfile) {
759 MediaProfiles::createDefaultCamcorderHighProfiles(
760 MediaProfiles::CamcorderProfile **highProfile,
761 MediaProfiles::CamcorderProfile **highSpecificProfile) {
767 MediaProfiles::createDefaultCamcorderProfiles(MediaProfiles *profiles)
770 MediaProfiles::CamcorderProfile *lowProfile, *lowSpecificProfile;
776 MediaProfiles::CamcorderProfile* highProfile, *highSpecificProfile;
782 MediaProfiles::CamcorderProfile *lowTimeLapseProfile, *lowSpecificTimeLapseProfile;
788 MediaProfiles::CamcorderProfile *highTimeLapseProfile, *highSpecificTimeLapseProfile;
800 MediaProfiles::createDefaultAudioEncoders(MediaProfiles *profiles)
806 MediaProfiles::createDefaultVideoDecoders(MediaProfiles *profiles)
808 MediaProfiles::VideoDecoderCap *cap =
809 new MediaProfiles::VideoDecoderCap(VIDEO_DECODER_WMV);
815 MediaProfiles::createDefaultAudioDecoders(MediaProfiles *profiles)
817 MediaProfiles::AudioDecoderCap *cap =
818 new MediaProfiles::AudioDecoderCap(AUDIO_DECODER_WMA);
824 MediaProfiles::createDefaultEncoderOutputFileFormats(MediaProfiles *profiles)
830 /*static*/ MediaProfiles::AudioEncoderCap*
831 MediaProfiles::createDefaultAmrNBEncoderCap()
833 return new MediaProfiles::AudioEncoderCap(
838 MediaProfiles::createDefaultImageEncodingQualityLevels(MediaProfiles *profiles)
849 MediaProfiles::createDefaultVideoEditorCap(MediaProfiles *profiles)
852 new MediaProfiles::VideoEditorCap(
860 MediaProfiles::createDefaultExportVideoProfiles(MediaProfiles *profiles)
874 /*static*/ MediaProfiles*
875 MediaProfiles::createDefaultInstance()
877 MediaProfiles *profiles = new MediaProfiles;
890 /*static*/ MediaProfiles*
891 MediaProfiles::createInstanceFromXmlFile(const char *xml)
899 MediaProfiles *profiles = new MediaProfiles();
943 Vector<output_format> MediaProfiles::getOutputFileFormats() const
948 Vector<video_encoder> MediaProfiles::getVideoEncoders() const
957 int MediaProfiles::getVideoEncoderParamByName(const char *name, video_encoder codec) const
984 int MediaProfiles::getVideoEditorExportParamByName(
1009 int MediaProfiles::getVideoEditorCapParamByName(const char *name) const
1033 Vector<audio_encoder> MediaProfiles::getAudioEncoders() const
1042 int MediaProfiles::getAudioEncoderParamByName(const char *name, audio_encoder codec) const
1068 Vector<video_decoder> MediaProfiles::getVideoDecoders() const
1077 Vector<audio_decoder> MediaProfiles::getAudioDecoders() const
1086 int MediaProfiles::getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const
1099 int MediaProfiles::getCamcorderProfileParamByName(const char *name,
1129 bool MediaProfiles::hasCamcorderProfile(int cameraId, camcorder_quality quality) const
1134 Vector<int> MediaProfiles::getImageEncodingQualityLevels(int cameraId) const
1144 int MediaProfiles::getStartTimeOffsetMs(int cameraId) const {
1154 MediaProfiles::~MediaProfiles()