/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;
|
H A D | AudioGroup.cpp | 100 AudioCodec *codec, int sampleRate, int sampleCount, 166 AudioCodec *codec, int sampleRate, int sampleCount, 202 if (codec) { 204 mCodec = codec; 222 (codec ? codec->name : "RAW"), mSampleRate, mInterval, mMode); 943 AudioCodec *codec = NULL; local 969 // Create audio codec. 974 codec = newAudioCodec(codecName); 975 int sampleCount = (codec 165 set(int mode, int socket, sockaddr_storage *remote, AudioCodec *codec, int sampleRate, int sampleCount, int codecType, int dtmfType) argument [all...] |
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
H A D | AudioCodec.java | 30 * following snippet to create a mode-1-only AMR codec.</p> 32 * AudioCodec codec = AudioCodec.getCodec(100, "AMR/8000", "mode-set=1"); 54 * G.711 u-law audio codec. 59 * G.711 a-law audio codec. 64 * GSM Full-Rate audio codec, also known as GSM-FR, GSM 06.10, GSM, or 70 * GSM Enhanced Full-Rate audio codec, also known as GSM-EFR, GSM 06.60, or 76 * Adaptive Multi-Rate narrowband audio codec, also known as AMR or AMR-NB. 115 for (AudioCodec codec : sCodecs) { 116 if (clue.startsWith(codec.rtpmap)) { 117 String channels = clue.substring(codec [all...] |
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");
|
H A D | AudioGroup.java | 149 AudioCodec codec = stream.getCodec(); 150 String codecSpec = String.format(Locale.US, "%d %s %s", codec.type, 151 codec.rtpmap, codec.fmtp);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | MediaProfileReader.java | 97 public static int getMinFrameRateForCodec(int codec) { argument 98 return getMinOrMaxFrameRateForCodec(codec, false); 101 public static int getMaxFrameRateForCodec(int codec) { argument 102 return getMinOrMaxFrameRateForCodec(codec, true); 105 private static int getMinOrMaxFrameRateForCodec(int codec, boolean max) { argument 107 if (cap.mCodec == codec) { 113 throw new IllegalArgumentException("Unsupported video codec " + codec);
|
/frameworks/av/include/media/ |
H A D | MediaProfiles.h | 94 * vid.codec - video encoder. see mediarecorder.h for details. 95 * aud.codec - audio encoder. see mediarecorder.h for details. 137 int getVideoEncoderParamByName(const char *name, video_encoder codec) const; 153 * Returns the value for the given param name for the video editor export codec format 158 * Supported param codec are: 163 int getVideoEditorExportParamByName(const char *name, int codec) const; 182 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const; 217 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) argument 218 : mCodec(codec), 242 AudioCodec(audio_encoder codec, in argument 296 VideoEncoderCap(video_encoder codec, int minBitRate, int maxBitRate, int minFrameWidth, int maxFrameWidth, int minFrameHeight, int maxFrameHeight, int minFrameRate, int maxFrameRate) argument 318 AudioEncoderCap(audio_encoder codec, int minBitRate, int maxBitRate, int minSampleRate, int maxSampleRate, int minChannels, int maxChannels) argument 336 VideoDecoderCap(video_decoder codec) argument 343 AudioDecoderCap(audio_decoder codec) argument 359 ExportVideoProfile(int codec, int profile, int level) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 330 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) { 332 if (codec != NULL) { 333 codec->incStrong(thiz); 338 env->SetIntField(thiz, gFields.context, (int)codec.get()); 427 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 429 if (codec == NULL) { 461 err = codec->configure(format, bufferProducer, crypto, flags); 470 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 471 if (codec == NULL) { 478 status_t err = codec 329 setMediaCodec( JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) argument 492 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 507 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 522 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 544 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 570 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 702 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 723 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 745 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 761 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 776 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 799 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 825 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 848 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 867 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local 949 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder); local [all...] |
/frameworks/base/media/java/android/media/ |
H A D | EncoderCapabilities.java | 53 private VideoEncoderCap(int codec, argument 58 mCodec = codec; 89 private AudioEncoderCap(int codec, argument 93 mCodec = codec;
|
H A D | MediaCodecList.java | 23 * find a codec supporting a given format and query the capabilities 24 * of a given codec. 50 /* package private */ static native final int findCodecByName(String codec); argument
|
/frameworks/av/media/libstagefright/omx/ |
H A D | SoftOMXPlugin.cpp | 108 sp<SoftOMXComponent> codec = local 111 if (codec == NULL) { 118 OMX_ERRORTYPE err = codec->initCheck(); 126 codec->incStrong(this); 127 codec->setLibHandle(libHandle);
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
H A D | DisplaySourceService.java | 195 MediaCodec codec = MediaCodec.createEncoderByType("video/avc"); 196 codec.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); 197 Surface surface = codec.createInputSurface(); 198 codec.start(); 206 stream(codec); 213 codec.signalEndOfInputStream(); 214 codec.stop(); 221 private void stream(MediaCodec codec) { argument 225 int index = codec.dequeueOutputBuffer(info, TIMEOUT_USEC); 228 buffers = codec [all...] |
/frameworks/opt/net/voip/src/java/android/net/sip/ |
H A 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) 760 // Find the first audio codec we supported. 762 codec = AudioCodec.getCodec(type, media.getRtpmap(type), 764 if (codec != null) { 768 if (codec ! [all...] |
/frameworks/av/media/libmedia/ |
H A D | MediaProfiles.cpp | 85 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec) argument 87 ALOGV("video codec:"); 88 ALOGV("codec = %d", codec.mCodec); 89 ALOGV("bit rate: %d", codec.mBitRate); 90 ALOGV("frame width: %d", codec.mFrameWidth); 91 ALOGV("frame height: %d", codec.mFrameHeight); 92 ALOGV("frame rate: %d", codec.mFrameRate); 96 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec) argument 98 ALOGV("audio codec 173 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local 195 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local 215 const int codec = findTagForName(sAudioDecoderNameMap, nMappings, atts[1]); local 231 const int codec = findTagForName(sVideoDecoderNameMap, nMappings, atts[1]); local 255 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local 279 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local 394 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local 514 VideoCodec *codec = NULL; local [all...] |
/frameworks/base/media/java/android/media/videoeditor/ |
H A D | VideoEditorProfile.java | 66 * Returns the supported profile by given video codec 78 throw new IllegalArgumentException("Unsupported video codec" + vidCodec); 85 * Returns the supported level by given video codec 97 throw new IllegalArgumentException("Unsupported video codec" + vidCodec); 119 private static native final int native_get_videoeditor_export_profile(int codec); argument
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | AudioTrackDecoder.java | 70 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { 89 codec.releaseOutputBuffer(bufferIndex, false); 69 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
|
H A D | GpuVideoTrackDecoder.java | 99 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { 105 codec.releaseOutputBuffer(bufferIndex, textureAvailable); 98 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
|
H A D | CpuVideoTrackDecoder.java | 66 // Find a codec for our video that can output to one of our supported color-spaces 80 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { 86 mColorFormat = codec.getOutputFormat().getInteger(MediaFormat.KEY_COLOR_FORMAT); 95 codec.releaseOutputBuffer(bufferIndex, false); 168 * Looks for a codec with the specified requirements. 172 * <li>The codec is a decoder.</li> 173 * <li>The codec can decode a video of the specified format.</li> 174 * <li>The codec can decode to one of the specified color formats.</li> 179 * @param format The format the codec must decode. 181 * @return A codec tha 79 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | recordvideo.cpp | 45 fprintf(stderr, " -v video codec: [0] AVC [1] M4V [2] H263 (default: 0)\n"); 46 fprintf(stderr, " -s(oftware) prefer software codec\n"); 164 int codec = 0; local 231 codec = atoi(optarg); 232 if (codec < 0 || codec > 2) { 267 switch (codec) {
|
H A D | Android.mk | 149 codec.cpp \ 164 LOCAL_MODULE:= codec
|
H A D | codec.cpp | 18 #define LOG_TAG "codec" 141 sp<MediaCodec> codec = state->mCodec; local 143 CHECK_EQ((status_t)OK, codec->start()); 145 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers)); 146 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers));
|
/frameworks/av/cmds/screenrecord/ |
H A D | screenrecord.cpp | 130 * from the codec. 153 ALOGV("Creating codec"); 154 sp<MediaCodec> codec = MediaCodec::CreateByType(looper, "video/avc", true); local 155 if (codec == NULL) { 156 fprintf(stderr, "ERROR: unable to create video/avc codec instance\n"); 159 err = codec->configure(format, NULL, NULL, 162 codec->release(); 163 codec.clear(); 165 fprintf(stderr, "ERROR: unable to configure codec (err=%d)\n", err); 171 err = 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/libvideoeditor/vss/common/inc/ |
H A D | M4DECODER_Common.h | 236 M4_StreamType codec; member in struct:__anon146
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | M3UParser.h | 101 static bool codecIsType(const AString &codec, const char *type);
|