Home | History | Annotate | Download | only in jhead

Lines Matching refs:buffer

313 // Parse the marker buffer until SOS or EOI is seen;
315 int ReadJpegSectionsFromBuffer (unsigned char* buffer, unsigned int buffer_size, ReadMode_t ReadMode)
321 if (!buffer) {
329 a = (int) buffer[pos++];
331 if (a != 0xff || buffer[pos++] != M_SOI){
344 marker = buffer[pos++];
356 lh = buffer[pos++];
357 ll = buffer[pos++];
384 memcpy(Data+2, buffer+pos, itemlen-2); // Read the whole section.
409 memcpy(Data, buffer+pos, size);
842 // Write image to a buffer
844 int WriteJpegToBuffer(unsigned char* buffer, unsigned int buffer_size)
849 if (!buffer) {
863 buffer[pos++] = 0xff;
864 buffer[pos++] = 0xd8;
873 memcpy(buffer+pos, JfifHead, 18);
881 buffer[pos++] = 0xff;
882 buffer[pos++] = (unsigned char) Sections[a].Type;
887 memcpy(buffer+pos, Sections[a].Data, Sections[a].Size);
897 memcpy(buffer+pos, Sections[a].Data, Sections[a].Size);