/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | stream.c | 18 * File: stream.c * 24 #include "stream.h" 26 void voAWB_InitFrameBuffer(FrameStream *stream) argument 28 stream->set_ptr = NULL; 29 stream->frame_ptr_bk = stream->frame_ptr; 30 stream->set_len = 0; 31 stream->framebuffer_len = 0; 32 stream->frame_storelen = 0; 36 FrameStream *stream, 35 voAWB_UpdateFrameBuffer( FrameStream *stream, VO_MEM_OPERATOR *pMemOP ) argument 50 voAWB_FlushFrameBuffer(FrameStream *stream) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | bitstream.cpp | 49 PV_STATUS BitstreamFillCache(BitstreamDecVideo *stream) argument 51 uint8 *bitstreamBuffer = stream->bitstreamBuffer; 55 stream->curr_word |= (stream->next_word >> stream->incnt); // stream->incnt cannot be 32 56 stream->next_word <<= (31 - stream->incnt); 57 stream->next_word <<= 1; 58 num_bits = stream 124 BitstreamReset(BitstreamDecVideo *stream, uint8 *buffer, int32 buffer_size) argument 140 BitstreamOpen(BitstreamDecVideo *stream, int) argument 175 BitstreamShowBits32HC(BitstreamDecVideo *stream, uint32 *code) argument 193 BitstreamShowBits32(BitstreamDecVideo *stream, int nbits, uint32 *code) argument 215 BitstreamShowBits16(BitstreamDecVideo *stream, int nbits, uint *code) argument 238 BitstreamShow15Bits(BitstreamDecVideo *stream, uint *code) argument 257 BitstreamShow13Bits(BitstreamDecVideo *stream, uint *code) argument 270 BitstreamReadBits16_INLINE(BitstreamDecVideo *stream, int nbits) argument 286 BitstreamRead1Bits_INLINE(BitstreamDecVideo *stream) argument 311 BitstreamReadBits16(BitstreamDecVideo *stream, int nbits) argument 333 BitstreamRead1Bits(BitstreamDecVideo *stream) argument 355 PV_BitstreamFlushBitsCheck(BitstreamDecVideo *stream, int nbits) argument 382 BitstreamReadBits32(BitstreamDecVideo *stream, int nbits) argument 396 BitstreamReadBits32HC(BitstreamDecVideo *stream) argument 415 BitstreamCheckEndBuffer(BitstreamDecVideo *stream) argument 422 PV_BitstreamShowBitsByteAlign(BitstreamDecVideo *stream, int nbits, uint32 *code) argument 441 PV_BitstreamShowBitsByteAlignNoForceStuffing(BitstreamDecVideo *stream, int nbits, uint32 *code) argument 460 PV_BitstreamByteAlign(BitstreamDecVideo *stream) argument 487 BitstreamByteAlignNoForceStuffing(BitstreamDecVideo *stream) argument 513 getPointer(BitstreamDecVideo *stream) argument 529 movePointerTo(BitstreamDecVideo *stream, int32 pos) argument 565 validStuffing(BitstreamDecVideo *stream) argument 577 validStuffing_h263(BitstreamDecVideo *stream) argument 603 PVSearchNextH263Frame(BitstreamDecVideo *stream) argument 632 PVSearchNextM4VFrame(BitstreamDecVideo *stream) argument 652 PVLocateM4VFrameBoundary(BitstreamDecVideo *stream) argument 663 PVLocateH263FrameBoundary(BitstreamDecVideo *stream) argument 682 quickSearchVideoPacketHeader(BitstreamDecVideo *stream, int marker_length) argument 706 quickSearchH263SliceHeader(BitstreamDecVideo *stream) argument 784 quickSearchMotionMarker(BitstreamDecVideo *stream) argument 875 quickSearchDCM(BitstreamDecVideo *stream) argument 950 quickSearchGOBHeader(BitstreamDecVideo *stream) argument [all...] |
H A 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, in 51 BitstreamShowBits16(BitstreamDecVideo *stream, int nbits, uint *code) argument 69 BitstreamShow15Bits(BitstreamDecVideo *stream, uint *code) argument 83 BitstreamShow13Bits(BitstreamDecVideo *stream, uint *code) argument 95 BitstreamReadBits16_INLINE(BitstreamDecVideo *stream, int nbits) argument 110 BitstreamRead1Bits_INLINE(BitstreamDecVideo *stream) argument [all...] |
H A 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, in [all...] |
H A D | packet_util.cpp | 33 BitstreamDecVideo *stream = video->bitstream; local 47 status = PV_BitstreamShowBitsByteAlign(stream, resync_marker_length, &tmpvar32); 51 // DecNextStartCode(stream); 52 PV_BitstreamByteAlign(stream); 53 BitstreamReadBits32(stream, resync_marker_length); 55 *next_MB = (int) BitstreamReadBits16(stream, nbits); 65 quantizer = (int16) BitstreamReadBits16(stream, currVol->quantPrecision); 72 if (BitstreamRead1Bits(stream)) 80 tmpvar16 = BitstreamRead1Bits(stream); 85 BitstreamRead1Bits(stream); 148 BitstreamDecVideo *stream = video->bitstream; local 199 BitstreamDecVideo *stream = video->bitstream; local [all...] |
H A D | vop.cpp | 84 BitstreamDecVideo *stream; local 97 stream = currVol->bitstream; 101 status = BitstreamShowBits32HC(stream, &startCode); 107 (void) BitstreamReadBits32HC(stream); 108 tmpvar = (uint32) BitstreamReadBits16(stream, 8); /* profile */ 142 status = BitstreamShowBits32HC(stream, &tmpvar); 146 status = DecodeUserData(stream); 150 BitstreamShowBits32HC(stream, &tmpvar); 156 status = PVSearchNextM4VFrame(stream); /* search 0x00 0x00 0x01 */ 158 BitstreamShowBits32(stream, VOL_START_CODE_LENGT 742 DecodeGOVHeader(BitstreamDecVideo *stream, uint32 *time_base) argument 810 BitstreamDecVideo *stream = currVol->bitstream; local 1020 BitstreamDecVideo *stream = currVol->bitstream; local [all...] |
H A D | dec_pred_intra_dc.cpp | 25 BitstreamDecVideo *stream, 41 status = PV_VlcDecIntraDCPredSize(stream, compnum, &DC_size); 52 code = (int) BitstreamReadBits16_INLINE(stream, DC_size); 66 if (DC_size > 8) BitstreamRead1Bits_INLINE(stream); 23 PV_DecodePredictedIntraDC( int compnum, BitstreamDecVideo *stream, int16 *INTRADC_delta) argument
|
H A D | vlc_decode.cpp | 103 PV_STATUS DecodeUserData(BitstreamDecVideo *stream) argument 108 BitstreamReadBits32HC(stream); 109 BitstreamShowBits32(stream, 24, &code); 114 BitstreamReadBits16(stream, 8); 115 BitstreamShowBits32(stream, 24, &code); 116 status = BitstreamCheckEndBuffer(stream); 135 BitstreamDecVideo *stream = video->bitstream; local 164 status = PV_VlcDecMV(stream, &vlc_code_mag); 174 status = PV_VlcDecMV(stream, &vlc_code_mag); 191 status = PV_VlcDecMV(stream, 267 PV_DecodeMBVec(BitstreamDecVideo *stream, MOT *mv_x, MOT *mv_y, int f_code_f) argument 452 PV_VlcDecMV(BitstreamDecVideo *stream, int *mv) argument 503 PV_VlcDecMCBPC_com_intra(BitstreamDecVideo *stream) argument 536 PV_VlcDecMCBPC_com_inter(BitstreamDecVideo *stream) argument 557 PV_VlcDecMCBPC_com_inter_H263(BitstreamDecVideo *stream) argument 590 PV_VlcDecCBPY(BitstreamDecVideo *stream, int intra) argument 628 PV_VlcDecIntraDCPredSize(BitstreamDecVideo *stream, int compnum, uint *DC_size) argument 839 VlcDecTCOEFIntra(BitstreamDecVideo *stream, Tcoef *pTcoef) argument 1022 VlcDecTCOEFInter(BitstreamDecVideo *stream, Tcoef *pTcoef) argument 1201 VlcDecTCOEFShortHeader(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1261 VlcDecTCOEFShortHeader_AnnexI(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1316 VlcDecTCOEFShortHeader_AnnexT(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1389 VlcDecTCOEFShortHeader_AnnexIT(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1471 RvlcDecTCOEFInter(BitstreamDecVideo *stream, Tcoef *pTcoef) argument 1554 RvlcDecTCOEFIntra(BitstreamDecVideo *stream, Tcoef *pTcoef) argument [all...] |
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | bitstream_io.cpp | 45 AVCEnc_Status BitstreamEncInit(AVCEncBitstream *stream, uint8 *buffer, int buf_size, argument 48 if (stream == NULL || buffer == NULL || buf_size <= 0) 53 stream->bitstreamBuffer = buffer; 55 stream->buf_size = buf_size; 57 stream->write_pos = 0; 59 stream->count_zeros = 0; 61 stream->current_word = 0; 63 stream->bit_left = WORD_SIZE; 65 stream->overrunBuffer = overrunBuffer; 67 stream 82 AVCBitstreamSaveWord(AVCEncBitstream *stream) argument 145 BitstreamWriteBits(AVCEncBitstream *stream, int nBits, uint code) argument 197 BitstreamWrite1Bit(AVCEncBitstream *stream, uint code) argument 255 byte_aligned(AVCEncBitstream *stream) argument 265 AVCBitstreamUseOverrunBuffer(AVCEncBitstream* stream, int numExtraBytes) argument [all...] |
H A D | header.cpp | 25 AVCEnc_Status EncodeSPS(AVCEncObject *encvid, AVCEncBitstream *stream) argument 35 status = BitstreamWriteBits(stream, 8, seqParam->profile_idc); 36 status = BitstreamWrite1Bit(stream, seqParam->constrained_set0_flag); 37 status = BitstreamWrite1Bit(stream, seqParam->constrained_set1_flag); 38 status = BitstreamWrite1Bit(stream, seqParam->constrained_set2_flag); 39 status = BitstreamWrite1Bit(stream, seqParam->constrained_set3_flag); 40 status = BitstreamWriteBits(stream, 4, 0); /* forbidden zero bits */ 46 status = BitstreamWriteBits(stream, 8, seqParam->level_idc); 47 status = ue_v(stream, seqParam->seq_parameter_set_id); 48 status = ue_v(stream, seqPara 113 EncodeVUI(AVCEncBitstream* stream, AVCVUIParams* vui) argument 200 EncodeHRD(AVCEncBitstream* stream, AVCHRDParams* hrd) argument 227 EncodePPS(AVCEncObject *encvid, AVCEncBitstream *stream) argument 316 EncodeSliceHeader(AVCEncObject *encvid, AVCEncBitstream *stream) argument 506 ref_pic_list_reordering(AVCCommonObj *video, AVCEncBitstream *stream, AVCSliceHeader *sliceHdr, int slice_type) argument 587 dec_ref_pic_marking(AVCCommonObj *video, AVCEncBitstream *stream, AVCSliceHeader *sliceHdr) argument [all...] |
/frameworks/compile/slang/ |
H A D | slang_diagnostic_buffer.cpp | 41 llvm::raw_string_ostream stream(Message); 44 SrcLoc.print(stream, Info.getSourceManager()); 45 stream << ": "; 50 stream << "note: "; 54 stream << "warning: "; 58 stream << "error: "; 62 stream << "fatal: "; 72 stream << Buf.str() << '\n'; 73 stream.flush();
|
/frameworks/base/tools/aapt/tests/ |
H A D | TestHelper.h | 27 inline std::ostream& operator<<(std::ostream& stream, const String8& str) { argument 28 return stream << str.string();
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/ |
H A D | stream.h | 20 File: stream.h 43 void voAWB_UpdateFrameBuffer(FrameStream *stream, VO_MEM_OPERATOR *pMemOP); 44 void voAWB_InitFrameBuffer(FrameStream *stream); 45 void voAWB_FlushFrameBuffer(FrameStream *stream);
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequence.cpp | 21 FrameSequence* FrameSequence::create(Stream* stream) { argument 22 const RegistryEntry* entry = Registry::Find(stream); 26 FrameSequence* frameSequence = entry->createFrameSequence(stream);
|
H A D | Registry.h | 30 FrameSequence* (*createFrameSequence)(Stream* stream); 31 Decoder* (*createDecoder)(Stream* stream); 46 static const RegistryEntry* Find(Stream* stream);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | bitstream_io.cpp | 54 BitstreamEncVideo *stream; local 55 stream = (BitstreamEncVideo *) M4VENC_MALLOC(sizeof(BitstreamEncVideo)); 56 if (stream == NULL) 60 stream->bufferSize = bufferSize; 61 stream->bitstreamBuffer = (UChar *) M4VENC_MALLOC(stream->bufferSize * sizeof(UChar)); 62 if (stream->bitstreamBuffer == NULL) 64 M4VENC_FREE(stream); 65 stream = NULL; 68 M4VENC_MEMSET(stream 93 BitstreamCloseEnc(BitstreamEncVideo *stream) argument 120 BitstreamPutBits(BitstreamEncVideo *stream, Int Length, UInt Value) argument 168 BitstreamPutGT16Bits(BitstreamEncVideo *stream, Int Length, ULong Value) argument 207 BitstreamSaveWord(BitstreamEncVideo *stream) argument 257 BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction) argument 326 BitstreamShortHeaderByteAlignStuffing(BitstreamEncVideo *stream) argument 355 BitstreamMpeg4ByteAlignStuffing(BitstreamEncVideo *stream) argument 760 BitstreamGetPos(BitstreamEncVideo *stream) argument 766 BitstreamEncReset(BitstreamEncVideo *stream) argument 776 BitstreamSetOverrunBuffer(BitstreamEncVideo* stream, UChar* overrunBuffer, Int oBSize, VideoEncData *video) argument 787 BitstreamUseOverrunBuffer(BitstreamEncVideo* stream, Int numExtraBytes) argument [all...] |
H A 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, UCha [all...] |
H A 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); 46 // BitstreamEncVideo *stream=video->bitstream1; 128 BitstreamEncVideo *stream = video->bitstream1; local 135 status = EncodeShortHeader(stream, currVop); /* Encode Short Header */ 137 video->header_bits = BitstreamGetPos(stream); /* Header Bits */ 147 status = EncodeGOVHeader(stream, time); /* Encode GOV Header */ 149 status = EncodeVOPHeader(stream, currVol, currVop); /* Encode VOP Header */ 151 video->header_bits = BitstreamGetPos(stream); /* Heade 197 BitstreamEncVideo *stream = video->bitstream1; /* different from frame-based */ local 276 EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds) argument 314 BitstreamEncVideo *stream = currVol->stream; local 353 EncodeVOPHeader(BitstreamEncVideo *stream, Vol *currVol, Vop *currVop) argument 412 EncodeShortHeader(BitstreamEncVideo *stream, Vop *currVop) argument [all...] |
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
H A D | AudioGroup.java | 83 * encoded and sent back to each stream. 147 synchronized void add(AudioStream stream) { argument 148 if (!mStreams.containsKey(stream)) { 150 AudioCodec codec = stream.getCodec(); 153 long id = nativeAdd(stream.getMode(), stream.getSocket(), 154 stream.getRemoteAddress().getHostAddress(), 155 stream.getRemotePort(), codecSpec, stream.getDtmfType(), 157 mStreams.put(stream, i 168 remove(AudioStream stream) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioStreamOut.cpp | 32 , stream(NULL) 50 if (stream == NULL) { 55 status_t status = stream->get_render_position(stream, &halPosition); 87 if (stream == NULL) { 92 status_t status = stream->get_presentation_position(stream, &halPosition, timestamp); 137 stream = outStream; 140 mHalFrameSize = audio_stream_out_frame_size(stream); 148 return stream [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | CreateJavaOutputStreamAdaptor.h | 16 * @param stream Pointer to Java InputStream. 24 SkStream* CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream, 30 * @param stream Pointer to Java InputStream. 33 * @return SkStreamRewindable The data in stream will be copied 36 SkStreamRewindable* CopyJavaInputStream(JNIEnv* env, jobject stream, 39 SkWStream* CreateJavaOutputStreamAdaptor(JNIEnv* env, jobject stream,
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | IconLoader.java | 47 InputStream stream = getIcon(resourceDir); 48 if (stream != null) { 49 return stream; 77 InputStream stream = getIcon(resourceDir, mDesiredDensity); 78 if (stream != null) { 80 return stream; 88 stream = getIcon(resourceDir, density); 89 if (stream != null) { 91 return stream; 113 InputStream stream [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | StreamDescriptor.cpp | 99 for (size_t stream = 0 ; stream < AUDIO_STREAM_CNT; stream++) { 100 add(static_cast<audio_stream_type_t>(stream), StreamDescriptor()); 104 bool StreamDescriptorCollection::canBeMuted(audio_stream_type_t stream) argument 106 return valueAt(stream).canBeMuted(); 109 void StreamDescriptorCollection::clearCurrentVolumeIndex(audio_stream_type_t stream) argument 111 editValueAt(stream).clearCurrentVolumeIndex(); 114 void StreamDescriptorCollection::addCurrentVolumeIndex(audio_stream_type_t stream, argument 117 editValueAt(stream) 120 setVolumeCurvePoint(audio_stream_type_t stream, Volume::device_category deviceCategory, const VolumeCurvePoint *point) argument 127 getVolumeCurvePoint(audio_stream_type_t stream, Volume::device_category deviceCategory) const argument 133 setVolumeIndexMin(audio_stream_type_t stream,int volIndexMin) argument 138 setVolumeIndexMax(audio_stream_type_t stream,int volIndexMax) argument [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | StreamDescriptor.h | 27 // stream descriptor used for volume control 55 bool mCanBeMuted; /**< true is the stream can be muted. */ 59 * stream descriptors collection for volume control 66 void clearCurrentVolumeIndex(audio_stream_type_t stream); 67 void addCurrentVolumeIndex(audio_stream_type_t stream, audio_devices_t device, int index); 69 bool canBeMuted(audio_stream_type_t stream); 73 void setVolumeCurvePoint(audio_stream_type_t stream, 77 const VolumeCurvePoint *getVolumeCurvePoint(audio_stream_type_t stream, 80 void setVolumeIndexMin(audio_stream_type_t stream,int volIndexMin); 81 void setVolumeIndexMax(audio_stream_type_t stream,in [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | FastXmlSerializerTest.java | 30 final ByteArrayOutputStream stream = new ByteArrayOutputStream(); 33 out.setOutput(stream, "utf-8"); 45 + "<string name=\"meow\"></string>", stream.toString());
|