Searched refs:codec (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioCodec.cpp44 AudioCodec *codec = type->create(); local
45 codec->name = type->name;
46 return codec;
H A DAudioGroup.cpp100 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 DAudioCodec.java30 * 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 DAudioStream.java115 * @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 DAudioGroup.java149 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 DMediaProfileReader.java98 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/av/include/media/
H A DMediaProfiles.h105 * vid.codec - video encoder. see mediarecorder.h for details.
106 * aud.codec - audio encoder. see mediarecorder.h for details.
148 int getVideoEncoderParamByName(const char *name, video_encoder codec) const;
164 * Returns the value for the given param name for the video editor export codec format
169 * Supported param codec are:
174 int getVideoEditorExportParamByName(const char *name, int codec) const;
193 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const;
228 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) argument
229 : mCodec(codec),
253 AudioCodec(audio_encoder codec, in argument
307 VideoEncoderCap(video_encoder codec, int minBitRate, int maxBitRate, int minFrameWidth, int maxFrameWidth, int minFrameHeight, int maxFrameHeight, int minFrameRate, int maxFrameRate) argument
329 AudioEncoderCap(audio_encoder codec, int minBitRate, int maxBitRate, int minSampleRate, int maxSampleRate, int minChannels, int maxChannels) argument
347 VideoDecoderCap(video_decoder codec) argument
354 AudioDecoderCap(audio_decoder codec) argument
370 ExportVideoProfile(int codec, int profile, int level) argument
[all...]
/frameworks/base/media/java/android/media/
H A DEncoderCapabilities.java52 private VideoEncoderCap(int codec, argument
57 mCodec = codec;
88 private AudioEncoderCap(int codec, argument
92 mCodec = codec;
H A DMediaCodecList.java29 * find a codec supporting a given format and query the capabilities
30 * of a given codec.
51 * Return the {@link MediaCodecInfo} object for the codec at
85 Log.e(TAG, "Could not get codec capabilities", e);
117 /* package private */ static native final int findCodecByName(String codec); argument
120 public static MediaCodecInfo getInfoFor(String codec) { argument
122 return sAllCodecInfos[findCodecByName(codec)];
190 * requests, or {@code null} if no such codec has been found.
204 * requests, or {@code null} if no such codec has been found.
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
H A DDisplaySourceService.java195 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/av/media/libstagefright/omx/
H A DSoftOMXPlugin.cpp110 sp<SoftOMXComponent> codec = local
113 if (codec == NULL) {
120 OMX_ERRORTYPE err = codec->initCheck();
128 codec->incStrong(this);
129 codec->setLibHandle(libHandle);
/frameworks/opt/net/voip/src/java/android/net/sip/
H A DSipAudioCall.java741 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/base/media/jni/
H A Dandroid_media_MediaCodec.cpp706 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) {
708 if (codec != NULL) {
709 codec->incStrong(thiz);
720 env->SetLongField(thiz, gFields.context, (jlong)codec.get());
807 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
809 if (codec == NULL) {
814 status_t err = codec->setCallback(cb);
826 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
828 if (codec == NULL) {
860 err = codec
705 setMediaCodec( JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) argument
869 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
891 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
906 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
921 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
943 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
965 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
991 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1127 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1148 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1171 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1187 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1202 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1225 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1248 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1274 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1300 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1326 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1349 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1368 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1473 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder); local
[all...]
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp100 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
188 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local
210 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local
230 const int codec = findTagForName(sAudioDecoderNameMap, nMappings, atts[1]); local
246 const int codec = findTagForName(sVideoDecoderNameMap, nMappings, atts[1]); local
270 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local
294 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local
409 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local
534 VideoCodec *codec = NULL; local
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioTrackDecoder.java77 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 DGpuVideoTrackDecoder.java107 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 DCpuVideoTrackDecoder.java67 // 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...]
/frameworks/av/cmds/stagefright/
H A Drecordvideo.cpp46 fprintf(stderr, " -v video codec: [0] AVC [1] M4V [2] H263 (default: 0)\n");
47 fprintf(stderr, " -s(oftware) prefer software codec\n");
169 int codec = 0; local
236 codec = atoi(optarg);
237 if (codec < 0 || codec > 2) {
272 switch (codec) {
H A DAndroid.mk149 codec.cpp \
164 LOCAL_MODULE:= codec
H A Dcodec.cpp18 #define LOG_TAG "codec"
143 sp<MediaCodec> codec = state->mCodec; local
145 CHECK_EQ((status_t)OK, codec->start());
147 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers));
148 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers));
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp62 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->id()))->post();
372 AMediaCodec* codec,
386 status_t err = codec->mCodec->queueSecureInputBuffer(idx,
371 AMediaCodec_queueSecureInputBuffer( AMediaCodec* codec, size_t idx, off_t offset, AMediaCodecCryptoInfo* crypto, uint64_t time, uint32_t flags) argument
/frameworks/wilhelm/tests/examples/
H A DxaVideoDecoderCapabilities.cpp52 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/cmds/screenrecord/
H A Dscreenrecord.cpp143 * from the codec.
166 ALOGV("Creating codec");
167 sp<MediaCodec> codec = MediaCodec::CreateByType(looper, kMimeTypeAvc, true); local
168 if (codec == NULL) {
169 fprintf(stderr, "ERROR: unable to create %s codec instance\n",
174 err = codec->configure(format, NULL, NULL,
177 fprintf(stderr, "ERROR: unable to configure %s codec at %dx%d (err=%d)\n",
179 codec->release();
185 err = codec->createInputSurface(&bufferProducer);
189 codec
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java445 int codec = MediaRecorder.VideoEncoder.H263;
446 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec);
447 recordVideo(frameRate, 352, 288, codec,
469 //test cases for the new codec
521 int codec = MediaRecorder.VideoEncoder.H264;
522 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec);
527 success = recordVideoFromSurface(frameRate, 0, 352, 288, codec,
548 int codec = MediaRecorder.VideoEncoder.H264;
549 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec);
560 352, 288, codec,
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.h108 static bool codecIsType(const AString &codec, const char *type);

Completed in 5701 milliseconds

12