Searched refs:codec (Results 1 - 25 of 31) sorted by last modified time

12

/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/base/voip/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 DAudioGroup.java148 AudioCodec codec = stream.getCodec();
149 String codecSpec = String.format("%d %s %s", codec.type,
150 codec.rtpmap, codec.fmtp);
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");
/frameworks/base/voip/java/android/net/sip/
H A DSipAudioCall.java739 for (AudioCodec codec : AudioCodec.getCodecs()) {
740 media.setRtpPayload(codec.type, codec.rtpmap, codec.fmtp);
752 AudioCodec codec = null;
754 if ((codec == null) && (media.getPort() > 0)
757 // Find the first audio codec we supported.
759 codec = AudioCodec.getCodec(type, media.getRtpmap(type),
761 if (codec != null) {
765 if (codec !
[all...]
/frameworks/base/voip/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);
937 AudioCodec *codec = NULL; local
963 // Create audio codec.
968 codec = newAudioCodec(codecName);
969 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/base/tests/CoreTests/android/core/
H A DSSLSocketTest.java21 import org.apache.commons.codec.binary.Base64;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java260 int codec = MediaRecorder.VideoEncoder.H263;
261 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec);
262 recordVideo(frameRate, 352, 288, codec,
284 //test cases for the new codec
/frameworks/base/media/java/android/media/
H A DEncoderCapabilities.java53 private VideoEncoderCap(int codec, argument
58 mCodec = codec;
89 private AudioEncoderCap(int codec, argument
93 mCodec = codec;
/frameworks/base/media/java/android/media/videoeditor/
H A DMediaArtistNativeHelper.java2063 * Sets the export audio codec
2065 * @param export audio codec
2068 void setAudioCodec(int codec) { argument
2069 mExportAudioCodec = codec;
2072 * Sets the export video codec
2074 * @param export video codec
2077 void setVideoCodec(int codec) { argument
2078 mExportVideoCodec = codec;
3255 * Maps the video codec type used in native layer
3256 * to video codec typ
[all...]
H A DVideoEditorProfile.java66 * 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/media/jni/
H A Dandroid_media_MediaCodec.cpp280 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) {
282 if (codec != NULL) {
283 codec->incStrong(thiz);
288 env->SetIntField(thiz, gFields.context, (int)codec.get());
356 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
358 if (codec == NULL) {
390 err = codec->configure(format, surfaceTexture, crypto, flags);
398 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
400 if (codec == NULL) {
405 status_t err = codec
279 setMediaCodec( JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) argument
413 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
428 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
450 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
476 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
608 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
629 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
651 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
667 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
690 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
711 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
773 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder); local
[all...]
H A Dandroid_media_MediaProfiles.cpp184 int videoCodec = sProfiles->getCamcorderProfileParamByName("vid.codec", id, q);
189 int audioCodec = sProfiles->getCamcorderProfileParamByName("aud.codec", id, q);
333 JNIEnv *env, jobject thiz, jint codec)
337 profile = sProfiles->getVideoEditorExportParamByName("videoeditor.export.profile", codec);
349 JNIEnv *env, jobject thiz, jint codec)
353 level = sProfiles->getVideoEditorExportParamByName("videoeditor.export.level", codec);
332 android_media_MediaProfiles_native_get_videoeditor_export_profile( JNIEnv *env, jobject thiz, jint codec) argument
348 android_media_MediaProfiles_native_get_videoeditor_export_level( JNIEnv *env, jobject thiz, jint codec) argument
/frameworks/base/media/jni/mediaeditor/
H A DVideoEditorMain.cpp500 M4OSA_Int32 codec = 0; local
509 codec = M4DA_StreamTypeVideoH263;
512 codec = M4DA_StreamTypeVideoMpeg4Avc;
515 codec = M4DA_StreamTypeVideoMpeg4;
531 if (pVideoDecoder->codec == codec) {
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DMediaProfileReader.java97 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/media/libstagefright/omx/
H A DSoftOMXPlugin.cpp105 sp<SoftOMXComponent> codec = local
108 if (codec == NULL) {
115 OMX_ERRORTYPE err = codec->initCheck();
123 codec->incStrong(this);
124 codec->setLibHandle(libHandle);
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp594 sp<MediaSource> codec = OMXCodec::Create( local
598 CHECK(codec != NULL);
600 CHECK_EQ(codec->start(), (status_t)OK);
664 err = codec->read(&buffer, &options);
723 CHECK_EQ(codec->stop(), (status_t)OK);
733 CHECK_EQ(codec->stop(), (status_t)OK);
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp161 SkImageDecoder* codec = SkImageDecoder::Factory(&stream); local
162 codec->setDitherImage(false);
163 if (codec) {
164 codec->decode(&stream, &bitmap,
167 delete codec;
/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java19 import org.apache.commons.codec.binary.Hex;
/frameworks/base/core/java/android/net/http/
H A DRequestHandle.java24 import org.apache.commons.codec.binary.Base64;
/frameworks/av/cmds/stagefright/
H A DAndroid.mk149 codec.cpp \
164 LOCAL_MODULE:= codec
H A Dcodec.cpp18 #define LOG_TAG "codec"
140 sp<MediaCodec> codec = state->mCodec; local
142 CHECK_EQ((status_t)OK, codec->start());
144 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers));
145 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers));
H A Drecordvideo.cpp45 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) {
261 switch (codec) {
/frameworks/av/include/media/
H A DMediaProfiles.h94 * 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...]

Completed in 5538 milliseconds

12