Image File Generation Method, Image Processing Method, and Apparatus
AssigneeHuawei Cloud Computing Technologies Co., Ltd.
InventorsDannan Shen, Xin Wei, Yifei Kang
Life of this patent
Estimating the term…
Abstract
An image file generation method includes: receiving data of a first image; segmenting the data of the first image to generate a plurality of tiles; and generating a first image file based on the tiles. The first image file includes: a first data structure area configured to store a file header of the image file; a second data structure area configured to store data of a second image, where the data of the second image includes a plurality of tiles; and a third data structure area configured to store offsets of the tiles in the data of the second image.
Claims20
A method comprising:
- obtaining first data of a first image, wherein the first data comprises map data;
- segmenting the first image to generate a plurality of tiles;
- and
- generating, based on the tiles, a first image file comprising:
- a first data structure area configured to store a file header of the first image file, wherein the file header indicates a file type of the first image file;
- a second data structure area configured to store second data of a second image, wherein the second data comprises third data of the tiles;
- and
- a third data structure area configured to store first offsets of the tiles,
- wherein the first offsets indicate storage locations of the third data in the second data structure area.
An electronic device comprising:
- a memory configured to store instructions;
- and
- at least one processor coupled to the memory, wherein when executed by the at least one processor, the instructions cause the electronic device to:
- obtain first data of a first image, wherein the first data comprises map data;
- segment the first image to generate a plurality of tiles;
- and
- generate, based on the tiles, a first image file comprising:
- a first data structure area configured to store a file header of the first image file, wherein the file header indicates a file type of the first image file;
- a second data structure area configured to store second data of a second image, wherein the second data comprises third data of the tiles;
- and
- a third data structure area configured to store first offsets of the tiles,
- wherein the first offsets indicate storage locations of the third data in the second data structure area.
A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable medium and that, when executed by at least one processor, cause an electronic device to:
- obtain first data of a first image, wherein the first data comprises map data;
- segment the first image to generate a plurality of tiles;
- and
- generate, based on the tiles, a first image file comprising:
- a first data structure area configured to store a file header of the first image file, wherein the file header indicates a file type of the first image file;
- a second data structure area configured to store second data of a second image, wherein the second data comprises third data of the tiles;
- and
- a third data structure area configured to store first offsets of the tiles,
- wherein the first offsets indicate storage locations of the third data in the second data structure area.
Dependencies are inferred from the claim text.