/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | bitstream.cpp | 49 PV_STATUS BitstreamFillCache(BitstreamDecVideo *stream) in BitstreamFillCache() argument 51 uint8 *bitstreamBuffer = stream->bitstreamBuffer; in BitstreamFillCache() 55 stream->curr_word |= (stream->next_word >> stream->incnt); // stream->incnt cannot be 32 in BitstreamFillCache() 56 stream->next_word <<= (31 - stream->incnt); in BitstreamFillCache() 57 stream->next_word <<= 1; in BitstreamFillCache() 58 num_bits = stream->incnt_next + stream->incnt; in BitstreamFillCache() 61 stream->incnt_next -= (32 - stream->incnt); in BitstreamFillCache() 62 stream->incnt = 32; in BitstreamFillCache() 66 v = bitstreamBuffer + stream->read_point; in BitstreamFillCache() 68 if (stream->read_point > stream->data_end_pos - 4) in BitstreamFillCache() [all …]
|
D | bitstream.h | 33 PV_STATUS BitstreamFillBuffer(BitstreamDecVideo *stream); 34 PV_STATUS BitstreamFillCache(BitstreamDecVideo *stream); 35 void BitstreamReset(BitstreamDecVideo *stream, uint8 *buffer, int32 buffer_size); 36 int BitstreamOpen(BitstreamDecVideo *stream, int layer); 37 void BitstreamClose(BitstreamDecVideo *stream); 39 PV_STATUS BitstreamShowBits32(BitstreamDecVideo *stream, int nbits, uint32 *code); 40 uint32 BitstreamReadBits32(BitstreamDecVideo *stream, int nbits); 42 uint BitstreamReadBits16(BitstreamDecVideo *stream, int nbits); 43 uint BitstreamRead1Bits(BitstreamDecVideo *stream); 45 PV_STATUS BitstreamShowBits16(BitstreamDecVideo *stream, int nbits, uint *code); [all …]
|
D | vop.cpp | 84 BitstreamDecVideo *stream; in DecodeVOLHeader() local 97 stream = currVol->bitstream; in DecodeVOLHeader() 101 status = BitstreamShowBits32HC(stream, &startCode); in DecodeVOLHeader() 107 (void) BitstreamReadBits32HC(stream); in DecodeVOLHeader() 108 tmpvar = (uint32) BitstreamReadBits16(stream, 8); /* profile */ in DecodeVOLHeader() 142 status = BitstreamShowBits32HC(stream, &tmpvar); in DecodeVOLHeader() 146 status = DecodeUserData(stream); in DecodeVOLHeader() 150 BitstreamShowBits32HC(stream, &tmpvar); in DecodeVOLHeader() 156 status = PVSearchNextM4VFrame(stream); /* search 0x00 0x00 0x01 */ in DecodeVOLHeader() 158 BitstreamShowBits32(stream, VOL_START_CODE_LENGTH, &tmpvar); in DecodeVOLHeader() [all …]
|
D | packet_util.cpp | 33 BitstreamDecVideo *stream = video->bitstream; in PV_ReadVideoPacketHeader() local 47 status = PV_BitstreamShowBitsByteAlign(stream, resync_marker_length, &tmpvar32); in PV_ReadVideoPacketHeader() 52 PV_BitstreamByteAlign(stream); in PV_ReadVideoPacketHeader() 53 BitstreamReadBits32(stream, resync_marker_length); in PV_ReadVideoPacketHeader() 55 *next_MB = (int) BitstreamReadBits16(stream, nbits); in PV_ReadVideoPacketHeader() 65 quantizer = (int16) BitstreamReadBits16(stream, currVol->quantPrecision); in PV_ReadVideoPacketHeader() 72 if (BitstreamRead1Bits(stream)) in PV_ReadVideoPacketHeader() 80 tmpvar16 = BitstreamRead1Bits(stream); in PV_ReadVideoPacketHeader() 85 BitstreamRead1Bits(stream); in PV_ReadVideoPacketHeader() 88 BitstreamReadBits16(stream, currVol->nbitsTimeIncRes); in PV_ReadVideoPacketHeader() [all …]
|
D | vlc_decode.cpp | 103 PV_STATUS DecodeUserData(BitstreamDecVideo *stream) in DecodeUserData() argument 108 BitstreamReadBits32HC(stream); in DecodeUserData() 109 BitstreamShowBits32(stream, 24, &code); in DecodeUserData() 114 BitstreamReadBits16(stream, 8); in DecodeUserData() 115 BitstreamShowBits32(stream, 24, &code); in DecodeUserData() 116 status = BitstreamCheckEndBuffer(stream); in DecodeUserData() 135 BitstreamDecVideo *stream = video->bitstream; in PV_GetMBvectors() local 164 status = PV_VlcDecMV(stream, &vlc_code_mag); in PV_GetMBvectors() 174 status = PV_VlcDecMV(stream, &vlc_code_mag); in PV_GetMBvectors() 191 status = PV_VlcDecMV(stream, &vlc_code_mag); in PV_GetMBvectors() [all …]
|
D | vlc_decode.h | 94 PV_STATUS DecodeUserData(BitstreamDecVideo *stream); 96 PV_STATUS PV_DecodeMBVec(BitstreamDecVideo *stream, MOT *mv_x, MOT *mv_y, int f_code_f); 99 PV_STATUS PV_VlcDecMV(BitstreamDecVideo *stream, int *mv); 100 int PV_VlcDecMCBPC_com_intra(BitstreamDecVideo *stream); 101 int PV_VlcDecMCBPC_com_inter(BitstreamDecVideo *stream); 103 int PV_VlcDecMCBPC_com_inter_H263(BitstreamDecVideo *stream); 104 PV_STATUS VlcDecTCOEFShortHeader_AnnexI(BitstreamDecVideo *stream, Tcoef *pTcoef); 105 PV_STATUS VlcDecTCOEFShortHeader_AnnexT(BitstreamDecVideo *stream, Tcoef *pTcoef); /* ANNEX_T */ 106 PV_STATUS VlcDecTCOEFShortHeader_AnnexIT(BitstreamDecVideo *stream, Tcoef *pTcoef); 108 int PV_VlcDecCBPY(BitstreamDecVideo *stream, int intra); [all …]
|
D | datapart_decode.cpp | 43 BitstreamDecVideo *stream = video->bitstream; in DecodeFrameDataPartMode() local 100 if ((status = quickSearchVideoPacketHeader(stream, resync_marker_length)) != PV_SUCCESS) in DecodeFrameDataPartMode() 142 BitstreamDecVideo *stream = video->bitstream; in DecodeDataPart_I_VideoPacket() local 151 int32 startSecondPart, startFirstPart = getPointer(stream); in DecodeDataPart_I_VideoPacket() 159 BitstreamShowBits16(stream, 9, &code); in DecodeDataPart_I_VideoPacket() 162 PV_BitstreamFlushBits(stream, 9); in DecodeDataPart_I_VideoPacket() 163 BitstreamShowBits16(stream, 9, &code); in DecodeDataPart_I_VideoPacket() 169 MCBPC = PV_VlcDecMCBPC_com_intra(stream); in DecodeDataPart_I_VideoPacket() 183 movePointerTo(stream, startFirstPart); in DecodeDataPart_I_VideoPacket() 191 BitstreamShowBits16(stream, 9, &code); in DecodeDataPart_I_VideoPacket() [all …]
|
D | combined_decode.cpp | 47 BitstreamDecVideo *stream = video->bitstream; in DecodeFrameCombinedMode() local 124 startPacket = getPointer(stream); in DecodeFrameCombinedMode() 137 BitstreamShowBits16(stream, stuffing_length, &code); in DecodeFrameCombinedMode() 140 PV_BitstreamFlushBits(stream, stuffing_length); in DecodeFrameCombinedMode() 141 BitstreamShowBits16(stream, stuffing_length, &code); in DecodeFrameCombinedMode() 161 movePointerTo(stream, (startPacket & -8)); in DecodeFrameCombinedMode() 176 movePointerTo(stream, (startPacket & -8)); in DecodeFrameCombinedMode() 188 BitstreamShowBits16(stream, stuffing_length, &code); in DecodeFrameCombinedMode() 191 PV_BitstreamFlushBits(stream, stuffing_length); in DecodeFrameCombinedMode() 192 BitstreamShowBits16(stream, stuffing_length, &code); in DecodeFrameCombinedMode() [all …]
|
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | bitstream_io.cpp | 45 AVCEnc_Status BitstreamEncInit(AVCEncBitstream *stream, uint8 *buffer, int buf_size, in BitstreamEncInit() argument 48 if (stream == NULL || buffer == NULL || buf_size <= 0) in BitstreamEncInit() 53 stream->bitstreamBuffer = buffer; in BitstreamEncInit() 55 stream->buf_size = buf_size; in BitstreamEncInit() 57 stream->write_pos = 0; in BitstreamEncInit() 59 stream->count_zeros = 0; in BitstreamEncInit() 61 stream->current_word = 0; in BitstreamEncInit() 63 stream->bit_left = WORD_SIZE; in BitstreamEncInit() 65 stream->overrunBuffer = overrunBuffer; in BitstreamEncInit() 67 stream->oBSize = oBSize; in BitstreamEncInit() [all …]
|
D | header.cpp | 25 AVCEnc_Status EncodeSPS(AVCEncObject *encvid, AVCEncBitstream *stream) in EncodeSPS() argument 35 status = BitstreamWriteBits(stream, 8, seqParam->profile_idc); in EncodeSPS() 36 status = BitstreamWrite1Bit(stream, seqParam->constrained_set0_flag); in EncodeSPS() 37 status = BitstreamWrite1Bit(stream, seqParam->constrained_set1_flag); in EncodeSPS() 38 status = BitstreamWrite1Bit(stream, seqParam->constrained_set2_flag); in EncodeSPS() 39 status = BitstreamWrite1Bit(stream, seqParam->constrained_set3_flag); in EncodeSPS() 40 status = BitstreamWriteBits(stream, 4, 0); /* forbidden zero bits */ in EncodeSPS() 46 status = BitstreamWriteBits(stream, 8, seqParam->level_idc); in EncodeSPS() 47 status = ue_v(stream, seqParam->seq_parameter_set_id); in EncodeSPS() 48 status = ue_v(stream, seqParam->log2_max_frame_num_minus4); in EncodeSPS() [all …]
|
D | residual.cpp | 25 AVCEncBitstream *stream = encvid->bitstream; in EncodeIntraPCM() local 35 ue_v(stream, 25); in EncodeIntraPCM() 37 i = stream->bit_left & 0x7; in EncodeIntraPCM() 40 BitstreamWriteBits(stream, 0, i); in EncodeIntraPCM() 58 status = BitstreamWriteBits(stream, 32, code); in EncodeIntraPCM() 67 status = BitstreamWriteBits(stream, 16, code); in EncodeIntraPCM() 91 status = BitstreamWriteBits(stream, 32, code); in EncodeIntraPCM() 100 status = BitstreamWriteBits(stream, 16, code); in EncodeIntraPCM() 124 status = BitstreamWriteBits(stream, 32, code); in EncodeIntraPCM() 133 status = BitstreamWriteBits(stream, 16, code); in EncodeIntraPCM() [all …]
|
D | vlc_encode.cpp | 106 AVCEnc_Status EncodeCBP(AVCMacroblock *currMB, AVCEncBitstream *stream) in EncodeCBP() argument 120 status = ue_v(stream, codeNum); in EncodeCBP() 125 AVCEnc_Status ce_TotalCoeffTrailingOnes(AVCEncBitstream *stream, int TrailingOnes, int TotalCoeff, … in ce_TotalCoeffTrailingOnes() argument 169 status = BitstreamWriteBits(stream, 6, code); in ce_TotalCoeffTrailingOnes() 188 status = BitstreamWriteBits(stream, len, code); in ce_TotalCoeffTrailingOnes() 194 AVCEnc_Status ce_TotalCoeffTrailingOnesChromaDC(AVCEncBitstream *stream, int TrailingOnes, int Tota… in ce_TotalCoeffTrailingOnesChromaDC() argument 209 status = BitstreamWriteBits(stream, len, code); in ce_TotalCoeffTrailingOnesChromaDC() 215 AVCEnc_Status ce_TotalZeros(AVCEncBitstream *stream, int total_zeros, int TotalCoeff) in ce_TotalZeros() argument 260 status = BitstreamWriteBits(stream, len, code); in ce_TotalZeros() 266 AVCEnc_Status ce_TotalZerosChromaDC(AVCEncBitstream *stream, int total_zeros, int TotalCoeff) in ce_TotalZerosChromaDC() argument [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | stream.c | 26 void voAWB_InitFrameBuffer(FrameStream *stream) in voAWB_InitFrameBuffer() argument 28 stream->set_ptr = NULL; in voAWB_InitFrameBuffer() 29 stream->frame_ptr_bk = stream->frame_ptr; in voAWB_InitFrameBuffer() 30 stream->set_len = 0; in voAWB_InitFrameBuffer() 31 stream->framebuffer_len = 0; in voAWB_InitFrameBuffer() 32 stream->frame_storelen = 0; in voAWB_InitFrameBuffer() 36 FrameStream *stream, in voAWB_UpdateFrameBuffer() argument 41 len = MIN(Frame_Maxsize - stream->frame_storelen, stream->set_len); in voAWB_UpdateFrameBuffer() 42 …pMemOP->Copy(VO_INDEX_ENC_AMRWB, stream->frame_ptr_bk + stream->frame_storelen , stream->set_ptr, … in voAWB_UpdateFrameBuffer() 43 stream->set_len -= len; in voAWB_UpdateFrameBuffer() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | bitstream_io.cpp | 54 BitstreamEncVideo *stream; in BitStreamCreateEnc() local 55 stream = (BitstreamEncVideo *) M4VENC_MALLOC(sizeof(BitstreamEncVideo)); in BitStreamCreateEnc() 56 if (stream == NULL) in BitStreamCreateEnc() 60 stream->bufferSize = bufferSize; in BitStreamCreateEnc() 61 stream->bitstreamBuffer = (UChar *) M4VENC_MALLOC(stream->bufferSize * sizeof(UChar)); in BitStreamCreateEnc() 62 if (stream->bitstreamBuffer == NULL) in BitStreamCreateEnc() 64 M4VENC_FREE(stream); in BitStreamCreateEnc() 65 stream = NULL; in BitStreamCreateEnc() 68 M4VENC_MEMSET(stream->bitstreamBuffer, 0, stream->bufferSize*sizeof(UChar)); in BitStreamCreateEnc() 69 stream->word = 0; in BitStreamCreateEnc() [all …]
|
D | vop.cpp | 24 PV_STATUS EncodeShortHeader(BitstreamEncVideo *stream, Vop *currVop); 25 PV_STATUS EncodeVOPHeader(BitstreamEncVideo *stream, Vol *currVol, Vop *currVop); 26 PV_STATUS EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds); 128 BitstreamEncVideo *stream = video->bitstream1; in EncodeVop_NoME() local 135 status = EncodeShortHeader(stream, currVop); /* Encode Short Header */ in EncodeVop_NoME() 137 video->header_bits = BitstreamGetPos(stream); /* Header Bits */ in EncodeVop_NoME() 147 status = EncodeGOVHeader(stream, time); /* Encode GOV Header */ in EncodeVop_NoME() 149 status = EncodeVOPHeader(stream, currVol, currVop); /* Encode VOP Header */ in EncodeVop_NoME() 151 video->header_bits = BitstreamGetPos(stream); /* Header Bits */ in EncodeVop_NoME() 197 BitstreamEncVideo *stream = video->bitstream1; /* different from frame-based */ in EncodeSlice() local [all …]
|
D | bitstream_io.h | 31 Void BitstreamCloseEnc(BitstreamEncVideo *stream); 32 PV_STATUS BitstreamPutBits(BitstreamEncVideo *stream, Int Length, UInt Value); 33 PV_STATUS BitstreamPutGT16Bits(BitstreamEncVideo *stream, Int Length, ULong Value); 34 PV_STATUS BitstreamSaveWord(BitstreamEncVideo *stream); 35 PV_STATUS BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction); 36 Int BitstreamGetPos(BitstreamEncVideo *stream); 37 void BitstreamEncReset(BitstreamEncVideo *stream); 39 Int BitstreamShortHeaderByteAlignStuffing(BitstreamEncVideo *stream); 40 Int BitstreamMpeg4ByteAlignStuffing(BitstreamEncVideo *stream); 49 …Void BitstreamSetOverrunBuffer(BitstreamEncVideo *stream, UChar *overrunBuffer, Int oBSize, Video… [all …]
|
/frameworks/av/services/audiopolicy/ |
D | AudioPolicyInterfaceImplLegacy.cpp | 130 audio_io_handle_t AudioPolicyService::getOutput(audio_stream_type_t stream, in getOutput() argument 137 if (uint32_t(stream) >= AUDIO_STREAM_PUBLIC_CNT) { in getOutput() 145 return mpAudioPolicy->get_output(mpAudioPolicy, stream, samplingRate, in getOutput() 150 audio_stream_type_t stream, in startOutput() argument 153 if (uint32_t(stream) >= AUDIO_STREAM_PUBLIC_CNT) { in startOutput() 167 status_t status = audioPolicyEffects->addOutputSessionEffects(output, stream, session); in startOutput() 174 return mpAudioPolicy->start_output(mpAudioPolicy, output, stream, session); in startOutput() 178 audio_stream_type_t stream, in stopOutput() argument 181 if (uint32_t(stream) >= AUDIO_STREAM_PUBLIC_CNT) { in stopOutput() 188 mOutputCommandThread->stopOutputCommand(output, stream, session); in stopOutput() [all …]
|
D | AudioPolicyInterfaceImpl.cpp | 125 audio_io_handle_t AudioPolicyService::getOutput(audio_stream_type_t stream, in getOutput() argument 132 if (uint32_t(stream) >= AUDIO_STREAM_PUBLIC_CNT) { in getOutput() 140 return mAudioPolicyManager->getOutput(stream, samplingRate, in getOutput() 147 audio_stream_type_t *stream, in getOutputForAttr() argument 159 return mAudioPolicyManager->getOutputForAttr(attr, output, session, stream, samplingRate, in getOutputForAttr() 164 audio_stream_type_t stream, in startOutput() argument 167 if (uint32_t(stream) >= AUDIO_STREAM_CNT) { in startOutput() 181 status_t status = audioPolicyEffects->addOutputSessionEffects(output, stream, session); in startOutput() 187 return mAudioPolicyManager->startOutput(output, stream, session); in startOutput() 191 audio_stream_type_t stream, in stopOutput() argument [all …]
|
D | AudioPolicyInterface.h | 98 virtual audio_io_handle_t getOutput(audio_stream_type_t stream, 107 audio_stream_type_t *stream, 115 audio_stream_type_t stream, 119 audio_stream_type_t stream, 123 audio_stream_type_t stream, 150 virtual void initStreamVolume(audio_stream_type_t stream, 157 virtual status_t setStreamVolumeIndex(audio_stream_type_t stream, 164 virtual status_t getStreamVolumeIndex(audio_stream_type_t stream, 169 virtual uint32_t getStrategyForStream(audio_stream_type_t stream) = 0; 172 virtual audio_devices_t getDevicesForStream(audio_stream_type_t stream) = 0; [all …]
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | AudioGroup.java | 146 synchronized void add(AudioStream stream) { in add() argument 147 if (!mStreams.containsKey(stream)) { in add() 149 AudioCodec codec = stream.getCodec(); in add() 152 long id = nativeAdd(stream.getMode(), stream.getSocket(), in add() 153 stream.getRemoteAddress().getHostAddress(), in add() 154 stream.getRemotePort(), codecSpec, stream.getDtmfType()); in add() 155 mStreams.put(stream, id); in add() 166 synchronized void remove(AudioStream stream) { in remove() argument 167 Long id = mStreams.remove(stream); in remove() 196 for (AudioStream stream : getStreams()) { in clear() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | IconLoader.java | 47 InputStream stream = getIcon(resourceDir); in getIcon() local 48 if (stream != null) { in getIcon() 49 return stream; in getIcon() 77 InputStream stream = getIcon(resourceDir, mDesiredDensity); in getIcon() local 78 if (stream != null) { in getIcon() 80 return stream; in getIcon() 88 stream = getIcon(resourceDir, density); in getIcon() 89 if (stream != null) { in getIcon() 91 return stream; in getIcon() 113 InputStream stream = getClass().getResourceAsStream(mCurrentPath.toString()); in getIcon() local [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | ParserFactory.java | 44 InputStream stream = new FileInputStream(f); in create() local 45 return create(stream, f.getName(), f.length()); in create() 48 public static XmlPullParser create(InputStream stream, String name) in create() argument 50 return create(stream, name, -1); in create() 53 private static XmlPullParser create(InputStream stream, String name, long size) in create() argument 57 stream = readAndClose(stream, name, size); in create() 59 parser.setInput(stream, ENCODING); in create() 74 private static InputStream readAndClose(InputStream stream, String name, long size) in readAndClose() argument 83 BufferedInputStream bufferedStream = new BufferedInputStream(stream); in readAndClose() 95 int read = stream.read(buffer); in readAndClose() [all …]
|
/frameworks/av/include/media/ |
D | AudioSystem.h | 58 static status_t setStreamVolume(audio_stream_type_t stream, float value, 60 static status_t getStreamVolume(audio_stream_type_t stream, float* volume, 64 static status_t setStreamMute(audio_stream_type_t stream, bool mute); 65 static status_t getStreamMute(audio_stream_type_t stream, bool* mute); 72 static status_t isStreamActive(audio_stream_type_t stream, bool *state, uint32_t inPastMs); 76 static status_t isStreamActiveRemotely(audio_stream_type_t stream, bool *state, 102 audio_stream_type_t stream); 104 audio_stream_type_t stream); 106 audio_stream_type_t stream); 213 static audio_io_handle_t getOutput(audio_stream_type_t stream, [all …]
|
D | IAudioPolicyService.h | 54 virtual audio_io_handle_t getOutput(audio_stream_type_t stream, 63 audio_stream_type_t *stream, 70 audio_stream_type_t stream, 73 audio_stream_type_t stream, 76 audio_stream_type_t stream, 91 virtual status_t initStreamVolume(audio_stream_type_t stream, 94 virtual status_t setStreamVolumeIndex(audio_stream_type_t stream, 97 virtual status_t getStreamVolumeIndex(audio_stream_type_t stream, 100 virtual uint32_t getStrategyForStream(audio_stream_type_t stream) = 0; 101 virtual audio_devices_t getDevicesForStream(audio_stream_type_t stream) = 0; [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | BitmapRegionDecoder.cpp | 78 static jobject createBitmapRegionDecoder(JNIEnv* env, SkStreamRewindable* stream) { in createBitmapRegionDecoder() argument 79 SkImageDecoder* decoder = SkImageDecoder::Factory(stream); in createBitmapRegionDecoder() 90 if (!decoder->buildTileIndex(stream, &width, &height)) { in createBitmapRegionDecoder() 110 SkMemoryStream* stream = new SkMemoryStream(ar.ptr() + offset, length, true); in nativeNewInstanceFromByteArray() local 112 jobject brd = createBitmapRegionDecoder(env, stream); in nativeNewInstanceFromByteArray() 113 SkSafeUnref(stream); // the decoder now holds a reference in nativeNewInstanceFromByteArray() 130 SkMemoryStream* stream = new SkMemoryStream(data); in nativeNewInstanceFromFileDescriptor() local 132 jobject brd = createBitmapRegionDecoder(env, stream); in nativeNewInstanceFromFileDescriptor() 133 SkSafeUnref(stream); // the decoder now holds a reference in nativeNewInstanceFromFileDescriptor() 143 SkStreamRewindable* stream = CopyJavaInputStream(env, is, storage); in nativeNewInstanceFromStream() local [all …]
|