HomeSort by relevance Sort by last modified time
    Searched refs:MediaCodec (Results 1 - 25 of 89) sorted by null

1 2 3 4

  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
TrackDecoder.java 20 import android.media.MediaCodec;
21 import android.media.MediaCodec.BufferInfo;
47 private MediaCodec mMediaCodec;
56 * @return a configured {@link MediaCodec}.
58 protected abstract MediaCodec initMediaCodec(MediaFormat format);
67 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info);
102 protected MediaCodec getMediaCodec() {
123 inputBufferIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM);
148 inputBufferIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM);
157 if ((outputInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0)
    [all...]
AudioTrackDecoder.java 20 import android.media.MediaCodec;
21 import android.media.MediaCodec.BufferInfo;
61 protected MediaCodec initMediaCodec(MediaFormat format) {
62 MediaCodec mediaCodec;
64 mediaCodec = MediaCodec.createDecoderByType(
71 mediaCodec.configure(format, null, null, 0);
72 return mediaCodec;
77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info)
    [all...]
GpuVideoTrackDecoder.java 22 import android.media.MediaCodec;
23 import android.media.MediaCodec.BufferInfo;
89 protected MediaCodec initMediaCodec(MediaFormat format) {
90 MediaCodec mediaCodec;
92 mediaCodec = MediaCodec.createDecoderByType(
100 mediaCodec.configure(format, surface, null, 0);
102 return mediaCodec;
107 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info)
    [all...]
  /developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/
MediaCodecWrapper.java 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations.
51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer);
55 * The {@link MediaCodec} that is managed by this class.
57 private MediaCodec mDecoder;
75 private MediaCodec.BufferInfo[] mOutputBufferInfo;
80 private MediaCodecWrapper(MediaCodec codec) {
85 mOutputBufferInfo = new MediaCodec.BufferInfo[mOutputBuffers.length];
142 MediaCodec videoCodec = null;
150 videoCodec = MediaCodec.createDecoderByType(mimeType);
181 * @param flags Flags to pass to the decoder. See {@link MediaCodec#queueInputBuffer(int
    [all...]
  /developers/build/prebuilts/gradle/BasicRenderScript/Application/src/main/java/com/example/android/common/media/
MediaCodecWrapper.java 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations.
51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer);
55 * The {@link MediaCodec} that is managed by this class.
57 private MediaCodec mDecoder;
75 private MediaCodec.BufferInfo[] mOutputBufferInfo;
80 private MediaCodecWrapper(MediaCodec codec) {
85 mOutputBufferInfo = new MediaCodec.BufferInfo[mOutputBuffers.length];
142 MediaCodec videoCodec = null;
150 videoCodec = MediaCodec.createDecoderByType(mimeType);
181 * @param flags Flags to pass to the decoder. See {@link MediaCodec#queueInputBuffer(int
    [all...]
  /developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/
MediaCodecWrapper.java 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations.
51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer);
55 * The {@link MediaCodec} that is managed by this class.
57 private MediaCodec mDecoder;
75 private MediaCodec.BufferInfo[] mOutputBufferInfo;
80 private MediaCodecWrapper(MediaCodec codec) {
85 mOutputBufferInfo = new MediaCodec.BufferInfo[mOutputBuffers.length];
142 MediaCodec videoCodec = null;
150 videoCodec = MediaCodec.createDecoderByType(mimeType);
181 * @param flags Flags to pass to the decoder. See {@link MediaCodec#queueInputBuffer(int
    [all...]
  /developers/samples/android/common/src/java/com/example/android/common/media/
MediaCodecWrapper.java 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations.
51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer);
55 * The {@link MediaCodec} that is managed by this class.
57 private MediaCodec mDecoder;
75 private MediaCodec.BufferInfo[] mOutputBufferInfo;
80 private MediaCodecWrapper(MediaCodec codec) {
85 mOutputBufferInfo = new MediaCodec.BufferInfo[mOutputBuffers.length];
142 MediaCodec videoCodec = null;
150 videoCodec = MediaCodec.createDecoderByType(mimeType);
181 * @param flags Flags to pass to the decoder. See {@link MediaCodec#queueInputBuffer(int
    [all...]
  /development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
MediaCodecWrapper.java 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations.
51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer);
55 * The {@link MediaCodec} that is managed by this class.
57 private MediaCodec mDecoder;
75 private MediaCodec.BufferInfo[] mOutputBufferInfo;
80 private MediaCodecWrapper(MediaCodec codec) {
85 mOutputBufferInfo = new MediaCodec.BufferInfo[mOutputBuffers.length];
142 MediaCodec videoCodec = null;
150 videoCodec = MediaCodec.createDecoderByType(mimeType);
181 * @param flags Flags to pass to the decoder. See {@link MediaCodec#queueInputBuffer(int
    [all...]
  /development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
MediaCodecWrapper.java 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations.
51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer);
55 * The {@link MediaCodec} that is managed by this class.
57 private MediaCodec mDecoder;
75 private MediaCodec.BufferInfo[] mOutputBufferInfo;
80 private MediaCodecWrapper(MediaCodec codec) {
85 mOutputBufferInfo = new MediaCodec.BufferInfo[mOutputBuffers.length];
142 MediaCodec videoCodec = null;
150 videoCodec = MediaCodec.createDecoderByType(mimeType);
181 * @param flags Flags to pass to the decoder. See {@link MediaCodec#queueInputBuffer(int
    [all...]
  /development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
MediaCodecWrapper.java 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations.
51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer);
55 * The {@link MediaCodec} that is managed by this class.
57 private MediaCodec mDecoder;
75 private MediaCodec.BufferInfo[] mOutputBufferInfo;
80 private MediaCodecWrapper(MediaCodec codec) {
85 mOutputBufferInfo = new MediaCodec.BufferInfo[mOutputBuffers.length];
142 MediaCodec videoCodec = null;
150 videoCodec = MediaCodec.createDecoderByType(mimeType);
181 * @param flags Flags to pass to the decoder. See {@link MediaCodec#queueInputBuffer(int
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
MediaCodecTest.java 23 import android.media.MediaCodec;
24 import android.media.MediaCodec.BufferInfo;
25 import android.media.MediaCodec.CodecException;
49 * General MediaCodec tests.
85 * <br> Exceptions for MediaCodec factory methods
86 * <br> Exceptions for MediaCodec methods when called in the incorrect state.
88 * A selective test to ensure proper exceptions are thrown from MediaCodec
117 // wrap MediaCodec encoder and decoder creation
118 private static MediaCodec createCodecByType(String type, boolean isEncoder)
121 return MediaCodec.createEncoderByType(type)
    [all...]
CodecState.java 19 import android.media.MediaCodec;
29 * using {@link MediaCodec} and {@link AudioTrack}.
44 private LinkedList<MediaCodec.BufferInfo> mAvailableOutputBufferInfos;
47 private MediaCodec mCodec;
55 * Manages audio and video playback using MediaCodec and AudioTrack.
62 MediaCodec codec,
80 mAvailableOutputBufferInfos = new LinkedList<MediaCodec.BufferInfo>();
158 * It first reads data from {@link MediaExtractor} and pushes it into {@link MediaCodec};
159 * it then dequeues buffer from {@link MediaCodec}, consumes it and pushes back to its own
165 if (indexInput != MediaCodec.INFO_TRY_AGAIN_LATER)
    [all...]
ResourceManagerTestActivityBase.java 20 import android.media.MediaCodec;
41 private Vector<MediaCodec> mCodecs = new Vector<MediaCodec>();
43 private class TestCodecCallback extends MediaCodec.Callback {
45 public void onInputBufferAvailable(MediaCodec codec, int index) {
51 MediaCodec codec, int index, MediaCodec.BufferInfo info) {
56 public void onError(MediaCodec codec, MediaCodec.CodecException e) {
61 public void onOutputFormatChanged(MediaCodec codec, MediaFormat format)
    [all...]
EncoderTest.java 22 import android.media.MediaCodec;
155 MediaCodec codec, ByteBuffer[] inputBuffers, int index) {
170 MediaCodec codec, ByteBuffer[] outputBuffers,
171 int index, MediaCodec.BufferInfo info) {
176 MediaCodec codec;
178 codec = MediaCodec.createByCodecName(componentName);
188 MediaCodec.CONFIGURE_FLAG_ENCODE);
207 if (index != MediaCodec.INFO_TRY_AGAIN_LATER) {
214 MediaCodec.BUFFER_FLAG_END_OF_STREAM);
234 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo()
    [all...]
ExtractDecodeEditEncodeMuxTest.java 21 import android.media.MediaCodec;
44 * Test for the integration of MediaMuxer and MediaCodec's encoder.
53 * <p>It also tests the way the codec config buffers need to be passed from the MediaCodec to the
268 * We encode several frames of a video test pattern using MediaCodec, then decode the output
269 * with MediaCodec and do some simple checks.
282 // Set some properties. Failing to specify some of these can cause the MediaCodec
318 MediaCodec videoDecoder = null;
319 MediaCodec audioDecoder = null;
320 MediaCodec videoEncoder = null;
321 MediaCodec audioEncoder = null
    [all...]
EncodeDecodeTest.java 21 import android.media.MediaCodec;
294 MediaCodec.createPersistentInputSurface());
345 * We encode several frames of a video test pattern using MediaCodec, then decode the
346 * output with MediaCodec and do some simple checks.
351 MediaCodec encoder = null;
352 MediaCodec decoder = null;
369 // Create a MediaCodec for the desired codec, then configure it as an encoder with
371 encoder = MediaCodec.createByCodecName(codec);
376 // Set some properties. Failing to specify some of these can cause the MediaCodec
384 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE)
    [all...]
Vp8CodecTestBase.java 21 import android.media.MediaCodec;
22 import android.media.MediaCodec.CodecException;
61 // Default timeout for MediaCodec buffer dequeue - 200 ms.
71 // NV12 color format supported by QCOM codec, but not declared in MediaCodec -
224 // MediaCodec.PARAMETER_KEY_REQUEST_SYNC_FRAME parameter.
502 * Indeed, MediaCodec will raise an IllegalStateException
511 protected ArrayList<MediaCodec.BufferInfo> decode(
516 ArrayList<MediaCodec.BufferInfo> bufferInfos = new ArrayList<MediaCodec.BufferInfo>();
551 MediaCodec decoder = MediaCodec.createByCodecName(properties.codecName)
    [all...]
DecodeEditEncodeTest.java 19 import android.media.MediaCodec;
45 * step, feeding data through multiple stages of MediaCodec, but at some point we're
190 MediaCodec encoder = null;
206 // Set some properties. Failing to specify some of these can cause the MediaCodec
216 // Create a MediaCodec for the desired codec, then configure it as an encoder with
218 encoder = MediaCodec.createByCodecName(codecName);
219 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
253 private void generateVideoData(MediaCodec encoder, InputSurface inputSurface,
257 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo()
    [all...]
EncodeVirtualDisplayTest.java 20 import android.media.MediaCodec;
47 * Tests connecting a virtual display to the input of a MediaCodec encoder.
50 * that virtual displays and MediaCodec can be used together.
204 MediaCodec encoder = null;
205 MediaCodec decoder = null;
226 encoder = MediaCodec.createByCodecName(codec);
227 encoder.configure(encoderFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
236 decoder = MediaCodec.createDecoderByType(MIME_TYPE);
271 private void doTestEncodeVirtual(MediaCodec encoder, MediaCodec decoder
    [all...]
  /cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
CodecInfo.java 19 import android.media.MediaCodec;
57 MediaCodec codec;
59 codec = MediaCodec.createByCodecName(codecName);
  /frameworks/av/media/libstagefright/
MediaCodec.cpp 18 #define LOG_TAG "MediaCodec"
40 #include <media/stagefright/MediaCodec.h>
68 ResourceManagerClient(MediaCodec* codec) : mMediaCodec(codec) {}
71 sp<MediaCodec> codec = mMediaCodec.promote();
85 sp<MediaCodec> codec = mMediaCodec.promote();
102 wp<MediaCodec> mMediaCodec;
107 MediaCodec::ResourceManagerServiceProxy::ResourceManagerServiceProxy(pid_t pid)
109 if (mPid == MediaCodec::kNoPid) {
114 MediaCodec::ResourceManagerServiceProxy::~ResourceManagerServiceProxy() {
120 void MediaCodec::ResourceManagerServiceProxy::init()
    [all...]
  /frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DisplaySourceService.java 26 import android.media.MediaCodec;
27 import android.media.MediaCodec.BufferInfo;
195 MediaCodec codec;
197 codec = MediaCodec.createEncoderByType("video/avc");
202 codec.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
227 private void stream(MediaCodec codec) {
244 } else if (index == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {
246 } else if (index == MediaCodec.INFO_TRY_AGAIN_LATER) {
  /developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/basicmediadecoder/
MainActivity.java 22 import android.media.MediaCodec;
40 * {@link android.media.MediaCodec} API.
145 boolean isEos = ((mExtractor.getSampleFlags() & MediaCodec
146 .BUFFER_FLAG_END_OF_STREAM) == MediaCodec.BUFFER_FLAG_END_OF_STREAM);
165 MediaCodec.BufferInfo out_bufferInfo = new MediaCodec.BufferInfo();
  /developers/samples/android/media/BasicMediaDecoder/Application/src/main/java/com/example/android/basicmediadecoder/
MainActivity.java 22 import android.media.MediaCodec;
40 * {@link android.media.MediaCodec} API.
145 boolean isEos = ((mExtractor.getSampleFlags() & MediaCodec
146 .BUFFER_FLAG_END_OF_STREAM) == MediaCodec.BUFFER_FLAG_END_OF_STREAM);
165 MediaCodec.BufferInfo out_bufferInfo = new MediaCodec.BufferInfo();
  /development/samples/browseable/BasicMediaDecoder/src/com.example.android.basicmediadecoder/
MainActivity.java 22 import android.media.MediaCodec;
40 * {@link android.media.MediaCodec} API.
145 boolean isEos = ((mExtractor.getSampleFlags() & MediaCodec
146 .BUFFER_FLAG_END_OF_STREAM) == MediaCodec.BUFFER_FLAG_END_OF_STREAM);
165 MediaCodec.BufferInfo out_bufferInfo = new MediaCodec.BufferInfo();

Completed in 486 milliseconds

1 2 3 4