/frameworks/opt/net/voip/src/jni/rtp/ |
H A D | AudioCodec.cpp | 44 AudioCodec *codec = type->create(); local 45 codec->name = type->name; 46 return codec;
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | DataStreamFileCodec.java | 42 public DataStreamFileCodec(File file, DataStreamCodec<T> codec) { argument 44 mCodec = codec;
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
H A D | AudioStream.java | 115 * @param codec The AudioCodec to be used. 119 public void setCodec(AudioCodec codec) { argument 123 if (codec.type == mDtmfType) { 126 mCodec = codec; 149 * @throws IllegalArgumentException if the type is invalid or used by codec. 162 throw new IllegalArgumentException("The type is used by codec");
|
/frameworks/av/media/libstagefright/omx/ |
H A D | SoftOMXPlugin.cpp | 99 // -- the codec process (where this happens) will have a slightly larger 132 sp<SoftOMXComponent> codec = local 135 if (codec == NULL) { 142 OMX_ERRORTYPE err = codec->initCheck(); 150 codec->incStrong(this); 151 codec->setLibHandle(libHandle);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | MediaProfileReader.java | 98 public static int getMinFrameRateForCodec(int codec) { argument 99 return getMinOrMaxFrameRateForCodec(codec, false); 102 public static int getMaxFrameRateForCodec(int codec) { argument 103 return getMinOrMaxFrameRateForCodec(codec, true); 106 private static int getMinOrMaxFrameRateForCodec(int codec, boolean max) { argument 108 if (cap.mCodec == codec) { 114 throw new IllegalArgumentException("Unsupported video codec " + codec);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | AudioTrackDecoder.java | 77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { 96 codec.releaseOutputBuffer(bufferIndex, false); 76 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
|
H A D | CpuVideoTrackDecoder.java | 67 // Find a codec for our video that can output to one of our supported color-spaces 81 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { 87 mColorFormat = codec.getOutputFormat().getInteger(MediaFormat.KEY_COLOR_FORMAT); 96 codec.releaseOutputBuffer(bufferIndex, false); 169 * Looks for a codec with the specified requirements. 173 * <li>The codec is a decoder.</li> 174 * <li>The codec can decode a video of the specified format.</li> 175 * <li>The codec can decode to one of the specified color formats.</li> 180 * @param format The format the codec must decode. 182 * @return A codec tha 80 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument [all...] |
H A D | GpuVideoTrackDecoder.java | 107 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { 113 codec.releaseOutputBuffer(bufferIndex, textureAvailable); 106 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
|
H A D | TrackDecoder.java | 67 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info); 66 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
|
/frameworks/av/media/libstagefright/ |
H A D | OmxInfoBuilder.cpp | 62 sp<ACodec> codec = new ACodec(); local 63 status_t err = codec->queryCapabilities( 109 ALOGE("Fail to obtain codec roles from IOmxStore."); 136 // codec name -> index into swCodecs/hwCodecs 201 ALOGW("Fail to add mime %s to codec %s", 233 ALOGW("Fail to add mime %s to codec %s "
|
H A D | SimpleDecodingSource.cpp | 69 sp<MediaCodec> codec; local 70 auto configure = [=](const sp<MediaCodec> &codec, const AString &componentName) 72 if (codec != NULL) { 73 ALOGI("Successfully allocated codec '%s'", componentName.c_str()); 75 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */); 78 err = codec->getOutputFormat(&outFormat); 81 return new SimpleDecodingSource(codec, source, looper, 87 ALOGD("Failed to configure codec '%s'", componentName.c_str()); 88 codec->release(); 94 codec 120 SimpleDecodingSource( const sp<MediaCodec> &codec, const sp<MediaSource> &source, const sp<ALooper> &looper, bool usingSurface, bool isVorbis, const sp<AMessage> &format) argument [all...] |
H A D | MediaCodecListOverrides.cpp | 45 // a limit to avoid allocating unreasonable number of codec instances in the measurement. 143 ALOGV("doProfileCodecs for codec #%zu", codecs.size()); 148 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); local 150 ALOGV("Failed to create codec: %s", name.c_str()); 157 err = codec->configure(format, nativeWindow, crypto, flags); 159 ALOGV("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str()); 160 codec->release(); 164 err = codec->start(); 166 ALOGV("Failed to start codec: %s with mime: %s", name.c_str(), mime.c_str()); 167 codec 290 AString codec = local [all...] |
/frameworks/av/media/libstagefright/omx/1.0/ |
H A D | Omx.cpp | 119 const auto& codec = mParser.getCodecMap().find(name.c_str()); local 120 if (codec == mParser.getCodecMap().cend()) { 126 for (const auto& quirk : codec->second.quirkSet) {
|
/frameworks/base/media/java/android/media/ |
H A D | MediaCodecList.java | 28 * find a codec supporting a given format and query the capabilities 29 * of a given codec. 50 * Return the {@link MediaCodecInfo} object for the codec at 94 Log.e(TAG, "Could not get codec capabilities", e); 128 /* package private */ static native final int findCodecByName(String codec); argument 131 public static MediaCodecInfo getInfoFor(String codec) { argument 133 return sAllCodecInfos[findCodecByName(codec)]; 211 * requests, or {@code null} if no such codec has been found. 235 * requests, or {@code null} if no such codec has been found.
|
H A D | EncoderCapabilities.java | 52 private VideoEncoderCap(int codec, argument 57 mCodec = codec; 88 private AudioEncoderCap(int codec, argument 92 mCodec = codec;
|
/frameworks/av/cmds/stagefright/ |
H A D | codec.cpp | 18 #define LOG_TAG "codec" 147 sp<MediaCodec> codec = state->mCodec; local 149 CHECK_EQ((status_t)OK, codec->start()); 151 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers)); 152 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers));
|
H A D | recordvideo.cpp | 53 fprintf(stderr, " -v video codec: [0] AVC [1] M4V [2] H263 (default: 0)\n"); 54 fprintf(stderr, " -s(oftware) prefer software codec\n"); 176 int codec = 0; local 243 codec = atoi(optarg); 244 if (codec < 0 || codec > 2) { 276 switch (codec) {
|
H A D | mediafilter.cpp | 474 sp<MediaCodec> codec = state->mCodec; local 476 CHECK_EQ((status_t)OK, codec->start()); 478 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers)); 479 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers));
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
H A D | DisplaySourceService.java | 195 MediaCodec codec; 197 codec = MediaCodec.createEncoderByType("video/avc"); 202 codec.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); 203 Surface surface = codec.createInputSurface(); 204 codec.start(); 212 stream(codec); 219 codec.signalEndOfInputStream(); 220 codec.stop(); 227 private void stream(MediaCodec codec) { argument 231 int index = codec [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | xaVideoDecoderCapabilities.cpp | 52 sprintf(unknown, "Video codec %d unknown to OpenMAX AL", decoderId); 95 // Map a video codec and profile to string 97 const char *videoProfileToString(XAuint32 codec, XAuint32 profile) { argument 155 return id_pair_to_string(codec, profile, table, sizeof(table) / sizeof(table[0])); 158 // Map a video codec and level to string 160 const char* videoLevelToString(XAuint32 codec, XAuint32 level) { argument 219 return id_pair_to_string(codec, level, table, sizeof(table) / sizeof(table[0]));
|
/frameworks/av/media/libstagefright/codecs/hevcdec/ |
H A D | SoftHEVC.cpp | 38 /** Function and structure definitions to keep code similar for each codec */ 73 // INPUT_BUF_SIZE is given by HEVC codec as minimum input size 238 /* Set number of cores/threads to be used by the codec */ 335 /* Set number of cores/threads to be used by the codec */ 338 /* Get codec version */ 661 /* If in flush mode and no output is returned by the codec, 666 * from the codec, then signal EOS on output port */ 711 android::SoftHEVC *codec = new android::SoftHEVC(name, callbacks, appData, component); local 712 if (codec->init() != android::OK) { 713 android::sp<android::SoftOMXComponent> release = codec; [all...] |
/frameworks/av/media/libstagefright/omx/tests/ |
H A D | OMXHarness.cpp | 615 sp<MediaSource> codec = SimpleDecodingSource::Create( local 618 CHECK(codec != NULL); 620 CHECK_EQ(codec->start(), (status_t)OK); 684 err = codec->read(&buffer, &options); 743 CHECK_EQ(codec->stop(), (status_t)OK); 753 CHECK_EQ(codec->stop(), (status_t)OK);
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.cpp | 64 const char *codec, 71 ls.push_back(new WebmString(kMkvCodecId, codec)); 343 const char *codec, 360 codec, 59 populateCommonTrackEntries( int num, uint64_t uid, bool lacing, const char *lang, const char *codec, TrackTypes type, List<sp<WebmElement> > &ls) argument 342 VideoTrackEntry( const char *codec, uint64_t width, uint64_t height, const sp<MetaData> &meta, uint64_t uid, bool lacing, const char *lang) argument
|
H A D | WebmWriter.cpp | 94 const char *codec; local 99 codec = "V_VP8"; 104 codec = "V_VP9"; 106 ALOGE("Unsupported codec: %s", mimeType); 109 return WebmElement::VideoTrackEntry(codec, width, height, md);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | ImageDecoder.cpp | 87 auto codec = SkCodec::MakeFromStream(std::move(stream), &result, decoder->mPeeker.get()); local 91 if (!codec) { 105 const bool animated = codec->getFrameCount() > 1; 110 decoder->mCodec = SkAndroidCodec::MakeFromCodec(std::move(codec), 207 SkAndroidCodec* codec = decoder->mCodec.get(); local 210 const int sampleSize = codec->computeSampleSize(&decodeSize); 212 SkImageInfo decodeInfo = codec->getInfo().makeWH(decodeSize.width(), decodeSize.height()); 257 colorType = codec->computeOutputColorType(colorType); 260 colorSpace = codec->computeOutputColorSpace(colorType, colorSpace); 292 auto result = codec 499 auto* codec = reinterpret_cast<ImageDecoder*>(nativePtr)->mCodec.get(); local [all...] |