/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 | 86 BitstreamDecVideo *stream; in DecodeVOLHeader() local 99 stream = currVol->bitstream; in DecodeVOLHeader() 103 status = BitstreamShowBits32HC(stream, &startCode); in DecodeVOLHeader() 109 (void) BitstreamReadBits32HC(stream); in DecodeVOLHeader() 110 tmpvar = (uint32) BitstreamReadBits16(stream, 8); /* profile */ in DecodeVOLHeader() 144 status = BitstreamShowBits32HC(stream, &tmpvar); in DecodeVOLHeader() 148 status = DecodeUserData(stream); in DecodeVOLHeader() 152 BitstreamShowBits32HC(stream, &tmpvar); in DecodeVOLHeader() 158 status = PVSearchNextM4VFrame(stream); /* search 0x00 0x00 0x01 */ in DecodeVOLHeader() 160 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 int mbnum = (int) BitstreamReadBits16(stream, nbits); in PV_ReadVideoPacketHeader() 69 quantizer = (int16) BitstreamReadBits16(stream, currVol->quantPrecision); in PV_ReadVideoPacketHeader() 76 if (BitstreamRead1Bits(stream)) in PV_ReadVideoPacketHeader() 84 tmpvar16 = BitstreamRead1Bits(stream); in PV_ReadVideoPacketHeader() 89 BitstreamRead1Bits(stream); in PV_ReadVideoPacketHeader() 92 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/native/services/vr/bufferhubd/ |
D | buffer_hub.cpp | 37 std::ostringstream stream; in DumpState() local 46 stream << "Active Producer Buffers:\n"; in DumpState() 47 stream << std::right; in DumpState() 48 stream << std::setw(6) << "Id"; in DumpState() 49 stream << " "; in DumpState() 50 stream << std::setw(9) << "Consumers"; in DumpState() 51 stream << " "; in DumpState() 52 stream << std::setw(14) << "Geometry"; in DumpState() 53 stream << " "; in DumpState() 54 stream << std::setw(6) << "Format"; in DumpState() [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/media/libaaudio/src/core/ |
D | AAudioAudio.cpp | 57 static AudioStream *convertAAudioStreamToAudioStream(AAudioStream* stream) in convertAAudioStreamToAudioStream() argument 59 return (AudioStream*) stream; in convertAAudioStreamToAudioStream() 228 AAUDIO_API aaudio_result_t AAudioStream_close(AAudioStream* stream) in AAudioStream_close() argument 231 AudioStream *audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_close() 249 AAUDIO_API aaudio_result_t AAudioStream_requestStart(AAudioStream* stream) in AAudioStream_requestStart() argument 251 AudioStream *audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_requestStart() 259 AAUDIO_API aaudio_result_t AAudioStream_requestPause(AAudioStream* stream) in AAudioStream_requestPause() argument 261 AudioStream *audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_requestPause() 266 AAUDIO_API aaudio_result_t AAudioStream_requestFlush(AAudioStream* stream) in AAudioStream_requestFlush() argument 268 AudioStream *audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_requestFlush() [all …]
|
/frameworks/av/media/libaaudio/include/aaudio/ |
D | AAudio.h | 830 AAudioStream *stream, 916 AAudioStream *stream, 959 AAudioStream** stream) __INTRODUCED_IN(26); 984 AAUDIO_API aaudio_result_t AAudioStream_close(AAudioStream* stream) __INTRODUCED_IN(26); 998 AAUDIO_API aaudio_result_t AAudioStream_requestStart(AAudioStream* stream) __INTRODUCED_IN(26); 1015 AAUDIO_API aaudio_result_t AAudioStream_requestPause(AAudioStream* stream) __INTRODUCED_IN(26); 1032 AAUDIO_API aaudio_result_t AAudioStream_requestFlush(AAudioStream* stream) __INTRODUCED_IN(26); 1045 AAUDIO_API aaudio_result_t AAudioStream_requestStop(AAudioStream* stream) __INTRODUCED_IN(26); 1059 AAUDIO_API aaudio_stream_state_t AAudioStream_getState(AAudioStream* stream) __INTRODUCED_IN(26); 1085 AAUDIO_API aaudio_result_t AAudioStream_waitForStateChange(AAudioStream* stream, [all …]
|
/frameworks/native/services/bufferhub/ |
D | BufferHubService.cpp | 198 std::ostringstream stream; in debug() local 220 stream << "Active Buffers:\n"; in debug() 221 stream << std::right; in debug() 222 stream << std::setw(6) << "Id"; in debug() 223 stream << " "; in debug() 224 stream << std::setw(9) << "#Clients"; in debug() 225 stream << " "; in debug() 226 stream << std::setw(14) << "Geometry"; in debug() 227 stream << " "; in debug() 228 stream << std::setw(6) << "Format"; in debug() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | ANQPParserTest.java | 53 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in getVenueNamePayload() local 54 stream.write(new byte[VenueNameElement.VENUE_INFO_LENGTH]); in getVenueNamePayload() 55 stream.write(getI18NameListPayload(language, text)); in getVenueNamePayload() 56 return stream.toByteArray(); in getVenueNamePayload() 67 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in getDomainNamePayload() local 70 stream.write((byte) nameBytes.length); in getDomainNamePayload() 71 stream.write(nameBytes); in getDomainNamePayload() 73 return stream.toByteArray(); in getDomainNamePayload() 86 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in getRoamingConsortiumPayload() local 88 stream.write((byte) oisLength[i]); in getRoamingConsortiumPayload() [all …]
|
/frameworks/base/cmds/idmap2/tests/ |
D | RawPrintVisitorTests.cpp | 46 std::stringstream stream; in TEST() local 47 RawPrintVisitor visitor(stream); in TEST() 50 ASSERT_NE(stream.str().find("00000000: 504d4449 magic\n"), std::string::npos); in TEST() 51 ASSERT_NE(stream.str().find("00000004: 00000001 version\n"), std::string::npos); in TEST() 52 ASSERT_NE(stream.str().find("00000008: 76a20829 target crc\n"), std::string::npos); in TEST() 53 ASSERT_NE(stream.str().find("0000000c: 8635c2ed overlay crc\n"), std::string::npos); in TEST() 54 ASSERT_NE(stream.str().find("0000021c: 00000000 0x7f010000 -> 0x7f010000 integer/int1\n"), in TEST() 67 std::stringstream stream; in TEST() local 68 RawPrintVisitor visitor(stream); in TEST() 71 ASSERT_NE(stream.str().find("00000000: 504d4449 magic\n"), std::string::npos); in TEST() [all …]
|
/frameworks/native/cmds/idlcli/ |
D | utils.h | 37 inline std::istream &operator>>(std::istream &stream, T &out) { 38 auto pos = stream.tellg(); 42 stream >> tmp; 43 if (!stream) { 44 return stream; 47 stream.seekg(pos); 48 stream.setstate(std::ios_base::failbit); 49 return stream; 52 return stream; 58 inline std::istream &operator>>(std::istream &stream, int8_t &out) { [all …]
|
/frameworks/base/cmds/media/src/com/android/commands/media/ |
D | VolumeCtrl.java | 70 int stream = AudioManager.STREAM_MUSIC; in run() local 91 stream = Integer.decode(cmd.nextArgRequired()).intValue(); in run() 92 log(LOG_V, "will control stream=" + stream + " (" + streamName(stream) + ")"); in run() 140 if ((volIndex > audioService.getStreamMaxVolume(stream)) in run() 141 || (volIndex < audioService.getStreamMinVolume(stream))) { in run() 143 + "(should be in [%d..%d])", volIndex, stream, in run() 144 audioService.getStreamMinVolume(stream), in run() 145 audioService.getStreamMaxVolume(stream))); in run() 155 audioService.setStreamVolume(stream, volIndex, flag, pack/*callingPackage*/); in run() 157 audioService.adjustStreamVolume(stream, adjDir, flag, pack); in run() [all …]
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | AudioGroup.java | 161 synchronized void add(AudioStream stream) { in add() argument 162 if (!mStreams.containsKey(stream)) { in add() 164 AudioCodec codec = stream.getCodec(); in add() 167 long id = nativeAdd(stream.getMode(), stream.getSocket(), in add() 168 stream.getRemoteAddress().getHostAddress(), in add() 169 stream.getRemotePort(), codecSpec, stream.getDtmfType(), in add() 172 mStreams.put(stream, id); in add() 183 synchronized void remove(AudioStream stream) { in remove() argument 184 Long id = mStreams.remove(stream); in remove() 213 for (AudioStream stream : getStreams()) { in clear() [all …]
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | SysTrace.h | 43 std::ostream& stream() { in stream() function 53 (ATRACE_ENABLED()) && android::idmap2::utils::ScopedTraceMessageHelper().stream() 59 std::ostream& stream() { 67 #define SYSTRACE android::idmap2::utils::DummyStream().stream() 73 std::ostream& operator<<(std::ostream& stream, const std::vector<T>& vector) { 75 stream << "["; 78 stream << ", "; 80 stream << item; 83 stream << "]"; 84 return stream;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImpl.java | 187 protected void setAudioManagerStreamVolume(int stream, int level, int flag) { in setAudioManagerStreamVolume() argument 188 mAudio.setStreamVolume(stream, level, flag); in setAudioManagerStreamVolume() 191 protected int getAudioManagerStreamVolume(int stream) { in getAudioManagerStreamVolume() argument 192 return mAudio.getLastAudibleStreamVolume(stream); in getAudioManagerStreamVolume() 195 protected int getAudioManagerStreamMaxVolume(int stream) { in getAudioManagerStreamMaxVolume() argument 196 return mAudio.getStreamMaxVolume(stream); in getAudioManagerStreamMaxVolume() 199 protected int getAudioManagerStreamMinVolume(int stream) { in getAudioManagerStreamMinVolume() argument 200 return mAudio.getStreamMinVolumeInt(stream); in getAudioManagerStreamMinVolume() 323 public void setStreamMute(int stream, boolean mute) { in setStreamMute() argument 325 mWorker.obtainMessage(W.SET_STREAM_MUTE, stream, mute ? 1 : 0).sendToTarget(); in setStreamMute() [all …]
|
/frameworks/native/services/vr/performanced/ |
D | cpu_set.cpp | 109 void CpuSetManager::DumpState(std::ostringstream& stream) const { in DumpState() 122 stream << std::left; in DumpState() 123 stream << std::setw(max_path) << "Path"; in DumpState() 124 stream << " "; in DumpState() 125 stream << std::setw(6) << "CPUs"; in DumpState() 126 stream << " "; in DumpState() 127 stream << std::setw(6) << "Tasks"; in DumpState() 128 stream << std::endl; in DumpState() 130 stream << std::string(max_path, '_'); in DumpState() 131 stream << " "; in DumpState() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/ |
D | IconLoader.java | 49 InputStream stream = getIcon(resourceDir); in getIcon() local 50 if (stream != null) { in getIcon() 51 return stream; in getIcon() 79 InputStream stream = getIcon(resourceDir, mDesiredDensity); in getIcon() local 80 if (stream != null) { in getIcon() 82 return stream; in getIcon() 90 stream = getIcon(resourceDir, density); in getIcon() 91 if (stream != null) { in getIcon() 93 return stream; in getIcon() 115 InputStream stream = getClass().getResourceAsStream(mCurrentPath.toString()); in getIcon() local [all …]
|