/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
D | TrackDecoder.java | 20 import android.media.MediaCodec; 21 import android.media.MediaCodec.BufferInfo; 47 private MediaCodec mMediaCodec; 58 protected abstract MediaCodec initMediaCodec(MediaFormat format); in initMediaCodec() 67 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info); in onDataAvailable() 102 protected MediaCodec getMediaCodec() { in getMediaCodec() 123 inputBufferIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in feedInput() 148 inputBufferIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in tryEnqueueEndOfStream() 157 if ((outputInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { in drainOutputBuffer() 167 } else if (outputBufferIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { in drainOutputBuffer() [all …]
|
D | AudioTrackDecoder.java | 20 import android.media.MediaCodec; 21 import android.media.MediaCodec.BufferInfo; 61 protected MediaCodec initMediaCodec(MediaFormat format) { in initMediaCodec() 62 MediaCodec mediaCodec; in initMediaCodec() 64 mediaCodec = MediaCodec.createDecoderByType( in initMediaCodec() 77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable()
|
D | GpuVideoTrackDecoder.java | 22 import android.media.MediaCodec; 23 import android.media.MediaCodec.BufferInfo; 89 protected MediaCodec initMediaCodec(MediaFormat format) { in initMediaCodec() 90 MediaCodec mediaCodec; in initMediaCodec() 92 mediaCodec = MediaCodec.createDecoderByType( in initMediaCodec() 107 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable()
|
D | CpuVideoTrackDecoder.java | 20 import android.media.MediaCodec; 21 import android.media.MediaCodec.BufferInfo; 66 protected MediaCodec initMediaCodec(MediaFormat format) { in initMediaCodec() 68 MediaCodec mediaCodec = findDecoderCodec(format, new int[] { in initMediaCodec() 81 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() 184 private static MediaCodec findDecoderCodec(MediaFormat format, int[] requiredColorFormats) { in findDecoderCodec() 219 return MediaCodec.createByCodecName(bestCodec); in findDecoderCodec()
|
/frameworks/av/media/libstagefright/ |
D | MediaCodec.cpp | 68 ResourceManagerClient(MediaCodec* codec) : mMediaCodec(codec) {} in ResourceManagerClient() 71 sp<MediaCodec> codec = mMediaCodec.promote(); in reclaimResource() 91 sp<MediaCodec> codec = mMediaCodec.promote(); in getName() 108 wp<MediaCodec> mMediaCodec; 113 MediaCodec::ResourceManagerServiceProxy::ResourceManagerServiceProxy(pid_t pid) in ResourceManagerServiceProxy() 115 if (mPid == MediaCodec::kNoPid) { in ResourceManagerServiceProxy() 120 MediaCodec::ResourceManagerServiceProxy::~ResourceManagerServiceProxy() { in ~ResourceManagerServiceProxy() 126 void MediaCodec::ResourceManagerServiceProxy::init() { in init() 137 void MediaCodec::ResourceManagerServiceProxy::binderDied(const wp<IBinder>& /*who*/) { in binderDied() 143 void MediaCodec::ResourceManagerServiceProxy::addResource( in addResource() [all …]
|
D | MediaCodecListOverrides.cpp | 148 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); in doProfileEncoderInputBuffers() 154 err = codec->configure(format, NULL, NULL, MediaCodec::CONFIGURE_FLAG_ENCODE); in doProfileEncoderInputBuffers() 196 Vector<sp<MediaCodec>> codecs; in doProfileCodecs() 205 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); in doProfileCodecs() 212 uint32_t flags = isEncoder ? MediaCodec::CONFIGURE_FLAG_ENCODE : 0; in doProfileCodecs()
|
D | SimpleDecodingSource.cpp | 56 sp<MediaCodec> codec; in Create() 66 codec = MediaCodec::CreateByComponentName(looper, componentName); in Create() 90 const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper, in SimpleDecodingSource() 254 0 /* pts */, MediaCodec::BUFFER_FLAG_EOS) != OK) { in doRead() 339 if (out_flags & MediaCodec::BUFFER_FLAG_EOS) { in doRead()
|
D | MediaCodecSource.cpp | 467 mEncoder = MediaCodec::CreateByComponentName( in initEncoder() 483 MediaCodec::CONFIGURE_FLAG_ENCODE); in initEncoder() 689 flags = MediaCodec::BUFFER_FLAG_EOS; in feedEncoderInputBuffers() 784 if (cbID == MediaCodec::CB_INPUT_AVAILABLE) { in onMessageReceived() 790 } else if (cbID == MediaCodec::CB_OUTPUT_FORMAT_CHANGED) { in onMessageReceived() 799 } else if (cbID == MediaCodec::CB_OUTPUT_AVAILABLE) { in onMessageReceived() 812 if (flags & MediaCodec::BUFFER_FLAG_EOS) { in onMessageReceived() 828 if (!(flags & MediaCodec::BUFFER_FLAG_CODECCONFIG)) { in onMessageReceived() 867 if (flags & MediaCodec::BUFFER_FLAG_SYNCFRAME) { in onMessageReceived() 880 } else if (cbID == MediaCodec::CB_ERROR) { in onMessageReceived()
|
D | StagefrightMetadataRetriever.cpp | 164 sp<MediaCodec> decoder = MediaCodec::CreateByComponentName( in extractVideoFrame() 292 flags |= MediaCodec::BUFFER_FLAG_EOS; in extractVideoFrame() 311 if (flags & MediaCodec::BUFFER_FLAG_CODECCONFIG) { in extractVideoFrame()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | DisplaySourceService.java | 26 import android.media.MediaCodec; 27 import android.media.MediaCodec.BufferInfo; 195 MediaCodec codec; in run() 197 codec = MediaCodec.createEncoderByType("video/avc"); in run() 202 codec.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in run() 227 private void stream(MediaCodec codec) { in stream() 244 } else if (index == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { in stream() 246 } else if (index == MediaCodec.INFO_TRY_AGAIN_LATER) { in stream()
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | DisplaySinkService.java | 25 import android.media.MediaCodec; 26 import android.media.MediaCodec.BufferInfo; 51 private MediaCodec mCodec; 155 mCodec = MediaCodec.createDecoderByType("video/avc"); in updateSurfaceFromUi() 223 } else if (index != MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED in consumeCodecOutputLocked() 224 && index != MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in consumeCodecOutputLocked()
|
/frameworks/base/media/java/android/media/ |
D | MediaCodec.java | 1470 final public class MediaCodec { class 1597 private MediaCodec mCodec; 1599 public EventHandler(@NonNull MediaCodec codec, @NonNull Looper looper) { in EventHandler() 1614 mCallback = (MediaCodec.Callback) msg.obj; in handleMessage() 1658 BufferInfo info = (MediaCodec.BufferInfo) msg.obj; in handleCallback() 1669 mCallback.onError(mCodec, (MediaCodec.CodecException) msg.obj); in handleCallback() 1720 public static MediaCodec createDecoderByType(@NonNull String type) in createDecoderByType() 1722 return new MediaCodec(type, true /* nameIsType */, false /* encoder */); in createDecoderByType() 1738 public static MediaCodec createEncoderByType(@NonNull String type) in createEncoderByType() 1740 return new MediaCodec(type, true /* nameIsType */, true /* encoder */); in createEncoderByType() [all …]
|
D | MediaMuxer.java | 22 import android.media.MediaCodec; 23 import android.media.MediaCodec.BufferInfo; 109 int offset, int size, long presentationTimeUs, @MediaCodec.BufferFlag int flags); in nativeWriteSampleData()
|
D | MediaExtractor.java | 25 import android.media.MediaCodec; 564 public native boolean getSampleCryptoInfo(@NonNull MediaCodec.CryptoInfo info);
|
/frameworks/av/include/media/stagefright/ |
D | SimpleDecodingSource.h | 34 struct MediaCodec; 73 const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper, 76 sp<MediaCodec> mCodec;
|
D | MediaCodec.h | 46 struct MediaCodec : public AHandler { struct 67 static sp<MediaCodec> CreateByType( argument 71 static sp<MediaCodec> CreateByComponentName( 181 virtual ~MediaCodec(); 349 MediaCodec(const sp<ALooper> &looper, pid_t pid); argument 414 DISALLOW_EVIL_CONSTRUCTORS(MediaCodec); argument
|
D | MediaCodecSource.h | 33 struct MediaCodec; 109 sp<MediaCodec> mEncoder;
|
/frameworks/av/cmds/stagefright/ |
D | mediafilter.cpp | 133 sp<MediaCodec> mCodec; 306 if (flags & MediaCodec::BUFFER_FLAG_EOS) { in tryDrainOutputBuffer() 355 state->mCodec = MediaCodec::CreateByType( in decode() 398 filterState->mCodec = MediaCodec::CreateByComponentName( in decode() 405 filterState->mCodec = MediaCodec::CreateByComponentName( in decode() 412 filterState->mCodec = MediaCodec::CreateByComponentName( in decode() 425 filterState->mCodec = MediaCodec::CreateByComponentName( in decode() 437 filterState->mCodec = MediaCodec::CreateByComponentName( in decode() 449 filterState->mCodec = MediaCodec::CreateByComponentName( in decode() 474 sp<MediaCodec> codec = state->mCodec; in decode() [all …]
|
D | codec.cpp | 58 sp<MediaCodec> mCodec; 123 state->mCodec = MediaCodec::CreateByType( in decode() 147 sp<MediaCodec> codec = state->mCodec; in decode() 219 MediaCodec::BUFFER_FLAG_EOS); in decode() 286 if (flags & MediaCodec::BUFFER_FLAG_EOS) { in decode()
|
D | SimplePlayer.h | 27 struct MediaCodec; 74 sp<MediaCodec> mCodec;
|
/frameworks/av/cmds/screenrecord/ |
D | screenrecord.cpp | 148 static status_t prepareEncoder(float displayFps, sp<MediaCodec>* pCodec, in prepareEncoder() 170 sp<MediaCodec> codec = MediaCodec::CreateByType(looper, kMimeTypeAvc, true); in prepareEncoder() 178 MediaCodec::CONFIGURE_FLAG_ENCODE); in prepareEncoder() 317 static status_t runEncoder(const sp<MediaCodec>& encoder, in runEncoder() 360 if ((flags & MediaCodec::BUFFER_FLAG_CODECCONFIG) != 0) { in runEncoder() 404 if ((flags & MediaCodec::BUFFER_FLAG_CODECCONFIG) == 0) { in runEncoder() 432 if ((flags & MediaCodec::BUFFER_FLAG_EOS) != 0) { in runEncoder() 567 sp<MediaCodec> encoder; in recordScreen()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoder.cpp | 124 case MediaCodec::CB_INPUT_AVAILABLE: in onMessageReceived() 133 case MediaCodec::CB_OUTPUT_AVAILABLE: in onMessageReceived() 151 case MediaCodec::CB_OUTPUT_FORMAT_CHANGED: in onMessageReceived() 160 case MediaCodec::CB_ERROR: in onMessageReceived() 253 mCodec = MediaCodec::CreateByType( in onConfigure() 262 mCodec = MediaCodec::CreateByComponentName( in onConfigure() 575 bool eos = flags & MediaCodec::BUFFER_FLAG_EOS; in handleAnOutputBuffer() 827 MediaCodec::BUFFER_FLAG_EOS); in onInputBufferFetched() 861 flags |= MediaCodec::BUFFER_FLAG_EOS; in onInputBufferFetched() 863 flags |= MediaCodec::BUFFER_FLAG_CODECCONFIG; in onInputBufferFetched()
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
D | Converter.cpp | 149 mEncoder = MediaCodec::CreateByType( in initEncoder() 208 MediaCodec::CONFIGURE_FLAG_ENCODE); in initEncoder() 229 MediaCodec::CONFIGURE_FLAG_ENCODE); in initEncoder() 636 flags = MediaCodec::BUFFER_FLAG_EOS; in feedEncoderInputBuffers() 708 if (flags & MediaCodec::BUFFER_FLAG_EOS) { in doMoreWork() 754 if (flags & MediaCodec::BUFFER_FLAG_CODECCONFIG) { in doMoreWork() 780 if (flags & MediaCodec::BUFFER_FLAG_EOS) { in doMoreWork()
|
D | Converter.h | 27 struct MediaCodec; 104 sp<MediaCodec> mEncoder;
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodec.h | 35 struct MediaCodec; 142 sp<MediaCodec> mCodec;
|