Searched refs:bytes_needed (Results 1 - 25 of 26) sorted by relevance

12

/external/chromium_org/media/formats/webm/
H A Dcluster_builder.cc80 int bytes_needed = sizeof(kSimpleBlockHeader) + block_size; local
81 if (bytes_needed > (buffer_size_ - bytes_used_))
82 ExtendBuffer(bytes_needed);
92 bytes_used_ += bytes_needed;
114 int bytes_needed = block_size; local
116 bytes_needed += sizeof(kBlockGroupHeader);
118 bytes_needed += sizeof(kBlockGroupHeaderWithoutBlockDuration);
121 int block_group_size = bytes_needed - 9;
123 if (bytes_needed > (buffer_size_ - bytes_used_))
124 ExtendBuffer(bytes_needed);
202 ExtendBuffer(int bytes_needed) argument
[all...]
H A Dcluster_builder.h50 void ExtendBuffer(int bytes_needed);
/external/chromium_org/remoting/client/
H A Daudio_player.cc99 const size_t bytes_needed = kChannels * kSampleSizeBytes * local
103 CHECK_EQ(buffer_size, bytes_needed);
108 while (bytes_extracted < bytes_needed) {
111 memset(next_sample, 0, bytes_needed - bytes_extracted);
126 bytes_needed - bytes_extracted);
/external/chromium_org/chrome/browser/
H A Dcrash_upload_list_win.cc22 DWORD bytes_needed; local
30 &bytes_needed);
45 buffer.resize(bytes_needed);
/external/chromium_org/sandbox/win/src/sidestep/
H A Dpreamble_patcher_with_stub.cpp54 size_t* bytes_needed) {
105 if (NULL != bytes_needed)
106 *bytes_needed = preamble_bytes + 5;
49 RawPatchWithStub( void* target_function, void* replacement_function, unsigned char* preamble_stub, size_t stub_size, size_t* bytes_needed) argument
H A Dpreamble_patcher.h97 // bytes_needed: Pointer to a variable that receives the minimum
106 size_t* bytes_needed);
/external/chromium_org/sandbox/win/src/
H A Dhandle_closer.cc91 size_t bytes_needed = GetBufferSize();
93 new size_t[bytes_needed / sizeof(size_t)]);
95 if (!SetupHandleList(local_buffer.get(), bytes_needed))
101 void* remote_data = ::VirtualAllocEx(child, NULL, bytes_needed,
109 bytes_needed, &bytes_written);
110 if (!result || bytes_written != bytes_needed) {
/external/chromium_org/printing/
H A Dprinting_context_win.cc71 DWORD bytes_needed = 0; local
74 NULL, 2, NULL, 0, &bytes_needed, &count_returned);
75 if (bytes_needed) {
76 DCHECK_GE(bytes_needed, count_returned * sizeof(PRINTER_INFO_2));
77 scoped_ptr<BYTE[]> printer_info_buffer(new BYTE[bytes_needed]);
80 bytes_needed, &bytes_needed,
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/
H A Dpreamble_patcher_with_stub.cc60 unsigned long* bytes_needed) {
196 if (NULL != bytes_needed)
197 *bytes_needed = stub_bytes + kRequiredStubJumpBytes
55 RawPatchWithStub( void* target_function, void* replacement_function, unsigned char* preamble_stub, unsigned long stub_size, unsigned long* bytes_needed) argument
H A Dpreamble_patcher.h384 // @param bytes_needed Pointer to a variable that receives the minimum
394 unsigned long* bytes_needed);
415 // @param bytes_needed Pointer to a variable that receives the minimum
424 unsigned long* bytes_needed);
H A Dpreamble_patcher.cc159 unsigned long* bytes_needed) {
177 bytes_needed);
156 RawPatchWithStubAndProtections( void* target_function, void *replacement_function, unsigned char* preamble_stub, unsigned long stub_size, unsigned long* bytes_needed) argument
/external/chromium_org/third_party/tcmalloc/vendor/src/windows/
H A Dpreamble_patcher_with_stub.cc60 unsigned long* bytes_needed) {
196 if (NULL != bytes_needed)
197 *bytes_needed = stub_bytes + kRequiredStubJumpBytes
55 RawPatchWithStub( void* target_function, void* replacement_function, unsigned char* preamble_stub, unsigned long stub_size, unsigned long* bytes_needed) argument
H A Dpreamble_patcher.h384 // @param bytes_needed Pointer to a variable that receives the minimum
394 unsigned long* bytes_needed);
415 // @param bytes_needed Pointer to a variable that receives the minimum
424 unsigned long* bytes_needed);
H A Dpreamble_patcher.cc159 unsigned long* bytes_needed) {
177 bytes_needed);
156 RawPatchWithStubAndProtections( void* target_function, void *replacement_function, unsigned char* preamble_stub, unsigned long stub_size, unsigned long* bytes_needed) argument
/external/chromium_org/net/filter/
H A Dsdch_filter.cc375 size_t bytes_needed = kServerIdLength - dictionary_hash_.size(); local
376 DCHECK_GT(bytes_needed, 0u);
379 if (static_cast<size_t>(stream_data_len_) < bytes_needed) {
385 dictionary_hash_.append(next_stream_data_, bytes_needed);
387 stream_data_len_ -= bytes_needed;
390 next_stream_data_ += bytes_needed;
/external/chromium_org/gpu/command_buffer/client/
H A Dvertex_array_object_manager.cc459 GLsizei bytes_needed = bytes_per_element * num_elements; local
460 if (collection_buffer_size_ < bytes_needed) {
461 collection_buffer_.reset(new int8[bytes_needed]);
462 collection_buffer_size_ = bytes_needed;
470 return bytes_needed;
608 GLsizei bytes_needed = bytes_per_element * count; local
609 if (bytes_needed > element_array_buffer_size_) {
610 element_array_buffer_size_ = bytes_needed;
612 GL_ELEMENT_ARRAY_BUFFER, bytes_needed, NULL, GL_DYNAMIC_DRAW);
615 GL_ELEMENT_ARRAY_BUFFER, 0, bytes_needed, indice
[all...]
/external/chromium_org/printing/backend/
H A Dprint_backend_win.cc178 DWORD bytes_needed = 0; local
182 kLevel, NULL, 0, &bytes_needed, &count_returned);
183 if (!bytes_needed)
185 scoped_ptr<BYTE[]> printer_info_buffer(new BYTE[bytes_needed]);
187 printer_info_buffer.get(), bytes_needed, &bytes_needed,
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/
H A Dpairingsession.cc156 size_t bytes_needed = nonce_length / encoder_->symbols_per_byte(); local
158 uint8_t* random = util::PoloUtil::GenerateRandomBytes(bytes_needed);
159 nonce_ = new Nonce(random, random + bytes_needed);
/external/chromium_org/cloud_print/virtual_driver/win/port_monitor/
H A Dport_monitor.cc141 DWORD bytes_needed = 0; local
142 GetJob(printer_handle, job_id, 1, NULL, 0, &bytes_needed);
143 if (bytes_needed == 0) {
147 scoped_ptr<BYTE[]> buffer(new BYTE[bytes_needed]);
152 bytes_needed,
153 &bytes_needed)) {
H A Dport_monitor_unittest.cc189 DWORD bytes_needed = 0; local
211 &bytes_needed));
227 &bytes_needed));
/external/flac/libFLAC/
H A Dmd5.c400 const size_t bytes_needed = (size_t)channels * (size_t)samples * (size_t)bytes_per_sample; local
408 if(ctx->capacity < bytes_needed) {
409 FLAC__byte *tmp = (FLAC__byte*)realloc(ctx->internal_buf, bytes_needed);
412 if(0 == (ctx->internal_buf = (FLAC__byte*)safe_malloc_(bytes_needed)))
416 ctx->capacity = bytes_needed;
421 FLAC__MD5Update(ctx, ctx->internal_buf, bytes_needed);
/external/chromium_org/chrome/service/cloud_print/
H A Dprint_system_win.cc754 DWORD bytes_needed = 0; local
755 GetJob(printer_handle.Get(), job_id, 1, NULL, 0, &bytes_needed);
760 scoped_ptr<BYTE[]> job_info_buffer(new BYTE[bytes_needed]);
762 bytes_needed, &bytes_needed)) {
/external/bluetooth/bluedroid/btif/src/
H A Dbtif_media_task.c2562 UINT16 bytes_needed = blocm_x_subband * btif_media_cb.encoder.s16NumOfChannels * \ local
2593 read_size = bytes_needed - btif_media_cb.media_feeding_state.pcm.aa_feed_residue;
2697 if(btif_media_cb.media_feeding_state.pcm.aa_feed_residue >= bytes_needed)
2702 bytes_needed);
2704 btif_media_cb.media_feeding_state.pcm.aa_feed_residue -= bytes_needed;
2709 (UINT8 *)up_sampled_buffer + bytes_needed,
2716 APPL_TRACE_DEBUG("btif_media_aa_read_feeding residue:%d, dst_size_used %d, bytes_needed %d",
2717 btif_media_cb.media_feeding_state.pcm.aa_feed_residue, dst_size_used, bytes_needed);
/external/chromium_org/media/base/
H A Dcontainer_names.cc410 // is the current location in the buffer, and is updated. |bytes_needed| is the
417 int bytes_needed,
420 DCHECK_GE(bytes_needed, 3);
426 while (*offset + bytes_needed < buffer_size) {
414 AdvanceToStartCode(const uint8* buffer, int buffer_size, int* offset, int bytes_needed, int num_bits, uint32 start_code) argument
/external/chromium_org/third_party/icu/source/test/cintltst/
H A Dnucnvtst.c5381 int32_t rules_length, target_cap, bytes_needed, buff_size; local
5411 bytes_needed = ucnv_fromUChars(utf8cnv, buff, target_cap,
5413 target_cap = (bytes_needed > target_cap) ? bytes_needed : target_cap +1;
5414 if(numNeeded!=0 && numNeeded!= bytes_needed){
5418 numNeeded = bytes_needed;
5433 int32_t target_cap, bytes_needed, numNeeded = 0; local
5442 bytes_needed = ucnv_fromUChars(conv,target,256,src,u_strlen(src),&status);
5443 target_cap = (bytes_needed > target_cap) ? bytes_needed
[all...]

Completed in 5257 milliseconds

12