Home
last modified time | relevance | path

Searched refs:bitstream (Results 1 – 25 of 118) sorted by relevance

12345

/external/pdfium/core/fxcrt/
Dcfx_bitstream_unittest.cpp24 CFX_BitStream bitstream(kData); in TEST() local
27 EXPECT_FALSE(bitstream.IsEOF()); in TEST()
28 EXPECT_EQ(0U, bitstream.GetPos()); in TEST()
29 EXPECT_EQ(64U, bitstream.BitsRemaining()); in TEST()
32 EXPECT_EQ(0x00U, bitstream.GetBits(8)); in TEST()
33 EXPECT_EQ(8U, bitstream.GetPos()); in TEST()
34 EXPECT_EQ(56U, bitstream.BitsRemaining()); in TEST()
36 EXPECT_EQ(0x00U, bitstream.GetBits(1)); in TEST()
37 EXPECT_EQ(9U, bitstream.GetPos()); in TEST()
38 EXPECT_EQ(55U, bitstream.BitsRemaining()); in TEST()
[all …]
/external/webrtc/modules/video_coding/
Dh264_sps_pps_tracker.cc48 rtc::ArrayView<const uint8_t> bitstream, in CopyAndFixBitstream() argument
52 RTC_DCHECK_GT(bitstream.size(), 0); in CopyAndFixBitstream()
131 const uint8_t* nalu_ptr = bitstream.data() + 1; in CopyAndFixBitstream()
132 while (nalu_ptr < bitstream.data() + bitstream.size() - 1) { in CopyAndFixBitstream()
147 required_size += bitstream.size(); in CopyAndFixBitstream()
152 fixed.bitstream.EnsureCapacity(required_size); in CopyAndFixBitstream()
156 fixed.bitstream.AppendData(start_code_h264); in CopyAndFixBitstream()
157 fixed.bitstream.AppendData(sps->second.data.get(), sps->second.size); in CopyAndFixBitstream()
160 fixed.bitstream.AppendData(start_code_h264); in CopyAndFixBitstream()
161 fixed.bitstream.AppendData(pps->second.data.get(), pps->second.size); in CopyAndFixBitstream()
[all …]
Dh264_sps_pps_tracker.h32 rtc::CopyOnWriteBuffer bitstream; member
39 FixedBitstream CopyAndFixBitstream(rtc::ArrayView<const uint8_t> bitstream,
/external/aac/libSACdec/src/
Dsac_bitdec.cpp218 HANDLE_FDK_BITSTREAM bitstream, SPATIAL_SPECIFIC_CONFIG *config, in SpatialDecParseExtensionConfig() argument
226 ba = fMin((int)FDKgetValidBits(bitstream), ba); in SpatialDecParseExtensionConfig()
233 config->sacExtType[config->sacExtCnt] = FDKreadBits(bitstream, 4); in SpatialDecParseExtensionConfig()
236 sacExtLen = FDKreadBits(bitstream, 4); in SpatialDecParseExtensionConfig()
240 sacExtLen += FDKreadBits(bitstream, 8); in SpatialDecParseExtensionConfig()
243 sacExtLen += FDKreadBits(bitstream, 16); in SpatialDecParseExtensionConfig()
249 bitstream); /* Extension config payload start anchor. */ in SpatialDecParseExtensionConfig()
260 bitsRead = tmp - FDKgetValidBits(bitstream); in SpatialDecParseExtensionConfig()
268 FDKpushFor(bitstream, nFillBits); in SpatialDecParseExtensionConfig()
280 HANDLE_FDK_BITSTREAM bitstream, in SpatialDecParseSpecificConfigHeader() argument
[all …]
Dsac_bitdec.h126 HANDLE_FDK_BITSTREAM bitstream,
131 HANDLE_FDK_BITSTREAM bitstream,
137 HANDLE_FDK_BITSTREAM bitstream,
152 spatialDec *self, SPATIAL_BS_FRAME *frame, HANDLE_FDK_BITSTREAM bitstream,
/external/aac/libSACenc/src/
Dsacenc_bitstream.cpp263 static void ecData(HANDLE_FDK_BITSTREAM bitstream, in ecData() argument
290 FDKwriteBits(bitstream, losslessData->bsXXXDataMode[paramIdx][0], 2); in ecData()
306 FDKwriteBits(bitstream, losslessData->bsXXXDataMode[paramIdx][ps], 2); in ecData()
356 FDKwriteBits(bitstream, losslessData->bsDataPair[paramIdx][ps], 1); in ecData()
357 FDKwriteBits(bitstream, losslessData->bsQuantCoarseXXX[paramIdx][ps], 1); in ecData()
358 FDKwriteBits(bitstream, losslessData->bsFreqResStrideXXX[paramIdx][ps], in ecData()
401 fdk_sacenc_ecDataPairEnc(bitstream, cmpIdxData, cmpOldData, dataType, 0, in ecData()
406 fdk_sacenc_ecDataSingleEnc(bitstream, cmpIdxData, cmpOldData, dataType, in ecData()
547 FDK_BITSTREAM bitstream; in fdk_sacenc_writeSpatialSpecificConfig() local
561 FDKinitBitStream(&bitstream, pOutputBuffer, outputBufferSize, 0, BS_WRITER); in fdk_sacenc_writeSpatialSpecificConfig()
[all …]
/external/libxaac/decoder/
Dixheaacd_mps_parse.c244 ia_mps_dec_state_struct *self, ia_handle_bit_buf_struct bitstream, in ixheaacd_mps_ecdata_decoding() argument
276 frame_xxx_data->bs_xxx_data_mode[i] = ixheaacd_read_bits_buf(bitstream, 2); in ixheaacd_mps_ecdata_decoding()
296 bs_data_pair = ixheaacd_read_bits_buf(bitstream, 1); in ixheaacd_mps_ecdata_decoding()
298 ixheaacd_read_bits_buf(bitstream, 1); in ixheaacd_mps_ecdata_decoding()
300 ixheaacd_read_bits_buf(bitstream, 2); in ixheaacd_mps_ecdata_decoding()
320 bitstream, data, lastdata, datatype, set_index, data_bands, in ixheaacd_mps_ecdata_decoding()
356 ia_handle_bit_buf_struct bitstream) { in ixheaacd_mps_frame_parsing() argument
371 bs_frame_type = ixheaacd_read_bits_buf(bitstream, 1); in ixheaacd_mps_frame_parsing()
372 self->num_parameter_sets = ixheaacd_read_bits_buf(bitstream, 3) + 1; in ixheaacd_mps_frame_parsing()
385 self->param_slots[i] = ixheaacd_read_bits_buf(bitstream, bits_param_slot); in ixheaacd_mps_frame_parsing()
[all …]
/external/libogg/doc/
Drfc3533.txt26 This document describes the Ogg bitstream format version 0, which is
29 encoding formats as well as other data streams in a single bitstream.
42 4. The Ogg bitstream format . . . . . . . . . . . . . . . . . . . 3
65 The Ogg bitstream format has been developed as a part of a larger
73 This document describes the Ogg bitstream format and how to use it to
75 encoders. The Ogg transport bitstream is designed to provide
96 format of the Ogg bitstream. See the Appendix for a more complete
102 bitstream, provided to the Ogg encapsulation process, has a
105 bitstream and represent meaningful entities for that encoder only
139 in the bitstream.
[all …]
/external/webrtc/modules/rtp_rtcp/source/
Dvideo_rtp_depacketizer.cc30 rtc::scoped_refptr<EncodedImageBuffer> bitstream = in AssembleFrame() local
33 uint8_t* write_at = bitstream->data(); in AssembleFrame()
38 RTC_DCHECK_EQ(write_at - bitstream->data(), bitstream->size()); in AssembleFrame()
39 return bitstream; in AssembleFrame()
Dvideo_rtp_depacketizer_av1.cc353 rtc::scoped_refptr<EncodedImageBuffer> bitstream = in AssembleFrame() local
355 uint8_t* write_at = bitstream->data(); in AssembleFrame()
364 RTC_CHECK_EQ(write_at - bitstream->data(), bitstream->size()); in AssembleFrame()
365 return bitstream; in AssembleFrame()
/external/llvm-project/llvm/test/ThinLTO/X86/
Ddiagnostic-handler-remarks.ll55 ; RUN: rm -f %t.bitstream.thin.0.bitstream %t.bitstream.thin.1.bitstream
57 ; RUN: -lto-pass-remarks-output=%t.bitstream \
59 ; RUN: -lto-pass-remarks-format=bitstream \
63 ; RUN: llvm-bcanalyzer %t.bitstream.thin.0.bitstream
64 ; RUN: llvm-bcanalyzer %t.bitstream.thin.1.bitstream
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv84_video_bsp.c102 { dec->bitstream, NOUVEAU_BO_RDWR | NOUVEAU_BO_GART }, in nv84_decoder_bsp()
191 memcpy(dec->bitstream->map, &params, sizeof(params)); in nv84_decoder_bsp()
193 assert(total_bytes + num_bytes[i] < dec->bitstream->size / 2 - 0x700); in nv84_decoder_bsp()
194 memcpy(dec->bitstream->map + 0x700 + total_bytes, data[i], num_bytes[i]); in nv84_decoder_bsp()
197 memcpy(dec->bitstream->map + 0x700 + total_bytes, end, sizeof(end)); in nv84_decoder_bsp()
200 memcpy(dec->bitstream->map + 0x600, more_params, sizeof(more_params)); in nv84_decoder_bsp()
216 PUSH_DATA (push, dec->bitstream->offset >> 8); in nv84_decoder_bsp()
217 PUSH_DATA (push, (dec->bitstream->offset >> 8) + 7); in nv84_decoder_bsp()
218 PUSH_DATA (push, dec->bitstream->size / 2 - 0x700); in nv84_decoder_bsp()
219 PUSH_DATA (push, (dec->bitstream->offset >> 8) + 6); in nv84_decoder_bsp()
/external/webrtc/modules/audio_coding/codecs/isac/main/source/
Dcrc.c84 int WebRtcIsac_GetCrc(const int16_t* bitstream, in WebRtcIsac_GetCrc() argument
94 if (bitstream == NULL) { in WebRtcIsac_GetCrc()
98 bitstream_ptr_uw8 = (uint8_t *)bitstream; in WebRtcIsac_GetCrc()
/external/webp/src/mux/
Dmuxedit.c128 static WebPMuxError GetImageData(const WebPData* const bitstream, in GetImageData() argument
132 if (bitstream->size < TAG_SIZE || in GetImageData()
133 memcmp(bitstream->bytes, "RIFF", TAG_SIZE)) { in GetImageData()
135 *image = *bitstream; in GetImageData()
139 WebPMux* const mux = WebPMuxCreate(bitstream, 0); in GetImageData()
216 const WebPData* const bitstream, int copy_data, WebPMuxImage* const wpi) { in SetAlphaAndImageChunks() argument
219 WebPMuxError err = GetImageData(bitstream, &image, &alpha, &is_lossless); in SetAlphaAndImageChunks()
233 WebPMuxError WebPMuxSetImage(WebPMux* mux, const WebPData* bitstream, in WebPMuxSetImage() argument
239 if (mux == NULL || bitstream == NULL || bitstream->bytes == NULL || in WebPMuxSetImage()
240 bitstream->size > MAX_CHUNK_PAYLOAD) { in WebPMuxSetImage()
[all …]
Dmuxread.c174 WebPMux* WebPMuxCreateInternal(const WebPData* bitstream, int copy_data, in WebPMuxCreateInternal() argument
193 if (bitstream == NULL) return NULL; in WebPMuxCreateInternal()
195 data = bitstream->bytes; in WebPMuxCreateInternal()
196 size = bitstream->size; in WebPMuxCreateInternal()
388 WebPData* const bitstream) { in SynthesizeBitstream() argument
418 bitstream->bytes = data; in SynthesizeBitstream()
419 bitstream->size = size; in SynthesizeBitstream()
453 return SynthesizeBitstream(wpi, &info->bitstream); in MuxGetImageInternal()
476 return SynthesizeBitstream(wpi, &frame->bitstream); in MuxGetFrameInternal()
/external/webrtc/common_video/h264/
Dh264_bitstream_parser.cc299 void H264BitstreamParser::ParseBitstream(const uint8_t* bitstream, in ParseBitstream() argument
302 H264::FindNaluIndices(bitstream, length); in ParseBitstream()
304 ParseSlice(&bitstream[index.payload_start_offset], index.payload_size); in ParseBitstream()
320 rtc::ArrayView<const uint8_t> bitstream) { in ParseBitstream() argument
321 ParseBitstream(bitstream.data(), bitstream.size()); in ParseBitstream()
Dh264_bitstream_parser.h35 void ParseBitstream(const uint8_t* bitstream, size_t length);
39 void ParseBitstream(rtc::ArrayView<const uint8_t> bitstream) override;
/external/webp/src/webp/
Dmux.h136 static WEBP_INLINE WebPMux* WebPMuxCreate(const WebPData* bitstream, in WebPMuxCreate() argument
138 return WebPMuxCreateInternal(bitstream, copy_data, WEBP_MUX_ABI_VERSION); in WebPMuxCreate()
200 WebPData bitstream; // image data: can be a raw VP8/VP8L bitstream member
226 WebPMux* mux, const WebPData* bitstream, int copy_data);
/external/webp/include/webp/
Dmux.h136 static WEBP_INLINE WebPMux* WebPMuxCreate(const WebPData* bitstream, in WebPMuxCreate() argument
138 return WebPMuxCreateInternal(bitstream, copy_data, WEBP_MUX_ABI_VERSION); in WebPMuxCreate()
200 WebPData bitstream; // image data: can be a raw VP8/VP8L bitstream member
226 WebPMux* mux, const WebPData* bitstream, int copy_data);
/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/util/
DNalUnitUtilTest.java195 byte[] bitstream = Util.getBytesFromHexString(input); in assertUnescapeMatchesExpected()
197 int count = NalUnitUtil.unescapeStream(bitstream, bitstream.length); in assertUnescapeMatchesExpected()
200 System.arraycopy(bitstream, 0, outputBitstream, 0, count); in assertUnescapeMatchesExpected()
205 byte[] bitstream = Util.getBytesFromHexString(input); in assertDiscardToSpsMatchesExpected()
207 ByteBuffer buffer = ByteBuffer.wrap(bitstream); in assertDiscardToSpsMatchesExpected()
/external/mesa3d/src/gallium/frontends/omx/
Dvid_enc_common.c41 pipe_resource_reference(&i->bitstream, NULL); in enc_ReleaseTasks()
144 if (!task->bitstream) in vid_enc_BufferEncoded_common()
152 pipe_resource_reference(&outp->bitstream, task->bitstream); in vid_enc_BufferEncoded_common()
153 pipe_resource_reference(&task->bitstream, NULL); in vid_enc_BufferEncoded_common()
155 box.width = outp->bitstream->width0; in vid_enc_BufferEncoded_common()
156 box.height = outp->bitstream->height0; in vid_enc_BufferEncoded_common()
157 box.depth = outp->bitstream->depth0; in vid_enc_BufferEncoded_common()
159 output->pBuffer = priv->t_pipe->transfer_map(priv->t_pipe, outp->bitstream, 0, in vid_enc_BufferEncoded_common()
/external/zstd/lib/
DBUCK98 name='bitstream',
102 ('common', 'bitstream.h'),
123 ':bitstream',
223 ':bitstream',
/external/webrtc/modules/audio_coding/test/
Dopus_test.cc272 uint8_t bitstream[kMaxBytes]; in Run() local
276 &audio[read_samples], frame_length, kMaxBytes, bitstream); in Run()
299 opus_mono_decoder_, bitstream, bitstream_len_byte, in Run()
319 opus_stereo_decoder_, bitstream, bitstream_len_byte, in Run()
340 rtp_timestamp_, bitstream, bitstream_len_byte, 0); in Run()
/external/webrtc/modules/audio_coding/codecs/isac/fix/source/
Disacfix.c42 Bitstr_dec* bitstream) { in InitializeDecoderBitstream() argument
43 bitstream->W_upper = 0xFFFFFFFF; in InitializeDecoderBitstream()
44 bitstream->streamval = 0; in InitializeDecoderBitstream()
45 bitstream->stream_index = 0; in InitializeDecoderBitstream()
46 bitstream->full = 1; in InitializeDecoderBitstream()
47 bitstream->stream_size = (stream_size_bytes + 1) >> 1; in InitializeDecoderBitstream()
48 memset(bitstream->stream, 0, sizeof(bitstream->stream)); in InitializeDecoderBitstream()
/external/llvm-project/llvm/test/CodeGen/X86/
Dremarks-section.ll6 ; RUN: llc < %s -mtriple=x86_64-darwin --pass-remarks-format=bitstream -pass-remarks-output=%/t.yam…
7 ; RUN: llc < %s -mtriple=x86_64-darwin --pass-remarks-format=bitstream -remarks-section=false -pass…
22 ; bitstream needs a section.

12345