Searched defs:codec (Results 1 - 25 of 34) 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/opt/net/voip/src/java/android/net/rtp/
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/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.cpp102 AudioCodec *codec, int sampleRate, int sampleCount,
168 AudioCodec *codec, int sampleRate, int sampleCount,
204 if (codec) {
206 mCodec = codec;
224 (codec ? codec->name : "RAW"), mSampleRate, mInterval, mMode);
947 AudioCodec *codec = NULL; local
975 // Create audio codec.
980 codec = newAudioCodec(codecName);
981 int sampleCount = (codec
167 set(int mode, int socket, sockaddr_storage *remote, AudioCodec *codec, int sampleRate, int sampleCount, int codecType, int dtmfType) argument
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...
/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/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 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...]
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 DTrackDecoder.java67 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 DEncoderCapabilities.java52 private VideoEncoderCap(int codec, argument
57 mCodec = codec;
88 private AudioEncoderCap(int codec, argument
92 mCodec = codec;
H A DMediaCodec.java53 In broad terms, a codec processes input data to generate output data. It processes data
55 (or receive) an empty input buffer, fill it up with data and send it to the codec for
56 processing. The codec uses up the data and transforms it into one of its empty output buffers.
58 back to the codec.
64 a {@link Surface} for raw video data to improve codec performance. Surface uses native video
90 short[] getSamplesForChannel(MediaCodec codec, int bufferId, int channelIx) {
91 ByteBuffer outputBuffer = codec.getOutputBuffer(bufferId);
92 MediaFormat format = codec.getOutputFormat(bufferId);
130 During its life a codec conceptually exists in one of three states: Stopped, Executing or
140 When you create a codec usin
1495 EventHandler(@onNull MediaCodec codec, @NonNull Looper looper) argument
3068 onFrameRendered( @onNull MediaCodec codec, long presentationTimeUs, long nanoTime) argument
3131 onInputBufferAvailable(@onNull MediaCodec codec, int index) argument
3140 onOutputBufferAvailable( @onNull MediaCodec codec, int index, @NonNull BufferInfo info) argument
3149 onError(@onNull MediaCodec codec, @NonNull CodecException e) argument
3157 onOutputFormatChanged( @onNull MediaCodec codec, @NonNull MediaFormat format) argument
[all...]
H A DMediaCodecList.java28 * 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.
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp790 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) {
792 if (codec != NULL) {
793 codec->incStrong(thiz);
804 env->SetLongField(thiz, gFields.context, (jlong)codec.get());
898 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
900 if (codec == NULL) {
905 status_t err = codec->enableOnFrameRenderedListener(enabled);
914 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
916 if (codec == NULL) {
921 status_t err = codec
789 setMediaCodec( JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) argument
933 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
976 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1100 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1119 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1141 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1156 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1171 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1193 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1215 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1241 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1377 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1398 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1421 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1437 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1452 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1475 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1498 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1524 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1550 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1576 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1599 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1618 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1761 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder); local
[all...]
/frameworks/base/media/jni/soundpool/
H A DSoundPool.cpp516 AMediaCodec *codec = AMediaCodec_createDecoderByType(mime); local
517 if (codec == NULL
518 || AMediaCodec_configure(codec, format,
520 || AMediaCodec_start(codec) != AMEDIA_OK
523 AMediaCodec_delete(codec);
535 format = AMediaCodec_getOutputFormat(codec);
539 ssize_t bufidx = AMediaCodec_dequeueInputBuffer(codec, 5000);
543 uint8_t *buf = AMediaCodec_getInputBuffer(codec, bufidx, &bufsize);
553 AMediaCodec_queueInputBuffer(codec, bufidx,
561 int status = AMediaCodec_dequeueOutputBuffer(codec,
[all...]
/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/base/cmds/bootanimation/
H A DBootAnimation.cpp170 SkImageDecoder* codec = SkImageDecoder::Factory(&stream); local
171 if (codec != NULL) {
172 codec->setDitherImage(false);
173 codec->decode(&stream, &bitmap,
176 delete codec;
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp146 * 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/cmds/stagefright/
H A Dcodec.cpp18 #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 Dmediafilter.cpp474 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));
H A Drecordvideo.cpp50 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) {
/frameworks/av/include/media/
H A DMediaProfiles.h87 * 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 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
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/
H A DACodec.cpp216 BaseState(ACodec *codec, const sp<AState> &parentState = NULL);
285 UninitializedState(ACodec *codec);
303 LoadedState(ACodec *codec);
326 LoadedToIdleState(ACodec *codec);
342 IdleToExecutingState(ACodec *codec);
356 ExecutingState(ACodec *codec);
386 OutputPortSettingsChangedState(ACodec *codec);
403 ExecutingToIdleState(ACodec *codec);
425 IdleToLoadedState(ACodec *codec);
440 FlushingState(ACodec *codec);
4520 BaseState(ACodec *codec, const sp<AState> &parentState) argument
5357 UninitializedState(ACodec *codec) argument
5567 LoadedState(ACodec *codec) argument
5880 LoadedToIdleState(ACodec *codec) argument
5979 IdleToExecutingState(ACodec *codec) argument
6050 ExecutingState(ACodec *codec) argument
6411 OutputPortSettingsChangedState( ACodec *codec) argument
6546 ExecutingToIdleState(ACodec *codec) argument
6665 IdleToLoadedState(ACodec *codec) argument
6727 FlushingState(ACodec *codec) argument
[all...]
H A DMediaCodec.cpp69 ResourceManagerClient(MediaCodec* codec) : mMediaCodec(codec) {} argument
72 sp<MediaCodec> codec = mMediaCodec.promote(); local
73 if (codec == NULL) {
74 // codec is already gone.
77 status_t err = codec->reclaim();
79 ALOGD("Wait for the client to release codec.");
82 err = codec->reclaim(true /* force */);
85 ALOGW("ResourceManagerClient failed to release codec with err %d", err);
92 sp<MediaCodec> codec local
175 sp<MediaCodec> codec = new MediaCodec(looper, pid); local
187 sp<MediaCodec> codec = new MediaCodec(looper, pid); local
[all...]

Completed in 525 milliseconds

12