/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 …]
|
/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/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/media/libaaudio/src/core/ |
D | AAudioAudio.cpp | 105 static AudioStream *convertAAudioStreamToAudioStream(AAudioStream* stream) in convertAAudioStreamToAudioStream() argument 107 return (AudioStream*) stream; in convertAAudioStreamToAudioStream() 276 AAUDIO_API aaudio_result_t AAudioStream_close(AAudioStream* stream) in AAudioStream_close() argument 279 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() 314 AAUDIO_API aaudio_result_t AAudioStream_requestFlush(AAudioStream* stream) in AAudioStream_requestFlush() argument 316 AudioStream *audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_requestFlush() [all …]
|
/frameworks/av/media/libaaudio/include/aaudio/ |
D | AAudio.h | 806 AAudioStream *stream, 888 AAudioStream *stream, 927 AAudioStream** stream) __INTRODUCED_IN(26); 948 AAUDIO_API aaudio_result_t AAudioStream_close(AAudioStream* stream) __INTRODUCED_IN(26); 960 AAUDIO_API aaudio_result_t AAudioStream_requestStart(AAudioStream* stream) __INTRODUCED_IN(26); 975 AAUDIO_API aaudio_result_t AAudioStream_requestPause(AAudioStream* stream) __INTRODUCED_IN(26); 990 AAUDIO_API aaudio_result_t AAudioStream_requestFlush(AAudioStream* stream) __INTRODUCED_IN(26); 1001 AAUDIO_API aaudio_result_t AAudioStream_requestStop(AAudioStream* stream) __INTRODUCED_IN(26); 1013 AAUDIO_API aaudio_stream_state_t AAudioStream_getState(AAudioStream* stream) __INTRODUCED_IN(26); 1037 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/opt/gamesdk/src/tuningfork/ |
D | clearcutserializer.cpp | 24 bool ClearcutSerializer::writeCountArray(pb_ostream_t *stream, const pb_field_t *field, in writeCountArray() argument 27 if(!pb_encode_tag(stream, PB_WT_STRING, logs_proto_tuningfork_TuningForkHistogram_counts_tag)) in writeCountArray() 34 if (!pb_encode_varint(stream, sizing_stream.bytes_written)) in writeCountArray() 38 if(!pb_encode_varint(stream, h->buckets_[i])) in writeCountArray() 43 bool ClearcutSerializer::writeCpuFreqs(pb_ostream_t *stream, const pb_field_t *field, in writeCpuFreqs() argument 48 pb_encode_tag_for_field(stream, field); in writeCpuFreqs() 49 pb_encode_varint(stream, (*v)[i]); in writeCpuFreqs() 59 bool ClearcutSerializer::writeAnnotation(pb_ostream_t* stream, const pb_field_t *field, in writeAnnotation() argument 63 pb_encode_tag_for_field(stream, field); in writeAnnotation() 64 pb_encode_string(stream, &p->annotation_[0], p->annotation_.size()); in writeAnnotation() [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/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/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/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/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/ |
D | FieldCodecTest.cs | 125 var stream = new MemoryStream(); in TestRoundTripRaw() 126 var codedOutput = new CodedOutputStream(stream); in TestRoundTripRaw() 129 stream.Position = 0; in TestRoundTripRaw() 130 var codedInput = new CodedInputStream(stream); in TestRoundTripRaw() 137 var stream = new MemoryStream(); in TestRoundTripWithTag() 138 var codedOutput = new CodedOutputStream(stream); in TestRoundTripWithTag() 141 stream.Position = 0; in TestRoundTripWithTag() 142 var codedInput = new CodedInputStream(stream); in TestRoundTripWithTag() 150 var stream = new MemoryStream(); in TestCalculateSizeWithTag() 151 var codedOutput = new CodedOutputStream(stream); in TestCalculateSizeWithTag() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | CodedOutputStreamTest.java | 55 CodedOutputStream stream(); in stream() method 63 private final CodedOutputStream stream; field in CodedOutputStreamTest.OutputStreamCoder 68 stream = CodedOutputStream.newInstance(output, size); in OutputStreamCoder() 72 public CodedOutputStream stream() { in stream() method in CodedOutputStreamTest.OutputStreamCoder 73 return stream; in stream() 88 private final CodedOutputStream stream; field in CodedOutputStreamTest.ArrayCoder 93 stream = CodedOutputStream.newInstance(bytes); in ArrayCoder() 97 public CodedOutputStream stream() { in stream() method in CodedOutputStreamTest.ArrayCoder 98 return stream; in stream() 103 return Arrays.copyOf(bytes, stream.getTotalBytesWritten()); in toByteArray() [all …]
|
/frameworks/av/services/oboeservice/ |
D | AAudioServiceEndpoint.cpp | 68 for (const auto& stream : mRegisteredStreams) { in dump() local 69 result << stream->dump() << "\n"; in dump() 81 for (const auto& stream : mRegisteredStreams) { in isStreamRegistered() local 82 if (stream->getPortHandle() == portHandle) { in isStreamRegistered() 92 for (const auto& stream : mRegisteredStreams) { in disconnectRegisteredStreams() local 94 stream->getPortHandle()); in disconnectRegisteredStreams() 95 stream->stop(); in disconnectRegisteredStreams() 96 stream->disconnect(); in disconnectRegisteredStreams() 101 aaudio_result_t AAudioServiceEndpoint::registerStream(sp<AAudioServiceStreamBase>stream) { in registerStream() argument 103 mRegisteredStreams.push_back(stream); in registerStream() [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 …]
|