Home
last modified time | relevance | path

Searched refs:MediaCodecInfo (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/av/media/libmedia/
DMediaCodecInfo.cpp32 constexpr char MediaCodecInfo::Capabilities::FEATURE_ADAPTIVE_PLAYBACK[];
33 constexpr char MediaCodecInfo::Capabilities::FEATURE_DYNAMIC_TIMESTAMP[];
34 constexpr char MediaCodecInfo::Capabilities::FEATURE_FRAME_PARSING[];
35 constexpr char MediaCodecInfo::Capabilities::FEATURE_INTRA_REFRESH[];
36 constexpr char MediaCodecInfo::Capabilities::FEATURE_MULTIPLE_FRAMES[];
37 constexpr char MediaCodecInfo::Capabilities::FEATURE_SECURE_PLAYBACK[];
38 constexpr char MediaCodecInfo::Capabilities::FEATURE_TUNNELED_PLAYBACK[];
40 void MediaCodecInfo::Capabilities::getSupportedProfileLevels( in getSupportedProfileLevels()
46 void MediaCodecInfo::Capabilities::getSupportedColorFormats( in getSupportedColorFormats()
52 const sp<AMessage> MediaCodecInfo::Capabilities::getDetails() const { in getDetails()
[all …]
DIMediaCodecList.cpp54 virtual sp<MediaCodecInfo> getCodecInfo(size_t index) const in getCodecInfo()
62 return MediaCodecInfo::FromParcel(reply); in getCodecInfo()
131 const sp<MediaCodecInfo> info = getCodecInfo(index); in onTransact()
DAndroid.bp227 "MediaCodecInfo.cpp",
/frameworks/base/media/java/android/media/
DMediaCodecList.java21 import android.media.MediaCodecInfo;
57 public static final MediaCodecInfo getCodecInfoAt(int index) { in getCodecInfoAt()
75 private static MediaCodecInfo[] sAllCodecInfos;
76 private static MediaCodecInfo[] sRegularCodecInfos;
83 ArrayList<MediaCodecInfo> regulars = new ArrayList<MediaCodecInfo>(); in initCodecList()
84 ArrayList<MediaCodecInfo> all = new ArrayList<MediaCodecInfo>(); in initCodecList()
87 MediaCodecInfo info = getNewCodecInfoAt(index); in initCodecList()
98 regulars.toArray(new MediaCodecInfo[regulars.size()]); in initCodecList()
100 all.toArray(new MediaCodecInfo[all.size()]); in initCodecList()
105 private static MediaCodecInfo getNewCodecInfoAt(int index) { in getNewCodecInfoAt()
[all …]
DMediaCodec.java26 import android.media.MediaCodecInfo.CodecCapabilities;
1671 private MediaCodecInfo mCodecInfo;
3759 public MediaCodecInfo getCodecInfo() { in getCodecInfo()
3777 private native final MediaCodecInfo getOwnCodecInfo(); in getOwnCodecInfo()
/frameworks/av/media/libmedia/include/media/
DMediaCodecInfo.h45 struct MediaCodecInfo : public RefBase { struct
115 friend struct MediaCodecInfo;
228 static sp<MediaCodecInfo> FromParcel(const Parcel &parcel);
246 MediaCodecInfo();
248 DISALLOW_COPY_AND_ASSIGN(MediaCodecInfo);
293 void setAttributes(typename std::underlying_type<MediaCodecInfo::Attributes>::type attributes);
306 std::unique_ptr<MediaCodecInfo::CapabilitiesWriter> addMediaType(
326 MediaCodecInfo* mInfo;
333 MediaCodecInfoWriter(MediaCodecInfo* info);
DIMediaCodecList.h28 struct MediaCodecInfo;
36 virtual sp<MediaCodecInfo> getCodecInfo(size_t index) const = 0;
/frameworks/av/media/libstagefright/
DMediaCodecListWriter.cpp34 sp<MediaCodecInfo> info = new MediaCodecInfo(); in addMediaCodecInfo()
42 for (const sp<MediaCodecInfo> &info : mCodecInfos) { in findMediaCodecInfo()
58 std::vector<sp<MediaCodecInfo>> *codecInfos) const { in writeCodecInfos()
59 for (const sp<MediaCodecInfo> &info : mCodecInfos) { in writeCodecInfos()
DMediaCodecListOverrides.h30 struct MediaCodecInfo;
37 void profileCodecs(const std::vector<sp<MediaCodecInfo>> &infos,
42 const std::vector<sp<MediaCodecInfo>> &infos,
DOmxInfoBuilder.cpp61 MediaCodecInfo::CapabilitiesWriter* caps) { in queryCapabilities()
191 typename std::underlying_type<MediaCodecInfo::Attributes>::type attrs = 0; in buildMediaCodecList()
195 attrs |= MediaCodecInfo::kFlagIsVendor; in buildMediaCodecList()
201 attrs |= MediaCodecInfo::kFlagIsHardwareAccelerated; in buildMediaCodecList()
205 attrs |= MediaCodecInfo::kFlagIsEncoder; in buildMediaCodecList()
213 std::unique_ptr<MediaCodecInfo::CapabilitiesWriter> caps = in buildMediaCodecList()
DMediaCodecListOverrides.cpp50 static bool getMeasureSize(const sp<MediaCodecInfo::Capabilities> &caps, int32_t *width, int32_t *h… in getMeasureSize()
73 static void getMeasureBitrate(const sp<MediaCodecInfo::Capabilities> &caps, int32_t *bitrate) { in getMeasureBitrate()
91 bool isEncoder, const AString &mime, const sp<MediaCodecInfo::Capabilities> &caps) { in getMeasureFormat()
129 …bool isEncoder, const AString &name, const AString &mime, const sp<MediaCodecInfo::Capabilities> &… in doProfileCodecs()
206 void profileCodecs(const std::vector<sp<MediaCodecInfo>> &infos, in profileCodecs()
216 const std::vector<sp<MediaCodecInfo>> &infos, in profileCodecs()
221 KeyedVector<AString, sp<MediaCodecInfo::Capabilities>> codecsNeedMeasure; in profileCodecs()
234 const sp<MediaCodecInfo::Capabilities> &caps = in profileCodecs()
DMediaCodecList.cpp222 [](const sp<MediaCodecInfo> &info1, const sp<MediaCodecInfo> &info2) { in MediaCodecList()
261 const MediaCodecInfo &info = *mCodecInfos[startIndex]; in findCodecByType()
266 sp<MediaCodecInfo::Capabilities> capabilities = info.getCapabilitiesFor(type); in findCodecByType()
366 const sp<MediaCodecInfo> info = list->getCodecInfo(matchIndex); in findMatchingCodecs()
/frameworks/wilhelm/src/android/
DVideoCodec_to_android.cpp41 Vector<MediaCodecInfo::ProfileLevel> mProfileLevels;
80 sp<MediaCodecInfo> info = list->getCodecInfo(index); in android_videoCodec_expose()
85 sp<MediaCodecInfo::Capabilities> caps = info->getCapabilitiesFor(kVideoMimeTypes[m]); in android_videoCodec_expose()
91 Vector<MediaCodecInfo::ProfileLevel> &profileLevels = in android_videoCodec_expose()
98 MediaCodecInfo::ProfileLevel profileLevel = profileLevels.itemAt(i); in android_videoCodec_expose()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DCodecUtils.java3 import android.media.MediaCodecInfo;
21 MediaCodecInfo[] codecInfos = codecList.getCodecInfos(); in selectCodecs()
23 for (MediaCodecInfo codecInfo : codecInfos) { in selectCodecs()
/frameworks/av/media/codec2/sfplugin/
DCodec2InfoBuilder.cpp73 MediaCodecInfo::CapabilitiesWriter *caps, in addSupportedProfileLevels()
190 MediaCodecInfo::CapabilitiesWriter *caps, in addSupportedColorFormats()
472 typename std::underlying_type<MediaCodecInfo::Attributes>::type attrs = 0; in buildMediaCodecList()
475 attrs |= MediaCodecInfo::kFlagIsEncoder; in buildMediaCodecList()
478 attrs |= MediaCodecInfo::kFlagIsSoftwareOnly; in buildMediaCodecList()
480 attrs |= MediaCodecInfo::kFlagIsVendor; in buildMediaCodecList()
482 attrs |= MediaCodecInfo::kFlagIsSoftwareOnly; in buildMediaCodecList()
485 attrs |= MediaCodecInfo::kFlagIsHardwareAccelerated; in buildMediaCodecList()
522 std::unique_ptr<MediaCodecInfo::CapabilitiesWriter> caps = in buildMediaCodecList()
DCCodec.h46 struct MediaCodecInfo;
86 void allocate(const sp<MediaCodecInfo> &codecInfo);
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaCodecListWriter.h62 void writeCodecInfos(std::vector<sp<MediaCodecInfo>> *codecInfos) const;
65 std::vector<sp<MediaCodecInfo>> mCodecInfos;
DMediaCodecList.h51 virtual sp<MediaCodecInfo> getCodecInfo(size_t index) const { in getCodecInfo()
94 std::vector<sp<MediaCodecInfo> > mCodecInfos;
DMediaCodec.h190 status_t getCodecInfo(sp<MediaCodecInfo> *codecInfo) const;
324 sp<MediaCodecInfo> mCodecInfo;
/frameworks/av/services/camera/libcameraservice/api2/
DHeicEncoderInfoManager.cpp248 const sp<MediaCodecInfo> info = codecsList->getCodecInfo(idx); in getCodecDetails()
253 const sp<MediaCodecInfo::Capabilities> caps = in getCodecDetails()
273 const sp<MediaCodecInfo> info = codecsList->getCodecInfo(idx++); in getHevcCodecDetails()
280 if (!(info->getAttributes() & MediaCodecInfo::kFlagIsHardwareAccelerated)) { in getHevcCodecDetails()
284 const sp<MediaCodecInfo::Capabilities> caps = in getHevcCodecDetails()
/frameworks/base/media/jni/
Dandroid_media_MediaCodecList.cpp45 sp<MediaCodecInfo> info;
74 sp<MediaCodecInfo> info = mcl->getCodecInfo(ix); in JavaMediaCodecListWrapper()
246 Vector<MediaCodecInfo::ProfileLevel> profileLevels; in android_media_MediaCodecList_getCodecCapabilities()
253 const sp<MediaCodecInfo::Capabilities> &capabilities = in android_media_MediaCodecList_getCodecCapabilities()
296 const MediaCodecInfo::ProfileLevel &src = profileLevels.itemAt(i); in android_media_MediaCodecList_getCodecCapabilities()
/frameworks/av/cmds/stagefright/
Dstagefright.cpp658 KeyedVector<AString, Vector<sp<MediaCodecInfo>>> allMediaTypes; in dumpCodecDetails()
660 sp<MediaCodecInfo> info = list->getCodecInfo(codec_ix); in dumpCodecDetails()
670 allMediaTypes.add(mediaType, Vector<sp<MediaCodecInfo>>()); in dumpCodecDetails()
683 for (const sp<MediaCodecInfo> &info : allMediaTypes.valueAt(type_ix)) { in dumpCodecDetails()
684 sp<MediaCodecInfo::Capabilities> caps = info->getCapabilitiesFor(mediaType.c_str()); in dumpCodecDetails()
717 … list.add(AStringPrintf("encoder: %d", !!(attrs & MediaCodecInfo::kFlagIsEncoder))); in dumpCodecDetails()
718 … list.add(AStringPrintf("vendor: %d", !!(attrs & MediaCodecInfo::kFlagIsVendor))); in dumpCodecDetails()
719 … list.add(AStringPrintf("software-only: %d", !!(attrs & MediaCodecInfo::kFlagIsSoftwareOnly))); in dumpCodecDetails()
720 …list.add(AStringPrintf("hw-accelerated: %d", !!(attrs & MediaCodecInfo::kFlagIsHardwareAccelerated… in dumpCodecDetails()
732 Vector<MediaCodecInfo::ProfileLevel> profileLevels; in dumpCodecDetails()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DCpuVideoTrackDecoder.java22 import android.media.MediaCodecInfo;
23 import android.media.MediaCodecInfo.CodecCapabilities;
189 MediaCodecInfo info = MediaCodecList.getCodecInfoAt(i); in findDecoderCodec()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DDisplaySourceService.java28 import android.media.MediaCodecInfo;
191 MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface); in run()
/frameworks/av/media/libstagefright/tests/
DMediaCodecListOverrides_test.cpp122 std::vector<sp<MediaCodecInfo>> infos; in TEST_F()

12