Searched defs:decoder (Results 1 - 22 of 22) sorted by relevance

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioSample.java17 package androidx.media.filterfw.decoder;
H A DDecoderUtil.java17 package androidx.media.filterfw.decoder;
H A DTrackDecoder.java17 package androidx.media.filterfw.decoder;
32 void onDecodedOutputAvailable(TrackDecoder decoder); argument
34 void onEndOfStream(TrackDecoder decoder); argument
H A DVideoTrackDecoder.java16 package androidx.media.filterfw.decoder;
H A DAudioTrackDecoder.java17 package androidx.media.filterfw.decoder;
68 "failed to create decoder for "
103 * decoded since the last call of this method. The decoder's buffer is cleared as a result.
118 * Clears the decoder's buffer.
H A DCpuVideoTrackDecoder.java16 package androidx.media.filterfw.decoder;
73 "Could not find a suitable decoder for format: " + format + "!");
173 * <li>The codec is a decoder.</li>
191 // Check that this is a decoder
H A DGpuVideoTrackDecoder.java17 package androidx.media.filterfw.decoder;
71 // Create a surface texture to be used by the video track decoder.
96 "failed to create decoder for "
H A DMediaDecoder.java17 package androidx.media.filterfw.decoder;
53 * Notifies a listener that decoding has started. This method is called on the decoder
59 * Notifies a listener that decoding has stopped. This method is called on the decoder
67 * This method is called on the decoder thread.
144 * Set whether decoder may use OpenGL for decoding.
404 public void onDecodedOutputAvailable(TrackDecoder decoder) { argument
405 if (decoder == mVideoTrackDecoder) {
407 } else if (decoder == mAudioTrackDecoder) {
413 public void onEndOfStream(TrackDecoder decoder) { argument
414 if (decoder
[all...]
/frameworks/base/core/jni/android/graphics/
H A DAutoDecodeCancel.cpp10 SkImageDecoder* decoder) {
12 fDecoder = decoder;
9 AutoDecoderCancel(jobject joptions, SkImageDecoder* decoder) argument
H A DBitmapRegionDecoder.cpp53 SkBitmapRegionDecoder(SkImageDecoder* decoder, int width, int height) { argument
54 fDecoder = decoder;
79 SkImageDecoder* decoder = SkImageDecoder::Factory(stream); local
81 if (NULL == decoder) {
87 decoder->setAllocator(javaAllocator);
90 if (!decoder->buildTileIndex(stream, &width, &height)) {
92 snprintf(msg, sizeof(msg), "Image failed to decode using %s decoder",
93 decoder->getFormatName());
95 SkDELETE(decoder);
96 return nullObjectReturn("decoder
176 SkImageDecoder *decoder = brd->getDecoder(); local
[all...]
H A DBitmapFactory.cpp258 SkImageDecoder* decoder = SkImageDecoder::Factory(stream); local
259 if (decoder == NULL) {
263 decoder->setSampleSize(sampleSize);
264 decoder->setDitherImage(doDither);
265 decoder->setPreferQualityOverSpeed(preferQualityOverSpeed);
266 decoder->setRequireUnpremultipliedColors(requireUnpremultiplied);
273 ALOGW("Unable to reuse an immutable bitmap as an image decoder target.");
284 NinePatchPeeker peeker(decoder);
285 decoder->setPeeker(&peeker);
294 // If the java allocator is being used to allocate the pixel memory, the decoder
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A Drtp_test.cpp184 sp<MediaSource> decoder = OMXCodec::Create( local
190 CHECK(decoder != NULL);
192 CHECK_EQ(decoder->start(), (status_t)OK);
196 status_t err = decoder->read(&buffer);
201 CHECK(decoder->getFormat()->findInt32(kKeyWidth, &width));
202 CHECK(decoder->getFormat()->findInt32(kKeyHeight, &height));
207 ALOGE("decoder returned error 0x%08x", err);
216 printf("decoder returned frame of size %d at time %.2f secs\n",
225 CHECK_EQ(decoder->stop(), (status_t)OK);
/frameworks/av/cmds/stagefright/
H A Daudioloop.cpp119 sp<MediaSource> decoder = OMXCodec::Create( local
126 player->setSource(decoder);
132 CHECK_EQ(decoder->start(), (status_t)OK);
134 while (decoder->read(&buffer) == OK) {
142 CHECK_EQ(decoder->stop(), (status_t)OK);
/frameworks/base/graphics/java/android/graphics/
H A DBitmapRegionDecoder.java38 // ensures that the native decoder object exists and that only one decode can
47 * @param offset offset into data for where the decoder should begin
145 BitmapRegionDecoder decoder = null;
150 decoder = newInstance(stream, isShareable);
160 return decoder;
164 region decoder int (pointer).
168 private BitmapRegionDecoder(long decoder) { argument
169 mNativeBitmapRegionDecoder = decoder;
184 checkRecycled("decodeRegion called on recycled region decoder");
196 checkRecycled("getWidth called on recycled region decoder");
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A DTestBenchMultipleInstance.c72 Decoder **decoder; local
134 /* allocate memory for multiple decoder instances
136 decoder = (Decoder **)malloc(sizeof(Decoder*)*(u32)instCount);
137 if (decoder == NULL)
143 /* prepare each decoder instance */
146 decoder[i] = (Decoder *)calloc(1, sizeof(Decoder));
162 decoder[i]->byteStrmStart = (u8 *)malloc(sizeof(u8)*strmLen);
163 if (decoder[i]->byteStrmStart == NULL)
168 fread(decoder[i]->byteStrmStart, sizeof(u8), strmLen, finput);
175 decoder[
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DLoggingPrintStream.java59 private CharsetDecoder decoder; field in class:LoggingPrintStream
121 if (decoder == null) {
124 decoder = Charset.defaultCharset().newDecoder()
141 coderResult = decoder.decode(encodedBytes, decodedChars, false);
/frameworks/wilhelm/tests/examples/
H A DxaVideoDecoderCapabilities.cpp242 /* Get the video decoder capabilities interface which was explicitly requested */
264 fprintf(stdout, "decoder %d is %s\n", i, videoCodecIdToString(decoderIds[i]));
268 /* for each decoder */
274 fprintf(stdout, "decoder %s has %d profile/level combinations:\n\t",
279 XAuint32 decoder = decoderIds[i]; local
280 res = (*decItf)->GetVideoDecoderCapabilities(decItf, decoder, &pl, &decDescriptor);
286 printf("(%s/%s) ", videoProfileToString(decoder, profile),
287 videoLevelToString(decoder, level));
/frameworks/av/media/libstagefright/
H A DStagefrightMetadataRetriever.cpp157 // remove this check and always set the decoder output color format
162 sp<MediaSource> decoder = local
167 if (decoder.get() == NULL) {
168 ALOGV("unable to instantiate video decoder.");
173 status_t err = decoder->start();
211 err = decoder->read(&buffer, &options);
220 decoder->stop();
230 ALOGV("video frame is unreadable, decoder does not give us access "
236 decoder->stop();
253 sp<MetaData> meta = decoder
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
H A DBitmapRegionTileSource.java54 private SimpleBitmapRegionDecoderWrapper(BitmapRegionDecoder decoder) { argument
55 mDecoder = decoder;
65 Log.w("BitmapRegionTileSource", "getting decoder failed for path " + pathName, e);
78 Log.w("BitmapRegionTileSource", "getting decoder failed", e);
252 Log.w("BitmapRegionTileSource", "getting decoder failed", e);
507 // We need to resize down if the decoder does not support inSampleSize
/frameworks/ex/variablespeed/jni/
H A Dvariablespeed.cc38 // the decoder.
271 // Register a callback on the decoder queue, so that we will be called
371 // issue with get current position on decoder is fixed.
536 LOGW("decoder position: %d", static_cast<int>(positionInMsec));
622 // Create the decoder with the given source and sink.
624 SLObjectItf decoder; local
631 OpenSL(engineInterface, CreateAudioPlayer, &decoder, &sourceCopy, &decDest,
634 setAudioStreamType(decoder, audioStreamType_);
635 OpenSL(decoder, Realize, SL_BOOLEAN_FALSE);
637 // Get the play interface from the decoder, an
[all...]
/frameworks/wilhelm/src/android/
H A DAudioPlayer_to_android.cpp109 SL_LOGD("received %d bytes from decoder", size);
1626 android::AudioToCbRenderer* decoder = new android::AudioToCbRenderer(&app); local
1627 pAudioPlayer->mAPlayer = decoder;
1629 decoder->setDataPushListener(adecoder_writeToBufferQueue, pAudioPlayer);
1631 decoder->init(sfplayer_handlePrefetchEvent, (void*)pAudioPlayer);
1635 decoder->setDataSource(
1640 decoder->setDataSource(
1845 android::AudioSfDecoder* decoder = local
1847 *pItemCount = decoder->getPcmFormatKeyCount();
1873 android::AudioSfDecoder* decoder local
1909 android::AudioSfDecoder* decoder = local
1946 android::AudioSfDecoder* decoder = local
1982 android::AudioSfDecoder* decoder = local
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayer.cpp559 // If the video decoder is not set (perhaps audio only in this case)
574 // After a flush without shutdown, decoder is paused.
630 // Don't try to re-open audio sink if there's an existing decoder.
692 ALOGV("got message from old %s decoder, generation(%d:%d)",
732 ALOGV("got %s decoder EOS", audio ? "audio" : "video");
734 ALOGV("got %s decoder EOS w/ error %d",
741 ALOGV("decoder %s flush completed", audio ? "audio" : "video");
779 // or from decoding corrupted bitstreams, or from other decoder
782 // decoder start or after a format change.
784 // We try to gracefully shut down the affected decoder i
1206 instantiateDecoder(bool audio, sp<DecoderBase> *decoder) argument
1376 const sp<DecoderBase> &decoder = getDecoder(audio); local
1488 sp<DecoderBase> decoder = getDecoder(false /* audio */); local
[all...]

Completed in 511 milliseconds