/frameworks/av/media/tests/benchmark/src/native/common/ |
D | BenchmarkCommon.cpp | 31 void OnInputAvailableCB(AMediaCodec *codec, void *userdata, int32_t index) { in OnInputAvailableCB() argument 35 self->mIOQueue.push([self, codec, index]() { self->onInputAvailable(codec, index); }); in OnInputAvailableCB() 38 void OnOutputAvailableCB(AMediaCodec *codec, void *userdata, int32_t index, in OnOutputAvailableCB() argument 45 self->mIOQueue.push([self, codec, index, bufferInfoCopy]() { in OnOutputAvailableCB() 47 self->onOutputAvailable(codec, index, &bc); in OnOutputAvailableCB() 51 void OnFormatChangedCB(AMediaCodec *codec, void *userdata, AMediaFormat *format) { in OnFormatChangedCB() argument 54 self->mIOQueue.push([self, codec, format]() { self->onFormatChanged(codec, format); }); in OnFormatChangedCB() 57 void OnErrorCB(AMediaCodec *codec, void *userdata, media_status_t err, int32_t actionCode, in OnErrorCB() argument 59 (void)codec; in OnErrorCB() 63 self->mIOQueue.push([self, codec, err]() { self->onError(codec, err); }); in OnErrorCB() [all …]
|
D | BenchmarkCommon.h | 88 virtual void onInputAvailable(AMediaCodec *codec, int32_t index) { in onInputAvailable() argument 89 (void)codec; in onInputAvailable() 92 virtual void onFormatChanged(AMediaCodec *codec, AMediaFormat *format) { in onFormatChanged() argument 93 (void)codec; in onFormatChanged() 96 virtual void onError(AMediaCodec *codec, media_status_t err) { in onError() argument 97 (void)codec; in onError() 100 virtual void onOutputAvailable(AMediaCodec *codec, int32_t index, in onOutputAvailable() argument 102 (void)codec; in onOutputAvailable() 121 void OnInputAvailableCB(AMediaCodec *codec, void *userdata, int32_t index); 123 void OnOutputAvailableCB(AMediaCodec *codec, void *userdata, int32_t index, [all …]
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | MediaCodec_sanity_test.cpp | 47 if (codec != nullptr) { in ~MediaCodecSanityTest() 48 codec->release(); in ~MediaCodecSanityTest() 54 sp<MediaCodec> codec; member in android::MediaCodecSanityTest 111 codec = MediaCodec::CreateByComponentName(looper, "c2.android.avc.decoder"); in TEST_P() 121 EXPECT_EQ(codec->configure(cfg, nullptr, nullptr, 0), OK); in TEST_P() 122 EXPECT_EQ(codec->getInputFormat(&ifmt), OK); in TEST_P() 130 EXPECT_EQ(codec->start(), OK); in TEST_P() 132 EXPECT_EQ(codec->dequeueInputBuffer(&ix, 1000000), OK); in TEST_P() 134 EXPECT_EQ(codec->getInputBuffer(ix, &buf), OK); in TEST_P() 140 codec = MediaCodec::CreateByComponentName(looper, "c2.android.vp8.decoder"); in TEST_P() [all …]
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | AudioCodec.java | 115 for (AudioCodec codec : sCodecs) { in getCodec() 116 if (clue.startsWith(codec.rtpmap)) { in getCodec() 117 String channels = clue.substring(codec.rtpmap.length()); in getCodec() 119 hint = codec; in getCodec() 125 for (AudioCodec codec : sCodecs) { in getCodec() 126 if (type == codec.type) { in getCodec() 127 hint = codec; in getCodec() 128 rtpmap = codec.rtpmap; in getCodec()
|
D | AudioGroup.java | 164 AudioCodec codec = stream.getCodec(); in add() local 165 String codecSpec = String.format(Locale.US, "%d %s %s", codec.type, in add() 166 codec.rtpmap, codec.fmtp); in add()
|
D | AudioStream.java | 119 public void setCodec(AudioCodec codec) { in setCodec() argument 123 if (codec.type == mDtmfType) { in setCodec() 126 mCodec = codec; in setCodec()
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodec.cpp | 954 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) { in setMediaCodec() argument 956 if (codec != NULL) { in setMediaCodec() 957 codec->incStrong(thiz); in setMediaCodec() 968 env->CallVoidMethod(thiz, gFields.setAndUnlockContextID, (jlong)codec.get()); in setMediaCodec() 974 sp<JMediaCodec> codec = (JMediaCodec *)env->CallLongMethod(thiz, gFields.lockAndGetContextID); in getMediaCodec() local 975 env->CallVoidMethod(thiz, gFields.setAndUnlockContextID, (jlong)codec.get()); in getMediaCodec() 976 return codec; in getMediaCodec() 1087 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_enableOnFrameRenderedListener() local 1089 if (codec == NULL) { in android_media_MediaCodec_native_enableOnFrameRenderedListener() 1094 status_t err = codec->enableOnFrameRenderedListener(enabled); in android_media_MediaCodec_native_enableOnFrameRenderedListener() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaProfiles.h | 150 int getVideoEncoderParamByName(const char *name, video_encoder codec) const; 169 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const; 204 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec() 205 : mCodec(codec), in VideoCodec() 229 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) in AudioCodec() 230 : mCodec(codec), in AudioCodec() 283 VideoEncoderCap(video_encoder codec, in VideoEncoderCap() 288 : mCodec(codec), in VideoEncoderCap() 305 AudioEncoderCap(audio_encoder codec, in AudioEncoderCap() 309 : mCodec(codec), in AudioEncoderCap() [all …]
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | DisplaySourceService.java | 195 MediaCodec codec; in run() local 197 codec = MediaCodec.createEncoderByType("video/avc"); in run() 202 codec.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in run() 203 Surface surface = codec.createInputSurface(); in run() 204 codec.start(); in run() 212 stream(codec); in run() 219 codec.signalEndOfInputStream(); in run() 220 codec.stop(); in run() 227 private void stream(MediaCodec codec) { in stream() argument 231 int index = codec.dequeueOutputBuffer(info, TIMEOUT_USEC); in stream() [all …]
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | SipAudioCall.java | 747 for (AudioCodec codec : AudioCodec.getCodecs()) { 748 media.setRtpPayload(codec.type, codec.rtpmap, codec.fmtp); 761 AudioCodec codec = null; 763 if ((codec == null) && (media.getPort() > 0) 768 codec = AudioCodec.getCodec(type, media.getRtpmap(type), 770 if (codec != null) { 774 if (codec != null) { 777 reply.setRtpPayload(codec.type, codec.rtpmap, codec.fmtp); 782 if ((type != codec.type) && (rtpmap != null) 809 if (codec == null) { [all …]
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 163 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec UNUSED) in logVideoCodec() 166 ALOGV("codec = %d", codec.mCodec); in logVideoCodec() 167 ALOGV("bit rate: %d", codec.mBitRate); in logVideoCodec() 168 ALOGV("frame width: %d", codec.mFrameWidth); in logVideoCodec() 169 ALOGV("frame height: %d", codec.mFrameHeight); in logVideoCodec() 170 ALOGV("frame rate: %d", codec.mFrameRate); in logVideoCodec() 174 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec UNUSED) in logAudioCodec() 177 ALOGV("codec = %d", codec.mCodec); in logAudioCodec() 178 ALOGV("bit rate: %d", codec.mBitRate); in logAudioCodec() 179 ALOGV("sample rate: %d", codec.mSampleRate); in logAudioCodec() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaProfileReader.java | 98 public static int getMinFrameRateForCodec(int codec) { in getMinFrameRateForCodec() argument 99 return getMinOrMaxFrameRateForCodec(codec, false); in getMinFrameRateForCodec() 102 public static int getMaxFrameRateForCodec(int codec) { in getMaxFrameRateForCodec() argument 103 return getMinOrMaxFrameRateForCodec(codec, true); in getMaxFrameRateForCodec() 106 private static int getMinOrMaxFrameRateForCodec(int codec, boolean max) { in getMinOrMaxFrameRateForCodec() argument 108 if (cap.mCodec == codec) { in getMinOrMaxFrameRateForCodec() 114 throw new IllegalArgumentException("Unsupported video codec " + codec); in getMinOrMaxFrameRateForCodec()
|
/frameworks/av/media/libstagefright/ |
D | SimpleDecodingSource.cpp | 70 sp<MediaCodec> codec; in Create() local 71 auto configure = [=](const sp<MediaCodec> &codec, const AString &componentName) in Create() 73 if (codec != NULL) { in Create() 76 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */); in Create() 79 err = codec->getOutputFormat(&outFormat); in Create() 82 return new SimpleDecodingSource(codec, source, looper, in Create() 89 codec->release(); in Create() 95 codec = MediaCodec::CreateByComponentName(looper, desiredCodec); in Create() 96 return configure(codec, desiredCodec); in Create() 107 codec = MediaCodec::CreateByComponentName(looper, componentName); in Create() [all …]
|
D | MediaCodecListOverrides.cpp | 148 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); in doProfileCodecs() local 157 err = codec->configure(format, nativeWindow, crypto, flags); in doProfileCodecs() 160 codec->release(); in doProfileCodecs() 164 err = codec->start(); in doProfileCodecs() 167 codec->release(); in doProfileCodecs() 170 codecs.push_back(codec); in doProfileCodecs() 290 AString codec = in codecResultsToXml() local 294 ret.append(codec); in codecResultsToXml()
|
/frameworks/av/media/codecs/g711/fuzzer/ |
D | g711_dec_fuzzer.cpp | 51 Codec *codec = new Codec(); in LLVMFuzzerTestOneInput() local 52 if (!codec) { in LLVMFuzzerTestOneInput() 55 codec->decodeFrames(data, size); in LLVMFuzzerTestOneInput() 56 delete codec; in LLVMFuzzerTestOneInput()
|
/frameworks/av/media/libstagefright/codecs/amrnb/fuzzer/ |
D | amrnb_dec_fuzzer.cpp | 87 Codec *codec = new Codec(); in LLVMFuzzerTestOneInput() local 88 if (!codec) { in LLVMFuzzerTestOneInput() 91 if (codec->initDecoder() == 0) { in LLVMFuzzerTestOneInput() 92 codec->decodeFrames(data, size); in LLVMFuzzerTestOneInput() 94 delete codec; in LLVMFuzzerTestOneInput()
|
/frameworks/av/media/libstagefright/codecs/amrwb/fuzzer/ |
D | amrwb_dec_fuzzer.cpp | 101 Codec *codec = new Codec(); in LLVMFuzzerTestOneInput() local 102 if (!codec) { in LLVMFuzzerTestOneInput() 105 if (codec->initDecoder()) { in LLVMFuzzerTestOneInput() 106 codec->decodeFrames(data, size); in LLVMFuzzerTestOneInput() 108 delete codec; in LLVMFuzzerTestOneInput()
|
/frameworks/av/media/libstagefright/omx/ |
D | SoftOMXPlugin.cpp | 142 sp<SoftOMXComponent> codec = in makeComponentInstance() local 145 if (codec == NULL) { in makeComponentInstance() 152 OMX_ERRORTYPE err = codec->initCheck(); in makeComponentInstance() 160 codec->incStrong(this); in makeComponentInstance() 161 codec->setLibHandle(libHandle); in makeComponentInstance()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AudioCodec.cpp | 44 AudioCodec *codec = type->create(); in newAudioCodec() local 45 codec->name = type->name; in newAudioCodec() 46 return codec; in newAudioCodec()
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2InfoBuilder.cpp | 434 const MediaCodecsXmlParser::CodecProperties &codec = in buildMediaCodecList() local 438 bool codecEnabled = codec.quirkSet.find("attribute::disabled") == codec.quirkSet.end(); in buildMediaCodecList() 440 for (const std::string &domain : codec.domainSet) { in buildMediaCodecList() 451 bool variantEnabled = codec.variantSet.empty(); in buildMediaCodecList() 452 for (const std::string &variant : codec.variantSet) { in buildMediaCodecList() 483 } else if (codec.quirkSet.find("attribute::software-codec") in buildMediaCodecList() 484 == codec.quirkSet.end()) { in buildMediaCodecList() 489 if (!codec.rank.empty()) { in buildMediaCodecList() 492 if (sscanf(codec.rank.c_str(), "%u%c", &xmlRank, &dummy) == 1) { in buildMediaCodecList() 499 for (const std::string &alias : codec.aliases) { in buildMediaCodecList() [all …]
|
/frameworks/base/media/java/android/media/ |
D | EncoderCapabilities.java | 63 private VideoEncoderCap(int codec, in VideoEncoderCap() argument 68 mCodec = codec; in VideoEncoderCap() 99 private AudioEncoderCap(int codec, in AudioEncoderCap() argument 103 mCodec = codec; in AudioEncoderCap()
|
/frameworks/base/core/jni/android/graphics/ |
D | ImageDecoder.cpp | 90 auto codec = SkCodec::MakeFromStream(std::move(stream), &result, decoder->mPeeker.get()); in native_create() local 94 if (!codec) { in native_create() 108 const bool animated = codec->getFrameCount() > 1; in native_create() 113 decoder->mCodec = SkAndroidCodec::MakeFromCodec(std::move(codec), in native_create() 211 SkAndroidCodec* codec = decoder->mCodec.get(); in ImageDecoder_nDecodeBitmap() local 214 const int sampleSize = codec->computeSampleSize(&decodeSize); in ImageDecoder_nDecodeBitmap() 216 SkImageInfo decodeInfo = codec->getInfo().makeWH(decodeSize.width(), decodeSize.height()); in ImageDecoder_nDecodeBitmap() 262 colorType = codec->computeOutputColorType(colorType); in ImageDecoder_nDecodeBitmap() 276 colorSpace = codec->computeOutputColorSpace(colorType, colorSpace); in ImageDecoder_nDecodeBitmap() 308 auto result = codec->getAndroidPixels(decodeInfo, bm.getPixels(), bm.rowBytes(), &options); in ImageDecoder_nDecodeBitmap() [all …]
|
D | BitmapFactory.cpp | 242 std::unique_ptr<SkAndroidCodec> codec; in doDecode() local 254 codec = SkAndroidCodec::MakeFromCodec(std::move(c)); in doDecode() 255 if (!codec) { in doDecode() 270 SkISize size = codec->getSampledDimensions(sampleSize); in doDecode() 277 if (needsFineScale(codec->getInfo().dimensions(), size, sampleSize)) { in doDecode() 279 scaledWidth = codec->getInfo().width() / sampleSize; in doDecode() 280 scaledHeight = codec->getInfo().height() / sampleSize; in doDecode() 284 SkColorType decodeColorType = codec->computeOutputColorType(prefColorType); in doDecode() 290 sk_sp<SkColorSpace> decodeColorSpace = codec->computeOutputColorSpace( in doDecode() 296 env, (SkEncodedImageFormat)codec->getEncodedFormat()); in doDecode() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/fuzzer/ |
D | mp3_dec_fuzzer.cpp | 228 Codec *codec = new Codec(); in LLVMFuzzerTestOneInput() local 229 if (!codec) { in LLVMFuzzerTestOneInput() 232 if (codec->initDecoder()) { in LLVMFuzzerTestOneInput() 233 codec->decodeFrames(const_cast<uint8_t *>(data), size); in LLVMFuzzerTestOneInput() 235 delete codec; in LLVMFuzzerTestOneInput()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/fuzzer/ |
D | mpeg4_h263_dec_fuzzer.cpp | 196 Codec *codec = new Codec(); in LLVMFuzzerTestOneInput() local 197 if (!codec) { in LLVMFuzzerTestOneInput() 200 if (codec->initDecoder()) { in LLVMFuzzerTestOneInput() 201 codec->decodeFrames(data, size); in LLVMFuzzerTestOneInput() 203 delete codec; in LLVMFuzzerTestOneInput()
|