Home
last modified time | relevance | path

Searched refs:image_data (Results 1 – 25 of 33) sorted by relevance

12

/OK3568_Linux_fs/kernel/arch/powerpc/platforms/powernv/
H A Dopal-flash.c116 static struct image_data_t image_data; variable
201 if (image_data.status != IMAGE_READY || in validate_store()
202 image_data.size < VALIDATE_BUF_SIZE) { in validate_store()
209 memcpy(args_buf->buf, image_data.data, VALIDATE_BUF_SIZE); in validate_store()
288 list = opal_vmalloc_to_sg_list(image_data.data, image_data.size); in opal_flash_update()
309 pr_alert("FLASH: Image is %u bytes\n", image_data.size); in opal_flash_update_print_message()
349 if (image_data.status == IMAGE_READY) in update_store()
371 addr = image_data.data; in free_image_buf()
372 size = PAGE_ALIGN(image_data.size); in free_image_buf()
378 vfree(image_data.data); in free_image_buf()
[all …]
/OK3568_Linux_fs/u-boot/lib/avb/libavb/
H A Davb_descriptor.c41 bool avb_descriptor_foreach(const uint8_t* image_data, in avb_descriptor_foreach() argument
52 if (image_data == NULL) { in avb_descriptor_foreach()
68 if (avb_memcmp(image_data, AVB_MAGIC, AVB_MAGIC_LEN) != 0) { in avb_descriptor_foreach()
74 avb_assert_aligned(image_data); in avb_descriptor_foreach()
75 header = (const AvbVBMetaImageHeader*)image_data; in avb_descriptor_foreach()
76 image_end = image_data + image_size; in avb_descriptor_foreach()
78 desc_start = image_data + sizeof(AvbVBMetaImageHeader) + in avb_descriptor_foreach()
84 if (desc_start < image_data || desc_start > image_end || in avb_descriptor_foreach()
85 desc_end < image_data || desc_end > image_end || desc_end < desc_start) { in avb_descriptor_foreach()
144 const AvbDescriptor** avb_descriptor_get_all(const uint8_t* image_data, in avb_descriptor_get_all() argument
[all …]
H A Davb_property_descriptor.c107 const char* avb_property_lookup(const uint8_t* image_data, in avb_property_lookup() argument
122 image_data, image_size, property_lookup_desc_foreach, &data) == 0) { in avb_property_lookup()
135 bool avb_property_lookup_uint64(const uint8_t* image_data, in avb_property_lookup_uint64() argument
146 value = avb_property_lookup(image_data, image_size, key, key_size, NULL); in avb_property_lookup_uint64()
/OK3568_Linux_fs/external/rknpu2/examples/rknn_api_demo/src/
H A Drknn_create_mem_demo.cpp103 unsigned char* image_data = stbi_load(image_path, &width, &height, &channel, req_channel); in load_image() local
104 if (image_data == NULL) { in load_image()
113 STBI_FREE(image_data); in load_image()
116 …if (stbir_resize_uint8(image_data, width, height, 0, image_resized, req_width, req_height, 0, chan… in load_image()
118 STBI_FREE(image_data); in load_image()
121 STBI_FREE(image_data); in load_image()
122 image_data = image_resized; in load_image()
125 return image_data; in load_image()
H A Drknn_create_mem_with_rga_demo.cpp109 unsigned char* image_data = stbi_load(image_path, &width, &height, &channel, req_channel); in load_image() local
110 if (image_data == NULL) { in load_image()
119 STBI_FREE(image_data); in load_image()
122 …if (stbir_resize_uint8(image_data, width, height, 0, image_resized, req_width, req_height, 0, chan… in load_image()
124 STBI_FREE(image_data); in load_image()
127 STBI_FREE(image_data); in load_image()
128 image_data = image_resized; in load_image()
131 return image_data; in load_image()
H A Drknn_with_mmz_demo.cpp104 unsigned char* image_data = stbi_load(image_path, &width, &height, &channel, req_channel); in load_image() local
105 if (image_data == NULL) { in load_image()
114 STBI_FREE(image_data); in load_image()
117 …if (stbir_resize_uint8(image_data, width, height, 0, image_resized, req_width, req_height, 0, chan… in load_image()
119 STBI_FREE(image_data); in load_image()
122 STBI_FREE(image_data); in load_image()
123 image_data = image_resized; in load_image()
126 return image_data; in load_image()
H A Drknn_set_internal_mem_from_fd_demo.cpp104 unsigned char* image_data = stbi_load(image_path, &width, &height, &channel, req_channel); in load_image() local
105 if (image_data == NULL) { in load_image()
114 STBI_FREE(image_data); in load_image()
117 …if (stbir_resize_uint8(image_data, width, height, 0, image_resized, req_width, req_height, 0, chan… in load_image()
119 STBI_FREE(image_data); in load_image()
122 STBI_FREE(image_data); in load_image()
123 image_data = image_resized; in load_image()
126 return image_data; in load_image()
/OK3568_Linux_fs/external/rknpu2/examples/librknn_api_android_demo/
H A Drknn_create_mem_demo.cpp103 unsigned char* image_data = stbi_load(image_path, &width, &height, &channel, req_channel); in load_image() local
104 if (image_data == NULL) { in load_image()
113 STBI_FREE(image_data); in load_image()
116 …if (stbir_resize_uint8(image_data, width, height, 0, image_resized, req_width, req_height, 0, chan… in load_image()
118 STBI_FREE(image_data); in load_image()
121 STBI_FREE(image_data); in load_image()
122 image_data = image_resized; in load_image()
125 return image_data; in load_image()
/OK3568_Linux_fs/yocto/poky/meta/recipes-multimedia/libtiff/tiff/
H A D0002-tiffcrop-fix-issue-380-and-382-heap-buffer-overflow-.patch32 @@ -6710,10 +6710,10 @@ extractImageSection(struct image_data *image, struct pageseg *section,
45 @@ -6723,7 +6723,6 @@ extractImageSection(struct image_data *image, struct pageseg *section,
53 @@ -6741,17 +6740,12 @@ extractImageSection(struct image_data *image, struct pageseg *section,
75 @@ -6761,9 +6755,14 @@ extractImageSection(struct image_data *image, struct pageseg *section,
93 @@ -6776,10 +6775,9 @@ extractImageSection(struct image_data *image, struct pageseg *section,
105 @@ -6792,14 +6790,12 @@ extractImageSection(struct image_data *image, struct pageseg *section,
122 @@ -6811,12 +6807,12 @@ extractImageSection(struct image_data *image, struct pageseg *section,
138 @@ -6840,11 +6836,12 @@ extractImageSection(struct image_data *image, struct pageseg *section,
153 @@ -6863,8 +6860,10 @@ extractImageSection(struct image_data *image, struct pageseg *section,
166 @@ -6880,36 +6879,17 @@ extractImageSection(struct image_data *image, struct pageseg *section,
[all …]
H A DCVE-2022-2867.patch24 @@ -5194,20 +5194,33 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
68 @@ -5219,8 +5232,7 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
78 @@ -5250,7 +5262,7 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
87 @@ -5286,7 +5298,7 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
96 @@ -5494,10 +5506,17 @@ getCropOffsets(struct image_data *image, struct crop_mask *crop, struct dum…
117 @@ -5626,8 +5645,11 @@ getCropOffsets(struct image_data *image, struct crop_mask *crop, struct dump…
H A D0001-fix-the-FPE-in-tiffcrop-415-427-and-428.patch53 @@ -5182,17 +5182,17 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
79 @@ -5255,17 +5255,17 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
105 @@ -5295,24 +5295,24 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
134 @@ -5711,13 +5711,13 @@ computeOutputPixelOffsets (struct crop_mask *crop, struct image_data *image,
152 @@ -5755,13 +5755,13 @@ computeOutputPixelOffsets (struct crop_mask *crop, struct image_data *image,
170 @@ -5770,6 +5770,12 @@ computeOutputPixelOffsets (struct crop_mask *crop, struct image_data *image,
H A D0001-tiffcrop-subroutines-require-a-larger-buffer-fixes-2.patch326 @@ -6047,13 +6063,14 @@ loadImage(TIFF* in, struct image_data *image, struct dump_opts *dump, unsig…
344 @@ -6355,7 +6372,7 @@ loadImage(TIFF* in, struct image_data *image, struct dump_opts *dump, unsigne…
353 @@ -6366,11 +6383,11 @@ loadImage(TIFF* in, struct image_data *image, struct dump_opts *dump, unsig…
367 @@ -6443,8 +6460,13 @@ loadImage(TIFF* in, struct image_data *image, struct dump_opts *dump, unsign…
382 @@ -7464,13 +7486,13 @@ writeSingleSection(TIFF *in, TIFF *out, struct image_data *image,
435 @@ -7590,17 +7612,17 @@ processCropSelections(struct image_data *image, struct crop_mask *crop,
456 @@ -7613,7 +7635,7 @@ processCropSelections(struct image_data *image, struct crop_mask *crop,
465 @@ -7693,17 +7715,17 @@ processCropSelections(struct image_data *image, struct crop_mask *crop,
486 @@ -7716,7 +7738,7 @@ processCropSelections(struct image_data *image, struct crop_mask *crop,
495 @@ -7832,24 +7854,24 @@ createCroppedImage(struct image_data *image, struct crop_mask *crop,
[all …]
H A DCVE-2022-2869.patch23 @@ -5194,26 +5194,30 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
67 @@ -5376,7 +5380,7 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
76 @@ -5385,7 +5389,7 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
H A Db258ed69a485a9cfb299d9f060eb2a46c54e5903.patch22 @@ -5389,15 +5389,13 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
39 @@ -5407,6 +5405,7 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
H A D0003-add-checks-for-return-value-of-limitMalloc-392.patch52 @@ -7648,7 +7652,11 @@ createCroppedImage(struct image_data *image, struct crop_mask *crop,
65 @@ -7664,15 +7672,15 @@ createCroppedImage(struct image_data *image, struct crop_mask *crop,
H A D0001-tiffcrop-Fix-issue-330-and-some-more-from-320-to-349.patch374 @@ -5431,7 +5519,7 @@ getCropOffsets(struct image_data *image, struct crop_mask *crop, struct dump_…
383 @@ -5512,8 +5600,13 @@ getCropOffsets(struct image_data *image, struct crop_mask *crop, struct dump…
398 @@ -5526,17 +5619,23 @@ getCropOffsets(struct image_data *image, struct crop_mask *crop, struct dum…
432 @@ -5551,22 +5650,27 @@ getCropOffsets(struct image_data *image, struct crop_mask *crop, struct dum…
475 @@ -5577,32 +5681,42 @@ getCropOffsets(struct image_data *image, struct crop_mask *crop, struct dum…
543 @@ -5610,6 +5724,14 @@ getCropOffsets(struct image_data *image, struct crop_mask *crop, struct dump…
558 @@ -5620,6 +5742,18 @@ getCropOffsets(struct image_data *image, struct crop_mask *crop, struct dump…
577 @@ -7543,7 +7677,8 @@ processCropSelections(struct image_data *image, struct crop_mask *crop,
587 @@ -7632,6 +7767,9 @@ processCropSelections(struct image_data *image, struct crop_mask *crop,
597 @@ -7647,8 +7785,8 @@ processCropSelections(struct image_data *image, struct crop_mask *crop,
/OK3568_Linux_fs/external/rknpu2/examples/RV1106_RV1103/rknn_mobilenet_demo/src/
H A Dmain_nhwc.cc185 unsigned char *image_data = stbi_load(image_path, &width, &height, &channel, req_channel); in load_image() local
186 if (image_data == NULL) in load_image()
198 STBI_FREE(image_data); in load_image()
201 …if (stbir_resize_uint8(image_data, width, height, 0, image_resized, req_width, req_height, 0, chan… in load_image()
204 STBI_FREE(image_data); in load_image()
207 STBI_FREE(image_data); in load_image()
208 image_data = image_resized; in load_image()
211 return image_data; in load_image()
H A Dmain.cc185 unsigned char *image_data = stbi_load(image_path, &width, &height, &channel, req_channel); in load_image() local
186 if (image_data == NULL) in load_image()
198 STBI_FREE(image_data); in load_image()
201 …if (stbir_resize_uint8(image_data, width, height, 0, image_resized, req_width, req_height, 0, chan… in load_image()
204 STBI_FREE(image_data); in load_image()
207 STBI_FREE(image_data); in load_image()
208 image_data = image_resized; in load_image()
211 return image_data; in load_image()
/OK3568_Linux_fs/external/rknpu2/examples/RV1106_RV1103/rknn_yolov5_demo/src/
H A Dmain.cc121 unsigned char *image_data = stbi_load(image_path, img_width, img_height, &channel, req_channel); in load_image() local
122 if (image_data == NULL) in load_image()
134 STBI_FREE(image_data); in load_image()
137 …if (stbir_resize_uint8(image_data, *img_width, *img_height, 0, image_resized, req_width, req_heigh… in load_image()
140 STBI_FREE(image_data); in load_image()
143 STBI_FREE(image_data); in load_image()
144 image_data = image_resized; in load_image()
147 return image_data; in load_image()
/OK3568_Linux_fs/external/rknpu2/examples/rknn_benchmark/src/
H A Drknn_benchmark.cpp204 unsigned char* image_data = stbi_load(image_path, &width, &height, &channel, req_channel); in load_image() local
205 if (image_data == NULL) { in load_image()
214 STBI_FREE(image_data); in load_image()
217 …if (stbir_resize_uint8(image_data, width, height, 0, image_resized, req_width, req_height, 0, chan… in load_image()
219 STBI_FREE(image_data); in load_image()
222 STBI_FREE(image_data); in load_image()
223 image_data = image_resized; in load_image()
226 return image_data; in load_image()
/OK3568_Linux_fs/external/rknpu2/examples/rknn_internal_mem_reuse_demo/src/
H A Drknn_internal_mem_reuse_demo.cc181 unsigned char* image_data = stbi_load(image_path, &width, &height, &channel, req_channel); in load_image() local
182 if (image_data == NULL) { in load_image()
191 STBI_FREE(image_data); in load_image()
194 …if (stbir_resize_uint8(image_data, width, height, 0, image_resized, req_width, req_height, 0, chan… in load_image()
196 STBI_FREE(image_data); in load_image()
199 STBI_FREE(image_data); in load_image()
200 image_data = image_resized; in load_image()
203 return image_data; in load_image()
/OK3568_Linux_fs/u-boot/include/android_avb/
H A Davb_property_descriptor.h85 const char* avb_property_lookup(const uint8_t* image_data,
98 bool avb_property_lookup_uint64(const uint8_t* image_data,
H A Davb_descriptor.h105 bool avb_descriptor_foreach(const uint8_t* image_data,
124 const AvbDescriptor** avb_descriptor_get_all(const uint8_t* image_data,
/OK3568_Linux_fs/u-boot/common/
H A Dimage-fdt.c363 ulong image_start, image_data, image_end; in boot_get_fdt() local
452 image_data = (ulong)image_get_data(fdt_hdr); in boot_get_fdt()
459 load == image_data) { in boot_get_fdt()
470 image_data, load); in boot_get_fdt()
473 (void *)image_data, in boot_get_fdt()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/3com/
H A Dtyphoon.c1275 const u8 *image_data; in typhoon_request_firmware() local
1291 image_data = typhoon_fw->data; in typhoon_request_firmware()
1296 fHdr = (struct typhoon_file_header *) image_data; in typhoon_request_firmware()
1301 image_data += sizeof(struct typhoon_file_header); in typhoon_request_firmware()
1308 sHdr = (struct typhoon_section_header *) image_data; in typhoon_request_firmware()
1309 image_data += sizeof(struct typhoon_section_header); in typhoon_request_firmware()
1315 image_data += section_len; in typhoon_request_firmware()
1335 const u8 *image_data; in typhoon_download_firmware() local
1349 image_data = typhoon_fw->data; in typhoon_download_firmware()
1350 fHdr = (struct typhoon_file_header *) image_data; in typhoon_download_firmware()
[all …]

12