/frameworks/base/media/tests/omxjpegdecoder/ |
H A D | SkOmxPixelRef.cpp | 25 sp<MediaSource> decoder) { 27 mDecoder = decoder; 24 SkOmxPixelRef(SkColorTable* ctable, MediaBuffer* buffer, sp<MediaSource> decoder) argument
|
H A D | jpeg_decoder_bench.cpp | 52 int testDecodeBounds(SkImageDecoder* decoder, SkStream* stream, argument 59 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) { 60 return nullObjectReturn("decoder->decode returned false"); 69 int testDecodePixels(SkImageDecoder* decoder, SkStream* stream, argument 76 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) { 77 return nullObjectReturn("decoder->decode returned false"); 86 int testDecoder(SkImageDecoder* decoder, char* filename) { argument 90 testDecodePixels(decoder, stream, bitmap); 96 testDecodeBounds(decoder, stream, bitmap); 99 delete decoder; [all...] |
H A D | omx_jpeg_decoder.cpp | 120 sp<MediaSource> decoder = getDecoder(&mClient, source); local 121 return decodeSource(decoder, source, bm); 133 sp<MediaSource> decoder = OMXCodec::Create( local 136 CHECK(decoder != NULL); 137 return decoder; 140 bool OmxJpegImageDecoder::decodeSource(sp<MediaSource> decoder, argument 142 status_t rt = decoder->start(); 151 status_t err = decoder->read(&buffer, NULL); 157 printf("Duration in decoder->read(): %.1f (msecs). \n", 162 installPixelRef(buffer, decoder, b 174 installPixelRef(MediaBuffer *buffer, sp<MediaSource> decoder, SkBitmap* bm) argument [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | audioloop.cpp | 65 sp<MediaSource> decoder = OMXCodec::Create( local 72 player->setSource(decoder); 83 CHECK_EQ(decoder->start(), (status_t)OK); 86 while (decoder->read(&buffer) == OK) { 96 CHECK_EQ(decoder->stop(), (status_t)OK);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | AutoDecodeCancel.cpp | 10 SkImageDecoder* decoder) { 12 fDecoder = decoder; 9 AutoDecoderCancel(jobject joptions, SkImageDecoder* decoder) argument
|
H A D | BitmapRegionDecoder.cpp | 74 SkImageDecoder* decoder = SkImageDecoder::Factory(stream); local 76 if (NULL == decoder) { 82 decoder->setAllocator(javaAllocator); 85 if (!decoder->buildTileIndex(stream, &width, &height)) { 87 snprintf(msg, sizeof(msg), "Image failed to decode using %s decoder", 88 decoder->getFormatName()); 90 return nullObjectReturn("decoder->buildTileIndex returned false"); 93 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, stream, width, height); 186 SkImageDecoder *decoder = brd->getDecoder(); local 208 decoder [all...] |
H A D | BitmapFactory.cpp | 200 SkImageDecoder* decoder = SkImageDecoder::Factory(stream); local 201 if (decoder == NULL) { 205 decoder->setSampleSize(sampleSize); 206 decoder->setDitherImage(doDither); 207 decoder->setPreferQualityOverSpeed(preferQualityOverSpeed); 209 NinePatchPeeker peeker(decoder); 224 SkAutoTDelete<SkImageDecoder> add(decoder); 227 decoder->setPeeker(&peeker); 229 decoder->setAllocator(&javaAllocator); 232 AutoDecoderCancel adc(options, decoder); [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | rtp_test.cpp | 184 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/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 39 // ensures that the native decoder object exists and that only one decode can 48 * @param offset offset into data for where the decoder should begin 147 BitmapRegionDecoder decoder = null; 152 decoder = newInstance(stream, isShareable); 162 return decoder; 166 region decoder int (pointer). 170 private BitmapRegionDecoder(int decoder) { argument 171 mNativeBitmapRegionDecoder = decoder; 186 checkRecycled("decodeRegion called on recycled region decoder"); 198 checkRecycled("getWidth called on recycled region decoder"); [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | TestBenchMultipleInstance.c | 72 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 D | LoggingPrintStream.java | 59 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 D | xaVideoDecoderCapabilities.cpp | 242 /* 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 D | StagefrightMetadataRetriever.cpp | 150 // remove this check and always set the decoder output color format 155 sp<MediaSource> decoder = local 160 if (decoder.get() == NULL) { 161 ALOGV("unable to instantiate video decoder."); 166 status_t err = decoder->start(); 204 err = decoder->read(&buffer, &options); 213 decoder->stop(); 223 ALOGV("video frame is unreadable, decoder does not give us access " 229 decoder->stop(); 246 sp<MetaData> meta = decoder [all...] |
H A D | FLACExtractor.cpp | 71 // FLACParser wraps a C libFLAC parser aka stream decoder 171 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__byt 210 read_callback( const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data) argument 217 seek_callback( const FLAC__StreamDecoder *decoder, FLAC__uint64 absolute_byte_offset, void *client_data) argument 224 tell_callback( const FLAC__StreamDecoder *decoder, FLAC__uint64 *absolute_byte_offset, void *client_data) argument 231 length_callback( const FLAC__StreamDecoder *decoder, FLAC__uint64 *stream_length, void *client_data) argument 238 eof_callback( const FLAC__StreamDecoder *decoder, void *client_data) argument 244 write_callback( const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data) argument 251 metadata_callback( const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data) argument 258 error_callback( const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data) argument [all...] |
/frameworks/av/libvideoeditor/vss/common/inc/ |
H A D | M4DECODER_Common.h | 20 * @note This file declares the common interfaces that decoder shells must implement 60 * @brief This enum defines the AVC decoder profile and level for the current instance 61 * @note This options can be read from decoder via M4DECODER_getOption_fct 88 * @brief This enum defines the decoder options 89 * @note These options can be read from or written to a decoder via M4DECODER_getOption_fct 95 Get the version of the core decoder 117 Set the YUV data to the dummy video decoder 122 Set the YUV data with color effect applied to the dummy video decoder 207 * video decoder interface. Each decoder i 242 VideoDecoder *decoder; member in struct:__anon134 [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayer.cpp | 333 ALOGV("got %s decoder EOS", audio ? "audio" : "video"); 335 ALOGV("got %s decoder EOS w/ error %d", 354 ALOGV("decoder %s flush completed", audio ? "audio" : "video"); 357 ALOGV("initiating %s decoder shutdown", 385 // FIXME: we should handle the case where the video decoder is created after 455 ALOGE("Received error from %s decoder, aborting playback.", 539 // buffers and is paused, therefore the decoder will not read 693 status_t NuPlayer::instantiateDecoder(bool audio, sp<Decoder> *decoder) { argument 694 if (*decoder != NULL) { 714 *decoder [all...] |
/frameworks/ex/variablespeed/jni/ |
H A D | variablespeed.cc | 38 // the decoder. 264 // Register a callback on the decoder queue, so that we will be called 364 // issue with get current position on decoder is fixed. 529 LOGW("decoder position: %d", static_cast<int>(positionInMsec)); 615 // Create the decoder with the given source and sink. 617 SLObjectItf decoder; local 624 OpenSL(engineInterface, CreateAudioPlayer, &decoder, &sourceCopy, &decDest, 627 setAudioStreamType(decoder, audioStreamType_); 628 OpenSL(decoder, Realize, SL_BOOLEAN_FALSE); 630 // Get the play interface from the decoder, an [all...] |
/frameworks/wilhelm/src/android/ |
H A D | AudioPlayer_to_android.cpp | 109 SL_LOGD("received %d bytes from decoder", size); 1563 android::AudioToCbRenderer* decoder = new android::AudioToCbRenderer(&app); local 1564 pAudioPlayer->mAPlayer = decoder; 1566 decoder->setDataPushListener(adecoder_writeToBufferQueue, pAudioPlayer); 1568 decoder->init(sfplayer_handlePrefetchEvent, (void*)pAudioPlayer); 1572 decoder->setDataSource( 1577 decoder->setDataSource( 1782 android::AudioSfDecoder* decoder = local 1784 *pItemCount = decoder->getPcmFormatKeyCount(); 1810 android::AudioSfDecoder* decoder local 1846 android::AudioSfDecoder* decoder = local 1883 android::AudioSfDecoder* decoder = local 1919 android::AudioSfDecoder* decoder = local [all...] |