Home
last modified time | relevance | path

Searched refs:media_status_t (Results 1 – 25 of 96) sorted by relevance

1234

/frameworks/av/media/ndk/include/media/
DNdkMediaCodec.h145 media_status_t error,
204 media_status_t AMediaCodec_delete(AMediaCodec*) __INTRODUCED_IN(21);
211 media_status_t AMediaCodec_configure(
224 media_status_t AMediaCodec_start(AMediaCodec*) __INTRODUCED_IN(21);
231 media_status_t AMediaCodec_stop(AMediaCodec*) __INTRODUCED_IN(21);
239 media_status_t AMediaCodec_flush(AMediaCodec*) __INTRODUCED_IN(21);
295 media_status_t AMediaCodec_queueInputBuffer(AMediaCodec*, size_t idx,
304 media_status_t AMediaCodec_queueSecureInputBuffer(AMediaCodec*, size_t idx,
334 media_status_t AMediaCodec_releaseOutputBuffer(AMediaCodec*, size_t idx, bool render) __INTRODUCED_…
348 media_status_t AMediaCodec_setOutputSurface(AMediaCodec*, ANativeWindow* surface) __INTRODUCED_IN(2…
[all …]
DNdkMediaDrm.h238 media_status_t AMediaDrm_setOnEventListener(AMediaDrm *,
248 media_status_t AMediaDrm_setOnExpirationUpdateListener(AMediaDrm *,
258 media_status_t AMediaDrm_setOnKeysChangeListener(AMediaDrm *,
269 media_status_t AMediaDrm_openSession(AMediaDrm *,
278 media_status_t AMediaDrm_closeSession(AMediaDrm *,
335 media_status_t AMediaDrm_getKeyRequest(AMediaDrm *, const AMediaDrmScope *scope,
398 media_status_t AMediaDrm_getKeyRequestWithDefaultUrlAndType(AMediaDrm *,
424 media_status_t AMediaDrm_provideKeyResponse(AMediaDrm *, const AMediaDrmScope *scope,
437 media_status_t AMediaDrm_restoreKeys(AMediaDrm *, const AMediaDrmSessionId *sessionId,
447 media_status_t AMediaDrm_removeKeys(AMediaDrm *,
[all …]
DNdkImageReader.h92 media_status_t AImageReader_new(
124 media_status_t AImageReader_getWindow(AImageReader* reader, /*out*/ANativeWindow** window) __INTROD…
142 media_status_t AImageReader_getWidth(const AImageReader* reader, /*out*/int32_t* width) __INTRODUCE…
160 media_status_t AImageReader_getHeight(const AImageReader* reader, /*out*/int32_t* height) __INTRODU…
175 media_status_t AImageReader_getFormat(const AImageReader* reader, /*out*/int32_t* format) __INTRODU…
190 media_status_t AImageReader_getMaxImages(const AImageReader* reader, /*out*/int32_t* maxImages) __I…
228 media_status_t AImageReader_acquireNextImage(AImageReader* reader, /*out*/AImage** image) __INTRODU…
273 media_status_t AImageReader_acquireLatestImage(AImageReader* reader, /*out*/AImage** image) __INTRO…
318 media_status_t AImageReader_setImageListener(
385 media_status_t AImageReader_newWithUsage(
[all …]
DNdkImage.h594 media_status_t AImage_getWidth(const AImage* image, /*out*/int32_t* width) __INTRODUCED_IN(24);
610 media_status_t AImage_getHeight(const AImage* image, /*out*/int32_t* height) __INTRODUCED_IN(24);
628 media_status_t AImage_getFormat(const AImage* image, /*out*/int32_t* format) __INTRODUCED_IN(24);
647 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect) __INTRODUCED_IN…
673 media_status_t AImage_getTimestamp(const AImage* image, /*out*/int64_t* timestampNs) __INTRODUCED_I…
693 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes) __INTRODUCE…
722 media_status_t AImage_getPlanePixelStride(
751 media_status_t AImage_getPlaneRowStride(
777 media_status_t AImage_getPlaneData(
827 media_status_t AImage_getHardwareBuffer(const AImage* image, /*out*/AHardwareBuffer** buffer) __INT…
[all …]
DNdkMediaExtractor.h65 media_status_t AMediaExtractor_delete(AMediaExtractor*) __INTRODUCED_IN(21);
72 media_status_t AMediaExtractor_setDataSourceFd(AMediaExtractor*, int fd, off64_t offset,
80 media_status_t AMediaExtractor_setDataSource(AMediaExtractor*,
88 media_status_t AMediaExtractor_setDataSourceCustom(AMediaExtractor*,
113 media_status_t AMediaExtractor_selectTrack(AMediaExtractor*, size_t idx) __INTRODUCED_IN(21);
121 media_status_t AMediaExtractor_unselectTrack(AMediaExtractor*, size_t idx) __INTRODUCED_IN(21);
171 media_status_t AMediaExtractor_seekTo(AMediaExtractor*,
258 media_status_t AMediaExtractor_getSampleFormat(AMediaExtractor *ex,
DNdkMediaMuxer.h92 media_status_t AMediaMuxer_delete(AMediaMuxer*) __INTRODUCED_IN(21);
107 media_status_t AMediaMuxer_setLocation(AMediaMuxer*,
124 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer*, int degrees) __INTRODUCED_IN(21);
141 media_status_t AMediaMuxer_start(AMediaMuxer*) __INTRODUCED_IN(21);
149 media_status_t AMediaMuxer_stop(AMediaMuxer*) __INTRODUCED_IN(21);
160 media_status_t AMediaMuxer_writeSampleData(AMediaMuxer *muxer,
/frameworks/av/media/ndk/
DNdkImagePriv.h72 media_status_t getWidth(/*out*/int32_t* width) const;
73 media_status_t getHeight(/*out*/int32_t* height) const;
74 media_status_t getFormat(/*out*/int32_t* format) const;
75 media_status_t getNumPlanes(/*out*/int32_t* numPlanes) const;
76 media_status_t getTimestamp(/*out*/int64_t* timestamp) const;
78 media_status_t lockImage();
79 media_status_t unlockImageIfLocked(/*out*/int* fenceFd);
81 media_status_t getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const;
82 media_status_t getPlaneRowStride(int planeIdx, /*out*/int32_t* rowStride) const;
83 media_status_t getPlaneData(int planeIdx,/*out*/uint8_t** data, /*out*/int* dataLength) const;
[all …]
DNdkImageReaderPriv.h66 media_status_t init();
68 media_status_t setImageListener(AImageReader_ImageListener* listener);
69 media_status_t setBufferRemovedListener(AImageReader_BufferRemovedListener* listener);
71 media_status_t acquireNextImage(/*out*/AImage** image, /*out*/int* fenceFd);
72 media_status_t acquireLatestImage(/*out*/AImage** image, /*out*/int* fenceFd);
74 media_status_t getWindowNativeHandle(/*out*/native_handle_t **handle);
90 media_status_t acquireImageLocked(/*out*/AImage** image, /*out*/int* fenceFd);
98 media_status_t setImageListenerLocked(AImageReader_ImageListener* listener);
99 media_status_t setBufferRemovedListenerLocked(AImageReader_BufferRemovedListener* listener);
138 media_status_t setImageListener(AImageReader_ImageListener* listener);
[all …]
DNdkImage.cpp92 media_status_t
106 media_status_t
120 media_status_t
134 media_status_t
148 media_status_t
162 media_status_t
176 media_status_t AImage::lockImage() { in lockImage()
210 media_status_t AImage::unlockImageIfLocked(int* fenceFd) { in unlockImageIfLocked()
240 media_status_t
307 media_status_t
[all …]
DNdkImageReader.cpp49 static media_status_t validateParameters(int32_t width, int32_t height, int32_t format,
138 media_status_t
176 media_status_t
189 media_status_t
194 media_status_t
200 media_status_t
205 media_status_t
290 media_status_t
412 media_status_t
537 media_status_t ret = image->unlockImageIfLocked(&unlockFenceFd); in releaseImageLocked()
[all …]
DNdkMediaMuxer.cpp58 media_status_t AMediaMuxer_delete(AMediaMuxer *muxer) { in AMediaMuxer_delete()
65 media_status_t AMediaMuxer_setLocation(AMediaMuxer *muxer, float latitude, float longtitude) { in AMediaMuxer_setLocation()
70 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer *muxer, int degrees) { in AMediaMuxer_setOrientationHint()
83 media_status_t AMediaMuxer_start(AMediaMuxer *muxer) { in AMediaMuxer_start()
88 media_status_t AMediaMuxer_stop(AMediaMuxer *muxer) { in AMediaMuxer_stop()
93 media_status_t AMediaMuxer_writeSampleData(AMediaMuxer *muxer, in AMediaMuxer_writeSampleData()
DNdkMediaCodec.cpp47 static media_status_t translate_error(status_t err) { in translate_error()
52 return (media_status_t) AMEDIACODEC_INFO_TRY_AGAIN_LATER; in translate_error()
492 media_status_t AMediaCodec_delete(AMediaCodec *mData) { in AMediaCodec_delete()
512 media_status_t AMediaCodec_getName( in AMediaCodec_getName()
538 media_status_t AMediaCodec_configure( in AMediaCodec_configure()
564 media_status_t AMediaCodec_setAsyncNotifyCallback( in AMediaCodec_setAsyncNotifyCallback()
598 media_status_t AMediaCodec_setOnFrameRenderedCallback( in AMediaCodec_setOnFrameRenderedCallback()
619 media_status_t AMediaCodec_releaseCrypto(AMediaCodec *mData) { in AMediaCodec_releaseCrypto()
624 media_status_t AMediaCodec_start(AMediaCodec *mData) { in AMediaCodec_start()
636 media_status_t AMediaCodec_stop(AMediaCodec *mData) { in AMediaCodec_stop()
[all …]
/frameworks/av/media/module/libmediatranscoding/transcoder/include/media/
DMediaSampleReaderNDK.h50 media_status_t selectTrack(int trackIndex) override;
51 media_status_t unselectTrack(int trackIndex) override;
52 media_status_t setEnforceSequentialAccess(bool enforce) override;
53 media_status_t getEstimatedBitrateForTrack(int trackIndex, int32_t* bitrate) override;
54 media_status_t getSampleInfoForTrack(int trackIndex, MediaSampleInfo* info) override;
55 media_status_t readSampleDataForTrack(int trackIndex, uint8_t* buffer,
106 media_status_t seekExtractorBackwards_l(int64_t targetTimeUs, int targetTrackIndex,
110 media_status_t moveToSample_l(SamplePosition& pos, int trackIndex);
113 media_status_t moveToTrack_l(int trackIndex);
116 media_status_t waitForTrack_l(int trackIndex, std::unique_lock<std::mutex>& lockHeld);
[all …]
DMediaTranscoder.h48 virtual void onError(const MediaTranscoder* transcoder, media_status_t error) = 0;
81 media_status_t configureSource(int fd);
93 media_status_t configureTrackFormat(size_t trackIndex, AMediaFormat* trackFormat);
96 media_status_t configureDestination(int fd);
99 media_status_t start();
108 media_status_t pause(std::shared_ptr<ndk::ScopedAParcel>* pausedState);
111 media_status_t resume();
121 media_status_t cancel();
134 media_status_t status) override;
138 virtual void onFinished(const MediaSampleWriter* writer, media_status_t status) override;
[all …]
DMediaSampleReader.h69 virtual media_status_t selectTrack(int trackIndex) = 0;
76 virtual media_status_t unselectTrack(int trackIndex) = 0;
85 virtual media_status_t setEnforceSequentialAccess(bool enforce) = 0;
95 virtual media_status_t getEstimatedBitrateForTrack(int trackIndex, int32_t* bitrate);
107 virtual media_status_t getSampleInfoForTrack(int trackIndex, MediaSampleInfo* info) = 0;
122 virtual media_status_t readSampleDataForTrack(int trackIndex, uint8_t* buffer,
DMediaSampleWriter.h50 virtual media_status_t start() = 0;
58 virtual media_status_t writeSampleData(size_t trackIndex, const uint8_t* data,
62 virtual media_status_t stop() = 0;
85 virtual void onFinished(const MediaSampleWriter* writer, media_status_t status) = 0;
215 media_status_t writeSamples(bool* wasStopped);
216 media_status_t runWriterLoop(bool* wasStopped);
/frameworks/av/media/module/libmediatranscoding/transcoder/
DMediaSampleReaderNDK.cpp41 media_status_t status = AMediaExtractor_setDataSourceFd(extractor, fd, offset, size); in createFromFd()
127 media_status_t MediaSampleReaderNDK::seekExtractorBackwards_l(int64_t targetTimeUs, in seekExtractorBackwards_l()
137 media_status_t status = in seekExtractorBackwards_l()
159 media_status_t MediaSampleReaderNDK::moveToSample_l(SamplePosition& pos, int trackIndex) { in moveToSample_l()
162 media_status_t status = seekExtractorBackwards_l(pos.timeStampUs, trackIndex, pos.index); in moveToSample_l()
176 media_status_t MediaSampleReaderNDK::moveToTrack_l(int trackIndex) { in moveToTrack_l()
180 media_status_t MediaSampleReaderNDK::waitForTrack_l(int trackIndex, in waitForTrack_l()
197 media_status_t MediaSampleReaderNDK::primeExtractorForTrack_l( in primeExtractorForTrack_l()
215 media_status_t MediaSampleReaderNDK::selectTrack(int trackIndex) { in selectTrack()
229 media_status_t status = AMediaExtractor_selectTrack(mExtractor, trackIndex); in selectTrack()
[all …]
DMediaTranscoder.cpp87 void MediaTranscoder::onThreadFinished(const void* thread, media_status_t threadStatus, in onThreadFinished()
211 void MediaTranscoder::onTrackError(const MediaTrackTranscoder* transcoder, media_status_t status) { in onTrackError()
216 void MediaTranscoder::onFinished(const MediaSampleWriter* writer, media_status_t status) { in onFinished()
255 media_status_t MediaTranscoder::configureSource(int fd) { in configureSource()
295 media_status_t MediaTranscoder::configureTrackFormat(size_t trackIndex, in configureTrackFormat()
345 media_status_t status = mSampleReader->selectTrack(trackIndex); in configureTrackFormat()
366 media_status_t MediaTranscoder::configureDestination(int fd) { in configureDestination()
391 media_status_t MediaTranscoder::start() { in start()
419 media_status_t MediaTranscoder::requestStop(bool stopOnSync) { in requestStop()
447 media_status_t MediaTranscoder::pause(std::shared_ptr<ndk::ScopedAParcel>* pausedState) { in pause()
[all …]
/frameworks/av/include/media/
DMediaExtractorPluginApi.h69 media_status_t (*acquire_buffer)(void *handle,
78 media_status_t (*start)(void *data, CMediaBufferGroup *bufferGroup);
79 media_status_t (*stop)(void *data);
80 media_status_t (*getFormat)(void *data, AMediaFormat *format);
81 media_status_t (*read)(void *data, CMediaBuffer **buffer, uint32_t options, int64_t seekPosUs);
91 media_status_t (*getTrackMetaData)(
96 media_status_t (*getMetaData)(void *data, AMediaFormat *meta);
98 media_status_t (*setMediaCas)(void *data, const uint8_t* casToken, size_t size);
DMediaExtractorPluginHelper.h100 media_status_t acquire_buffer(
103 media_status_t ret =
131 virtual media_status_t start() = 0;
132 virtual media_status_t stop() = 0;
133 virtual media_status_t getFormat(AMediaFormat *format) = 0;
165 virtual media_status_t read(
182 wrapper->start = [](void *data, CMediaBufferGroup *bufferGroup) -> media_status_t { in wrap()
190 wrapper->stop = [](void *data) -> media_status_t { in wrap()
193 wrapper->getFormat = [](void *data, AMediaFormat *meta) -> media_status_t { in wrap()
197 -> media_status_t { in wrap()
[all …]
/frameworks/av/media/module/extractors/amr/
DAMRExtractor.cpp43 virtual media_status_t start();
44 virtual media_status_t stop();
46 virtual media_status_t getFormat(AMediaFormat *);
48 virtual media_status_t read(
101 static media_status_t getFrameSizeByOffset(DataSourceHelper *source, in getFrameSizeByOffset()
202 media_status_t AMRExtractor::getMetaData(AMediaFormat *meta) { in getMetaData()
226 media_status_t AMRExtractor::getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t /* flags *… in getTrackMetaData()
258 media_status_t AMRSource::start() { in start()
269 media_status_t AMRSource::stop() { in stop()
276 media_status_t AMRSource::getFormat(AMediaFormat *meta) { in getFormat()
[all …]
/frameworks/base/media/native/midi/include/amidi/
DAMidi.h153 media_status_t AMIDI_API AMidiDevice_fromJava(
168 media_status_t AMIDI_API AMidiDevice_release(const AMidiDevice *midiDevice) __INTRODUCED_IN(29);
249 media_status_t AMIDI_API AMidiOutputPort_open(const AMidiDevice *device, int32_t portNumber,
296 media_status_t AMIDI_API AMidiInputPort_open(const AMidiDevice *device, int32_t portNumber,
337 media_status_t AMIDI_API AMidiInputPort_sendFlush(const AMidiInputPort *inputPort) __INTRODUCED_IN(…
/frameworks/av/media/module/extractors/midi/
DMidiExtractor.cpp43 virtual media_status_t start();
44 virtual media_status_t stop();
45 virtual media_status_t getFormat(AMediaFormat *);
47 virtual media_status_t read(
90 media_status_t MidiSource::start() in start()
100 media_status_t MidiSource::stop() in stop()
111 media_status_t MidiSource::getFormat(AMediaFormat *meta) in getFormat()
116 media_status_t MidiSource::read( in read()
310 media_status_t MidiExtractor::getTrackMetaData( in getTrackMetaData()
320 media_status_t MidiExtractor::getMetaData(AMediaFormat *meta) in getMetaData()
/frameworks/av/media/module/extractors/aac/
DAACExtractor.cpp44 virtual media_status_t start();
45 virtual media_status_t stop();
47 virtual media_status_t getFormat(AMediaFormat*);
49 virtual media_status_t read(
193 media_status_t AACExtractor::getMetaData(AMediaFormat *meta) { in getMetaData()
214 media_status_t AACExtractor::getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t /* flags *… in getTrackMetaData()
247 media_status_t AACSource::start() { in start()
263 media_status_t AACSource::stop() { in stop()
270 media_status_t AACSource::getFormat(AMediaFormat *meta) { in getFormat()
274 media_status_t AACSource::read( in read()
/frameworks/av/media/module/extractors/mpeg2/
DMPEG2PSExtractor.cpp45 virtual media_status_t start();
46 virtual media_status_t stop();
47 virtual media_status_t getFormat(AMediaFormat *);
49 virtual media_status_t read(
76 virtual media_status_t start();
77 virtual media_status_t stop();
78 virtual media_status_t getFormat(AMediaFormat *);
80 virtual media_status_t read(
143 media_status_t MPEG2PSExtractor::getTrackMetaData( in getTrackMetaData()
153 media_status_t MPEG2PSExtractor::getMetaData(AMediaFormat *meta) { in getMetaData()
[all …]

1234