/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/ |
D | FieldCodecTest.cs | 69 public void RoundTripWithTag(ICodecTestData codec) in RoundTripWithTag() argument 71 codec.TestRoundTripWithTag(); in RoundTripWithTag() 75 public void RoundTripRaw(ICodecTestData codec) in RoundTripRaw() argument 77 codec.TestRoundTripRaw(); in RoundTripRaw() 81 public void CalculateSize(ICodecTestData codec) in CalculateSize() argument 83 codec.TestCalculateSizeWithTag(); in CalculateSize() 87 public void DefaultValue(ICodecTestData codec) in DefaultValue() argument 89 codec.TestDefaultValue(); in DefaultValue() 93 public void FixedSize(ICodecTestData codec) in FixedSize() argument 95 codec.TestFixedSize(); in FixedSize() [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 | 150 AudioCodec codec = stream.getCodec(); in add() local 151 String codecSpec = String.format(Locale.US, "%d %s %s", codec.type, in add() 152 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/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Collections/ |
D | MapField.cs | 420 public void AddEntriesFrom(CodedInputStream input, Codec codec) in AddEntriesFrom() argument 422 var adapter = new Codec.MessageAdapter(codec); in AddEntriesFrom() 428 } while (input.MaybeConsumeTag(codec.MapTag)); in AddEntriesFrom() 437 public void WriteTo(CodedOutputStream output, Codec codec) in WriteTo() argument 439 var message = new Codec.MessageAdapter(codec); in WriteTo() 444 output.WriteTag(codec.MapTag); in WriteTo() 454 public int CalculateSize(Codec codec) in CalculateSize() argument 460 var message = new Codec.MessageAdapter(codec); in CalculateSize() 466 size += CodedOutputStream.ComputeRawVarint32Size(codec.MapTag); in CalculateSize() 616 private readonly Codec codec; field in Google.Protobuf.Collections.MapField.Codec.MessageAdapter [all …]
|
D | RepeatedField.cs | 92 public void AddEntriesFrom(CodedInputStream input, FieldCodec<T> codec) in AddEntriesFrom() argument 97 var reader = codec.ValueReader; in AddEntriesFrom() 129 public int CalculateSize(FieldCodec<T> codec) in CalculateSize() argument 135 uint tag = codec.Tag; in CalculateSize() 136 if (codec.PackedRepeatedField) in CalculateSize() 138 int dataSize = CalculatePackedDataSize(codec); in CalculateSize() 145 var sizeCalculator = codec.ValueSizeCalculator; in CalculateSize() 155 private int CalculatePackedDataSize(FieldCodec<T> codec) in CalculatePackedDataSize() argument 157 int fixedSize = codec.FixedSize; in CalculatePackedDataSize() 160 var calculator = codec.ValueSizeCalculator; in CalculatePackedDataSize() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaProfiles.h | 167 int getVideoEncoderParamByName(const char *name, video_encoder codec) const; 186 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const; 221 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec() 222 : mCodec(codec), in VideoCodec() 246 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) in AudioCodec() 247 : mCodec(codec), in AudioCodec() 300 VideoEncoderCap(video_encoder codec, in VideoEncoderCap() 305 : mCodec(codec), in VideoEncoderCap() 322 AudioEncoderCap(audio_encoder codec, in AudioEncoderCap() 326 : mCodec(codec), in AudioEncoderCap() [all …]
|
/frameworks/av/include/media/ |
D | MediaProfiles.h | 167 int getVideoEncoderParamByName(const char *name, video_encoder codec) const; 186 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const; 221 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec() 222 : mCodec(codec), in VideoCodec() 246 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) in AudioCodec() 247 : mCodec(codec), in AudioCodec() 300 VideoEncoderCap(video_encoder codec, in VideoEncoderCap() 305 : mCodec(codec), in VideoEncoderCap() 322 AudioEncoderCap(audio_encoder codec, in AudioEncoderCap() 326 : mCodec(codec), in AudioEncoderCap() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodec.cpp | 952 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) { in setMediaCodec() argument 954 if (codec != NULL) { in setMediaCodec() 955 codec->incStrong(thiz); in setMediaCodec() 966 env->CallVoidMethod(thiz, gFields.setAndUnlockContextID, (jlong)codec.get()); in setMediaCodec() 972 sp<JMediaCodec> codec = (JMediaCodec *)env->CallLongMethod(thiz, gFields.lockAndGetContextID); in getMediaCodec() local 973 env->CallVoidMethod(thiz, gFields.setAndUnlockContextID, (jlong)codec.get()); in getMediaCodec() 974 return codec; in getMediaCodec() 1085 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_enableOnFrameRenderedListener() local 1087 if (codec == NULL) { in android_media_MediaCodec_native_enableOnFrameRenderedListener() 1092 status_t err = codec->enableOnFrameRenderedListener(enabled); in android_media_MediaCodec_native_enableOnFrameRenderedListener() [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 | 741 for (AudioCodec codec : AudioCodec.getCodecs()) { 742 media.setRtpPayload(codec.type, codec.rtpmap, codec.fmtp); 755 AudioCodec codec = null; 757 if ((codec == null) && (media.getPort() > 0) 762 codec = AudioCodec.getCodec(type, media.getRtpmap(type), 764 if (codec != null) { 768 if (codec != null) { 771 reply.setRtpPayload(codec.type, codec.rtpmap, codec.fmtp); 776 if ((type != codec.type) && (rtpmap != null) 803 if (codec == null) { [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/libmedia/ |
D | MediaProfiles.cpp | 117 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec UNUSED) in logVideoCodec() 120 ALOGV("codec = %d", codec.mCodec); in logVideoCodec() 121 ALOGV("bit rate: %d", codec.mBitRate); in logVideoCodec() 122 ALOGV("frame width: %d", codec.mFrameWidth); in logVideoCodec() 123 ALOGV("frame height: %d", codec.mFrameHeight); in logVideoCodec() 124 ALOGV("frame rate: %d", codec.mFrameRate); in logVideoCodec() 128 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec UNUSED) in logAudioCodec() 131 ALOGV("codec = %d", codec.mCodec); in logAudioCodec() 132 ALOGV("bit rate: %d", codec.mBitRate); in logAudioCodec() 133 ALOGV("sample rate: %d", codec.mSampleRate); in logAudioCodec() [all …]
|
/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/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/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/base/media/java/android/media/ |
D | EncoderCapabilities.java | 62 private VideoEncoderCap(int codec, in VideoEncoderCap() argument 67 mCodec = codec; in VideoEncoderCap() 98 private AudioEncoderCap(int codec, in AudioEncoderCap() argument 102 mCodec = codec; in AudioEncoderCap()
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2InfoBuilder.cpp | 433 const MediaCodecsXmlParser::CodecProperties &codec = in buildMediaCodecList() local 437 bool codecEnabled = codec.quirkSet.find("attribute::disabled") == codec.quirkSet.end(); in buildMediaCodecList() 439 for (const std::string &domain : codec.domainSet) { in buildMediaCodecList() 450 bool variantEnabled = codec.variantSet.empty(); in buildMediaCodecList() 451 for (const std::string &variant : codec.variantSet) { in buildMediaCodecList() 482 } else if (codec.quirkSet.find("attribute::software-codec") in buildMediaCodecList() 483 == codec.quirkSet.end()) { in buildMediaCodecList() 488 if (!codec.rank.empty()) { in buildMediaCodecList() 491 if (sscanf(codec.rank.c_str(), "%u%c", &xmlRank, &dummy) == 1) { in buildMediaCodecList() 498 for (const std::string &alias : codec.aliases) { in buildMediaCodecList() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/ |
D | FieldCodec.cs | 293 internal static T Read<T>(CodedInputStream input, FieldCodec<T> codec) in Read() argument 299 T value = codec.DefaultValue; in Read() 302 if (tag == codec.Tag) in Read() 304 value = codec.Read(input); in Read() 318 internal static void Write<T>(CodedOutputStream output, T value, FieldCodec<T> codec) in Write() argument 320 output.WriteLength(codec.CalculateSizeWithTag(value)); in Write() 321 codec.WriteTagAndValue(output, value); in Write() 324 internal static int CalculateSize<T>(T value, FieldCodec<T> codec) in CalculateSize() argument 326 int fieldLength = codec.CalculateSizeWithTag(value); in CalculateSize()
|
/frameworks/base/core/jni/android/graphics/ |
D | ImageDecoder.cpp | 88 auto codec = SkCodec::MakeFromStream(std::move(stream), &result, decoder->mPeeker.get()); in native_create() local 92 if (!codec) { in native_create() 106 const bool animated = codec->getFrameCount() > 1; in native_create() 111 decoder->mCodec = SkAndroidCodec::MakeFromCodec(std::move(codec), in native_create() 209 SkAndroidCodec* codec = decoder->mCodec.get(); in ImageDecoder_nDecodeBitmap() local 212 const int sampleSize = codec->computeSampleSize(&decodeSize); in ImageDecoder_nDecodeBitmap() 214 SkImageInfo decodeInfo = codec->getInfo().makeWH(decodeSize.width(), decodeSize.height()); in ImageDecoder_nDecodeBitmap() 260 colorType = codec->computeOutputColorType(colorType); in ImageDecoder_nDecodeBitmap() 274 colorSpace = codec->computeOutputColorSpace(colorType, colorSpace); in ImageDecoder_nDecodeBitmap() 306 auto result = codec->getAndroidPixels(decodeInfo, bm.getPixels(), bm.rowBytes(), &options); in ImageDecoder_nDecodeBitmap() [all …]
|
D | BitmapFactory.cpp | 240 std::unique_ptr<SkAndroidCodec> codec; in doDecode() local 252 codec = SkAndroidCodec::MakeFromCodec(std::move(c)); in doDecode() 253 if (!codec) { in doDecode() 268 SkISize size = codec->getSampledDimensions(sampleSize); in doDecode() 275 if (needsFineScale(codec->getInfo().dimensions(), size, sampleSize)) { in doDecode() 277 scaledWidth = codec->getInfo().width() / sampleSize; in doDecode() 278 scaledHeight = codec->getInfo().height() / sampleSize; in doDecode() 282 SkColorType decodeColorType = codec->computeOutputColorType(prefColorType); in doDecode() 288 sk_sp<SkColorSpace> decodeColorSpace = codec->computeOutputColorSpace( in doDecode() 294 env, (SkEncodedImageFormat)codec->getEncodedFormat()); in doDecode() [all …]
|
/frameworks/av/services/mediaanalytics/ |
D | statsd_codec.cpp | 58 char *codec = NULL; in statsd_codec() local 59 if (item->getCString("android.media.mediacodec.codec", &codec)) { in statsd_codec() 60 metrics_proto.set_codec(codec); in statsd_codec() 177 free(codec); in statsd_codec()
|
/frameworks/av/cmds/stagefright/ |
D | recordvideo.cpp | 176 int codec = 0; in main() local 243 codec = atoi(optarg); in main() 244 if (codec < 0 || codec > 2) { in main() 276 switch (codec) { in main()
|