Searched refs:codec (Results 1 - 25 of 48) 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 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.java150 AudioCodec codec = stream.getCodec();
151 String codecSpec = String.format(Locale.US, "%d %s %s", codec.type,
152 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/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/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.java55 In broad terms, a codec processes input data to generate output data. It processes data
57 (or receive) an empty input buffer, fill it up with data and send it to the codec for
58 processing. The codec uses up the data and transforms it into one of its empty output buffers.
60 back to the codec.
66 a {@link Surface} for raw video data to improve codec performance. Surface uses native video
92 short[] getSamplesForChannel(MediaCodec codec, int bufferId, int channelIx) {
93 ByteBuffer outputBuffer = codec.getOutputBuffer(bufferId);
94 MediaFormat format = codec.getOutputFormat(bufferId);
204 During its life a codec conceptually exists in one of three states: Stopped, Executing or
214 When you create a codec usin
1611 EventHandler(@onNull MediaCodec codec, @NonNull Looper looper) argument
3343 onFrameRendered( @onNull MediaCodec codec, long presentationTimeUs, long nanoTime) argument
3406 onInputBufferAvailable(@onNull MediaCodec codec, int index) argument
3415 onOutputBufferAvailable( @onNull MediaCodec codec, int index, @NonNull BufferInfo info) argument
3424 onError(@onNull MediaCodec codec, @NonNull CodecException e) argument
3432 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
94 Log.e(TAG, "Could not get codec capabilities", e);
128 /* package private */ static native final int findCodecByName(String codec); argument
131 public static MediaCodecInfo getInfoFor(String codec) { argument
133 return sAllCodecInfos[findCodecByName(codec)];
211 * requests, or {@code null} if no such codec has been found.
235 * requests, or {@code null} if no such codec has been found.
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp822 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) {
824 if (codec != NULL) {
825 codec->incStrong(thiz);
836 env->SetLongField(thiz, gFields.context, (jlong)codec.get());
941 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
943 if (codec == NULL) {
948 status_t err = codec->enableOnFrameRenderedListener(enabled);
957 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
959 if (codec == NULL) {
964 status_t err = codec
821 setMediaCodec( JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) argument
977 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1026 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1150 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1169 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1191 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1206 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1221 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1243 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1265 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1291 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1450 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1471 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1494 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1510 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1525 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1548 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1571 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1597 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1623 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1649 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1673 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1701 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1720 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1896 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder); local
[all...]
/frameworks/base/media/jni/soundpool/
H A DSoundPool.cpp543 AMediaCodec *codec = AMediaCodec_createDecoderByType(mime); local
544 if (codec == NULL
545 || AMediaCodec_configure(codec, format,
547 || AMediaCodec_start(codec) != AMEDIA_OK
550 AMediaCodec_delete(codec);
562 format = AMediaCodec_getOutputFormat(codec);
566 ssize_t bufidx = AMediaCodec_dequeueInputBuffer(codec, 5000);
570 uint8_t *buf = AMediaCodec_getInputBuffer(codec, bufidx, &bufsize);
584 media_status_t mstatus = AMediaCodec_queueInputBuffer(codec, bufidx,
598 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java483 int codec = MediaRecorder.VideoEncoder.H263;
484 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec);
485 recordVideo(frameRate, 352, 288, codec,
507 //test cases for the new codec
559 int codec = MediaRecorder.VideoEncoder.H264;
560 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec);
565 success = recordVideoFromSurface(frameRate, 0, 352, 288, codec,
586 int codec = MediaRecorder.VideoEncoder.H264;
587 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec);
593 success = recordVideoFromSurface(frameRate, 0, 352, 288, codec,
[all...]
/frameworks/base/core/jni/
H A DAndroid.mk219 external/skia/src/codec \
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp236 // here. This is a precaution - if we were to return before creating the codec,
295 // Create the codec.
297 std::unique_ptr<SkAndroidCodec> codec(SkAndroidCodec::NewFromStream(
299 if (!codec.get()) {
313 SkISize size = codec->getSampledDimensions(sampleSize);
320 if (needsFineScale(codec->getInfo().dimensions(), size, sampleSize)) {
322 scaledWidth = codec->getInfo().width() / sampleSize;
323 scaledHeight = codec->getInfo().height() / sampleSize;
327 SkColorType decodeColorType = codec->computeOutputColorType(prefColorType);
328 sk_sp<SkColorSpace> decodeColorSpace = codec
[all...]
/frameworks/av/include/media/stagefright/
H A DSimpleDecodingSource.h40 // The selected codec can be influenced using |flags|. This source only supports the
46 // if |desiredCodec| is given, use this specific codec.
71 // Construct this using a codec, source and looper.
73 const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper,
/frameworks/av/media/libstagefright/codecs/hevcdec/
H A DSoftHEVC.cpp38 /** Function and structure definitions to keep code similar for each codec */
72 // INPUT_BUF_SIZE is given by HEVC codec as minimum input size
237 /* Set number of cores/threads to be used by the codec */
334 /* Set number of cores/threads to be used by the codec */
337 /* Get codec version */
660 /* If in flush mode and no output is returned by the codec,
665 * from the codec, then signal EOS on output port */
710 android::SoftHEVC *codec = new android::SoftHEVC(name, callbacks, appData, component); local
711 if (codec->init() != android::OK) {
712 android::sp<android::SoftOMXComponent> release = codec;
[all...]
/frameworks/av/media/libstagefright/foundation/include/
H A DSimpleDecodingSource.h40 // The selected codec can be influenced using |flags|. This source only supports the
46 // if |desiredCodec| is given, use this specific codec.
71 // Construct this using a codec, source and looper.
73 const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper,

Completed in 6680 milliseconds

12