/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 …]
|
/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/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/services/audioflinger/ |
D | AudioStreamOut.cpp | 32 , stream(NULL) in AudioStreamOut() 50 if (stream == NULL) { in getRenderPosition() 55 status_t status = stream->get_render_position(stream, &halPosition); in getRenderPosition() 87 if (stream == NULL) { in getPresentationPosition() 92 status_t status = stream->get_presentation_position(stream, &halPosition, timestamp); in getPresentationPosition() 137 stream = outStream; in open() 140 mHalFrameSize = audio_stream_out_frame_size(stream); in open() 148 return stream->common.get_format(&stream->common); in getFormat() 153 return stream->common.get_sample_rate(&stream->common); in getSampleRate() 158 return stream->common.get_channels(&stream->common); in getChannelMask() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | StreamDescriptor.cpp | 99 for (size_t stream = 0 ; stream < AUDIO_STREAM_CNT; stream++) { in StreamDescriptorCollection() local 100 add(static_cast<audio_stream_type_t>(stream), StreamDescriptor()); in StreamDescriptorCollection() 104 bool StreamDescriptorCollection::canBeMuted(audio_stream_type_t stream) in canBeMuted() argument 106 return valueAt(stream).canBeMuted(); in canBeMuted() 109 void StreamDescriptorCollection::clearCurrentVolumeIndex(audio_stream_type_t stream) in clearCurrentVolumeIndex() argument 111 editValueAt(stream).clearCurrentVolumeIndex(); in clearCurrentVolumeIndex() 114 void StreamDescriptorCollection::addCurrentVolumeIndex(audio_stream_type_t stream, in addCurrentVolumeIndex() argument 117 editValueAt(stream).addCurrentVolumeIndex(device, index); in addCurrentVolumeIndex() 120 void StreamDescriptorCollection::setVolumeCurvePoint(audio_stream_type_t stream, in setVolumeCurvePoint() argument 124 editValueAt(stream).setVolumeCurvePoint(deviceCategory, point); in setVolumeCurvePoint() [all …]
|
D | AudioOutputDescriptor.cpp | 90 void AudioOutputDescriptor::changeRefCount(audio_stream_type_t stream, in changeRefCount() argument 93 if ((delta + (int)mRefCount[stream]) < 0) { in changeRefCount() 95 delta, stream, mRefCount[stream]); in changeRefCount() 96 mRefCount[stream] = 0; in changeRefCount() 99 mRefCount[stream] += delta; in changeRefCount() 100 ALOGV("changeRefCount() stream %d, count %d", stream, mRefCount[stream]); in changeRefCount() 120 bool AudioOutputDescriptor::isStreamActive(audio_stream_type_t stream, in isStreamActive() argument 124 if (mRefCount[stream] != 0) { in isStreamActive() 133 if (ns2ms(sysTime - mStopTime[stream]) < inPastMs) { in isStreamActive() 146 audio_stream_type_t stream, in setVolume() argument [all …]
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyInterfaceImplLegacy.cpp | 131 audio_io_handle_t AudioPolicyService::getOutput(audio_stream_type_t stream, in getOutput() argument 138 if (uint32_t(stream) >= AUDIO_STREAM_PUBLIC_CNT) { in getOutput() 146 return mpAudioPolicy->get_output(mpAudioPolicy, stream, samplingRate, in getOutput() 151 audio_stream_type_t stream, in startOutput() argument 154 if (uint32_t(stream) >= AUDIO_STREAM_PUBLIC_CNT) { in startOutput() 168 status_t status = audioPolicyEffects->addOutputSessionEffects(output, stream, session); in startOutput() 175 return mpAudioPolicy->start_output(mpAudioPolicy, output, stream, session); in startOutput() 179 audio_stream_type_t stream, in stopOutput() argument 182 if (uint32_t(stream) >= AUDIO_STREAM_PUBLIC_CNT) { in stopOutput() 189 mOutputCommandThread->stopOutputCommand(output, stream, session); in stopOutput() [all …]
|
D | AudioPolicyInterfaceImpl.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 mAudioPolicyManager->getOutput(stream, samplingRate, in getOutput() 152 audio_stream_type_t *stream, in getOutputForAttr() argument 175 return mAudioPolicyManager->getOutputForAttr(attr, output, session, stream, uid, samplingRate, in getOutputForAttr() 180 audio_stream_type_t stream, in startOutput() argument 183 if (uint32_t(stream) >= AUDIO_STREAM_CNT) { in startOutput() 197 status_t status = audioPolicyEffects->addOutputSessionEffects(output, stream, session); in startOutput() 203 return mAudioPolicyManager->startOutput(output, stream, session); in startOutput() 207 audio_stream_type_t stream, in stopOutput() argument [all …]
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | AudioGroup.java | 147 synchronized void add(AudioStream stream) { in add() argument 148 if (!mStreams.containsKey(stream)) { in add() 150 AudioCodec codec = stream.getCodec(); in add() 153 long id = nativeAdd(stream.getMode(), stream.getSocket(), in add() 154 stream.getRemoteAddress().getHostAddress(), in add() 155 stream.getRemotePort(), codecSpec, stream.getDtmfType(), in add() 157 mStreams.put(stream, id); in add() 168 synchronized void remove(AudioStream stream) { in remove() argument 169 Long id = mStreams.remove(stream); in remove() 198 for (AudioStream stream : getStreams()) { in clear() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogController.java | 231 public void setStreamMute(int stream, boolean mute) { in setStreamMute() argument 233 mWorker.obtainMessage(W.SET_STREAM_MUTE, stream, mute ? 1 : 0).sendToTarget(); in setStreamMute() 236 public void setStreamVolume(int stream, int level) { in setStreamVolume() argument 238 mWorker.obtainMessage(W.SET_STREAM_VOLUME, stream, level).sendToTarget(); in setStreamVolume() 241 public void setActiveStream(int stream) { in setActiveStream() argument 243 mWorker.obtainMessage(W.SET_ACTIVE_STREAM, stream, 0).sendToTarget(); in setActiveStream() 274 private boolean checkRoutedToBluetoothW(int stream) { in checkRoutedToBluetoothW() argument 276 if (stream == AudioManager.STREAM_MUSIC) { in checkRoutedToBluetoothW() 282 changed |= updateStreamRoutedToBluetoothW(stream, routedToBluetooth); in checkRoutedToBluetoothW() 287 private void onVolumeChangedW(int stream, int flags) { in onVolumeChangedW() argument [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/rs/api/ |
D | Utilities.cpp | 130 stringstream stream; in hashString() local 131 stream << "0x" << std::hex << hash << "l"; in hashString() 132 return stream.str(); in hashString() 154 static void addCommaSeparated(const string& value, ostringstream* stream, bool* needComma) { in addCommaSeparated() argument 159 *stream << ", "; in addCommaSeparated() 161 *stream << value; in addCommaSeparated() 167 ostringstream stream; in makeAttributeTag() local 173 addCommaSeparated(userAttribute.substr(1), &stream, &needComma); in makeAttributeTag() 175 addCommaSeparated(userAttribute, &stream, &needComma); in makeAttributeTag() 176 addCommaSeparated(additionalAttribute, &stream, &needComma); in makeAttributeTag() [all …]
|
/frameworks/compile/slang/ |
D | slang_diagnostic_buffer.cpp | 41 llvm::raw_string_ostream stream(Message); in HandleDiagnostic() local 44 SrcLoc.print(stream, Info.getSourceManager()); in HandleDiagnostic() 45 stream << ": "; in HandleDiagnostic() 50 stream << "note: "; in HandleDiagnostic() 54 stream << "warning: "; in HandleDiagnostic() 58 stream << "error: "; in HandleDiagnostic() 62 stream << "fatal: "; in HandleDiagnostic() 72 stream << Buf.str() << '\n'; in HandleDiagnostic() 73 stream.flush(); in HandleDiagnostic()
|