Home
last modified time | relevance | path

Searched refs:decoder (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
DTestBenchMultipleInstance.c72 Decoder **decoder; in main() local
136 decoder = (Decoder **)malloc(sizeof(Decoder*)*(u32)instCount); in main()
137 if (decoder == NULL) in main()
146 decoder[i] = (Decoder *)calloc(1, sizeof(Decoder)); in main()
162 decoder[i]->byteStrmStart = (u8 *)malloc(sizeof(u8)*strmLen); in main()
163 if (decoder[i]->byteStrmStart == NULL) in main()
168 fread(decoder[i]->byteStrmStart, sizeof(u8), strmLen, finput); in main()
175 decoder[i]->foutput = NULL; in main()
177 sprintf(decoder[i]->outFileName, "%s%i", outFileName, i); in main()
178 decoder[i]->foutput = fopen(decoder[i]->outFileName, "wb"); in main()
[all …]
/frameworks/base/media/tests/omxjpegdecoder/
Djpeg_decoder_bench.cpp52 int testDecodeBounds(SkImageDecoder* decoder, SkStream* stream, in testDecodeBounds() argument
59 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) { in testDecodeBounds()
69 int testDecodePixels(SkImageDecoder* decoder, SkStream* stream, in testDecodePixels() argument
76 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) { in testDecodePixels()
86 int testDecoder(SkImageDecoder* decoder, char* filename) { in testDecoder() argument
90 testDecodePixels(decoder, stream, bitmap); in testDecoder()
96 testDecodeBounds(decoder, stream, bitmap); in testDecoder()
99 delete decoder; in testDecoder()
Domx_jpeg_decoder.cpp121 sp<MediaSource> decoder = getDecoder(&mClient, source); in onDecode() local
122 return decodeSource(decoder, source, bm); in onDecode()
134 sp<MediaSource> decoder = OMXCodec::Create( in getDecoder() local
137 CHECK(decoder != NULL); in getDecoder()
138 return decoder; in getDecoder()
141 bool OmxJpegImageDecoder::decodeSource(sp<MediaSource> decoder, in decodeSource() argument
143 status_t rt = decoder->start(); in decodeSource()
152 status_t err = decoder->read(&buffer, NULL); in decodeSource()
170 decoder->stop(); in decodeSource()
175 void OmxJpegImageDecoder::installPixelRef(MediaBuffer *buffer, sp<MediaSource> decoder, in installPixelRef() argument
[all …]
DSkOmxPixelRef.cpp25 sp<MediaSource> decoder) { in SkOmxPixelRef() argument
27 mDecoder = decoder; in SkOmxPixelRef()
Domx_jpeg_decoder.h50 bool decodeSource(sp<MediaSource> decoder, const sp<MediaSource>& source,
52 void installPixelRef(MediaBuffer* buffer, sp<MediaSource> decoder,
/frameworks/base/core/jni/android/graphics/
DBitmapRegionDecoder.cpp53 SkBitmapRegionDecoder(SkImageDecoder* decoder, int width, int height) { in SkBitmapRegionDecoder() argument
54 fDecoder = decoder; in SkBitmapRegionDecoder()
79 SkImageDecoder* decoder = SkImageDecoder::Factory(stream); in createBitmapRegionDecoder() local
81 if (NULL == decoder) { in createBitmapRegionDecoder()
87 decoder->setAllocator(javaAllocator); in createBitmapRegionDecoder()
90 if (!decoder->buildTileIndex(stream, &width, &height)) { in createBitmapRegionDecoder()
93 decoder->getFormatName()); in createBitmapRegionDecoder()
95 SkDELETE(decoder); in createBitmapRegionDecoder()
99 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, width, height); in createBitmapRegionDecoder()
175 SkImageDecoder *decoder = brd->getDecoder(); in nativeDecodeRegion() local
[all …]
DBitmapFactory.cpp276 SkImageDecoder* decoder = SkImageDecoder::Factory(stream); in doDecode() local
277 if (decoder == NULL) { in doDecode()
281 decoder->setSampleSize(sampleSize); in doDecode()
282 decoder->setDitherImage(doDither); in doDecode()
283 decoder->setPreferQualityOverSpeed(preferQualityOverSpeed); in doDecode()
284 decoder->setRequireUnpremultipliedColors(requireUnpremultiplied); in doDecode()
302 NinePatchPeeker peeker(decoder); in doDecode()
303 decoder->setPeeker(&peeker); in doDecode()
316 decoder->setSkipWritingZeroes(outputAllocator == &javaAllocator); in doDecode()
317 decoder->setAllocator(outputAllocator); in doDecode()
[all …]
DAutoDecodeCancel.cpp10 SkImageDecoder* decoder) { in AutoDecoderCancel() argument
12 fDecoder = decoder; in AutoDecoderCancel()
DAutoDecodeCancel.h9 AutoDecoderCancel(jobject options, SkImageDecoder* decoder);
/frameworks/av/media/libstagefright/rtsp/
Drtp_test.cpp184 sp<MediaSource> decoder = OMXCodec::Create( in main() local
190 CHECK(decoder != NULL); in main()
192 CHECK_EQ(decoder->start(), (status_t)OK); in main()
196 status_t err = decoder->read(&buffer); in main()
201 CHECK(decoder->getFormat()->findInt32(kKeyWidth, &width)); in main()
202 CHECK(decoder->getFormat()->findInt32(kKeyHeight, &height)); in main()
225 CHECK_EQ(decoder->stop(), (status_t)OK); in main()
/frameworks/av/cmds/stagefright/
Daudioloop.cpp65 sp<MediaSource> decoder = OMXCodec::Create( in main() local
72 player->setSource(decoder); in main()
83 CHECK_EQ(decoder->start(), (status_t)OK); in main()
86 while (decoder->read(&buffer) == OK) { in main()
96 CHECK_EQ(decoder->stop(), (status_t)OK); in main()
/frameworks/base/graphics/java/android/graphics/
DBitmapRegionDecoder.java145 BitmapRegionDecoder decoder = null; in newInstance() local
150 decoder = newInstance(stream, isShareable); in newInstance()
160 return decoder; in newInstance()
168 private BitmapRegionDecoder(int decoder) { in BitmapRegionDecoder() argument
169 mNativeBitmapRegionDecoder = decoder; in BitmapRegionDecoder()
/frameworks/av/media/libstagefright/
DFLACExtractor.cpp171 const FLAC__StreamDecoder *decoder,
175 const FLAC__StreamDecoder *decoder,
179 const FLAC__StreamDecoder *decoder,
183 const FLAC__StreamDecoder *decoder,
187 const FLAC__StreamDecoder *decoder,
190 const FLAC__StreamDecoder *decoder,
194 const FLAC__StreamDecoder *decoder,
198 const FLAC__StreamDecoder *decoder,
211 const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], in read_callback() argument
218 const FLAC__StreamDecoder *decoder, in seek_callback() argument
[all …]
DStagefrightMetadataRetriever.cpp155 sp<MediaSource> decoder = in extractVideoFrameWithCodecFlags() local
160 if (decoder.get() == NULL) { in extractVideoFrameWithCodecFlags()
166 status_t err = decoder->start(); in extractVideoFrameWithCodecFlags()
204 err = decoder->read(&buffer, &options); in extractVideoFrameWithCodecFlags()
213 decoder->stop(); in extractVideoFrameWithCodecFlags()
229 decoder->stop(); in extractVideoFrameWithCodecFlags()
246 sp<MetaData> meta = decoder->getFormat(); in extractVideoFrameWithCodecFlags()
309 decoder->stop(); in extractVideoFrameWithCodecFlags()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DMediaDecoder.java17 package androidx.media.filterfw.decoder;
404 public void onDecodedOutputAvailable(TrackDecoder decoder) { in onDecodedOutputAvailable() argument
405 if (decoder == mVideoTrackDecoder) { in onDecodedOutputAvailable()
407 } else if (decoder == mAudioTrackDecoder) { in onDecodedOutputAvailable()
413 public void onEndOfStream(TrackDecoder decoder) { in onEndOfStream() argument
414 if (decoder == mAudioTrackDecoder) { in onEndOfStream()
416 } else if (decoder == mVideoTrackDecoder) { in onEndOfStream()
DTrackDecoder.java17 package androidx.media.filterfw.decoder;
32 void onDecodedOutputAvailable(TrackDecoder decoder); in onDecodedOutputAvailable() argument
34 void onEndOfStream(TrackDecoder decoder); in onEndOfStream() argument
DAudioSample.java17 package androidx.media.filterfw.decoder;
/frameworks/base/core/java/android/util/
DBase64.java158 Decoder decoder = new Decoder(flags, new byte[len*3/4]); in decode() local
160 if (!decoder.process(input, offset, len, true)) { in decode()
165 if (decoder.op == decoder.output.length) { in decode()
166 return decoder.output; in decode()
171 byte[] temp = new byte[decoder.op]; in decode()
172 System.arraycopy(decoder.output, 0, temp, 0, decoder.op); in decode()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaProfileReader.java61 for (AudioDecoder decoder: audioDecoders) { in getWMAEnable()
62 if (decoder == AudioDecoder.AUDIO_DECODER_WMA) { in getWMAEnable()
70 for (VideoDecoder decoder: videoDecoders) { in getWMVEnable()
71 if (decoder == VideoDecoder.VIDEO_DECODER_WMV) { in getWMVEnable()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/
DAndroid.mk50 libfwdlock-decoder
60 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/decoder \
/frameworks/ex/variablespeed/jni/
Dvariablespeed.cc624 SLObjectItf decoder; in PlayFromThisSource() local
631 OpenSL(engineInterface, CreateAudioPlayer, &decoder, &sourceCopy, &decDest, in PlayFromThisSource()
634 setAudioStreamType(decoder, audioStreamType_); in PlayFromThisSource()
635 OpenSL(decoder, Realize, SL_BOOLEAN_FALSE); in PlayFromThisSource()
644 OpenSL(decoder, GetInterface, SL_IID_PLAY, &decoderPlay); in PlayFromThisSource()
647 OpenSL(decoder, GetInterface, SL_IID_PREFETCHSTATUS, &decoderPrefetch); in PlayFromThisSource()
648 OpenSL(decoder, GetInterface, SL_IID_SEEK, &decoderSeek); in PlayFromThisSource()
649 OpenSL(decoder, GetInterface, SL_IID_METADATAEXTRACTION, &decoderMetadata); in PlayFromThisSource()
650 OpenSL(decoder, GetInterface, SL_IID_ANDROIDSIMPLEBUFFERQUEUE, in PlayFromThisSource()
735 VoidOpenSL(decoder, AbortAsyncOperation); in PlayFromThisSource()
[all …]
/frameworks/wilhelm/tests/examples/
DxaVideoDecoderCapabilities.cpp279 XAuint32 decoder = decoderIds[i]; in TestVideoDecoderCapabilities() local
280 res = (*decItf)->GetVideoDecoderCapabilities(decItf, decoder, &pl, &decDescriptor); in TestVideoDecoderCapabilities()
286 printf("(%s/%s) ", videoProfileToString(decoder, profile), in TestVideoDecoderCapabilities()
287 videoLevelToString(decoder, level)); in TestVideoDecoderCapabilities()
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java59 private CharsetDecoder decoder; field in LoggingPrintStream
121 if (decoder == null) { in write()
124 decoder = Charset.defaultCharset().newDecoder() in write()
141 coderResult = decoder.decode(encodedBytes, decodedChars, false); in write()
/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp1539 android::AudioToCbRenderer* decoder = new android::AudioToCbRenderer(&app); in android_audioPlayer_realize() local
1540 pAudioPlayer->mAPlayer = decoder; in android_audioPlayer_realize()
1542 decoder->setDataPushListener(adecoder_writeToBufferQueue, pAudioPlayer); in android_audioPlayer_realize()
1544 decoder->init(sfplayer_handlePrefetchEvent, (void*)pAudioPlayer); in android_audioPlayer_realize()
1548 decoder->setDataSource( in android_audioPlayer_realize()
1553 decoder->setDataSource( in android_audioPlayer_realize()
1758 android::AudioSfDecoder* decoder = in android_audioPlayer_metadata_getItemCount() local
1760 *pItemCount = decoder->getPcmFormatKeyCount(); in android_audioPlayer_metadata_getItemCount()
1786 android::AudioSfDecoder* decoder = in android_audioPlayer_metadata_getKeySize() local
1789 if (!decoder->getPcmFormatKeySize(index, &keyNameSize)) { in android_audioPlayer_metadata_getKeySize()
[all …]
/frameworks/base/media/java/android/media/
DMediaFile.java154 AudioDecoder decoder = decoders.get(i); in isWMAEnabled() local
155 if (decoder == AudioDecoder.AUDIO_DECODER_WMA) { in isWMAEnabled()
166 VideoDecoder decoder = decoders.get(i); in isWMVEnabled() local
167 if (decoder == VideoDecoder.VIDEO_DECODER_WMV) { in isWMVEnabled()

12