Medya codec'leri
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Android 10 (API düzeyi 29) ve sonraki sürümlerde, MediaCodecInfo
içinde codec hakkında daha fazla bilgi veren yöntemler bulunur:
isSoftwareOnly()
- Codec yalnızca yazılımda çalışıyorsa true değerini döndürür. Yazılım codec'leri, oluşturma performansı hakkında herhangi bir garanti vermez.
isHardwareAccelerated()
- Bir codec donanım tarafından hızlandırılıyorsa true değerini döndürür.
isVendor()
- Codec, cihaz satıcısı tarafından sağlanıyorsa true (doğru), Android platformu tarafından sağlanıyorsa false (yanlış) değerini döndürür.
isAlias()
MediaCodecList
, aynı temel codec için alternatif codec adları (takma adlar) kullanılarak ek girişler içerebilir. Bu yöntem, bu girişteki codec başka bir codec'in diğer adıysa true değerini döndürür.
Ayrıca,
MediaCodec.getCanonicalName()
bir takma ad aracılığıyla oluşturulan codec'ler için temel codec adını döndürür.
Performans noktası, bir codec'in videoyu belirli bir yükseklik, genişlik ve kare hızında oluşturma yeteneğini ifade eder. Örneğin, UHD_60
performans noktası, saniyede 60 kare hızında oluşturulan Ultra Yüksek Çözünürlüklü videoyu (3840x2160 piksel) temsil eder.
Yöntem,
MediaCodecInfo.VideoCapabilities.getSupportedPerformancePoints()
kodekin oluşturabileceği veya yakalayabileceği
PerformancePoint
girişlerin listesini döndürür.
Belirli bir PerformancePoint
öğesinin başka bir öğeyi kapsayıp kapsamadığını PerformancePoint.covers(PerformancePoint)
numaralı telefonu arayarak kontrol edebilirsiniz.
Örneğin, UHD_60.covers(UHD_50)
doğru değerini döndürür.
Donanım hızlandırmalı tüm codec'ler için performans noktalarının listesi sağlanır.
Codec, en düşük standart performans noktasını bile karşılamıyorsa bu liste boş olabilir.
Android 10 (API düzeyi 29) ve sonraki sürümlere yükseltilen ancak satıcı görüntüsü güncellenmeyen cihazlarda performans noktası verilerinin bulunmayacağını unutmayın. Bu veriler, satıcı HAL'sinden gelir. Bu durumda getSupportedPerformancePoints()
null değerini döndürür.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-08-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-08-27 UTC."],[],[],null,["Beginning with Android 10 (API level 29) and higher, there are methods in\n[`MediaCodecInfo`](/reference/android/media/MediaCodecInfo) that\nreveal more information about a codec:\n\n[`isSoftwareOnly()`](/reference/android/media/MediaCodecInfo#isSoftwareOnly)\n: Returns true if the codec runs in software only. Software codecs make no\n guarantees about rendering performance.\n\n[`isHardwareAccelerated()`](/reference/android/media/MediaCodecInfo#isHardwareAccelerated)\n: Returns true if a codec is accelerated by hardware.\n\n[`isVendor()`](/reference/android/media/MediaCodecInfo#isVendor)\n: Returns true if the codec is provided by the device vendor or false if provided\n by the Android platform.\n\n[`isAlias()`](/reference/android/media/MediaCodecInfo#isAlias)\n: `MediaCodecList` may contain additional entries for the same underlying codec\n using an alternate codec name/s (alias/es). This method returns true if the\n codec in this entry is an alias for another codec.\n\nIn addition,\n[`MediaCodec.getCanonicalName()`](/reference/android/media/MediaCodecInfo#getCanonicalName)\nreturns the underlying codec name for codecs created via an alias.\n\nPerformance Points\n\nA *performance point* represents a codec's ability to render video at a specific\nheight, width and frame rate. For example, the `UHD_60` performance point\nrepresents Ultra High Definition video (3840x2160 pixels) rendered at 60 frames\nper second.\n\nThe method\n[`MediaCodecInfo.VideoCapabilities.getSupportedPerformancePoints()`](/reference/android/media/MediaCodecInfo.VideoCapabilities#getSupportedPerformancePoints())\nreturns a list of\n[`PerformancePoint`](/reference/android/media/MediaCodecInfo.VideoCapabilities.PerformancePoint)\nentries that the codec can render or capture.\n\nYou can check whether a given `PerformancePoint` covers another by calling\n[`PerformancePoint.covers(PerformancePoint)`](/reference/android/media/MediaCodecInfo.VideoCapabilities.PerformancePoint#covers(android.media.MediaCodecInfo.VideoCapabilities.PerformancePoint)).\nFor example, `UHD_60.covers(UHD_50)` returns true.\n\nA list of performance points is provided for all hardware-accelerated codecs.\nThis could be an empty list if the codec does not meet even the lowest standard\nperformance point.\n\nNote that devices which have been upgraded to Android 10 (API level 29) and higher without\nupdating the vendor image will not have performance point data, because this\ndata comes from the vendor HAL. In this case, `getSupportedPerformancePoints()`\nreturns null."]]