[go: up one dir, main page]

CN108228816A - A kind of loading method and device of waterfall flow graph piece - Google Patents

A kind of loading method and device of waterfall flow graph piece Download PDF

Info

Publication number
CN108228816A
CN108228816A CN201711487224.XA CN201711487224A CN108228816A CN 108228816 A CN108228816 A CN 108228816A CN 201711487224 A CN201711487224 A CN 201711487224A CN 108228816 A CN108228816 A CN 108228816A
Authority
CN
China
Prior art keywords
images
page
image
image data
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711487224.XA
Other languages
Chinese (zh)
Inventor
王峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201711487224.XA priority Critical patent/CN108228816A/en
Publication of CN108228816A publication Critical patent/CN108228816A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本发明实施例提供了一种瀑布流图片的加载方法和装置,所述加载方法包括:向服务器发送针对页面的图像数据加载请求;接收所述服务器返回的、针对所述图像数据加载请求的多帧图像数据;依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记;将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中;依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中。解决了缓存数组和渲染用数组结构不统一的问题,缓存和渲染可以使用同一个一维数组,渲染时无需将缓存中的一维数组转换为二维数组,简化了数据结构,并且在页面缩放后无需生成新的数组,节省了资源。

Embodiments of the present invention provide a method and device for loading pictures of a waterfall flow. The loading method includes: sending an image data loading request for a page to a server; Frame image data; according to the multi-frame image data and the page, determine the position marks of the multi-frame images corresponding to the multi-frame image data in the page; combine the multi-frame image data and the multi-frame image The position marks of the multiple frames of images are stored in the memory; according to the position marks of the multiple frames of images, the multiple frames of images are displayed on the page in the form of a waterfall. Solved the problem that the structure of the cache array and the array for rendering are not uniform. The same one-dimensional array can be used for caching and rendering. There is no need to convert the one-dimensional array in the cache to a two-dimensional array when rendering, which simplifies the data structure and zooms in on the page. There is no need to generate a new array afterwards, saving resources.

Description

一种瀑布流图片的加载方法和装置A method and device for loading waterfall images

技术领域technical field

本发明涉及通信技术领域,特别是涉及一种瀑布流图片的加载方法和一种瀑布流图片的加载装置。The invention relates to the technical field of communications, in particular to a method for loading waterfall pictures and a loading device for waterfall pictures.

背景技术Background technique

随着网络技术的发展,用户通过网页浏览器可以分享互联网上的信息,网页浏览器的主要功能是用于从互联网加载网页数据并进行渲染,然后在显示设备显示网页。With the development of network technology, users can share information on the Internet through a web browser. The main function of the web browser is to load and render web page data from the Internet, and then display the web page on a display device.

在互联网海量的信息中,包含了大量的图片资源,在各大网站中,网页通常以瀑布流方式显示各种图片等信息,在瀑布流中,图片按行或者按列进行渲染,对应横向瀑布流,每一行内的图片保持等高,不同行的总宽度保持一致,对于列向瀑布流,每一列内的图片保持等宽,不同列的总高度保持一致。现有对瀑布流的渲染中,首先将图片经过计算转换为二维数组,外层数组用来表示行或者列,内层数组用来表示每行或者每列的图片,而缓存中图片是以一维数组进行缓存,这就造成缓存数组和渲染用数组结构不统一,渲染时必须要转为二维数组,需要维护两个数组,并且当瀑布流页面缩放时,原有的二维数组不可复用,需要重新生成另一个二维数组,造成资源浪费。The massive amount of information on the Internet contains a large number of picture resources. In major websites, web pages usually display various pictures and other information in the form of waterfall flow. In waterfall flow, pictures are rendered by row or by column, corresponding to horizontal waterfall. For flow, the pictures in each row keep the same height, and the total width of different rows keeps the same. For column-oriented waterfall flow, the pictures in each column keep the same width, and the total height of different columns keeps the same. In the existing rendering of the waterfall flow, the image is first calculated and converted into a two-dimensional array, the outer array is used to represent the row or column, the inner array is used to represent the image of each row or column, and the image in the cache The cache is based on a one-dimensional array, which causes the structure of the cache array and the rendering array to be inconsistent. When rendering, it must be converted into a two-dimensional array, and two arrays need to be maintained. When the waterfall page is zoomed, the original two-dimensional The array cannot be reused, and another two-dimensional array needs to be regenerated, resulting in waste of resources.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种瀑布流图片的加载方法和相应的一种瀑布流图片的加载装置。In view of the above problems, the present invention is proposed to provide a waterfall picture loading method and a corresponding waterfall picture loading device that overcome the above problems or at least partially solve the above problems.

依据本发明的一个方面,提供了一种瀑布流图片的加载方法,包括:According to one aspect of the present invention, a method for loading waterfall pictures is provided, including:

向服务器发送针对页面的图像数据加载请求;Send an image data loading request for the page to the server;

接收所述服务器返回的、针对所述图像数据加载请求的多帧图像数据;receiving multiple frames of image data returned by the server and directed to the image data loading request;

依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记;According to the multi-frame image data and the page, determine the position marks of the multi-frame images corresponding to the multi-frame image data in the page;

将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中;storing the multi-frame image data and position marks of the multi-frame images in a memory;

依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中。According to the position marks of the multiple frames of images, the multiple frames of images are displayed on the page in the form of a waterfall.

可选地,所述向服务器发送针对页面的图像数据加载请求的步骤包括:Optionally, the step of sending an image data loading request for a page to the server includes:

接收用户针对所述页面的图像的搜索请求;receiving a user's search request for an image of the page;

基于用户的搜索请求,生成图像数据加载请求;Generate an image data loading request based on the user's search request;

将所述图像数据加载请求发送至所述服务器。Send the image data loading request to the server.

可选地,所述多帧图像数据包括所述多帧图像的尺寸大小,所述页面包括图像显示区域,所述依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记的步骤包括:Optionally, the multi-frame image data includes the size of the multi-frame image, and the page includes an image display area, and according to the multi-frame image data and the page, it is determined that the multi-frame image data corresponds to The steps of marking the positions of the multi-frame images in the page include:

获取所述页面的图像显示区域的尺寸大小;Obtain the size of the image display area of the page;

依据所述多帧图像的尺寸大小和所述显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。Determine the position marks of the multiple frames of images in the image display area according to the size of the multiple frames of images and the size of the display area.

可选地,所述多帧图像的位置标记包括所述多帧图像在所述瀑布流中的行号或者列号,所述依据所述多帧图像的尺寸大小和所述图像显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置的步骤包括:Optionally, the position mark of the multi-frame image includes the row number or column number of the multi-frame image in the waterfall, and the size of the multi-frame image and the size of the image display area size, the step of determining the position of the multi-frame image in the image display area includes:

依据所述多帧图像的高度和宽度,以及,所述图像显示区域的高度和宽度,确定所述多帧图像在所述图像显示区域中的行号或者列号。Determine the row numbers or column numbers of the multiple frames of images in the image display area according to the height and width of the multiple frames of images, and the height and width of the image display area.

可选地,所述将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中的步骤包括:Optionally, the step of storing the multi-frame image data and the position markers of the multi-frame images in a memory includes:

将所述多帧图像以数组的形式存储至所述存储器中;storing the multi-frame images in the memory in the form of an array;

依据所述多帧图像在所述图像显示区域中的行号或者列号,对所述数组中的每个元素对应的图像标识对应的行号或者列号。According to the row numbers or column numbers of the multiple frames of images in the image display area, the corresponding row numbers or column numbers are identified for the images corresponding to each element in the array.

可选地,所述依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中的步骤包括:Optionally, the step of displaying the multi-frame images on the page in the form of a waterfall flow according to the position marks of the multi-frame images includes:

遍历所述数组,获取每个数组元素对应的图像的行号或者列号;Traverse the array to obtain the row number or column number of the image corresponding to each array element;

调用瀑布流渲染器,依据所述行号或者列号读取所述页面中每行或者每列对应的图像;Call the waterfall flow renderer to read the image corresponding to each row or column in the page according to the row number or column number;

将所述多帧图像,按照行号或者列号以瀑布流的形式显示在所述页面中。The multi-frame images are displayed on the page in the form of a waterfall flow according to row numbers or column numbers.

可选地,所述将所述多帧图像,按照行号或者列号以瀑布流的形式显示在所述页面中的步骤包括:Optionally, the step of displaying the multi-frame images on the page in the form of a waterfall according to row numbers or column numbers includes:

依据每行图像中每个图像的宽度尺寸大小、显示区域的宽度尺寸大小和预设布局,确定每行图像中的每个图像在所述每行图像中的位置,或者,依据每列图像中每个图像的高度尺寸大小、显示区域的高度尺寸大小和预设布局,确定每列图像中的每个图像在所述每列图像中的位置;According to the width size of each image in each row of images, the width size of the display area and the preset layout, determine the position of each image in each row of images in the each row of images, or, according to each column of images The height size of each image, the height size and preset layout of the display area determine the position of each image in each column of images in said each column of images;

按照所述行号,以及,所述行号对应的每行图像中的每个图像在所述每行图像中的位置显示所述多帧图像,或者,按照所述列号,以及,所述列号对应的每列图像中的每个图像在所述每列图像中的位置显示所述多帧图像;According to the row number, and the position of each image in each row of images corresponding to the row number in the each row of images, display the multi-frame images, or, according to the column number, and the The position of each image in each column of images corresponding to the column number in each column of images displays the multiple frames of images;

可选地,还包括:Optionally, also include:

当检测到所述页面缩放时,获取所述页面缩放后的图像显示区域的尺寸大小;When the zooming of the page is detected, the size of the zoomed image display area of the page is obtained;

依据所述多帧图像的尺寸大小和所述页面缩放后的显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。Position marks of the multi-frame images in the image display area are determined according to the size of the multi-frame images and the size of the zoomed display area of the page.

根据本发明的另一方面,提供了一种瀑布流图片的加载装置,包括:According to another aspect of the present invention, a loading device for waterfall pictures is provided, including:

加载请求发送模块,用于向服务器发送针对页面的图像数据加载请求;A loading request sending module, configured to send an image data loading request for the page to the server;

接收模块,用于接收所述服务器返回的、针对所述图像数据加载请求的多帧图像数据;a receiving module, configured to receive multiple frames of image data returned by the server and directed to the image data loading request;

位置标记确定模块,用于依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记;A position marker determining module, configured to determine position markers in the page of the multiple frames of images corresponding to the multiple frames of image data according to the multiple frames of image data and the page;

存储模块,用于将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中;a storage module, configured to store the multi-frame image data and the position marks of the multi-frame images in a memory;

显示模块,用于依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中。The display module is configured to display the multiple frames of images on the page in the form of a waterfall according to the position marks of the multiple frames of images.

可选地,所述加载请求发送模块包括:Optionally, the loading request sending module includes:

搜索请求接收子模块,用于接收用户针对所述页面的图像的搜索请求;A search request receiving submodule, configured to receive a user's search request for images on the page;

加载请求生成子模块,用于基于用户的搜索请求,生成图像数据加载请求;A loading request generating submodule, configured to generate an image data loading request based on a user's search request;

发送子模块,用于将所述图像数据加载请求发送至所述服务器。The sending submodule is configured to send the image data loading request to the server.

可选地,所述多帧图像数据包括所述多帧图像的尺寸大小,所述页面包括图像显示区域,所述位置标记确定模块包括:Optionally, the multi-frame image data includes the size of the multi-frame image, the page includes an image display area, and the position marker determination module includes:

页面大小获取子模块,用于获取所述页面的图像显示区域的尺寸大小;The page size acquisition submodule is used to acquire the size of the image display area of the page;

位置标记确定子模块,用于依据所述多帧图像的尺寸大小和所述显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。The position marker determination submodule is configured to determine the position markers of the multiple frames of images in the image display area according to the size of the multiple frames of images and the size of the display area.

可选地,所述多帧图像的位置标记包括所述多帧图像在所述瀑布流中的行号或者列号,所述位置标记确定子模块包括:Optionally, the position marks of the multi-frame images include row numbers or column numbers of the multi-frame images in the waterfall, and the position mark determination submodule includes:

行号或列号确定单元,用于依据所述多帧图像的高度和宽度,以及,所述图像显示区域的高度和宽度,确定所述多帧图像在所述图像显示区域中的行号或者列号。A row number or column number determining unit, configured to determine the row number or column number.

可选地,所述存储模块包括:Optionally, the storage module includes:

存储子模块,用于将所述多帧图像以数组的形式存储至所述存储器中;a storage submodule, configured to store the multi-frame images in the memory in the form of an array;

标识子模块,用于依据所述多帧图像在所述图像显示区域中的行号或者列号,对所述数组中的每个元素对应的图像标识对应的行号或者列号。The identification submodule is configured to identify the corresponding row number or column number of the image corresponding to each element in the array according to the row number or column number of the multiple frames of images in the image display area.

可选地,所述显示模块包括:Optionally, the display module includes:

行号或者列号获取子模块,用于遍历所述数组,获取每个数组元素对应的图像的行号或者列号;The row number or column number obtaining submodule is used to traverse the array and obtain the row number or column number of the image corresponding to each array element;

图像读取子模块,用于调用瀑布流渲染器,依据所述行号或者列号读取所述页面中每行或者每列对应的图像;The image reading submodule is used to call the waterfall flow renderer, and read the image corresponding to each row or column in the page according to the row number or column number;

显示子模块,用于将所述多帧图像,按照行号或者列号以瀑布流的形式显示在所述页面中。The display sub-module is used to display the multi-frame images on the page in the form of a waterfall according to row numbers or column numbers.

可选地,所述显示子模块包括:Optionally, the display submodule includes:

位置确定单元,用于依据每行图像中每个图像的宽度尺寸大小、显示区域的宽度尺寸大小和预设布局,确定每行图像中的每个图像在所述每行图像中的位置,或者,依据每列图像中每个图像的高度尺寸大小、显示区域的高度尺寸大小和预设布局,确定每列图像中的每个图像在所述每列图像中的位置;A position determining unit, configured to determine the position of each image in each row of images in each row of images according to the width size of each image in each row of images, the width size of the display area and the preset layout, or , according to the height dimension of each image in each column of images, the height dimension of the display area and the preset layout, determine the position of each image in each column of images in the each column of images;

显示单元,用于按照所述行号,以及,所述行号对应的每行图像中的每个图像在所述每行图像中的位置显示所述多帧图像,或者,按照所述列号,以及,所述列号对应的每列图像中的每个图像在所述每列图像中的位置显示所述多帧图像。A display unit, configured to display the multi-frame images according to the row number and the position of each image in each row of images corresponding to the row number in the each row of images, or according to the column number , and, the position of each image in each column of images corresponding to the column number in each column of images displays the multiple frames of images.

可选地,还包括:Optionally, also include:

页面缩放检测模块,用于当检测到所述页面缩放时,获取所述页面缩放后的图像显示区域的尺寸大小;A page zoom detection module, configured to acquire the size of the image display area after the page zoom is detected when the page zoom is detected;

位置标记重新确定模块,用于依据所述多帧图像的尺寸大小和所述页面缩放后的显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。The position marker re-determining module is configured to determine the position markers of the multiple frames of images in the image display area according to the size of the multiple frames of images and the size of the zoomed display area of the page.

本发明实施例提供了一种瀑布流图片的加载设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现本发明实施例所述方法的步骤。An embodiment of the present invention provides a waterfall image loading device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements the embodiment of the present invention when executing the program The steps of the method.

本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明实施例所述方法的步骤。An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the embodiment of the present invention are implemented.

根据本发明的瀑布流图片的加载方法,可以依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记;将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中,由此解决了缓存数组和渲染用数组结构不统一的问题,缓存和渲染可以使用同一个一维数组,渲染时无需将缓存中的一维数组转换为二维数组,简化了数据结构,并且在页面缩放后无需生成新的数组,节省了资源。According to the loading method of waterfall pictures of the present invention, the position marks of the multi-frame images corresponding to the multi-frame image data in the page can be determined according to the multi-frame image data and the page; The image data and the position markers of the multi-frame images are stored in the memory, thereby solving the problem that the structures of the cache array and the rendering array are not uniform. The same one-dimensional array can be used for caching and rendering, and there is no need to store the data in the cache during rendering. The one-dimensional array is converted to a two-dimensional array, which simplifies the data structure and saves resources without generating a new array after the page is zoomed.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明一个实施例的一种瀑布流图片的加载方法的实施例1的步骤流程图;FIG. 1 shows a flow chart of the steps of Embodiment 1 of a method for loading a waterfall image according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的一种瀑布流图片的加载方法的实施例2的步骤流程图;FIG. 2 shows a flow chart of steps in Embodiment 2 of a method for loading a waterfall image according to an embodiment of the present invention;

图3示出了根据本发明一个实施例的一种横向瀑布流图片的位置标记的示意图;Fig. 3 shows a schematic diagram of a position mark of a horizontal waterfall picture according to an embodiment of the present invention;

图4示出了根据本发明一个实施例的一种瀑布流图片的加载装置的结构框图。Fig. 4 shows a structural block diagram of a device for loading a waterfall image according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

参照图1,示出了根据本发明一个实施例的一种瀑布流图片的加载方法实施例1的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of Embodiment 1 of a method for loading a waterfall image according to an embodiment of the present invention, which may specifically include the following steps:

步骤101,向服务器发送针对页面的图像数据加载请求。Step 101, sending a request for loading image data for a page to a server.

本发明实施例可以应用在各种电子设备中,例如,个人电脑、智能电视等等。该电子设备的操作系统可以包括Android(安卓)、IOS、Windows等等,可以安装有可连接搜索引擎的应用,如浏览器、内置微型浏览器的应用、搜索引擎客户端等等。Embodiments of the present invention can be applied to various electronic devices, for example, personal computers, smart TVs, and the like. The operating system of the electronic device can include Android (Android), IOS, Windows, etc., and can be installed with applications that can be connected to search engines, such as browsers, applications with built-in micro-browsers, search engine clients, and the like.

在实际应用中,可以通过电子设备上的应用,例如可以通过浏览器将请求头信息通过HTTP(Hypertext transfer protocol,超文本传送协议)协议向搜索引擎所在的服务器发起图像数据加载请求,例如,用户可以通过在搜索引擎的网页中针对某个搜索对象发起图像数据加载请求,或者在浏览器的搜索插件(plug-ins,可以通过与浏览器、搜索引擎等进行交互,在浏览器中增加搜索功能)等方式针对某个搜索对象发起图像数据加载请求等等。In practical applications, the application on the electronic device, such as the browser, can send the request header information to the server where the search engine is located through the HTTP (Hypertext transfer protocol, hypertext transfer protocol) protocol. For example, the user You can initiate an image data loading request for a certain search object on the webpage of the search engine, or add a search function to the browser by interacting with the browser, search engine, etc. ) and other ways to initiate an image data loading request for a certain search object, etc.

步骤102,接收所述服务器返回的、针对所述图像数据加载请求的多帧图像数据。Step 102, receiving multiple frames of image data returned by the server and directed to the image data loading request.

在实际应用中,搜索引擎可以根据图像数据加载请求中的关键字,搜索分布式服务器上的图像数据,得到与搜索关键字相关的图像数据,并将图像数据返回浏览器,浏览器的网页入口接收到多帧图像数据。In practical applications, the search engine can load the keywords in the request according to the image data, search the image data on the distributed server, obtain the image data related to the search keyword, and return the image data to the browser, and the web page entry of the browser Received multiple frames of image data.

步骤103,依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记。Step 103, according to the multiple frames of image data and the page, determine the position marks of the multiple frames of images corresponding to the multiple frames of image data in the page.

图像数据可以包括图片和图片的尺寸大小、分辨率等图像数据,当前页面可以包括页面中瀑布流的数据,例如瀑布流显示区域的尺寸大小等。可以根据图片的尺寸大小和瀑布流显示区域的尺寸大小、瀑布流的预设布局确定多帧图像在瀑布流中的位置标记,例如图像在横向瀑布流中的行号,或者图像在列向瀑布流中的列号。The image data may include image data such as the size and resolution of the picture and the picture, and the current page may include waterfall data on the page, such as the size of the display area of the waterfall. The position mark of the multi-frame image in the waterfall can be determined according to the size of the picture, the size of the waterfall display area, and the preset layout of the waterfall, such as the row number of the image in the horizontal waterfall, or the image in the column waterfall The column number in the stream.

步骤104,将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中。Step 104, storing the multi-frame image data and position marks of the multi-frame images into a memory.

在页面的渲染中,为了加快页面渲染的速度,可以将多帧图像数据和多帧图像的位置标记存储至存储器中,例如可以存储在缓存中,从而可以在渲染时直接从缓存中读取数据进行渲染,具体地,可以将多帧图像数据以数组的形式存储在缓存中,并为数组中的每个图像添加位置标记,比如图像以一维数组存储在缓存后,建立图像在瀑布流中行号或者列号与图像的映射关系。In page rendering, in order to speed up page rendering, multi-frame image data and position markers of multi-frame images can be stored in the memory, for example, can be stored in the cache, so that the data can be read directly from the cache during rendering For rendering, specifically, multiple frames of image data can be stored in the cache in the form of an array, and position marks can be added to each image in the array. For example, after the image is stored in the cache as a one-dimensional array, the image can be created to run in the waterfall The mapping relationship between number or column number and image.

步骤105,依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中。Step 105: Display the multiple frames of images on the page in the form of a waterfall according to the position marks of the multiple frames of images.

在对瀑布流进行渲染时,可以从缓存中读取多帧图像的位置标记,并根据多帧图像的位置标记对多帧图像进行渲染,将多帧图像按照位置标记和显示样式绘制在瀑布流中,从而在电子设备的显示器进行显示。When rendering the waterfall, the position marks of multiple frames of images can be read from the cache, and the multiple frames of images are rendered according to the position marks of the multiple frames of images, and the multiple frames of images are drawn in the waterfall according to the position marks and display styles , so as to be displayed on the display of the electronic device.

本发明实施例可以依据多帧图像数据和页面,确定多帧图像数据对应的多帧图像在所述页面中的位置标记,将多帧图像数据和多帧图像的位置标记存储至存储器中,由此解决了缓存数组和渲染用数组结构不统一的问题,缓存和渲染可以使用同一个一维数组,渲染时直接从缓存中的一维数组中读取图像数据,无需将缓存中的一维数组转换为二维数组,简化了数据结构,并且在页面缩放后无需生成新的数组,节省了资源。In the embodiment of the present invention, according to the multi-frame image data and the page, the position marks of the multi-frame images corresponding to the multi-frame image data in the page can be determined, and the multi-frame image data and the position marks of the multi-frame images are stored in the memory. This solves the problem that the structure of the cache array and the rendering array are not uniform. The cache and rendering can use the same one-dimensional array. When rendering, the image data is directly read from the one-dimensional array in the cache, without the need to store the one-dimensional array in the cache. Converting to a two-dimensional array simplifies the data structure, and there is no need to generate a new array after the page is zoomed, saving resources.

参照图2,示出了根据本发明一个实施例的一种瀑布流图片的加载方法实施例2的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of the steps of Embodiment 2 of a method for loading a waterfall image according to an embodiment of the present invention, which may specifically include the following steps:

步骤201,向服务器发送针对页面的图像数据加载请求。Step 201, sending a request for loading image data for a page to a server.

本发明实施例可以通过电子设备上的应用,例如可以通过浏览器将请求头信息通过HTTP(Hypertext transfer protocol,超文本传送协议)协议向搜索引擎所在的服务器发起图像数据加载请求,具体而言,步骤201可以包括以下子步骤:In the embodiment of the present invention, an image data loading request can be initiated to the server where the search engine is located through the application of the electronic device, for example, the browser can send the request header information to the server where the search engine is located through the HTTP (Hypertext transfer protocol), specifically, Step 201 may include the following sub-steps:

子步骤S11,接收用户针对所述页面的图像的搜索请求。Sub-step S11, receiving a user's search request for images on the page.

子步骤S12,基于用户的搜索请求,生成图像数据加载请求;Sub-step S12, generating an image data loading request based on the user's search request;

子步骤S13,将所述图像数据加载请求发送至所述服务器。Sub-step S13, sending the image data loading request to the server.

在实际应用中,搜索对象可以为搜索关键词,在电子设备中接收到搜索关键词时,基于搜索关键词生成图像数据加载请求,将图像数据加载请求发送至服务器,请求服务器搜索与该搜索关键词相关的图像数据。In practical applications, the search object can be a search keyword. When the electronic device receives the search keyword, it generates an image data loading request based on the search keyword, sends the image data loading request to the server, and requests the server to search word-related image data.

在另一种搜索方式中,搜索对象为图片类型,用户可以点击图片类型,如汽车、风景、明星等等,在电子设备中检测到图片类型被触发时,基于图片类型生成图像加载请求,将图像加载请求发送至服务器,请求服务器查找属于该图片类型的图像数据。In another search method, the search object is a picture type, and the user can click on a picture type, such as a car, a landscape, a star, etc., and when the electronic device detects that the picture type is triggered, an image loading request is generated based on the picture type, and the An image loading request is sent to the server, requesting the server to find image data belonging to the image type.

步骤202,接收所述服务器返回的、针对所述图像数据加载请求的多帧图像数据。Step 202, receiving multiple frames of image data for the image data loading request returned by the server.

在实际应用中,搜索引擎可以根据图像数据加载请求中的关键字,搜索分布式服务器上的图像数据,得到与搜索关键字相关的图像数据,并将图像数据返回浏览器,浏览器的网页入口接收到多帧图像数据。In practical applications, the search engine can load the keywords in the request according to the image data, search the image data on the distributed server, obtain the image data related to the search keyword, and return the image data to the browser, and the web page entry of the browser Received multiple frames of image data.

步骤203,获取所述页面的图像显示区域的尺寸大小。Step 203, acquiring the size of the image display area of the page.

本发明实施例中,页面的图像显示区域可以是指瀑布流页面中的图像显示区域,图像显示区域尺寸可以通过解析CSS(层叠样式表,Cascading Style Sheets)信息后获取,CSS定义了页面中元素的显示方式,例如元素在页面中的位置、颜色、字体等,图像的显示区域可以认为是一个元素,同样通过CSS定义了位置、颜色等信息。例如,在对页面的HTML进行解析生成DOM树时得到CSS信息或者通过超级链接加载外联CSS信息,可以通过CSS信息获取该图像显示区域的尺寸大小,例如获取图像显示区域的高度和宽带尺寸。In the embodiment of the present invention, the image display area of the page may refer to the image display area in the waterfall page, and the size of the image display area may be obtained by parsing CSS (Cascading Style Sheets, Cascading Style Sheets) information, which defines elements in the page The display mode of the image, such as the position, color, font, etc. of the element on the page, the display area of the image can be regarded as an element, and the position, color and other information are also defined through CSS. For example, when the HTML of the page is parsed to generate a DOM tree, CSS information is obtained or external CSS information is loaded through a hyperlink, and the size of the image display area can be obtained through the CSS information, such as the height and width of the image display area.

步骤204,依据所述多帧图像的尺寸大小和所述显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。Step 204: Determine the position marks of the multiple frames of images in the image display area according to the size of the multiple frames of images and the size of the display area.

在本发明实施例中,需要对瀑布流中的多帧图像进行布局,确定多帧图形在瀑布流中的位置标记,在横向瀑布流中,位置标记可以是行号,则步骤204可以包括如下子步骤:In the embodiment of the present invention, it is necessary to lay out the multi-frame images in the waterfall, and determine the position marks of the multi-frame graphics in the waterfall. In the horizontal waterfall, the position marks can be line numbers, and step 204 can include the following Substeps:

子步骤S21,依据所述多帧图像的宽度,以及,所述图像显示区域的宽度,确定所述多帧图像在所述图像显示区域中的行号。Sub-step S21, according to the width of the multi-frame image and the width of the image display area, determine the row number of the multi-frame image in the image display area.

具体而言,横向瀑布流中,每行图像中的图像的高度相等,每行图像的总宽度相同,因此可以根据每帧图像的宽度、图像之间的间距和每行图像的总宽度,确定每行图像在横向瀑布流中所在的行号。Specifically, in the horizontal waterfall flow, the heights of images in each row of images are equal, and the total width of each row of images is the same, so it can be determined according to the width of each frame of images, the spacing between images, and the total width of each row of images. The row number of each row of images in the horizontal waterfall.

如果瀑布流为列向瀑布流,位置标记可以是列号,则步骤204可以包括如下子步骤:If the waterfall flow is column-oriented waterfall flow, the position mark can be a column number, and then step 204 can include the following sub-steps:

子步骤S22,依据所述多帧图像的高度,以及,所述图像显示区域的高度,确定所述多帧图像在所述图像显示区域中的列号。Sub-step S22, according to the height of the multi-frame images and the height of the image display area, determine the column numbers of the multi-frame images in the image display area.

具体而言,列向瀑布流中,每列图像中的图像的宽度相等,每列图像的总高度相同,因此可以根据每帧图像的高度、图像之间的间距和每列图像的总高度,确定每列图像在列向瀑布流中所在的列号。Specifically, in the column-to-waterfall flow, the widths of images in each column of images are equal, and the total height of each column of images is the same. Therefore, according to the height of each frame of images, the distance between images, and the total height of each column of images, Determines the column number for each column of images in the column waterfall.

步骤205,将所述多帧图像以数组的形式存储至所述存储器中。Step 205, storing the multi-frame images in the memory in the form of an array.

本发明实施例中,可以将多帧图像以一维数组的形式存储至存储器中,例如可以存储在缓存中。一维数组是由数字组成的以单纯的排序结构排列的结构单一的数组,元素在一维数组中的具有一个下标,程序可以通过下标引用一维数组中的任意一个元素,数组中元素的值可以是指向缓存中的地址,该地址可以是存储图像的地址,数组中的元素还可以是一个参数,通过该参数调用对应的图像。In the embodiment of the present invention, multiple frames of images may be stored in a memory in the form of a one-dimensional array, for example, may be stored in a cache. A one-dimensional array is a single-structure array composed of numbers and arranged in a simple sorting structure. An element in the one-dimensional array has a subscript. The program can refer to any element in the one-dimensional array through the subscript. The element in the array The value of can point to the address in the cache, the address can be the address of storing the image, and the element in the array can also be a parameter through which the corresponding image is called.

步骤206,依据所述多帧图像在所述图像显示区域中的行号或者列号,对所述数组中的每个元素对应的图像标识对应的行号或者列号。Step 206: According to the row numbers or column numbers of the multiple frames of images in the image display area, identify the corresponding row numbers or column numbers for the images corresponding to each element in the array.

在存储图像之后,需要将图像的行号或者列号进行存储,即为数组中的每个元素对应的图像标识对应的行号或者列号,具体地,可以建立每个数组元素与该元素对应的图像的行号或者列号之间的映射关系,行号和列号可以是步骤204中确定之后返回至元素的下标的映射值中,例如,可以建立元素下标与行号或者列号之间的映射关系,或者将元素的下标作为一个参数,当调用该参数时返回该元素对应的图像的行号或者列号,而行号与列号已经通过步骤204中确定后通过映射关系返回,然后通过rowIndex()获取元素下标对应的行号或者列号。After storing the image, the row number or column number of the image needs to be stored, that is, the row number or column number corresponding to the image identification corresponding to each element in the array, specifically, each array element can be established to correspond to the element The mapping relationship between the row number or column number of the image, the row number and column number can be determined in step 204 and returned to the mapping value of the subscript of the element, for example, the relationship between the element subscript and the row number or column number can be established or the subscript of the element is used as a parameter, and when this parameter is called, the row number or column number of the image corresponding to the element is returned, and the row number and column number have been determined in step 204 and returned through the mapping relationship , and then get the row number or column number corresponding to the element subscript through rowIndex().

如图3所示为本发明一个实施例的一种横向瀑布流图片的位置标记的示意图;As shown in Figure 3, it is a schematic diagram of a position mark of a horizontal waterfall flow picture according to an embodiment of the present invention;

如图3所示,通过r表示图像在横向瀑布流中的行号,第一行则r=1,如此类推进行标识,假如第一行的四帧图像在一维数组中分别为a[0]、a[1]、a[2]、a[3],则下标i={0、1、2、3},则r(0)=1、r(1)=1、r(2)=1、r(3)=1,而行号1则可以计算确定行号后直接赋值,例如确定第一帧图像在第一行后,则可以将1赋值给r(0),即r(0)=1。As shown in Figure 3, the row number of the image in the horizontal waterfall is represented by r, and r=1 in the first row, and so on for identification, if the four frames of images in the first row are respectively a[0 in the one-dimensional array ], a[1], a[2], a[3], then the subscript i={0, 1, 2, 3}, then r(0)=1, r(1)=1, r(2 )=1, r(3)=1, and row number 1 can be directly assigned after calculating and determining the row number, for example, after determining that the first frame image is in the first row, then 1 can be assigned to r(0), that is, r (0)=1.

以上是以横向瀑布流作为示例进行说明,对于列向瀑布流可以参照横向瀑布流,在此不再加以说明。The above is described by taking the horizontal waterfall flow as an example. For the column-wise waterfall flow, reference may be made to the horizontal waterfall flow, and no further description is given here.

步骤207,遍历所述数组,获取每个数组元素对应的图像的行号或者列号。Step 207, traverse the array, and obtain the row number or column number of the image corresponding to each array element.

在渲染时,可以对数组进行遍历,获取每个数组元素对应的图像的行号或者列号,具体而言,可以通过rowIndex()获取每个数组元素对应的行号或者列号,例如当r(0)=1时,说明a[0]对应的图像在瀑布流中的第一行。When rendering, the array can be traversed to obtain the row number or column number of the image corresponding to each array element. Specifically, the row number or column number corresponding to each array element can be obtained through rowIndex(), for example, when r When (0)=1, it means that the image corresponding to a[0] is in the first line of the waterfall.

步骤208,调用瀑布流渲染器,依据所述行号或者列号读取所述页面中每行或者每列对应的图像。Step 208, call the waterfall flow renderer, and read the image corresponding to each row or column in the page according to the row number or column number.

在电子设备中,由于不同的搜索请求表征不同的搜索意图,对于不同的搜索结果,具有不同的渲染方式,因此,可以针对不同的搜索请求设置不同的瀑布流渲染器。In an electronic device, since different search requests represent different search intentions, different search results have different rendering modes. Therefore, different waterfall renderers may be set for different search requests.

当搜索请求基于搜索关键词生成、且搜索关键词不为指定的词(如表情类的词)时,可以查找横向瀑布流渲染器。When the search request is generated based on the search keyword and the search keyword is not a specified word (such as a word of emoticon), the horizontal waterfall flow renderer can be searched.

搜索请求基于图片类型生成时,可以查找列向瀑布流渲染器。When the search request is generated based on the image type, it can look up column-oriented waterfall renderers.

因此可以根据不同的瀑布流渲染器,通过不同的方式从存储器中读取对应的图像,例如,对应横向瀑布流加载器,则按照行号读取图像,对应列向瀑布流加载器,则按照列号读取图像。Therefore, according to different waterfall flow renderers, the corresponding images can be read from the memory in different ways. For example, for the horizontal waterfall flow loader, read the image according to the row number, and for the column direction waterfall flow loader, read the image according to the The column number to read the image from.

本发明实施例中数据缓存和渲染使用同一个数组,不需要额外维护两套数组,数据结构得到了简化,并且一维数组的操作难度远低于二维数组,提高了渲染效率。In the embodiment of the present invention, the same array is used for data caching and rendering, and there is no need to maintain two sets of additional arrays, the data structure is simplified, and the operation difficulty of the one-dimensional array is much lower than that of the two-dimensional array, which improves the rendering efficiency.

步骤209,将所述多帧图像,按照行号或者列号以瀑布流的形式显示在所述页面中。Step 209 , displaying the multi-frame images on the page in the form of a waterfall flow according to row numbers or column numbers.

在本发明实施例中,当瀑布流渲染器为横向瀑布流渲染器时,即页面为横向瀑布流页面是,步骤209可以包括如下子步骤:In the embodiment of the present invention, when the waterfall renderer is a horizontal waterfall renderer, that is, the page is a horizontal waterfall page, step 209 may include the following sub-steps:

子步骤S31,依据每行图像中每个图像的宽度尺寸大小、显示区域的宽度尺寸大小和预设布局,确定每行图像中的每个图像在所述每行图像中的位置。Sub-step S31, according to the width size of each image in each row of images, the width size of the display area and the preset layout, determine the position of each image in each row of images in the each row of images.

子步骤S32,按照所述行号,以及,所述行号对应的每行图像中的每个图像在所述每行图像中的位置显示所述多帧图像。Sub-step S32, displaying the multi-frame images according to the row number and the position of each image in each row of images corresponding to the row number in each row of images.

具体而言,对于横向瀑布流:Specifically, for a horizontal waterfall:

调用横向瀑布流渲染器按照瀑布流的多帧图像在每行中的位置,然后按照确定的位置将多帧图像在电子设备的搜索结果页面中进行渲染。The horizontal waterfall flow renderer is called according to the position of the multi-frame images of the waterfall in each row, and then the multi-frame images are rendered on the search result page of the electronic device according to the determined positions.

其中,在确定位置时,可以指定每行图像中的帧间距、帧中间边框、帧宽度等等,结合预设布局后确定每帧图像在每行图像中的位置。Among them, when determining the position, you can specify the frame spacing in each row of images, the middle border of the frame, the frame width, etc., and determine the position of each frame of images in each row of images in combination with the preset layout.

在本发明实施例中,当瀑布流渲染器为列向瀑布流渲染器时,即页面为列向瀑布流页面是,步骤209可以包括如下子步骤:In the embodiment of the present invention, when the waterfall renderer is a column-oriented waterfall renderer, that is, the page is a column-oriented waterfall page, step 209 may include the following sub-steps:

子步骤S33,依据每列图像中每个图像的高度尺寸大小、显示区域的高度尺寸大小和预设布局,确定每列图像中的每个图像在所述每列图像中的位置;Sub-step S33, according to the height dimension of each image in each column of images, the height dimension of the display area and the preset layout, determine the position of each image in each column of images in the each column of images;

子步骤S34,按照所述列号,以及,所述列号对应的每列图像中的每个图像在所述每列图像中的位置显示所述多帧图像。Sub-step S34, displaying the multiple frames of images according to the column number and the position of each image in each column of images corresponding to the column number in each column of images.

调用列向瀑布流渲染器按照瀑布流的多帧图像在每列中的位置,然后按照确定的位置将多帧图像在电子设备的搜索结果页面中进行渲染。The column-oriented waterfall flow renderer is called according to the position of the multi-frame images of the waterfall in each column, and then the multi-frame images are rendered on the search result page of the electronic device according to the determined positions.

其中,在确定位置时,可以指定每列图像中的帧间距、帧中间边框、帧高度等等,结合预设布局后确定每帧图像在每列图像中的位置。Among them, when determining the position, you can specify the frame spacing in each column of images, the middle frame of the frame, the frame height, etc., and determine the position of each frame of images in each column of images in combination with the preset layout.

本发明实施例中,计算图像在瀑布流中位置和图像的渲染分离,相互独立,无需在计算时进行渲染,并且计算只在存储中操作数据,渲染模块在渲染时可以利用DOMFragment一次性操作DOM,性能得到大幅提升,并且由于简化了数据结构,以及计算和渲染分离,使得业务逻辑大幅简化,大幅度精简了代码。In the embodiment of the present invention, the calculation of the position of the image in the waterfall flow and the rendering of the image are separated and independent of each other. There is no need to render during calculation, and the calculation only operates data in storage. The rendering module can use DOMFragment to operate DOM at one time during rendering. , the performance has been greatly improved, and due to the simplification of the data structure and the separation of calculation and rendering, the business logic has been greatly simplified and the code has been greatly simplified.

在本发明的一种实施例中,当检测到页面缩放时,获取页面缩放后的图像显示区域的尺寸大小;依据多帧图像的尺寸大小和页面缩放后的显示区域的尺寸大小,确定多帧图像在图像显示区域的位置标记。In one embodiment of the present invention, when page scaling is detected, the size of the image display area after page scaling is acquired; according to the size of the multi-frame image and the size of the display area after page scaling, the multi-frame The position marker of the image in the image display area.

具体而言,在获取缩放后的图像显示区域的尺寸大小后,返回步骤204重新确定多帧图像的行号或者列号,并更新行号或者列号标识,例如将更新后的行号或者列号重新赋值给r(i),然后进行重新渲染刷新页面。Specifically, after obtaining the size of the zoomed image display area, return to step 204 to re-determine the row number or column number of the multi-frame image, and update the row number or column number identification, for example, the updated row number or column number The number is reassigned to r(i), and then re-renders to refresh the page.

本发明实施例中,在页面进行缩放时,存储器中的一维数组可以复用,无需重新生成渲染用的数组,提高了渲染效率。In the embodiment of the present invention, when the page is zoomed, the one-dimensional array in the memory can be reused, and there is no need to regenerate the array for rendering, which improves the rendering efficiency.

对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action order, because according to the embodiment of the present invention , certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

参照图4,示出了根据本发明一个实施例的一种瀑布流图片的加载装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 4 , it shows a structural block diagram of an embodiment of a loading device for a waterfall image according to an embodiment of the present invention, which may specifically include the following modules:

加载请求发送模块301,用于向服务器发送针对页面的图像数据加载请求;A loading request sending module 301, configured to send an image data loading request for the page to the server;

接收模块302,用于接收所述服务器返回的、针对所述图像数据加载请求的多帧图像数据;A receiving module 302, configured to receive multiple frames of image data returned by the server and directed to the image data loading request;

位置标记确定模块303,用于依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记;A position mark determination module 303, configured to determine position marks in the page of the multi-frame images corresponding to the multi-frame image data according to the multi-frame image data and the page;

存储模块304,用于将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中;A storage module 304, configured to store the multi-frame image data and the position marks of the multi-frame images in a memory;

显示模块305,用于依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中。The display module 305 is configured to display the multiple frames of images on the page in the form of a waterfall according to the position marks of the multiple frames of images.

优选地,所述加载请求发送模块301包括:Preferably, the loading request sending module 301 includes:

搜索请求接收子模块,用于接收用户针对所述页面的图像的搜索请求;A search request receiving submodule, configured to receive a user's search request for images on the page;

加载请求生成子模块,用于基于用户的搜索请求,生成图像数据加载请求;A loading request generating submodule, configured to generate an image data loading request based on a user's search request;

发送子模块,用于将所述图像数据加载请求发送至所述服务器。The sending submodule is configured to send the image data loading request to the server.

优选地,所述多帧图像数据包括所述多帧图像的尺寸大小,所述页面包括图像显示区域,所述位置标记确定模块303包括:Preferably, the multi-frame image data includes the size of the multi-frame image, the page includes an image display area, and the position marker determination module 303 includes:

页面大小获取子模块,用于获取所述页面的图像显示区域的尺寸大小;The page size acquisition submodule is used to acquire the size of the image display area of the page;

位置标记确定子模块,用于依据所述多帧图像的尺寸大小和所述显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。The position marker determination submodule is configured to determine the position markers of the multiple frames of images in the image display area according to the size of the multiple frames of images and the size of the display area.

优选地,所述多帧图像的位置标记包括所述多帧图像在所述瀑布流中的行号或者列号,所述位置标记确定子模块包括:Preferably, the position marks of the multi-frame images include row numbers or column numbers of the multi-frame images in the waterfall, and the position mark determination submodule includes:

行号或列号确定单元,用于依据所述多帧图像的高度和宽度,以及,所述图像显示区域的高度和宽度,确定所述多帧图像在所述图像显示区域中的行号或者列号。A row number or column number determining unit, configured to determine the row number or column number.

优选地,所述存储模块304包括:Preferably, the storage module 304 includes:

存储子模块,用于将所述多帧图像以数组的形式存储至所述存储器中;a storage submodule, configured to store the multi-frame images in the memory in the form of an array;

标识子模块,用于依据所述多帧图像在所述图像显示区域中的行号或者列号,对所述数组中的每个元素对应的图像标识对应的行号或者列号。The identification submodule is configured to identify the corresponding row number or column number of the image corresponding to each element in the array according to the row number or column number of the multiple frames of images in the image display area.

优选地,所述显示模块305包括:Preferably, the display module 305 includes:

行号或者列号获取子模块,用于遍历所述数组,获取每个数组元素对应的图像的行号或者列号;The row number or column number obtaining submodule is used to traverse the array and obtain the row number or column number of the image corresponding to each array element;

图像读取子模块,用于调用瀑布流渲染器,依据所述行号或者列号读取所述页面中每行或者每列对应的图像;The image reading submodule is used to call the waterfall flow renderer, and read the image corresponding to each row or column in the page according to the row number or column number;

显示子模块,用于将所述多帧图像,按照行号或者列号以瀑布流的形式显示在所述页面中。The display sub-module is used to display the multi-frame images on the page in the form of a waterfall according to row numbers or column numbers.

优选地,所述显示子模块包括:Preferably, the display submodule includes:

位置确定单元,用于依据每行图像中每个图像的宽度尺寸大小、显示区域的宽度尺寸大小和预设布局,确定每行图像中的每个图像在所述每行图像中的位置,或者,依据每列图像中每个图像的高度尺寸大小、显示区域的高度尺寸大小和预设布局,确定每列图像中的每个图像在所述每列图像中的位置;A position determining unit, configured to determine the position of each image in each row of images in each row of images according to the width size of each image in each row of images, the width size of the display area and the preset layout, or , according to the height dimension of each image in each column of images, the height dimension of the display area and the preset layout, determine the position of each image in each column of images in the each column of images;

显示单元,用于按照所述行号,以及,所述行号对应的每行图像中的每个图像在所述每行图像中的位置显示所述多帧图像,或者,按照所述列号,以及,所述列号对应的每列图像中的每个图像在所述每列图像中的位置显示所述多帧图像。A display unit, configured to display the multi-frame images according to the row number and the position of each image in each row of images corresponding to the row number in the each row of images, or according to the column number , and, the position of each image in each column of images corresponding to the column number in each column of images displays the multiple frames of images.

优选地,所述装置还包括:Preferably, the device also includes:

页面缩放检测模块,用于当检测到所述页面缩放时,获取所述页面缩放后的图像显示区域的尺寸大小;A page zoom detection module, configured to acquire the size of the image display area after the page zoom is detected when the page zoom is detected;

位置标记重新确定模块,用于依据所述多帧图像的尺寸大小和所述页面缩放后的显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。The position marker re-determining module is configured to determine the position markers of the multiple frames of images in the image display area according to the size of the multiple frames of images and the size of the zoomed display area of the page.

本发明实施例提供了一种瀑布流图片的渲染设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现实施例1和/或实施例2所述方法的步骤。An embodiment of the present invention provides a rendering device for a waterfall picture, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, Embodiment 1 and /or the steps of the method described in embodiment 2.

本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现实施例1和/或实施例2所述方法的步骤。An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in Embodiment 1 and/or Embodiment 2 are implemented.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的瀑布流图片的加载设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the waterfall image loading device according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开了A1、一种瀑布流图片的加载方法,包括:The invention discloses A1, a loading method of waterfall pictures, including:

向服务器发送针对页面的图像数据加载请求;Send an image data loading request for the page to the server;

接收所述服务器返回的、针对所述图像数据加载请求的多帧图像数据;receiving multiple frames of image data returned by the server and directed to the image data loading request;

依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记;According to the multi-frame image data and the page, determine the position marks of the multi-frame images corresponding to the multi-frame image data in the page;

将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中;storing the multi-frame image data and position marks of the multi-frame images in a memory;

依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中。According to the position marks of the multiple frames of images, the multiple frames of images are displayed on the page in the form of a waterfall.

A2、如权利要求A1所述的方法,其特征在于,所述向服务器发送针对页面的图像数据加载请求的步骤包括:A2. The method according to claim A1, wherein the step of sending the image data loading request for the page to the server comprises:

接收用户针对所述页面的图像的搜索请求;receiving a user's search request for an image of the page;

基于用户的搜索请求,生成图像数据加载请求;Generate an image data loading request based on the user's search request;

将所述图像数据加载请求发送至所述服务器。Send the image data loading request to the server.

A3、如权利要求A1-A2任一项所述的方法,其特征在于,所述多帧图像数据包括所述多帧图像的尺寸大小,所述页面包括图像显示区域,所述依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记的步骤包括:A3. The method according to any one of claims A1-A2, wherein the multi-frame image data includes the size of the multi-frame image, the page includes an image display area, and the multi-frame image data includes the image display area. frame image data and the page, and the step of determining the position marks of the multi-frame images corresponding to the multi-frame image data in the page includes:

获取所述页面的图像显示区域的尺寸大小;Obtain the size of the image display area of the page;

依据所述多帧图像的尺寸大小和所述显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。Determine the position marks of the multiple frames of images in the image display area according to the size of the multiple frames of images and the size of the display area.

A4、如权利要求A1-A3任一项所述的方法,其特征在于,所述多帧图像的位置标记包括所述多帧图像在所述瀑布流中的行号或者列号,所述依据所述多帧图像的尺寸大小和所述图像显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置的步骤包括:A4. The method according to any one of claims A1-A3, wherein the position marks of the multi-frame images include row numbers or column numbers of the multi-frame images in the waterfall, and the basis The size of the multi-frame image and the size of the image display area, the step of determining the position of the multi-frame image in the image display area includes:

依据所述多帧图像的高度和宽度,以及,所述图像显示区域的高度和宽度,确定所述多帧图像在所述图像显示区域中的行号或者列号。Determine the row numbers or column numbers of the multiple frames of images in the image display area according to the height and width of the multiple frames of images, and the height and width of the image display area.

A5、如权利要求A1-A4任一项所述的方法,其特征在于,所述将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中的步骤包括:A5. The method according to any one of claims A1-A4, wherein the step of storing the multi-frame image data and the position marks of the multi-frame images into a memory comprises:

将所述多帧图像以数组的形式存储至所述存储器中;storing the multi-frame images in the memory in the form of an array;

依据所述多帧图像在所述图像显示区域中的行号或者列号,对所述数组中的每个元素对应的图像标识对应的行号或者列号。According to the row numbers or column numbers of the multiple frames of images in the image display area, the corresponding row numbers or column numbers are identified for the images corresponding to each element in the array.

A6、如权利要求A1-A5任一项所述的方法,其特征在于,所述依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中的步骤包括:A6. The method according to any one of claims A1-A5, characterized in that, according to the position marks of the multi-frame images, the multi-frame images are displayed on the page in the form of waterfall flow Steps include:

遍历所述数组,获取每个数组元素对应的图像的行号或者列号;Traverse the array to obtain the row number or column number of the image corresponding to each array element;

调用瀑布流渲染器,依据所述行号或者列号读取所述页面中每行或者每列对应的图像;Call the waterfall flow renderer to read the image corresponding to each row or column in the page according to the row number or column number;

将所述多帧图像,按照行号或者列号以瀑布流的形式显示在所述页面中。The multi-frame images are displayed on the page in the form of a waterfall flow according to row numbers or column numbers.

A7、如权利要求A1-A6任一项所述的方法,其特征在于,所述将所述多帧图像,按照行号或者列号以瀑布流的形式显示在所述页面中的步骤包括:A7. The method according to any one of claims A1-A6, wherein the step of displaying the multi-frame images on the page in the form of a waterfall flow according to row numbers or column numbers includes:

依据每行图像中每个图像的宽度尺寸大小、显示区域的宽度尺寸大小和预设布局,确定每行图像中的每个图像在所述每行图像中的位置,或者,依据每列图像中每个图像的高度尺寸大小、显示区域的高度尺寸大小和预设布局,确定每列图像中的每个图像在所述每列图像中的位置;According to the width size of each image in each row of images, the width size of the display area and the preset layout, determine the position of each image in each row of images in the each row of images, or, according to each column of images The height size of each image, the height size and preset layout of the display area determine the position of each image in each column of images in said each column of images;

按照所述行号,以及,所述行号对应的每行图像中的每个图像在所述每行图像中的位置显示所述多帧图像,或者,按照所述列号,以及,所述列号对应的每列图像中的每个图像在所述每列图像中的位置显示所述多帧图像;According to the row number, and the position of each image in each row of images corresponding to the row number in the each row of images, display the multi-frame images, or, according to the column number, and the The position of each image in each column of images corresponding to the column number in each column of images displays the multiple frames of images;

A8、如权利要求A1-A7任一项所述的方法,其特征在于,还包括:A8. The method according to any one of claims A1-A7, further comprising:

当检测到所述页面缩放时,获取所述页面缩放后的图像显示区域的尺寸大小;When the zooming of the page is detected, the size of the zoomed image display area of the page is acquired;

依据所述多帧图像的尺寸大小和所述页面缩放后的显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。Position marks of the multi-frame images in the image display area are determined according to the size of the multi-frame images and the size of the zoomed display area of the page.

B9、一种瀑布流图片的加载装置,包括:B9, a loading device for waterfall pictures, comprising:

加载请求发送模块,用于向服务器发送针对页面的图像数据加载请求;A loading request sending module, configured to send an image data loading request for the page to the server;

接收模块,用于接收所述服务器返回的、针对所述图像数据加载请求的多帧图像数据;a receiving module, configured to receive multiple frames of image data returned by the server and directed to the image data loading request;

位置标记确定模块,用于依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记;A position marker determining module, configured to determine position markers in the page of the multiple frames of images corresponding to the multiple frames of image data according to the multiple frames of image data and the page;

存储模块,用于将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中;a storage module, configured to store the multi-frame image data and the position marks of the multi-frame images in a memory;

显示模块,用于依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中。The display module is configured to display the multiple frames of images on the page in the form of a waterfall according to the position marks of the multiple frames of images.

B10、如权利要求B9所述的装置,其特征在于,所述加载请求发送模块包括:B10, the device as claimed in claim B9, is characterized in that, described loading request sending module comprises:

搜索请求接收子模块,用于接收用户针对所述页面的图像的搜索请求;A search request receiving submodule, configured to receive a user's search request for images on the page;

加载请求生成子模块,用于基于用户的搜索请求,生成图像数据加载请求;A loading request generating submodule, configured to generate an image data loading request based on a user's search request;

发送子模块,用于将所述图像数据加载请求发送至所述服务器。The sending submodule is configured to send the image data loading request to the server.

B11、如权利要求B9-B10任一项所述的装置,其特征在于,所述多帧图像数据包括所述多帧图像的尺寸大小,所述页面包括图像显示区域,所述位置标记确定模块包括:B11. The device according to any one of claims B9-B10, wherein the multi-frame image data includes the size of the multi-frame image, the page includes an image display area, and the position marker determination module include:

页面大小获取子模块,用于获取所述页面的图像显示区域的尺寸大小;The page size acquisition submodule is used to acquire the size of the image display area of the page;

位置标记确定子模块,用于依据所述多帧图像的尺寸大小和所述显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。The position marker determination submodule is configured to determine the position markers of the multiple frames of images in the image display area according to the size of the multiple frames of images and the size of the display area.

B12、如权利要求B9-B11任一项所述的装置,其特征在于,所述多帧图像的位置标记包括所述多帧图像在所述瀑布流中的行号或者列号,所述位置标记确定子模块包括:B12. The device according to any one of claims B9-B11, wherein the position mark of the multi-frame image comprises the row number or column number of the multi-frame image in the waterfall, and the position Marker determination submodules include:

行号或列号确定单元,用于依据所述多帧图像的高度和宽度,以及,所述图像显示区域的高度和宽度,确定所述多帧图像在所述图像显示区域中的行号或者列号。A row number or column number determining unit, configured to determine the row number or column number.

B13、如权利要求B9-B12任一项所述的装置,其特征在于,所述存储模块包括:B13. The device according to any one of claims B9-B12, wherein the storage module comprises:

存储子模块,用于将所述多帧图像以数组的形式存储至所述存储器中;a storage submodule, configured to store the multi-frame images in the memory in the form of an array;

标识子模块,用于依据所述多帧图像在所述图像显示区域中的行号或者列号,对所述数组中的每个元素对应的图像标识对应的行号或者列号。The identification submodule is configured to identify the corresponding row number or column number of the image corresponding to each element in the array according to the row number or column number of the multiple frames of images in the image display area.

B14、如权利要求B9-B13任一项所述的装置,其特征在于,所述显示模块包括:B14. The device according to any one of claims B9-B13, wherein the display module comprises:

行号或者列号获取子模块,用于遍历所述数组,获取每个数组元素对应的图像的行号或者列号;The row number or column number obtaining submodule is used to traverse the array and obtain the row number or column number of the image corresponding to each array element;

图像读取子模块,用于调用瀑布流渲染器,依据所述行号或者列号读取所述页面中每行或者每列对应的图像;The image reading submodule is used to call the waterfall flow renderer, and read the image corresponding to each row or column in the page according to the row number or column number;

显示子模块,用于将所述多帧图像,按照行号或者列号以瀑布流的形式显示在所述页面中。The display sub-module is used to display the multi-frame images on the page in the form of a waterfall according to row numbers or column numbers.

B15、如权利要求B9-B14任一项所述的装置,其特征在于,所述显示子模块包括:B15. The device according to any one of claims B9-B14, wherein the display submodule comprises:

位置确定单元,用于依据每行图像中每个图像的宽度尺寸大小、显示区域的宽度尺寸大小和预设布局,确定每行图像中的每个图像在所述每行图像中的位置,或者,依据每列图像中每个图像的高度尺寸大小、显示区域的高度尺寸大小和预设布局,确定每列图像中的每个图像在所述每列图像中的位置;A position determining unit, configured to determine the position of each image in each row of images in each row of images according to the width size of each image in each row of images, the width size of the display area and the preset layout, or , according to the height dimension of each image in each column of images, the height dimension of the display area and the preset layout, determine the position of each image in each column of images in the each column of images;

显示单元,用于按照所述行号,以及,所述行号对应的每行图像中的每个图像在所述每行图像中的位置显示所述多帧图像,或者,按照所述列号,以及,所述列号对应的每列图像中的每个图像在所述每列图像中的位置显示所述多帧图像。A display unit, configured to display the multi-frame images according to the row number and the position of each image in each row of images corresponding to the row number in the each row of images, or according to the column number , and, the position of each image in each column of images corresponding to the column number in each column of images displays the multiple frames of images.

B16、如权利要求B9-B15任一项所述的装置,其特征在于,还包括:B16. The device according to any one of claims B9-B15, further comprising:

页面缩放检测模块,用于当检测到所述页面缩放时,获取所述页面缩放后的图像显示区域的尺寸大小;A page zoom detection module, configured to acquire the size of the image display area after the page zoom is detected when the page zoom is detected;

位置标记重新确定模块,用于依据所述多帧图像的尺寸大小和所述页面缩放后的显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。The position marker re-determining module is configured to determine the position markers of the multiple frames of images in the image display area according to the size of the multiple frames of images and the size of the zoomed display area of the page.

C17、一种瀑布流图片的加载设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求A1至A8任一项所述方法的步骤。C17. A waterfall image loading device, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements any one of claims A1 to A8 when executing the program The steps of the method.

D18、一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求A1至A8任一项所述方法的步骤。D18. A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in any one of claims A1 to A8 are realized.

Claims (10)

1.一种瀑布流图片的加载方法,包括:1. A method for loading waterfall pictures, comprising: 向服务器发送针对页面的图像数据加载请求;Send an image data loading request for the page to the server; 接收所述服务器返回的、针对所述图像数据加载请求的多帧图像数据;receiving multiple frames of image data returned by the server and directed to the image data loading request; 依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记;According to the multi-frame image data and the page, determine the position marks of the multi-frame images corresponding to the multi-frame image data in the page; 将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中;storing the multi-frame image data and position marks of the multi-frame images in a memory; 依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中。According to the position marks of the multiple frames of images, the multiple frames of images are displayed on the page in the form of a waterfall. 2.如权利要求1所述的方法,其特征在于,所述向服务器发送针对页面的图像数据加载请求的步骤包括:2. The method according to claim 1, wherein the step of sending the image data loading request for the page to the server comprises: 接收用户针对所述页面的图像的搜索请求;receiving a user's search request for an image of the page; 基于用户的搜索请求,生成图像数据加载请求;Generate an image data loading request based on the user's search request; 将所述图像数据加载请求发送至所述服务器。Send the image data loading request to the server. 3.如权利要求1-2任一项所述的方法,其特征在于,所述多帧图像数据包括所述多帧图像的尺寸大小,所述页面包括图像显示区域,所述依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记的步骤包括:3. The method according to any one of claims 1-2, wherein the multi-frame image data includes the size of the multi-frame image, the page includes an image display area, and the frame image data and the page, and the step of determining the position marks of the multi-frame images corresponding to the multi-frame image data in the page includes: 获取所述页面的图像显示区域的尺寸大小;Obtain the size of the image display area of the page; 依据所述多帧图像的尺寸大小和所述显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。Determine the position marks of the multiple frames of images in the image display area according to the size of the multiple frames of images and the size of the display area. 4.如权利要求1-3任一项所述的方法,其特征在于,所述多帧图像的位置标记包括所述多帧图像在所述瀑布流中的行号或者列号,所述依据所述多帧图像的尺寸大小和所述图像显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置的步骤包括:4. The method according to any one of claims 1-3, wherein the position markers of the multi-frame images comprise row numbers or column numbers of the multi-frame images in the waterfall, and the basis The size of the multi-frame image and the size of the image display area, the step of determining the position of the multi-frame image in the image display area includes: 依据所述多帧图像的高度和宽度,以及,所述图像显示区域的高度和宽度,确定所述多帧图像在所述图像显示区域中的行号或者列号。Determine the row numbers or column numbers of the multiple frames of images in the image display area according to the height and width of the multiple frames of images, and the height and width of the image display area. 5.如权利要求1-4任一项所述的方法,其特征在于,所述将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中的步骤包括:5. The method according to any one of claims 1-4, wherein the step of storing the multi-frame image data and the position markers of the multi-frame images into the memory comprises: 将所述多帧图像以数组的形式存储至所述存储器中;storing the multi-frame images in the memory in the form of an array; 依据所述多帧图像在所述图像显示区域中的行号或者列号,对所述数组中的每个元素对应的图像标识对应的行号或者列号。According to the row numbers or column numbers of the multiple frames of images in the image display area, the corresponding row numbers or column numbers are identified for the images corresponding to each element in the array. 6.如权利要求1-5任一项所述的方法,其特征在于,所述依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中的步骤包括:6. The method according to any one of claims 1-5, wherein, according to the position marks of the multi-frame images, the multi-frame images are displayed on the page in the form of waterfall flow Steps include: 遍历所述数组,获取每个数组元素对应的图像的行号或者列号;Traverse the array to obtain the row number or column number of the image corresponding to each array element; 调用瀑布流渲染器,依据所述行号或者列号读取所述页面中每行或者每列对应的图像;Call the waterfall flow renderer to read the image corresponding to each row or column in the page according to the row number or column number; 将所述多帧图像,按照行号或者列号以瀑布流的形式显示在所述页面中。The multi-frame images are displayed on the page in the form of a waterfall flow according to row numbers or column numbers. 7.如权利要求1-6任一项所述的方法,其特征在于,所述将所述多帧图像,按照行号或者列号以瀑布流的形式显示在所述页面中的步骤包括:7. The method according to any one of claims 1-6, wherein the step of displaying the multi-frame images on the page in the form of a waterfall flow according to row numbers or column numbers comprises: 依据每行图像中每个图像的宽度尺寸大小、显示区域的宽度尺寸大小和预设布局,确定每行图像中的每个图像在所述每行图像中的位置,或者,依据每列图像中每个图像的高度尺寸大小、显示区域的高度尺寸大小和预设布局,确定每列图像中的每个图像在所述每列图像中的位置;According to the width size of each image in each row of images, the width size of the display area and the preset layout, determine the position of each image in each row of images in the each row of images, or, according to each column of images The height size of each image, the height size and preset layout of the display area determine the position of each image in each column of images in the each column of images; 按照所述行号,以及,所述行号对应的每行图像中的每个图像在所述每行图像中的位置显示所述多帧图像,或者,按照所述列号,以及,所述列号对应的每列图像中的每个图像在所述每列图像中的位置显示所述多帧图像。According to the row number, and the position of each image in each row of images corresponding to the row number in the each row of images, display the multi-frame images, or, according to the column number, and the The position of each image in each column of images corresponding to the column number in each column of images displays the multiple frames of images. 8.如权利要求1-7任一项所述的方法,其特征在于,还包括:8. The method according to any one of claims 1-7, further comprising: 当检测到所述页面缩放时,获取所述页面缩放后的图像显示区域的尺寸大小;When the zooming of the page is detected, the size of the zoomed image display area of the page is obtained; 依据所述多帧图像的尺寸大小和所述页面缩放后的显示区域的尺寸大小,确定所述多帧图像在所述图像显示区域的位置标记。Position marks of the multiple frames of images in the image display area are determined according to the size of the multiple frames of images and the size of the zoomed display area of the page. 9.一种瀑布流图片的加载装置,包括:9. A loading device for waterfall pictures, comprising: 加载请求发送模块,用于向服务器发送针对页面的图像数据加载请求;A loading request sending module, configured to send an image data loading request for the page to the server; 接收模块,用于接收所述服务器返回的、针对所述图像数据加载请求的多帧图像数据;a receiving module, configured to receive multiple frames of image data returned by the server and directed to the image data loading request; 位置标记确定模块,用于依据所述多帧图像数据和所述页面,确定所述多帧图像数据对应的多帧图像在所述页面中的位置标记;A position marker determination module, configured to determine position markers in the page of the multiple frames of images corresponding to the multiple frames of image data according to the multiple frames of image data and the page; 存储模块,用于将所述多帧图像数据和所述多帧图像的位置标记存储至存储器中;a storage module, configured to store the multi-frame image data and the position marks of the multi-frame images in a memory; 显示模块,用于依据所述多帧图像的位置标记,将所述多帧图像以瀑布流的形式显示在所述页面中。The display module is configured to display the multiple frames of images on the page in the form of a waterfall according to the position marks of the multiple frames of images. 10.如权利要求9所述的装置,其特征在于,所述加载请求发送模块包括:10. The device according to claim 9, wherein the loading request sending module comprises: 搜索请求接收子模块,用于接收用户针对所述页面的图像的搜索请求;A search request receiving submodule, configured to receive a user's search request for images on the page; 加载请求生成子模块,用于基于用户的搜索请求,生成图像数据加载请求;A loading request generating submodule, configured to generate an image data loading request based on a user's search request; 发送子模块,用于将所述图像数据加载请求发送至所述服务器。The sending submodule is configured to send the image data loading request to the server.
CN201711487224.XA 2017-12-29 2017-12-29 A kind of loading method and device of waterfall flow graph piece Pending CN108228816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711487224.XA CN108228816A (en) 2017-12-29 2017-12-29 A kind of loading method and device of waterfall flow graph piece

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711487224.XA CN108228816A (en) 2017-12-29 2017-12-29 A kind of loading method and device of waterfall flow graph piece

Publications (1)

Publication Number Publication Date
CN108228816A true CN108228816A (en) 2018-06-29

Family

ID=62646502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711487224.XA Pending CN108228816A (en) 2017-12-29 2017-12-29 A kind of loading method and device of waterfall flow graph piece

Country Status (1)

Country Link
CN (1) CN108228816A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706321A (en) * 2019-09-30 2020-01-17 北京金山安全软件有限公司 Dynamic image processing method and device and electronic equipment
CN110727893A (en) * 2019-10-11 2020-01-24 北京齐尔布莱特科技有限公司 Waterfall flow picture loading method and device and mobile terminal
CN111125571A (en) * 2018-10-11 2020-05-08 杭州海康存储科技有限公司 Picture display method and device
CN111258682A (en) * 2020-02-20 2020-06-09 四川长虹电器股份有限公司 Method for optimizing WebApp memory and nodes
CN111294635A (en) * 2018-12-06 2020-06-16 Tcl集团股份有限公司 Method and device for arranging desktop layout and server
CN111459480A (en) * 2020-03-20 2020-07-28 成都卓影科技股份有限公司 Method for realizing infinite waterfall flow of TV large screen
CN113763513A (en) * 2021-08-17 2021-12-07 国家能源集团江西电力有限公司万安水力发电厂 Interactive marking method for target object in image
CN113779352A (en) * 2021-07-27 2021-12-10 浙江大学 Mobile terminal application page automatic traversal method oriented to barrier-free detection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279902A (en) * 2013-05-15 2013-09-04 深圳市沃德荣威科技有限公司 Electronic menu display method
CN105373632A (en) * 2015-12-18 2016-03-02 北京奇虎科技有限公司 Method and device for loading waterfall flow based on mobile search
CN105488218A (en) * 2015-12-18 2016-04-13 北京奇虎科技有限公司 Method and device for loading waterfall flows based on search

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279902A (en) * 2013-05-15 2013-09-04 深圳市沃德荣威科技有限公司 Electronic menu display method
CN105373632A (en) * 2015-12-18 2016-03-02 北京奇虎科技有限公司 Method and device for loading waterfall flow based on mobile search
CN105488218A (en) * 2015-12-18 2016-04-13 北京奇虎科技有限公司 Method and device for loading waterfall flows based on search

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125571A (en) * 2018-10-11 2020-05-08 杭州海康存储科技有限公司 Picture display method and device
CN111125571B (en) * 2018-10-11 2024-02-20 杭州海康存储科技有限公司 Picture display method and device
CN111294635A (en) * 2018-12-06 2020-06-16 Tcl集团股份有限公司 Method and device for arranging desktop layout and server
CN110706321A (en) * 2019-09-30 2020-01-17 北京金山安全软件有限公司 Dynamic image processing method and device and electronic equipment
CN110706321B (en) * 2019-09-30 2024-02-09 北京金山安全软件有限公司 Dynamic image processing method and device and electronic equipment
CN110727893A (en) * 2019-10-11 2020-01-24 北京齐尔布莱特科技有限公司 Waterfall flow picture loading method and device and mobile terminal
CN110727893B (en) * 2019-10-11 2022-03-18 北京齐尔布莱特科技有限公司 Waterfall flow picture loading method and device and mobile terminal
CN111258682A (en) * 2020-02-20 2020-06-09 四川长虹电器股份有限公司 Method for optimizing WebApp memory and nodes
CN111459480A (en) * 2020-03-20 2020-07-28 成都卓影科技股份有限公司 Method for realizing infinite waterfall flow of TV large screen
CN113779352A (en) * 2021-07-27 2021-12-10 浙江大学 Mobile terminal application page automatic traversal method oriented to barrier-free detection
CN113779352B (en) * 2021-07-27 2023-11-24 浙江大学 Mobile terminal application page automatic traversing method for barrier-free detection
CN113763513A (en) * 2021-08-17 2021-12-07 国家能源集团江西电力有限公司万安水力发电厂 Interactive marking method for target object in image

Similar Documents

Publication Publication Date Title
CN108228816A (en) A kind of loading method and device of waterfall flow graph piece
CN103546498B (en) It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal
US8711148B2 (en) Method and system for generating and displaying an interactive dynamic selective view of multiply connected objects
CN101313353B (en) System and method for image processing
US10289649B2 (en) Webpage advertisement interception method, device and browser
CN102737067B (en) Method and system for outputting webpage
JP5930497B2 (en) Template file processing method and apparatus
US8711147B2 (en) Method and system for generating and displaying an interactive dynamic graph view of multiply connected objects
CN104281626B (en) Web page display method and web page display device based on pictured processing
CN113190781A (en) Page layout method, device, equipment and storage medium
US9886465B2 (en) System and method for rendering of hierarchical data structures
CN104360882B (en) Display methods and device are carried out to picture in webpage in a kind of browser
US20090085921A1 (en) Populate Web-Based Content Based on Space Availability
JP4945813B2 (en) Print structured documents
US20160364373A1 (en) Method and apparatus for extracting webpage information
JP2014524623A5 (en)
WO2014155742A1 (en) Information processing system, control method for information processing system, information processing device, control method for information processing device, information storage medium, and program
CN109558123B (en) Method for converting webpage into electronic book, electronic equipment and storage medium
CN103258058B (en) Page display method and system and browser
CN108595457A (en) A kind of rendering intent and device of the waterfall stream page
CN111143732A (en) Webpage rendering method and device
CN114969611B (en) Web page printing method, device, equipment and medium
US20130016108A1 (en) Information processing apparatus, information processing method, and program
CN114647409A (en) Large-screen visualization application creation platform, method, computing device and storage medium
CN112417340B (en) Web page picture processing method, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180629

RJ01 Rejection of invention patent application after publication