Home | History | Annotate | Download | only in jhead

Lines Matching refs:Size

109 // Check sections array to see if it needs to be increased in size.
173 Sections[SectionsRead].Size = itemlen;
201 int cp, ep, size;
208 size = ep-cp;
209 Data = (uchar *)malloc(size);
216 got = fread(Data, 1, size, infile);
217 if (got != size){
226 Sections[SectionsRead].Size = size;
306 printf("Jpeg section marker 0x%02x size %d\n",marker, itemlen);
369 Sections[SectionsRead].Size = itemlen;
398 int size;
400 size = buffer_size - pos;
402 if (size < 1) {
406 Data = (uchar *)malloc(size);
408 ALOGE("%d: could not allocate data for entire image size: %d", __LINE__, size);
412 memcpy(Data, buffer+pos, size);
417 Sections[SectionsRead].Size = size;
497 ALOGD("Jpeg section marker 0x%02x size %d\n",marker, itemlen);
646 ExifSection->Size = NewExifSize;
727 ExifSection->Size = NewExifSize;
824 nWrite = fwrite(Sections[a].Data, 1, Sections[a].Size, outfile);
825 writeOk = (nWrite == Sections[a].Size);
827 ALOGE("write section %d failed expect %d actual %d",a,Sections[a].Size,nWrite);
834 nWrite = fwrite(Sections[a].Data, 1,Sections[a].Size, outfile);
835 writeOk = (nWrite == Sections[a].Size);
837 ALOGE("write section %d failed expect %d actual %d",a,Sections[a].Size,nWrite);
887 if (pos+Sections[a].Size > buffer_size) {
891 memcpy(buffer+pos, Sections[a].Data, Sections[a].Size);
892 pos += Sections[a].Size;
898 if (pos+Sections[a].Size > buffer_size) {
901 memcpy(buffer+pos, Sections[a].Data, Sections[a].Size);
902 pos += Sections[a].Size;
997 Section_t * CreateSection(int SectionType, unsigned char * Data, int Size)
1024 NewSection->Size = Size;