Lines Matching refs:mem
450 void my_raw_callback(const sp<IMemory>& mem) { in my_raw_callback() argument
460 if (mem == NULL) in my_raw_callback()
473 size = mem->size(); in my_raw_callback()
478 buff = (unsigned char *)mem->pointer(); in my_raw_callback()
498 void saveFile(const sp<IMemory>& mem) { in saveFile() argument
507 if (mem == NULL) in saveFile()
518 size = mem->size(); in saveFile()
524 buff = (unsigned char *)mem->pointer(); in saveFile()
564 void my_preview_callback(const sp<IMemory>& mem) { in my_preview_callback() argument
566 printf("PREVIEW Callback 0x%x", ( unsigned int ) mem->pointer()); in my_preview_callback()
570 saveFile(mem); in my_preview_callback()
574 uint8_t *ptr = (uint8_t*) mem->pointer(); in my_preview_callback()
584 void my_jpeg_callback(const sp<IMemory>& mem) { in my_jpeg_callback() argument
596 if (mem == NULL) in my_jpeg_callback()
608 size = mem->size(); in my_jpeg_callback()
614 buff = (unsigned char *)mem->pointer(); in my_jpeg_callback()