/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/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 | 111 sp<SoftOMXComponent> codec = local 114 if (codec == NULL) { 121 OMX_ERRORTYPE err = codec->initCheck(); 129 codec->incStrong(this); 130 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/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 90 Log.e(TAG, "Could not get codec capabilities", e); 124 /* package private */ static native final int findCodecByName(String codec); argument 127 public static MediaCodecInfo getInfoFor(String codec) { argument 129 return sAllCodecInfos[findCodecByName(codec)]; 204 * requests, or {@code null} if no such codec has been found. 225 * 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 | 50 fprintf(stderr, " -v video codec: [0] AVC [1] M4V [2] H263 (default: 0)\n"); 51 fprintf(stderr, " -s(oftware) prefer software codec\n"); 173 int codec = 0; local 240 codec = atoi(optarg); 241 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/ |
H A D | MediaCodecListOverrides.cpp | 47 // a limit to avoid allocating unreasonable number of codec instances in the measurement. 148 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); local 150 ALOGE("Failed to create codec: %s", name.c_str()); 154 err = codec->configure(format, NULL, NULL, MediaCodec::CONFIGURE_FLAG_ENCODE); 156 ALOGE("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str()); 157 codec->release(); 162 err = codec->createInputSurface(&bufferProducer); 165 codec->release(); 177 err = codec->release(); 179 ALOGW("Failed to release codec 205 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); local 360 AString codec = local [all...] |
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.cpp | 62 const char *codec, 69 ls.push_back(new WebmString(kMkvCodecId, codec)); 57 populateCommonTrackEntries( int num, uint64_t uid, bool lacing, const char *lang, const char *codec, TrackTypes type, List<sp<WebmElement> > &ls) argument
|
/frameworks/av/cmds/screenrecord/ |
H A D | screenrecord.cpp | 146 * from the codec. 169 ALOGV("Creating codec"); 170 sp<MediaCodec> codec = MediaCodec::CreateByType(looper, kMimeTypeAvc, true); local 171 if (codec == NULL) { 172 fprintf(stderr, "ERROR: unable to create %s codec instance\n", 177 err = codec->configure(format, NULL, NULL, 180 fprintf(stderr, "ERROR: unable to configure %s codec at %dx%d (err=%d)\n", 182 codec->release(); 188 err = codec->createInputSurface(&bufferProducer); 192 codec [all...] |
/frameworks/av/media/libstagefright/codecs/hevcdec/ |
H A D | SoftHEVC.cpp | 38 /** Function and structure definitions to keep code similar for each codec */ 80 // INPUT_BUF_SIZE is given by HEVC codec as minimum input size 203 /* Set number of cores/threads to be used by the codec */ 300 /* Set number of cores/threads to be used by the codec */ 303 /* Get codec version */ 592 /* If in flush mode and no output is returned by the codec, 597 * from the codec, then signal EOS on output port */ 628 android::SoftHEVC *codec = new android::SoftHEVC(name, callbacks, appData, component); local 629 if (codec->init() != android::OK) { 630 android::sp<android::SoftOMXComponent> release = codec; [all...] |
/frameworks/av/media/libstagefright/omx/tests/ |
H A D | OMXHarness.cpp | 579 sp<MediaSource> codec = OMXCodec::Create( local 583 CHECK(codec != NULL); 585 CHECK_EQ(codec->start(), (status_t)OK); 649 err = codec->read(&buffer, &options); 708 CHECK_EQ(codec->stop(), (status_t)OK); 718 CHECK_EQ(codec->stop(), (status_t)OK);
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaCodec.cpp | 62 CodecHandler(AMediaCodec *codec); 66 typedef void (*OnCodecEvent)(AMediaCodec *codec, void *userdata); 79 CodecHandler::CodecHandler(AMediaCodec *codec) { argument 80 mCodec = codec; 138 static void requestActivityNotification(AMediaCodec *codec) { argument 139 (new AMessage(kWhatRequestActivityNotifications, codec->mHandler))->post(); 157 if (mData->mCodec == NULL) { // failed to create codec 381 AMediaCodec* codec, 395 status_t err = codec->mCodec->queueSecureInputBuffer(idx, 380 AMediaCodec_queueSecureInputBuffer( AMediaCodec* codec, size_t idx, off_t offset, AMediaCodecCryptoInfo* crypto, uint64_t time, uint32_t flags) argument
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 170 SkImageDecoder* codec = SkImageDecoder::Factory(&stream); local 171 if (codec != NULL) { 172 codec->setDitherImage(false); 173 codec->decode(&stream, &bitmap, 176 delete codec;
|
/frameworks/av/include/media/ |
H A D | MediaProfiles.h | 87 * vid.codec - video encoder. see mediarecorder.h for details. 88 * aud.codec - audio encoder. see mediarecorder.h for details. 130 int getVideoEncoderParamByName(const char *name, video_encoder codec) const; 149 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const; 184 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) argument 185 : mCodec(codec), 209 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument 210 : mCodec(codec), 263 VideoEncoderCap(video_encoder codec, argument 268 : mCodec(codec), 285 AudioEncoderCap(audio_encoder codec, int minBitRate, int maxBitRate, int minSampleRate, int maxSampleRate, int minChannels, int maxChannels) argument 303 VideoDecoderCap(video_decoder codec) argument 310 AudioDecoderCap(audio_decoder codec) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | MediaProfiles.cpp | 100 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec UNUSED) 102 ALOGV("video codec:"); 103 ALOGV("codec = %d", codec.mCodec); 104 ALOGV("bit rate: %d", codec.mBitRate); 105 ALOGV("frame width: %d", codec.mFrameWidth); 106 ALOGV("frame height: %d", codec.mFrameHeight); 107 ALOGV("frame rate: %d", codec.mFrameRate); 111 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec UNUSED) 113 ALOGV("audio codec 179 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local 201 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local 221 const int codec = findTagForName(sAudioDecoderNameMap, nMappings, atts[1]); local 237 const int codec = findTagForName(sVideoDecoderNameMap, nMappings, atts[1]); local 261 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local 285 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | M3UParser.cpp | 444 AString codec(codecs, offset, commaPos - offset); 445 codec.trim(); 446 // return true only if a codec of type `key` ("audio"/"video") 448 if (codecIsType(codec, key)) { 1316 bool M3UParser::codecIsType(const AString &codec, const char *type) { argument 1317 if (codec.size() < 4) { 1320 const char *c = codec.c_str();
|