size 31 libde265-1.0.3/acceleration-speed/dct.h DSPFunc_FDCT_Base(int size) { size 33 libde265-1.0.3/acceleration-speed/dct.h blkSize=size; size 34 libde265-1.0.3/acceleration-speed/dct.h coeffs = new int16_t[size*size]; size 70 libde265-1.0.3/acceleration-speed/dct.h DSPFunc_IDCT_Base(int size) { size 71 libde265-1.0.3/acceleration-speed/dct.h prev_image=NULL; curr_image=NULL; coeffs=NULL; blkSize=size; size 72 libde265-1.0.3/acceleration-speed/dct.h out = new uint8_t[size*size]; // allocate it to ensure alignment size 520 libde265-1.0.3/dec265/dec265.cc static void *new_malloc_hook(size_t size, const void *caller) { size 530 libde265-1.0.3/dec265/dec265.cc mem = malloc(size); size 531 libde265-1.0.3/dec265/dec265.cc fprintf(stderr, "%p: malloc(%zu) = %p\n", caller, size, mem); size 40 libde265-1.0.3/dec265/hdrcopy.cc bitreader_init(&reader, nal->data(), nal->size()); size 114 libde265-1.0.3/dec265/hdrcopy.cc fwrite(writer.data(), 1,writer.size(), fh); size 62 libde265-1.0.3/libde265/alloc_pool.cc void* alloc_pool::new_obj(const size_t size) size 64 libde265-1.0.3/libde265/alloc_pool.cc if (size != mObjSize) { size 65 libde265-1.0.3/libde265/alloc_pool.cc return ::operator new(size); size 68 libde265-1.0.3/libde265/alloc_pool.cc if (m_freeList.size()==0) { size 46 libde265-1.0.3/libde265/alloc_pool.h void* new_obj(const size_t size); size 60 libde265-1.0.3/libde265/cabac.h virtual int size() const = 0; size 110 libde265-1.0.3/libde265/cabac.h virtual int size() const { return data_size; } size 172 libde265-1.0.3/libde265/cabac.h virtual int size() const { return mFracBits>>(15+3); } size 183 libde265-1.0.3/libde265/configparam.cc int numStrings = strings_list.size(); size 239 libde265-1.0.3/libde265/configparam.cc for (int o=0;o<mOptions.size();o++) { size 274 libde265-1.0.3/libde265/configparam.cc for (int o=0;o<mOptions.size();o++) { size 321 libde265-1.0.3/libde265/configparam.cc for (int i=0;i<mOptions.size();i++) { size 189 libde265-1.0.3/libde265/decctx.cc for (int i=0;i<slice_units.size();i++) { size 193 libde265-1.0.3/libde265/decctx.cc for (int i=0;i<tasks.size();i++) { size 696 libde265-1.0.3/libde265/decctx.cc for (int i=1;i<vec.size();i++) size 744 libde265-1.0.3/libde265/decctx.cc if ( ( image_units.size()>=2 && image_units[0]->all_slice_segments_processed()) || size 745 libde265-1.0.3/libde265/decctx.cc ( image_units.size()>=1 && image_units[0]->all_slice_segments_processed() && size 773 libde265-1.0.3/libde265/decctx.cc for (int i=0;i<imgunit->suffix_SEIs.size();i++) { size 809 libde265-1.0.3/libde265/decctx.cc if (sliceunit->shdr->slice_segment_address >= imgunit->img->get_pps().CtbAddrRStoTS.size()) { size 1086 libde265-1.0.3/libde265/decctx.cc for (int i=0;i<imgunit->tasks.size();i++) size 1176 libde265-1.0.3/libde265/decctx.cc for (int i=0;i<imgunit->tasks.size();i++) size 1193 libde265-1.0.3/libde265/decctx.cc bitreader_init(&reader, nal->data(), nal->size()); size 1466 libde265-1.0.3/libde265/decctx.cc for (int i=0;i<dpb.size();i++) { size 1571 libde265-1.0.3/libde265/decctx.cc std::vector<char> picInAnyList(dpb.size(), false); size 1592 libde265-1.0.3/libde265/decctx.cc picInAnyList.resize(dpb.size(), false); // adjust size of array to hold new picture size 1618 libde265-1.0.3/libde265/decctx.cc picInAnyList.resize(dpb.size(), false); // adjust size of array to hold new picture size 1651 libde265-1.0.3/libde265/decctx.cc if (concealedPicture < picInAnyList.size()) { size 1694 libde265-1.0.3/libde265/decctx.cc for (int i=0;i<dpb.size();i++) size 1695 libde265-1.0.3/libde265/decctx.cc if (i>=picInAnyList.size() || !picInAnyList[i]) // no reference size 2116 libde265-1.0.3/libde265/decctx.cc for (int i=0;i<removeImageList.size();i++) { size 206 libde265-1.0.3/libde265/decctx.h for (int i=0;i<slice_units.size();i++) { size 216 libde265-1.0.3/libde265/decctx.h for (int i=1; i<slice_units.size(); i++) { size 226 libde265-1.0.3/libde265/decctx.h for (int i=0; i<slice_units.size()-1; i++) { size 236 libde265-1.0.3/libde265/decctx.h for (int i=0; i<slice_units.size(); i++) { size 242 libde265-1.0.3/libde265/decctx.h if (slice_units.size()==0) return true; size 248 libde265-1.0.3/libde265/decctx.h if (slice_units.size()==0) return false; size 371 libde265-1.0.3/libde265/decctx.h bool has_image(int dpb_index) const { return dpb_index>=0 && dpb_index<dpb.size(); } size 39 libde265-1.0.3/libde265/dpb.cc for (int i=0;i<dpb.size();i++) size 46 libde265-1.0.3/libde265/dpb.cc for (int i=0;i<dpb.size();i++) { size 63 libde265-1.0.3/libde265/dpb.cc if (dpb.size() < max_images_in_DPB) return true; size 66 libde265-1.0.3/libde265/dpb.cc for (int i=0;i<dpb.size();i++) { size 84 libde265-1.0.3/libde265/dpb.cc for (int k=0;k<dpb.size();k++) { size 93 libde265-1.0.3/libde265/dpb.cc for (int k=0;k<dpb.size();k++) { size 110 libde265-1.0.3/libde265/dpb.cc for (int k=0;k<dpb.size();k++) { size 119 libde265-1.0.3/libde265/dpb.cc for (int k=0;k<dpb.size();k++) { size 135 libde265-1.0.3/libde265/dpb.cc for (int k=0;k<dpb.size();k++) { size 153 libde265-1.0.3/libde265/dpb.cc for (int i=1;i<reorder_output_queue.size();i++) size 189 libde265-1.0.3/libde265/dpb.cc for (int i=0;i<dpb.size();i++) { size 214 libde265-1.0.3/libde265/dpb.cc for (int i=0;i<dpb.size();i++) { size 229 libde265-1.0.3/libde265/dpb.cc if (dpb.size() > norm_images_in_DPB && // buffer too large size 230 libde265-1.0.3/libde265/dpb.cc free_image_buffer_idx != dpb.size()-1 && // last slot not reused in this alloc size 241 libde265-1.0.3/libde265/dpb.cc free_image_buffer_idx = dpb.size(); size 276 libde265-1.0.3/libde265/dpb.cc for (int i=0;i<image_output_queue.size();i++) { size 53 libde265-1.0.3/libde265/dpb.h int size() const { return dpb.size(); } size 58 libde265-1.0.3/libde265/dpb.h if (index>=dpb.size()) return NULL; size 63 libde265-1.0.3/libde265/dpb.h if (index>=dpb.size()) return NULL; size 79 libde265-1.0.3/libde265/dpb.h int num_pictures_in_reorder_buffer() const { return reorder_output_queue.size(); } size 90 libde265-1.0.3/libde265/dpb.h int num_pictures_in_output_queue() const { return image_output_queue.size(); } size 283 libde265-1.0.3/libde265/en265.cc if (ectx->output_packets.size()>0) { size 318 libde265-1.0.3/libde265/en265.cc return ectx->output_packets.size(); size 65 libde265-1.0.3/libde265/encoder/algo/coding-options.cc CodingOption<node> option(this, mOptions.size()); size 113 libde265-1.0.3/libde265/encoder/algo/coding-options.cc for (int i=0;i<mOptions.size();i++) { size 125 libde265-1.0.3/libde265/encoder/algo/coding-options.cc assert(mOptions.size()>0); size 132 libde265-1.0.3/libde265/encoder/algo/coding-options.cc for (int i=0;i<mOptions.size();i++) { size 162 libde265-1.0.3/libde265/encoder/algo/coding-options.cc for (int i=0;i<mOptions.size();i++) { size 451 libde265-1.0.3/libde265/encoder/algo/tb-intrapredmode.cc for (int i=0;i<distortions.size();i++) size 456 libde265-1.0.3/libde265/encoder/algo/tb-intrapredmode.cc int keepNBest=std::min((int)mParams.keepNBest, (int)distortions.size()); size 466 libde265-1.0.3/libde265/encoder/algo/tb-intrapredmode.cc for (int i=0;i<distortions.size();i++) { size 478 libde265-1.0.3/libde265/encoder/algo/tb-intrapredmode.cc for (int i=0;i<option.size();i++) { size 97 libde265-1.0.3/libde265/encoder/encoder-context.cc uint8_t* data = new uint8_t[cabac_encoder.size()]; size 98 libde265-1.0.3/libde265/encoder/encoder-context.cc memcpy(data, cabac_encoder.data(), cabac_encoder.size()); size 103 libde265-1.0.3/libde265/encoder/encoder-context.cc pck->length = cabac_encoder.size(); size 170 libde265-1.0.3/libde265/encoder/encoder-types.cc int size = 1<<log2TbSize; size 243 libde265-1.0.3/libde265/encoder/encoder-types.cc int size = 1<<(log2Size<<1); size 244 libde265-1.0.3/libde265/encoder/encoder-types.cc std::vector<uint8_t> buf(size); size 245 libde265-1.0.3/libde265/encoder/encoder-types.cc memset(&buf[0],0x12,size); size 583 libde265-1.0.3/libde265/encoder/encoder-types.cc assert(idx < mCTBs.size()); size 641 libde265-1.0.3/libde265/encoder/encoder-types.cc for (int i=0;i<mCTBs.size();i++) { size 322 libde265-1.0.3/libde265/encoder/encoder-types.h static void* operator new(const size_t size) { size 323 libde265-1.0.3/libde265/encoder/encoder-types.h void* p = mMemPool.new_obj(size); size 351 libde265-1.0.3/libde265/encoder/encoder-types.h assert(idx < mCTBs.size()); size 358 libde265-1.0.3/libde265/encoder/encoder-types.h assert(idx < mCTBs.size()); size 367 libde265-1.0.3/libde265/encoder/encoder-types.h assert(idx < mCTBs.size()); size 133 libde265-1.0.3/libde265/encoder/encpicbuf.cc shdr.num_ref_idx_l0_active = l0.size(); size 136 libde265-1.0.3/libde265/encoder/encpicbuf.cc assert(l0.size() < MAX_NUM_REF_PICS); size 137 libde265-1.0.3/libde265/encoder/encpicbuf.cc for (int i=0;i<l0.size();i++) { size 248 libde265-1.0.3/libde265/encoder/encpicbuf.cc for (int i=0;i<mImages.size();i++) { size 260 libde265-1.0.3/libde265/encoder/encpicbuf.cc for (int i=0;i<mImages.size();i++) { size 272 libde265-1.0.3/libde265/encoder/encpicbuf.cc for (int i=0;i<mImages.size();i++) { size 284 libde265-1.0.3/libde265/encoder/encpicbuf.cc for (int i=0;i<mImages.size();i++) { size 296 libde265-1.0.3/libde265/encoder/encpicbuf.cc for (int i=0;i<mImages.size();i++) { size 45 libde265-1.0.3/libde265/image.cc #define ALLOC_ALIGNED(alignment, size) __mingw_aligned_malloc((size), (alignment)) size 48 libde265-1.0.3/libde265/image.cc #define ALLOC_ALIGNED(alignment, size) _aligned_malloc((size), (alignment)) size 51 libde265-1.0.3/libde265/image.cc static inline void *ALLOC_ALIGNED(size_t alignment, size_t size) { size 53 libde265-1.0.3/libde265/image.cc if (posix_memalign(&mem, alignment, size) != 0) { size 60 libde265-1.0.3/libde265/image.cc #define ALLOC_ALIGNED(alignment, size) memalign((alignment), (size)) size 64 libde265-1.0.3/libde265/image.cc #define ALLOC_ALIGNED_16(size) ALLOC_ALIGNED(16, size) size 503 libde265-1.0.3/libde265/image.cc for (int i=0;i<slices.size();i++) { size 92 libde265-1.0.3/libde265/image.h int size = w*h; size 94 libde265-1.0.3/libde265/image.h if (size != data_size) { size 96 libde265-1.0.3/libde265/image.h data = (DataUnit*)malloc(size * sizeof(DataUnit)); size 101 libde265-1.0.3/libde265/image.h data_size = size; size 149 libde265-1.0.3/libde265/image.h int size() const { return data_size; } size 327 libde265-1.0.3/libde265/image.h shdr->slice_index = slices.size(); size 401 libde265-1.0.3/libde265/image.h int number_of_ctbs() const { return ctb_info.size(); } size 749 libde265-1.0.3/libde265/image.h return idx >= 0 && idx < slices.size(); size 755 libde265-1.0.3/libde265/image.h if (idx >= slices.size()) { return NULL; } size 762 libde265-1.0.3/libde265/image.h if (idx >= slices.size()) { return NULL; } size 769 libde265-1.0.3/libde265/image.h if (idx >= slices.size()) { return NULL; } size 92 libde265-1.0.3/libde265/md5.cc static void *body(MD5_CTX *ctx, void *data, unsigned long size) size 189 libde265-1.0.3/libde265/md5.cc } while (size -= 64); size 210 libde265-1.0.3/libde265/md5.cc void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size) size 216 libde265-1.0.3/libde265/md5.cc if ((ctx->lo = (saved_lo + size) & 0x1fffffff) < saved_lo) size 218 libde265-1.0.3/libde265/md5.cc ctx->hi += size >> 29; size 225 libde265-1.0.3/libde265/md5.cc if (size < free) { size 226 libde265-1.0.3/libde265/md5.cc memcpy(&ctx->buffer[used], data, size); size 232 libde265-1.0.3/libde265/md5.cc size -= free; size 236 libde265-1.0.3/libde265/md5.cc if (size >= 64) { size 237 libde265-1.0.3/libde265/md5.cc data = body(ctx, data, size & ~(unsigned long)0x3f); size 238 libde265-1.0.3/libde265/md5.cc size &= 0x3f; size 241 libde265-1.0.3/libde265/md5.cc memcpy(ctx->buffer, data, size); size 42 libde265-1.0.3/libde265/md5.h extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size); size 107 libde265-1.0.3/libde265/nal-parser.cc for (int k=skipped_bytes.size()-1;k>=0;k--) size 119 libde265-1.0.3/libde265/nal-parser.cc for (int i=0;i<size()-2;i++) size 123 libde265-1.0.3/libde265/nal-parser.cc if (i*0+k<size()) { size 139 libde265-1.0.3/libde265/nal-parser.cc memmove(p+2, p+3, size()-i-3); size 140 libde265-1.0.3/libde265/nal-parser.cc set_size(size()-1); size 184 libde265-1.0.3/libde265/nal-parser.cc for (int i=0;i<NAL_free_list.size();i++) { size 190 libde265-1.0.3/libde265/nal-parser.cc LIBDE265_CHECK_RESULT NAL_unit* NAL_Parser::alloc_NAL_unit(int size) size 196 libde265-1.0.3/libde265/nal-parser.cc if (NAL_free_list.size() > 0) { size 205 libde265-1.0.3/libde265/nal-parser.cc if (!nal->resize(size)) { size 219 libde265-1.0.3/libde265/nal-parser.cc if (NAL_free_list.size() < DE265_NAL_FREE_LIST_SIZE) { size 236 libde265-1.0.3/libde265/nal-parser.cc nBytes_in_NAL_queue -= nal->size(); size 245 libde265-1.0.3/libde265/nal-parser.cc nBytes_in_NAL_queue += nal->size(); size 266 libde265-1.0.3/libde265/nal-parser.cc if (!nal->resize(nal->size() + len + 3)) { size 270 libde265-1.0.3/libde265/nal-parser.cc unsigned char* out = nal->data() + nal->size(); size 323 libde265-1.0.3/libde265/nal-parser.cc if ((rand()%100)<90 && nal_data.size>0) { size 324 libde265-1.0.3/libde265/nal-parser.cc int pos = rand()%nal_data.size; size 55 libde265-1.0.3/libde265/nal-parser.h int size() const { return data_size; } size 64 libde265-1.0.3/libde265/nal-parser.h int num_skipped_bytes() const { return skipped_bytes.size(); } size 106 libde265-1.0.3/libde265/nal-parser.h int size = nBytes_in_NAL_queue; size 107 libde265-1.0.3/libde265/nal-parser.h if (pending_input_NAL) { size += pending_input_NAL->size(); } size 108 libde265-1.0.3/libde265/nal-parser.h return size; size 112 libde265-1.0.3/libde265/nal-parser.h int size = NAL_queue.size(); size 113 libde265-1.0.3/libde265/nal-parser.h if (pending_input_NAL) { size++; } size 114 libde265-1.0.3/libde265/nal-parser.h return size; size 118 libde265-1.0.3/libde265/nal-parser.h return NAL_queue.size(); size 124 libde265-1.0.3/libde265/nal-parser.h int get_NAL_queue_length() const { return NAL_queue.size(); } size 150 libde265-1.0.3/libde265/nal-parser.h LIBDE265_CHECK_RESULT NAL_unit* alloc_NAL_unit(int size); size 174 libde265-1.0.3/libde265/refpic.cc assert(RIdx >= 0 && RIdx < sets.size()); size 4685 libde265-1.0.3/libde265/slice.cc if ((tctx->CtbY-1) >= tctx->imgunit->ctx_models.size()) { size 4709 libde265-1.0.3/libde265/slice.cc if (ctbx+ctby*ctbW >= pps.CtbAddrRStoTS.size()) { size 4746 libde265-1.0.3/libde265/slice.cc if (tctx->imgunit->ctx_models.size() <= ctby) { size 4845 libde265-1.0.3/libde265/slice.cc if (sliceIdx >= img->slices.size()) { size 5039 libde265-1.0.3/libde265/slice.cc if (substream-1 >= tctx->shdr->entry_point_offset.size() || size 705 libde265-1.0.3/libde265/sps.cc LOG1("num_short_term_ref_pic_sets : %d\n", ref_pic_sets.size()); size 707 libde265-1.0.3/libde265/sps.cc for (int i = 0; i < ref_pic_sets.size(); i++) { size 1141 libde265-1.0.3/libde265/sps.cc int num_short_term_ref_pic_sets = ref_pic_sets.size(); size 156 libde265-1.0.3/libde265/sps.h int num_short_term_ref_pic_sets() const { return ref_pic_sets.size(); } size 201 libde265-1.0.3/libde265/threads.cc if (pool->stopped || pool->tasks.size()>0) { size 114 libde265-1.0.3/tools/bjoentegaard.cc int n = curve.size(); size 49 libde265-1.0.3/tools/block-rate-estim.cc for (int i=0;i<pts.size();i++) { size 67 libde265-1.0.3/tools/block-rate-estim.cc for (int i=0;i<pts.size();i++) size 84 libde265-1.0.3/tools/block-rate-estim.cc for (int i=0;i<pts.size();i++) size 116 libde265-1.0.3/tools/gen-entropy-table.cc int bits_ref = cabac_ref.size()*8; size 117 libde265-1.0.3/tools/gen-entropy-table.cc int bits_mix0 = cabac_mix0.size()*8; size 118 libde265-1.0.3/tools/gen-entropy-table.cc int bits_mix1 = cabac_mix1.size()*8; size 295 libde265-1.0.3/tools/gen-entropy-table.cc int bits_ref = cabac_ref.size()*8; size 296 libde265-1.0.3/tools/gen-entropy-table.cc int bits_mix0 = cabac_mix0.size()*8; size 297 libde265-1.0.3/tools/gen-entropy-table.cc int bits_mix1 = cabac_mix1.size()*8; size 395 libde265-1.0.3/tools/gen-entropy-table.cc int bits_ref = cabac_ref.size()*8; size 396 libde265-1.0.3/tools/gen-entropy-table.cc int bits_mix0 = cabac_mix0.size()*8; size 397 libde265-1.0.3/tools/gen-entropy-table.cc int bits_mix1 = cabac_mix1.size()*8; size 464 libde265-1.0.3/tools/gen-entropy-table.cc printf("bs:%d estim:%d\n",cabac_bs.size(),cabac_estim.size()); size 345 libde265-1.0.3/tools/rd-curves.cc long size = s.st_size; size 350 libde265-1.0.3/tools/rd-curves.cc float bitrate = size*8/(frames/input.getFPS()); size 1068 libde265-1.0.3/tools/rd-curves.cc for (int i=0;i<curve.size();i++) { size 48 libheif-1.3.2/examples/encoder.cc uint8_t* Encoder::GetExifMetaData(const struct heif_image_handle* handle, size_t* size) { size 66 libheif-1.3.2/examples/encoder.cc *size = datasize; size 45 libheif-1.3.2/examples/encoder.h static uint8_t* GetExifMetaData(const struct heif_image_handle* handle, size_t* size); size 92 libheif-1.3.2/examples/heif_convert.cc if (output_filename.size() > 4 && size 93 libheif-1.3.2/examples/heif_convert.cc output_filename.find(".jpg") == output_filename.size() - 4) { size 102 libheif-1.3.2/examples/heif_convert.cc if (output_filename.size() > 4 && size 103 libheif-1.3.2/examples/heif_convert.cc output_filename.find(".png") == output_filename.size() - 4) { size 568 libheif-1.3.2/examples/heif_enc.cc if (pos == std::string::npos || pos==0 || pos==p.size()-1) { size 155 libheif-1.3.2/examples/heif_test.cc fwrite(data.data(), data.size(),1, stdout); size 55 libheif-1.3.2/examples/heif_thumbnailer.cc int size = 512; // default thumbnail size size 60 libheif-1.3.2/examples/heif_thumbnailer.cc size = atoi(optarg); size 146 libheif-1.3.2/examples/heif_thumbnailer.cc if (input_width>size || input_height>size) { size 148 libheif-1.3.2/examples/heif_thumbnailer.cc thumbnail_height = input_height * size/input_width; size 149 libheif-1.3.2/examples/heif_thumbnailer.cc thumbnail_width = size; size 152 libheif-1.3.2/examples/heif_thumbnailer.cc thumbnail_width = input_width * size/input_height; size 153 libheif-1.3.2/examples/heif_thumbnailer.cc thumbnail_height = size; size 50 libheif-1.3.2/libheif/bitstream.cc bool StreamReader_istream::read(void* data, size_t size) size 52 libheif-1.3.2/libheif/bitstream.cc int64_t end_pos = get_position() + size; size 57 libheif-1.3.2/libheif/bitstream.cc m_istr->read((char*)data, size); size 72 libheif-1.3.2/libheif/bitstream.cc StreamReader_memory::StreamReader_memory(const uint8_t* data, int64_t size, bool copy) size 73 libheif-1.3.2/libheif/bitstream.cc : m_length(size), size 104 libheif-1.3.2/libheif/bitstream.cc bool StreamReader_memory::read(void* data, size_t size) size 106 libheif-1.3.2/libheif/bitstream.cc int64_t end_pos = m_position + size; size 111 libheif-1.3.2/libheif/bitstream.cc memcpy(data, &m_data[m_position], size); size 112 libheif-1.3.2/libheif/bitstream.cc m_position += size; size 465 libheif-1.3.2/libheif/bitstream.cc if (m_position == m_data.size()) { size 479 libheif-1.3.2/libheif/bitstream.cc if (required_size > m_data.size()) { size 492 libheif-1.3.2/libheif/bitstream.cc if (required_size > m_data.size()) { size 507 libheif-1.3.2/libheif/bitstream.cc if (required_size > m_data.size()) { size 522 libheif-1.3.2/libheif/bitstream.cc void StreamWriter::write(int size, uint64_t value) size 524 libheif-1.3.2/libheif/bitstream.cc if (size==1) { size 528 libheif-1.3.2/libheif/bitstream.cc else if (size==2) { size 532 libheif-1.3.2/libheif/bitstream.cc else if (size==4) { size 536 libheif-1.3.2/libheif/bitstream.cc else if (size==8) { size 547 libheif-1.3.2/libheif/bitstream.cc size_t required_size = m_position + str.size() +1; size 549 libheif-1.3.2/libheif/bitstream.cc if (required_size > m_data.size()) { size 553 libheif-1.3.2/libheif/bitstream.cc for (size_t i=0;i<str.size();i++) { size 563 libheif-1.3.2/libheif/bitstream.cc size_t required_size = m_position + vec.size(); size 565 libheif-1.3.2/libheif/bitstream.cc if (required_size > m_data.size()) { size 569 libheif-1.3.2/libheif/bitstream.cc memcpy(m_data.data() + m_position, vec.data(), vec.size()); size 570 libheif-1.3.2/libheif/bitstream.cc m_position += vec.size(); size 576 libheif-1.3.2/libheif/bitstream.cc size_t required_size = m_position + writer.get_data().size(); size 578 libheif-1.3.2/libheif/bitstream.cc if (required_size > m_data.size()) { size 584 libheif-1.3.2/libheif/bitstream.cc memcpy(m_data.data() + m_position, data.data(), data.size()); size 586 libheif-1.3.2/libheif/bitstream.cc m_position += data.size(); size 592 libheif-1.3.2/libheif/bitstream.cc assert(m_position == m_data.size()); size 593 libheif-1.3.2/libheif/bitstream.cc m_data.resize( m_data.size() + n ); size 606 libheif-1.3.2/libheif/bitstream.cc m_data.resize( m_data.size() + nBytes ); size 608 libheif-1.3.2/libheif/bitstream.cc if (m_position < m_data.size() - nBytes) { size 611 libheif-1.3.2/libheif/bitstream.cc m_data.size() - nBytes - m_position); size 63 libheif-1.3.2/libheif/bitstream.h virtual bool read(void* data, size_t size) = 0; size 82 libheif-1.3.2/libheif/bitstream.h bool read(void* data, size_t size) override; size 95 libheif-1.3.2/libheif/bitstream.h StreamReader_memory(const uint8_t* data, int64_t size, bool copy); size 102 libheif-1.3.2/libheif/bitstream.h bool read(void* data, size_t size) override; size 125 libheif-1.3.2/libheif/bitstream.h bool read(void* data, size_t size) override { return !m_func_table->read(data,size,m_userdata); } size 263 libheif-1.3.2/libheif/bitstream.h void write(int size, uint64_t value); size 272 libheif-1.3.2/libheif/bitstream.h size_t data_size() const { return m_data.size(); } size 276 libheif-1.3.2/libheif/bitstream.h void set_position_to_end() { m_position=m_data.size(); } size 272 libheif-1.3.2/libheif/box.cc assert(m_uuid_type.size()==16); size 545 libheif-1.3.2/libheif/box.cc if (m_children.size() > MAX_CHILDREN_PER_BOX) { size 994 libheif-1.3.2/libheif/box.cc size_t old_size = dest->size(); size 1074 libheif-1.3.2/libheif/box.cc for (idx=0;idx<m_items.size();idx++) { size 1082 libheif-1.3.2/libheif/box.cc if (idx == m_items.size()) { size 1106 libheif-1.3.2/libheif/box.cc if (m_items.size() > 0xFFFF) { size 1220 libheif-1.3.2/libheif/box.cc sum_mdat_size += extent.data.size(); size 1240 libheif-1.3.2/libheif/box.cc extent.length = extent.data.size(); size 1264 libheif-1.3.2/libheif/box.cc writer.write16((uint16_t)m_items.size()); size 1266 libheif-1.3.2/libheif/box.cc writer.write32((uint32_t)m_items.size()); size 1282 libheif-1.3.2/libheif/box.cc writer.write16((uint16_t)item.extents.size()); size 1482 libheif-1.3.2/libheif/box.cc if (m_children.size() > 0xFFFF) { size 1497 libheif-1.3.2/libheif/box.cc writer.write(nEntries_size, m_children.size()); size 1554 libheif-1.3.2/libheif/box.cc if (assoc.property_index > allProperties.size()) { size 1588 libheif-1.3.2/libheif/box.cc if (assoc.property_index > allProperties.size() || size 1695 libheif-1.3.2/libheif/box.cc for (idx=0; idx<m_entries.size(); idx++) { size 1702 libheif-1.3.2/libheif/box.cc if (idx == m_entries.size()) { size 1758 libheif-1.3.2/libheif/box.cc size_t entry_cnt = m_entries.size(); size 1770 libheif-1.3.2/libheif/box.cc size_t assoc_cnt = entry.associations.size(); size 2057 libheif-1.3.2/libheif/box.cc uint32_t box_size = uint32_t(4+4 + 2 + id_size * (1+ref.to_item_ID.size())); size 2064 libheif-1.3.2/libheif/box.cc writer.write16((uint16_t)ref.to_item_ID.size()); size 2199 libheif-1.3.2/libheif/box.cc int size = range.read16(); size 2200 libheif-1.3.2/libheif/box.cc if (!size) { size 2205 libheif-1.3.2/libheif/box.cc if (range.prepare_read(size)) { size 2206 libheif-1.3.2/libheif/box.cc nal_unit.resize(size); size 2207 libheif-1.3.2/libheif/box.cc range.get_istream()->read((char*)nal_unit.data(), size); size 2295 libheif-1.3.2/libheif/box.cc dest->push_back( (unit.size()>>24) & 0xFF ); size 2296 libheif-1.3.2/libheif/box.cc dest->push_back( (unit.size()>>16) & 0xFF ); size 2297 libheif-1.3.2/libheif/box.cc dest->push_back( (unit.size()>> 8) & 0xFF ); size 2298 libheif-1.3.2/libheif/box.cc dest->push_back( (unit.size()>> 0) & 0xFF ); size 2324 libheif-1.3.2/libheif/box.cc void Box_hvcC::append_nal_data(const uint8_t* data, size_t size) size 2327 libheif-1.3.2/libheif/box.cc nal.resize(size); size 2328 libheif-1.3.2/libheif/box.cc memcpy(nal.data(), data, size); size 2381 libheif-1.3.2/libheif/box.cc size_t nArrays = m_nal_array.size(); size 2393 libheif-1.3.2/libheif/box.cc size_t nUnits = array.m_nal_units.size(); size 2401 libheif-1.3.2/libheif/box.cc writer.write16((uint16_t)nal_unit.size()); size 2439 libheif-1.3.2/libheif/box.cc auto curr_size = out_data.size(); size 2572 libheif-1.3.2/libheif/box.cc if ((int)m_children.size() != nEntities) { size 171 libheif-1.3.2/libheif/box.h return (int)m_children.size()-1; size 660 libheif-1.3.2/libheif/box.h void append_nal_data(const uint8_t* data, size_t size); size 26 libheif-1.3.2/libheif/box_fuzzer.cc extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { size 27 libheif-1.3.2/libheif/box_fuzzer.cc auto reader = std::make_shared<heif::StreamReader_memory>(data, size, false); size 29 libheif-1.3.2/libheif/box_fuzzer.cc heif::BitstreamRange range(reader, size); size 40 libheif-1.3.2/libheif/encoder_fuzzer.cc static size_t create_image(const uint8_t* data, size_t size, struct heif_image** image) { size 41 libheif-1.3.2/libheif/encoder_fuzzer.cc if (size < 2) { size 48 libheif-1.3.2/libheif/encoder_fuzzer.cc size -= 2; size 90 libheif-1.3.2/libheif/encoder_fuzzer.cc void write(const void* data, size_t size) { size 91 libheif-1.3.2/libheif/encoder_fuzzer.cc if (capacity_ - size_ < size) { size 92 libheif-1.3.2/libheif/encoder_fuzzer.cc size_t new_capacity = capacity_ + size; size 102 libheif-1.3.2/libheif/encoder_fuzzer.cc memcpy(&data_[size_], data, size); size 103 libheif-1.3.2/libheif/encoder_fuzzer.cc size_ += size; size 112 libheif-1.3.2/libheif/encoder_fuzzer.cc static struct heif_error writer_write(struct heif_context* ctx, const void* data, size_t size, void* userdata) { size 114 libheif-1.3.2/libheif/encoder_fuzzer.cc writer->write(data, size); size 119 libheif-1.3.2/libheif/encoder_fuzzer.cc extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { size 136 libheif-1.3.2/libheif/encoder_fuzzer.cc if (size < 2) { size 143 libheif-1.3.2/libheif/encoder_fuzzer.cc size -= 2; size 148 libheif-1.3.2/libheif/encoder_fuzzer.cc size_t read = create_image(data, size, &image); size 149 libheif-1.3.2/libheif/encoder_fuzzer.cc assert(read <= size); size 156 libheif-1.3.2/libheif/encoder_fuzzer.cc size -= read; size 173 libheif-1.3.2/libheif/encoder_fuzzer.cc assert(writer.size() > 0); size 52 libheif-1.3.2/libheif/file_fuzzer.cc extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { size 61 libheif-1.3.2/libheif/file_fuzzer.cc err = heif_context_read_from_memory(ctx, data, size, nullptr); size 104 libheif-1.3.2/libheif/heif.cc heif_error heif_context_read_from_memory(heif_context* ctx, const void* mem, size_t size, size 107 libheif-1.3.2/libheif/heif.cc Error err = ctx->context->read_from_memory(mem, size, true); size 111 libheif-1.3.2/libheif/heif.cc heif_error heif_context_read_from_memory_without_copy(heif_context* ctx, const void* mem, size_t size, size 114 libheif-1.3.2/libheif/heif.cc Error err = ctx->context->read_from_memory(mem, size, false); size 139 libheif-1.3.2/libheif/heif.cc auto written = _write(fd, dump.c_str(), dump.size()); size 141 libheif-1.3.2/libheif/heif.cc auto written = write(fd, dump.c_str(), dump.size()); size 207 libheif-1.3.2/libheif/heif.cc return (int)ctx->context->get_top_level_images().size(); size 223 libheif-1.3.2/libheif/heif.cc int n = (int)std::min(count,(int)imgs.size()); size 273 libheif-1.3.2/libheif/heif.cc return (int)handle->image->get_thumbnails().size(); size 285 libheif-1.3.2/libheif/heif.cc int n = (int)std::min(count, (int)thumbnails.size()); size 668 libheif-1.3.2/libheif/heif.cc return metadata->m_data.size(); size 692 libheif-1.3.2/libheif/heif.cc metadata->m_data.size()); size 759 libheif-1.3.2/libheif/heif.cc const void* data, size_t size, void* userdata) { size 763 libheif-1.3.2/libheif/heif.cc ostr.write(static_cast<const char*>(data), size); size 795 libheif-1.3.2/libheif/heif.cc return writer->write(ctx, data.data(), data.size(), userdata); size 813 libheif-1.3.2/libheif/heif.cc for (i=0 ; i < count && static_cast<size_t>(i) < descriptors.size() ; i++) { size 902 libheif-1.3.2/libheif/heif.cc if (descriptors.size()>0) { size 1354 libheif-1.3.2/libheif/heif.cc const void* data, int size) size 1356 libheif-1.3.2/libheif/heif.cc Error error = ctx->context->add_exif_metadata(image_handle->image, data, size); size 1368 libheif-1.3.2/libheif/heif.cc const void* data, int size) size 1370 libheif-1.3.2/libheif/heif.cc Error error = ctx->context->add_XMP_metadata(image_handle->image, data, size); size 292 libheif-1.3.2/libheif/heif.h size_t size, size 320 libheif-1.3.2/libheif/heif.h const void* mem, size_t size, size 327 libheif-1.3.2/libheif/heif.h const void* mem, size_t size, size 689 libheif-1.3.2/libheif/heif.h size_t size, size 949 libheif-1.3.2/libheif/heif.h const void* data, int size); size 955 libheif-1.3.2/libheif/heif.h const void* data, int size); size 144 libheif-1.3.2/libheif/heif_context.cc if (data.size() < 8) { size 160 libheif-1.3.2/libheif/heif_context.cc if (data.size() < 12) { size 214 libheif-1.3.2/libheif/heif_context.cc size_t get_num_offsets() const { return m_offsets.size(); } size 238 libheif-1.3.2/libheif/heif_context.cc if (data.size() < 2 + 4*2) { size 257 libheif-1.3.2/libheif/heif_context.cc if (ptr + 4*2 + 2*field_len + num_images*2*field_len > data.size()) { size 312 libheif-1.3.2/libheif/heif_context.cc assert(image_index>=0 && image_index<m_offsets.size()); size 354 libheif-1.3.2/libheif/heif_context.cc Error HeifContext::read_from_memory(const void* data, size_t size, bool copy) size 357 libheif-1.3.2/libheif/heif_context.cc Error err = m_heif_file->read_from_memory(data,size, copy); size 502 libheif-1.3.2/libheif/heif_context.cc if (refs.size() != 1) { size 555 libheif-1.3.2/libheif/heif_context.cc if (refs.size() != 1) { size 689 libheif-1.3.2/libheif/heif_context.cc if (refs.size() != 1) { size 783 libheif-1.3.2/libheif/heif_context.cc err = decoder_plugin->push_data(decoder, data.data(), data.size()); size 811 libheif-1.3.2/libheif/heif_context.cc fwrite(data.data(), 1, data.size(), fh); size 970 libheif-1.3.2/libheif/heif_context.cc if ((int)image_references.size() != grid.get_rows() * grid.get_columns()) { size 974 libheif-1.3.2/libheif/heif_context.cc << image_references.size() << " tile images in file"; size 1061 libheif-1.3.2/libheif/heif_context.cc if (errs.size() >= (size_t)m_max_decoding_threads) { size 1165 libheif-1.3.2/libheif/heif_context.cc if ((int)image_references.size() != 1) { size 1207 libheif-1.3.2/libheif/heif_context.cc overlay.parse(image_references.size(), overlay_data); size 1210 libheif-1.3.2/libheif/heif_context.cc if (image_references.size() != overlay.get_num_offsets()) { size 1247 libheif-1.3.2/libheif/heif_context.cc for (size_t i=0;i<image_references.size();i++) { size 1344 libheif-1.3.2/libheif/heif_context.cc if (ptr == (int)data.size()) { size 1345 libheif-1.3.2/libheif/heif_context.cc start_code_start = (int)data.size(); size 1375 libheif-1.3.2/libheif/heif_context.cc nal_data_with_size.resize(nal_data.size() + 4); size 1377 libheif-1.3.2/libheif/heif_context.cc memcpy(nal_data_with_size.data()+4, nal_data.data(), nal_data.size()); size 1378 libheif-1.3.2/libheif/heif_context.cc nal_data_with_size[0] = ((nal_data.size()>>24) & 0xFF); size 1379 libheif-1.3.2/libheif/heif_context.cc nal_data_with_size[1] = ((nal_data.size()>>16) & 0xFF); size 1380 libheif-1.3.2/libheif/heif_context.cc nal_data_with_size[2] = ((nal_data.size()>> 8) & 0xFF); size 1381 libheif-1.3.2/libheif/heif_context.cc nal_data_with_size[3] = ((nal_data.size()>> 0) & 0xFF); size 1506 libheif-1.3.2/libheif/heif_context.cc int size; size 1508 libheif-1.3.2/libheif/heif_context.cc encoder->plugin->get_compressed_data(encoder->encoder, &data, &size, NULL); size 1521 libheif-1.3.2/libheif/heif_context.cc parse_sps_for_hvcC_configuration(data, size, &config, &width, &height); size 1531 libheif-1.3.2/libheif/heif_context.cc m_heif_context->m_heif_file->append_hvcC_nal_data(m_id, data, size); size 1535 libheif-1.3.2/libheif/heif_context.cc m_heif_context->m_heif_file->append_iloc_data_with_4byte_size(m_id, data, size); size 1640 libheif-1.3.2/libheif/heif_context.cc Error HeifContext::add_exif_metadata(std::shared_ptr<Image> master_image, const void* data, int size) size 1659 libheif-1.3.2/libheif/heif_context.cc data_array.resize(size+4); size 1664 libheif-1.3.2/libheif/heif_context.cc memcpy(data_array.data()+4, data, size); size 1673 libheif-1.3.2/libheif/heif_context.cc Error HeifContext::add_XMP_metadata(std::shared_ptr<Image> master_image, const void* data, int size) size 1693 libheif-1.3.2/libheif/heif_context.cc data_array.resize(size); size 1694 libheif-1.3.2/libheif/heif_context.cc memcpy(data_array.data(), data, size); size 70 libheif-1.3.2/libheif/heif_context.h Error read_from_memory(const void* data, size_t size, bool copy); size 222 libheif-1.3.2/libheif/heif_context.h Error add_exif_metadata(std::shared_ptr<Image> master_image, const void* data, int size); size 224 libheif-1.3.2/libheif/heif_context.h Error add_XMP_metadata(std::shared_ptr<Image> master_image, const void* data, int size); size 85 libheif-1.3.2/libheif/heif_cxx.h void read_from_memory(const void* mem, size_t size, const ReadingOptions& opts = ReadingOptions()); size 88 libheif-1.3.2/libheif/heif_cxx.h void read_from_memory_without_copy(const void* mem, size_t size, const ReadingOptions& opts = ReadingOptions()); size 95 libheif-1.3.2/libheif/heif_cxx.h virtual int read(void* data, size_t size) = 0; size 144 libheif-1.3.2/libheif/heif_cxx.h const void* data, int size); size 148 libheif-1.3.2/libheif/heif_cxx.h const void* data, int size); size 154 libheif-1.3.2/libheif/heif_cxx.h virtual heif_error write(const void* data, size_t size) = 0; size 168 libheif-1.3.2/libheif/heif_cxx.h size_t size, size 388 libheif-1.3.2/libheif/heif_cxx.h inline void Context::read_from_memory(const void* mem, size_t size, const ReadingOptions& /*opts*/) { size 389 libheif-1.3.2/libheif/heif_cxx.h Error err = Error(heif_context_read_from_memory(m_context.get(), mem, size, NULL)); size 395 libheif-1.3.2/libheif/heif_cxx.h inline void Context::read_from_memory_without_copy(const void* mem, size_t size, const ReadingOptions& /*opts*/) { size 396 libheif-1.3.2/libheif/heif_cxx.h Error err = Error(heif_context_read_from_memory_without_copy(m_context.get(), mem, size, NULL)); size 408 libheif-1.3.2/libheif/heif_cxx.h inline int heif_reader_trampoline_read(void* data, size_t size, void* userdata) { size 410 libheif-1.3.2/libheif/heif_cxx.h return reader->read(data,size); size 496 libheif-1.3.2/libheif/heif_cxx.h size_t size, size 504 libheif-1.3.2/libheif/heif_cxx.h return writer->write(data, size); size 1008 libheif-1.3.2/libheif/heif_cxx.h const void* data, int size) { size 1011 libheif-1.3.2/libheif/heif_cxx.h data, size)); size 1018 libheif-1.3.2/libheif/heif_cxx.h const void* data, int size) { size 1021 libheif-1.3.2/libheif/heif_cxx.h data, size)); size 171 libheif-1.3.2/libheif/heif_decoder_libde265.cc struct heif_error libde265_v2_push_data(void* decoder_raw, const void* data, size_t size) size 178 libheif-1.3.2/libheif/heif_decoder_libde265.cc while (ptr < size) { size 179 libheif-1.3.2/libheif/heif_decoder_libde265.cc if (ptr+4 > size) { size 191 libheif-1.3.2/libheif/heif_decoder_libde265.cc if (ptr+nal_size > size) { size 236 libheif-1.3.2/libheif/heif_decoder_libde265.cc struct heif_error libde265_v1_push_data(void* decoder_raw, const void* data, size_t size) size 243 libheif-1.3.2/libheif/heif_decoder_libde265.cc while (ptr < size) { size 244 libheif-1.3.2/libheif/heif_decoder_libde265.cc if (ptr+4 > size) { size 254 libheif-1.3.2/libheif/heif_decoder_libde265.cc if (ptr+nal_size > size) { size 20 libheif-1.3.2/libheif/heif_emscripten.h return heif_context_read_from_memory(context, data.data(), data.size(), nullptr); size 482 libheif-1.3.2/libheif/heif_encoder_x265.cc struct heif_error x265_get_compressed_data(void* encoder_raw, uint8_t** data, int* size, size 490 libheif-1.3.2/libheif/heif_encoder_x265.cc *size = 0; size 499 libheif-1.3.2/libheif/heif_encoder_x265.cc *size = encoder->nals[encoder->nal_output_counter].sizeBytes; size 505 libheif-1.3.2/libheif/heif_encoder_x265.cc while (**data==0 && *size>0) { size 507 libheif-1.3.2/libheif/heif_encoder_x265.cc (*size)--; size 512 libheif-1.3.2/libheif/heif_encoder_x265.cc (*size)--; size 517 libheif-1.3.2/libheif/heif_encoder_x265.cc if (*size >= 3 && (*data)[0]==0x4e && (*data)[2]==5) { size 538 libheif-1.3.2/libheif/heif_encoder_x265.cc *size = 0; size 67 libheif-1.3.2/libheif/heif_file.cc Error HeifFile::read_from_memory(const void* data, size_t size, bool copy) size 69 libheif-1.3.2/libheif/heif_file.cc auto input_stream = std::make_shared<StreamReader_memory>((const uint8_t*)data, size, copy); size 532 libheif-1.3.2/libheif/heif_file.cc Error HeifFile::append_hvcC_nal_data(heif_item_id id, const uint8_t* data, size_t size) size 541 libheif-1.3.2/libheif/heif_file.cc hvcC->append_nal_data(data,size); size 555 libheif-1.3.2/libheif/heif_file.cc void HeifFile::append_iloc_data_with_4byte_size(heif_item_id id, const uint8_t* data, size_t size) size 558 libheif-1.3.2/libheif/heif_file.cc nal.resize(size + 4); size 560 libheif-1.3.2/libheif/heif_file.cc nal[0] = (size>>24) & 0xFF; size 561 libheif-1.3.2/libheif/heif_file.cc nal[1] = (size>>16) & 0xFF; size 562 libheif-1.3.2/libheif/heif_file.cc nal[2] = (size>> 8) & 0xFF; size 563 libheif-1.3.2/libheif/heif_file.cc nal[3] = (size>> 0) & 0xFF; size 565 libheif-1.3.2/libheif/heif_file.cc memcpy(nal.data()+4, data, size); size 54 libheif-1.3.2/libheif/heif_file.h Error read_from_memory(const void* data, size_t size, bool copy); size 60 libheif-1.3.2/libheif/heif_file.h int get_num_images() const { return static_cast<int>(m_infe_boxes.size()); } size 106 libheif-1.3.2/libheif/heif_file.h Error append_hvcC_nal_data(heif_item_id id, const uint8_t* data, size_t size); size 112 libheif-1.3.2/libheif/heif_file.h void append_iloc_data_with_4byte_size(heif_item_id id, const uint8_t* data, size_t size); size 132 libheif-1.3.2/libheif/heif_hevc.cc BitReader reader(data.data(), (int)data.size()); size 135 libheif-1.3.2/libheif/heif_hevc.cc if (len > data.size()-4) { size 141 libheif-1.3.2/libheif/heif_hevc.cc BitReader sei_reader(data.data() + currPos, (int)data.size()-currPos); size 175 libheif-1.3.2/libheif/heif_hevc.cc static std::vector<uint8_t> remove_start_code_emulation(const uint8_t* sps, size_t size) size 179 libheif-1.3.2/libheif/heif_hevc.cc for (size_t i=0;i<size;i++) { size 180 libheif-1.3.2/libheif/heif_hevc.cc if (i+2<size && size 197 libheif-1.3.2/libheif/heif_hevc.cc Error heif::parse_sps_for_hvcC_configuration(const uint8_t* sps, size_t size, size 203 libheif-1.3.2/libheif/heif_hevc.cc std::vector<uint8_t> sps_no_emul = remove_start_code_emulation(sps, size); size 206 libheif-1.3.2/libheif/heif_hevc.cc size = sps_no_emul.size(); size 209 libheif-1.3.2/libheif/heif_hevc.cc BitReader reader(sps, (int)size); size 55 libheif-1.3.2/libheif/heif_hevc.h Error parse_sps_for_hvcC_configuration(const uint8_t* sps, size_t size, size 80 libheif-1.3.2/libheif/heif_plugin.h struct heif_error (*push_data)(void* decoder, const void* data, size_t size); size 190 libheif-1.3.2/libheif/heif_plugin.h struct heif_error (*get_compressed_data)(void* encoder, uint8_t** data, int* size, size 119 libheif-1.3.2/libheif/heif_plugin_registry.cc if (filtered_encoder_descriptors.size()>0) {