/frameworks/av/media/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 95 stream = currVol->bitstream; in DecodeVOLHeader() 99 status = BitstreamShowBits32HC(stream, &startCode); in DecodeVOLHeader() 105 (void) BitstreamReadBits32HC(stream); in DecodeVOLHeader() 106 tmpvar = (uint32) BitstreamReadBits16(stream, 8); /* profile */ in DecodeVOLHeader() 140 status = BitstreamShowBits32HC(stream, &tmpvar); in DecodeVOLHeader() 144 status = DecodeUserData(stream); in DecodeVOLHeader() 148 BitstreamShowBits32HC(stream, &tmpvar); in DecodeVOLHeader() 154 status = PVSearchNextM4VFrame(stream); /* search 0x00 0x00 0x01 */ in DecodeVOLHeader() 156 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/base/cmds/idmap2/tests/ |
D | RawPrintVisitorTests.cpp | 62 std::stringstream stream; in TEST() local 63 RawPrintVisitor visitor(stream); in TEST() 66 ASSERT_CONTAINS_REGEX(ADDRESS "504d4449 magic\n", stream.str()); in TEST() 67 ASSERT_CONTAINS_REGEX(ADDRESS "00000008 version\n", stream.str()); in TEST() 70 stream.str()); in TEST() 73 stream.str()); in TEST() 74 ASSERT_CONTAINS_REGEX(ADDRESS "00000001 fulfilled policies: public\n", stream.str()); in TEST() 75 ASSERT_CONTAINS_REGEX(ADDRESS "00000001 enforce overlayable\n", stream.str()); in TEST() 76 ASSERT_CONTAINS_REGEX(ADDRESS "00000004 target entry count", stream.str()); in TEST() 77 ASSERT_CONTAINS_REGEX(ADDRESS "00000000 target inline entry count", stream.str()); in TEST() [all …]
|
/frameworks/av/media/codecs/amrwb/enc/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/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 …]
|
/frameworks/base/media/jni/soundpool/ |
D | StreamManager.cpp | 73 Stream *stream = lookupStreamFromId(streamID); in findStream() local 74 return stream != nullptr && stream->getStreamID() == streamID ? stream : nullptr; in findStream() 77 size_t StreamMap::streamPosition(const Stream* stream) const in streamPosition() 79 ptrdiff_t index = stream - mStreamPool.get(); in streamPosition() 90 int32_t StreamMap::getNextIdForStream(Stream* stream) const { in getNextIdForStream() 93 stream, in getNextIdForStream() 94 [] (Stream *stream) { in getNextIdForStream() argument 95 return stream == nullptr ? 0 : stream->getStreamID(); in getNextIdForStream() 97 stream->getStreamID() /* oldID */); in getNextIdForStream() 117 forEach([this](Stream *stream) { in StreamManager() argument [all …]
|
/frameworks/av/media/libaaudio/src/core/ |
D | AAudioAudio.cpp | 56 static AudioStream *convertAAudioStreamToAudioStream(AAudioStream* stream) in convertAAudioStreamToAudioStream() argument 58 return (AudioStream*) stream; in convertAAudioStreamToAudioStream() 256 AAUDIO_API aaudio_result_t AAudioStream_release(AAudioStream* stream) { in AAudioStream_release() argument 258 AudioStream* audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_release() 275 AAUDIO_API aaudio_result_t AAudioStream_close(AAudioStream* stream) { in AAudioStream_close() argument 277 AudioStream* audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_close() 297 AAUDIO_API aaudio_result_t AAudioStream_requestStart(AAudioStream* stream) in AAudioStream_requestStart() argument 299 AudioStream *audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_requestStart() 307 AAUDIO_API aaudio_result_t AAudioStream_requestPause(AAudioStream* stream) in AAudioStream_requestPause() argument 309 AudioStream *audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_requestPause() [all …]
|
/frameworks/av/media/libaaudio/include/aaudio/ |
D | AAudio.h | 996 AAudioStream *stream, 1083 AAudioStream *stream, 1126 AAudioStream** stream) __INTRODUCED_IN(26); 1165 AAUDIO_API aaudio_result_t AAudioStream_release(AAudioStream* stream) __INTRODUCED_IN(30); 1178 AAUDIO_API aaudio_result_t AAudioStream_close(AAudioStream* stream) __INTRODUCED_IN(26); 1192 AAUDIO_API aaudio_result_t AAudioStream_requestStart(AAudioStream* stream) __INTRODUCED_IN(26); 1209 AAUDIO_API aaudio_result_t AAudioStream_requestPause(AAudioStream* stream) __INTRODUCED_IN(26); 1226 AAUDIO_API aaudio_result_t AAudioStream_requestFlush(AAudioStream* stream) __INTRODUCED_IN(26); 1239 AAUDIO_API aaudio_result_t AAudioStream_requestStop(AAudioStream* stream) __INTRODUCED_IN(26); 1253 AAUDIO_API aaudio_stream_state_t AAudioStream_getState(AAudioStream* stream) __INTRODUCED_IN(26); [all …]
|
/frameworks/base/services/core/java/com/android/server/apphibernation/ |
D | GlobalLevelHibernationProto.java | 37 public void writeToProto(@NonNull ProtoOutputStream stream, in writeToProto() argument 40 long token = stream.start(GlobalLevelHibernationStatesProto.HIBERNATION_STATE); in writeToProto() 42 stream.write(GlobalLevelHibernationStateProto.PACKAGE_NAME, state.packageName); in writeToProto() 43 stream.write(GlobalLevelHibernationStateProto.HIBERNATED, state.hibernated); in writeToProto() 44 stream.write(GlobalLevelHibernationStateProto.SAVED_BYTE, state.savedByte); in writeToProto() 45 stream.end(token); in writeToProto() 50 public @Nullable List<GlobalLevelState> readFromProto(@NonNull ProtoInputStream stream) in readFromProto() argument 53 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto() 54 if (stream.getFieldNumber() in readFromProto() 59 long token = stream.start(GlobalLevelHibernationStatesProto.HIBERNATION_STATE); in readFromProto() [all …]
|
D | UserLevelHibernationProto.java | 37 public void writeToProto(@NonNull ProtoOutputStream stream, in writeToProto() argument 40 long token = stream.start(UserLevelHibernationStatesProto.HIBERNATION_STATE); in writeToProto() 42 stream.write(UserLevelHibernationStateProto.PACKAGE_NAME, state.packageName); in writeToProto() 43 stream.write(UserLevelHibernationStateProto.HIBERNATED, state.hibernated); in writeToProto() 44 stream.end(token); in writeToProto() 49 public @Nullable List<UserLevelState> readFromProto(@NonNull ProtoInputStream stream) in readFromProto() argument 52 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto() 53 if (stream.getFieldNumber() in readFromProto() 58 long token = stream.start(UserLevelHibernationStatesProto.HIBERNATION_STATE); in readFromProto() 59 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto() [all …]
|
/frameworks/base/core/java/android/os/incremental/ |
D | V4Signature.java | 131 try (InputStream stream = new ParcelFileDescriptor.AutoCloseInputStream(pfd.dup())) { in readFrom() argument 132 return readFrom(stream); in readFrom() 141 try (InputStream stream = new ByteArrayInputStream(bytes)) { in readFrom() argument 142 return readFrom(stream); in readFrom() 150 try (ByteArrayOutputStream stream = new ByteArrayOutputStream()) { in toByteArray() argument 151 this.writeTo(stream); in toByteArray() 152 return stream.toByteArray(); in toByteArray() 194 private static V4Signature readFrom(InputStream stream) throws IOException { in readFrom() argument 195 final int version = readIntLE(stream); in readFrom() 197 final byte[] hashingInfo = readBytes(stream, maxSize); in readFrom() [all …]
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | Idmap.cpp | 38 bool WARN_UNUSED Read8(std::istream& stream, uint8_t* out) { in Read8() argument 40 if (stream.read(reinterpret_cast<char*>(&value), sizeof(uint8_t))) { in Read8() 47 bool WARN_UNUSED Read16(std::istream& stream, uint16_t* out) { in Read16() argument 49 if (stream.read(reinterpret_cast<char*>(&value), sizeof(uint16_t))) { in Read16() 56 bool WARN_UNUSED Read32(std::istream& stream, uint32_t* out) { in Read32() argument 58 if (stream.read(reinterpret_cast<char*>(&value), sizeof(uint32_t))) { in Read32() 65 bool WARN_UNUSED ReadString(std::istream& stream, std::string* out) { in ReadString() argument 67 if (!Read32(stream, &size)) { in ReadString() 75 if (!stream.read(buf.data(), size)) { in ReadString() 80 if (!stream.read(padding.data(), padding_size)) { in ReadString() [all …]
|
/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/ |
D | ProtoInputStreamIncompleteValueTest.java | 45 InputStream stream = new ByteArrayInputStream(protobuf); in testIncompleteVarint() local 46 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteVarint() 60 stream.close(); in testIncompleteVarint() 64 stream.close(); in testIncompleteVarint() 83 InputStream stream = new ByteArrayInputStream(protobuf); in testIncompleteFixed64() local 84 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteFixed64() 98 stream.close(); in testIncompleteFixed64() 102 stream.close(); in testIncompleteFixed64() 121 InputStream stream = new ByteArrayInputStream(protobuf); in testIncompleteLengthDelimited() local 122 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteLengthDelimited() [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | VolumeCtrl.java | 67 int stream = AudioManager.STREAM_MUSIC; in run() local 88 stream = Integer.decode(cmd.getNextArgRequired()).intValue(); in run() 90 "will control stream=" + stream + " (" + streamName(stream) + ")"); in run() 138 if ((volIndex > audioService.getStreamMaxVolume(stream)) in run() 139 || (volIndex < audioService.getStreamMinVolume(stream))) { in run() 141 + "(should be in [%d..%d])", volIndex, stream, in run() 142 audioService.getStreamMinVolume(stream), in run() 143 audioService.getStreamMaxVolume(stream))); in run() 153 audioService.setStreamVolume(stream, volIndex, flag, pack/*callingPackage*/); in run() 155 audioService.adjustStreamVolume(stream, adjDir, flag, pack); in run() [all …]
|
/frameworks/native/cmds/idlcli/ |
D | utils.h | 38 inline std::istream &operator>>(std::istream &stream, T &out) { 39 auto pos = stream.tellg(); 43 stream >> tmp; 44 if (!stream) { 45 return stream; 48 stream.seekg(pos); 49 stream.setstate(std::ios_base::failbit); 50 return stream; 53 return stream; 59 inline std::istream &operator>>(std::istream &stream, int8_t &out) { [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/opt/net/voip/src/java/android/net/rtp/ |
D | AudioGroup.java | 165 synchronized void add(AudioStream stream) { in add() argument 166 if (!mStreams.containsKey(stream)) { in add() 168 AudioCodec codec = stream.getCodec(); in add() 175 id = nativeAdd(stream.getMode(), stream.getSocket(), in add() 176 stream.getRemoteAddress().getHostAddress(), in add() 177 stream.getRemotePort(), codecSpec, stream.getDtmfType(), in add() 180 mStreams.put(stream, id); in add() 191 synchronized void remove(AudioStream stream) { in remove() argument 192 Long id = mStreams.remove(stream); in remove() 221 for (AudioStream stream : getStreams()) { in clear() [all …]
|