CN108228030A - Photograph album display methods, device, storage medium and electronic equipment - Google Patents

Photograph album display methods, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108228030A
CN108228030A CN201810045706.8A CN201810045706A CN108228030A CN 108228030 A CN108228030 A CN 108228030A CN 201810045706 A CN201810045706 A CN 201810045706A CN 108228030 A CN108228030 A CN 108228030A
Authority
CN
China
Prior art keywords
textures
image
photograph album
view
year
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.)
Granted
Application number
CN201810045706.8A
Other languages
Chinese (zh)
Other versions
CN108228030B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810045706.8A priority Critical patent/CN108228030B/en
Publication of CN108228030A publication Critical patent/CN108228030A/en
Application granted granted Critical
Publication of CN108228030B publication Critical patent/CN108228030B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)

Abstract

This application discloses a kind of photograph album display methods, device, storage medium and electronic equipment, which is applied to electronic equipment, including:Start photograph album application, and receive idsplay order, which is used to indicate the year view for showing the photograph album;If preserving this year view in the electronic equipment, the year view of reading and saving is shown that, so as to which the picture in photograph album is showed user in the way of year axis, method is simple, and flexibility is high.

Description

Photograph album display methods, device, storage medium and electronic equipment
Technical field
This application involves field of computer technology more particularly to a kind of photograph album display methods, device, storage medium and electronics Equipment.
Background technology
With the continuous development of mobile communication technology, mobile terminal have become people's daily life indispensable tool it One, call and SMS function can be not only provided, also with multimedia and camera function.
At present, due to the continuous promotion of the hardware devices such as camera and memory capacity, more and more users tend to make It is taken pictures with mobile terminal, and the photo for shooting every time, mobile terminal can be all stored it in photograph album, for follow-up It checks, still, the photo stored in existing photograph album is only simply enumerated, Yong Huxu in chronological order when display It to browse a sheet by a sheet, can not by year carry out general view, display mode is single, lacks flexibility.
Invention content
The embodiment of the present application provides a kind of photograph album display methods, device, storage medium and electronic equipment, can be with year axis Mode show photograph album, display mode is flexible.
The embodiment of the present application provides a kind of photograph album display methods, applied to electronic equipment, including:
Start photograph album application;
Idsplay order is received, the idsplay order is used to indicate the year view for showing the photograph album;
If preserving the year view in the electronic equipment, the year view of reading and saving is shown.
The embodiment of the present application additionally provides a kind of photograph album display device, applied to electronic equipment, including:
Starting module, for starting photograph album application;
Receiving module, for receiving idsplay order, the idsplay order is used to indicate the year view for showing the photograph album;
Display module, if for preserving the year view in the electronic equipment, the year view of reading and saving carries out Display.
Further, which further includes:
First generation module if for not preserving the year view in the electronic equipment, generates the year view Corresponding first textures, first textures include the textures block of one or more blank;
Second generation module generates mapping table, the mapping table for one or more image in the photograph album For recording the textures block of the corresponding blank of one or more image;
Third generation module, for generating the corresponding thumbnail of every image in one or more image;
First update module, it is for according to the mapping table, every image in one or more image is corresponding In thumbnail update to the textures block of the corresponding blank, the second textures are obtained;
The year view for generating year view according to second textures, and is stored in the photograph album by preserving module In.
Further, second generation module is specifically used for:
Obtain the shooting time of one or more image in the photograph album;
According to the shooting time, the mapping relations between described image and the textures block of the blank are established
By mapping relations record in the mapping table, to generate the mapping table.
Further, the preserving module is specifically used for:
Determine the image for belonging to identical month in the photograph album;
The corresponding textures block of image for belonging to identical month in second textures is classified as one group, obtains a moon view patch Figure;
Year view is generated according to the moon view textures.
Further, the preserving module is specifically used for:
Obtain the texel information of textures block in the moon view textures;
The texel information is converted by Pixel Information according to default conversion proportion;
Year view is drawn according to the Pixel Information.
Further, which further includes the second update module, is used for:
After the preserving module generates year view according to second textures, year view update instruction is obtained, it is described Year view update instruction carries image to be updated and position to be updated;
Second textures are updated according to the image to be updated and position to be updated;
The year view is updated according to updated second textures.
The embodiment of the present application additionally provides a kind of storage medium, and a plurality of instruction, the finger are stored in the storage medium It enables and is suitable for being loaded to perform any of the above-described photograph album display methods by processor.
The embodiment of the present application additionally provides a kind of electronic equipment, including processor and memory, the processor with it is described Memory is electrically connected, and the memory is for storing instruction and data, the processor are used for phase described in any one of the above embodiments Step in volume display methods.
Photograph album display methods, device, storage medium and the electronic equipment that the application provides, applied to electronic equipment, pass through Start photograph album application, and receive idsplay order, which is used to indicate the year view for showing the photograph album, if the electronics later This year view is preserved in equipment, then the year view of reading and saving is shown, so as to which the picture in photograph album is regarded according to year The mode of axis shows user, and method is simple, and flexibility is high.
Description of the drawings
Below in conjunction with the accompanying drawings, it is described in detail by the specific embodiment to the application, the technical solution of the application will be made And other beneficial effects are apparent.
Fig. 1 is the flow diagram of photograph album display methods provided by the embodiments of the present application.
Fig. 2 is another flow diagram of photograph album display methods provided by the embodiments of the present application.
Fig. 3 is mapping signal of the first textures provided by the embodiments of the present application (or second textures) between thumbnail file Figure.
Fig. 4 is the schematic diagram of electronic equipment middle age view display interface provided by the embodiments of the present application.
Fig. 5 is the structure diagram of photograph album display device provided by the embodiments of the present application.
Fig. 6 is another structure diagram of photograph album display device provided by the embodiments of the present application.
Fig. 7 is the another structure diagram of photograph album display device provided by the embodiments of the present application.
Fig. 8 is the structure diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of photograph album display methods, device, storage medium and electronic equipment.
A kind of photograph album display methods, applied to electronic equipment, including:Start photograph album application;Receive idsplay order, the display Instruction is used to indicate the year view for showing the photograph album;If preserving this year view in the electronic equipment, the year of reading and saving regards Figure is shown.
As shown in Figure 1, the photograph album display methods is applied to electronic equipment, idiographic flow can be as follows:
101st, start photograph album application.
In the present embodiment, when user needs Album for glancing over pictures, the photograph album application in electronic equipment can be opened.
102nd, idsplay order is received, which is used to indicate the year view for showing the photograph album.
In the present embodiment, year view be mainly used for sequentially in time showing image (photo) content of same year in photograph album Show on an image, usually, the image of each year corresponds to year view, and the image in the photograph album can be that electronics is set Standby shooting or obtain from network or other equipment.Specifically, the photograph album application in electronic equipment can provide it is more Kind display function, for example the optical axis is shown per year, the moon optical axis is shown or the day optical axis is shown etc., when user selects the year optical axis to show When, the idsplay order can be generated.
If the 103, preserving this year view in the electronic equipment, the year view of reading and saving is shown.
In the present embodiment, when user is not Album for glancing over pictures year view for the first time, usually preserved in electronic equipment each The year view in time, at this point, display need to be only directly read, and when user's Album for glancing over pictures year view for the first time, it usually needs This year view is generated, if that is, not preserving this year view in the electronic equipment, which can also include:
(1) corresponding first textures of this year view are generated, which includes the textures block of one or more blank.
In the present embodiment, which both can be used for regarding map generalization in year, can be used for the moon and regards map generalization, Showed in the form of grid view, each grid corresponds to the textures block of a blank, which is used to protect in the form of texel Picture material is deposited, similar with the pixel of image, texel can save colors data, and the difference between pixel and texel is very micro- It is wonderful:Pixel usually represents the color point of a reality on computer screen, is usually used to as a units of measurement, than As it may be said that the size of an image for 256 pixels are wide, 256 pixels are high, and in contrast, texel, which is present in one, virtual not to be had Have in the mathematical coordinates system (be usually S-T axis coordinate systems) of size, in a texture block no matter how many pixel, size is forever Far it is on S axis from 0.0 to 1.0, on T axis from 0.0 to 1.0.
(2) the one or more image generation mapping table in the photograph album, the mapping table are used to record this or more Open the textures block of the corresponding blank of image.
In the present embodiment, which determines preservation sequence of the image in the first textures, usually, is presented to use The year view at family should be according to time shaft come namely the first textures in textures block should per year or the moon from as far as near or From closely preserving corresponding picture material in photograph album successively to remote time sequencing.
For example, above-mentioned steps (2) can specifically include:
Obtain the shooting time of one or more image in the photograph album;
According to the shooting time, the mapping relations between the image and the textures block of the blank are established;
By mapping relations record in the mapping table, to generate the mapping table.
In the present embodiment, which can show as the form of x seconds during x x month x day x, for being obtained from other equipment The image taken, if without specific shooting time, storage time that can using the acquisition time or in the electronic device is as shooting Time.
(3) the corresponding thumbnail of every image in one or more image is generated.
In the present embodiment, can thumbnail be generated by down-sampled mode, each image corresponds to a hypertonic sketch map.
(4) according to the mapping table, the corresponding thumbnail of every image in one or more image is updated to corresponding On the textures block of the blank, the second textures are obtained.
It, can be by OpenGL (Open Graphics Library, open graphic library) in the patch of blank in the present embodiment Thumbnail is drawn in segment, to realize the update to textures block, which is one and is connect across programming language, cross-platform programming The graphic package interface of the profession of mouth specification.
(5) year view is generated according to second textures, and this year view is stored in the photograph album.
In the present embodiment, year view directly can be generated according to the second textures, but this generating mode disposably needs to locate The data volume of reason is bigger, and formation speed is relatively low, to improve formation speed, multithreading generation may be used, that is, needs are first right Second textures are grouped, and then different textures block groups are handled simultaneously by different threads, and different textures block group generations regard in year The different piece of figure, so as to improve formation efficiency as far as possible.
For example, above-mentioned steps (5) can specifically include:
Determine the image for belonging to identical month in the photograph album;
The corresponding textures block of image for belonging to identical month in second textures is classified as one group, obtains a moon view textures;
Year view is generated according to this month view textures.
In the present embodiment, textures block can be grouped according to month, the textures block group in different months is as this month Month view textures.Different moon view textures can have a different shapes and sizes, for example, the rectangle of rule or other Irregular shape depends primarily on the quantity of textures block and position in this month view textures.
For example, above-mentioned steps " generating year view according to this month view textures " can specifically include:
Obtain the texel information of textures block in this month view textures;
The texel information is converted by Pixel Information according to default conversion proportion;
Year view is drawn according to the Pixel Information.
In the present embodiment, which includes coordinate information and colouring information.The default conversion proportion determines that year regards The screen resolution of figure namely for determine textures single texel point in the block is converted into how many a pixels, can be It has been be manually set that, such as default conversion proportion 1:2, which represent 1 texel point, corresponds to 2 pixels.
In addition, after year view is generated, need to be updated according to the storage condition of image in photograph album in real time, That is, after above-mentioned steps (5), which can also include:
1-1, year view update instruction is obtained, view update instruction in this year carries image to be updated and position to be updated.
In the present embodiment, when user has newly deposited image in photograph album or deleted original image, this can be generated Year view update instruction.The image to be updated can include image to be deleted or image to be increased newly, likewise, the position to be updated The position to be deleted in the second textures can also be included and be inserted into position by putting.
1-2, second textures are updated according to the image to be updated and position to be updated.
For example, when the image to be updated is image to be deleted, above-mentioned steps 1-2 can specifically include:
The corresponding thumbnail of the image to be updated is deleted, and deletes from second textures corresponding patch in the position to be updated Segment;
Remaining textures block in second textures is adjusted.
In the present embodiment, which mainly moves, and specifically can will be located at deleted patch in second textures Textures block after segment is integrally moved along a position, to fill up the blank position where the deleted textures block.
For example, when the image to be updated is when newly-increased image, above-mentioned steps 1-2 can specifically include:
The thumbnail of the image to be increased newly is generated, and the textures of blank are inserted at the position to be updated of second textures Block;
The thumbnail of the image to be increased newly is drawn in the textures block of the blank of insertion.
In the present embodiment, when the textures block in the second textures when being ranked sequentially, is somebody's turn to do from as far as near according to shooting time Insertion position is exactly the last one position, when the textures block in the second textures is from being closely ranked sequentially to remote according to shooting time When, which is exactly first position.
1-3, this year view is updated according to updated second textures.
In the present embodiment, the update of this year view relates generally to a moon update for view textures, and this month view textures whether Update is needed to depend primarily on whether corresponding textures block changes, for example delete or increased newly a textures block to lead to other patches When the position of segment occurs mobile, need to be updated corresponding moon view textures.It, can be with when the update of of that month view textures finishes Updated moon view textures generation year view is re-used, to be updated to year view, so as to the image in photograph album When changing, the thumbnail without reloading each image can quickly realize the update of year view, save thumbnail Decoding time, improve renewal speed
It can be seen from the above, photograph album display methods provided in this embodiment, it, should by starting photograph album applied to electronic equipment With, and idsplay order is received, which is used to indicate the year view for showing the photograph album, if being preserved in the electronic equipment later There is this year view, then the year view of reading and saving is shown, so as to by the exhibition in the way of year view of the picture in photograph album Show that method is simple to user, flexibility is high.
In the present embodiment, it will be described in detail so that the image processing apparatus specifically integrates in the electronic device as an example.
Fig. 2 is referred to, a kind of photograph album display methods, idiographic flow can be as follows:
201st, electronic equipment starts photograph album application, and receives idsplay order, which, which is used to indicate, shows the photograph album Year view.
202nd, electronic equipment detects whether to have preserved this year view, if so, the year view of reading and saving is shown, If it is not, then perform following step 203.
For example, when user needs Album for glancing over pictures, photograph album application can be entered, and select the function that the optical axis is shown per year, To generate the idsplay order, if showing for the first time, then need to generate year view, if not showing for the first time, then can directly acquire The year view preserved in the local database is shown.
203rd, electronic equipment generates corresponding first textures of this year view, which includes one or more blank Textures block, and obtain the shooting time of one or more image in the photograph album.
For example, when the image of certain year in photograph album there are 120, first textures of one 4 × 30 (row × row) can be generated, Namely first textures share 4 rows, the quantity per the hollow white textures block of a line is 30.
204th, electronic equipment establishes the mapping relations between the image and the textures block of the blank according to the shooting time, And by mapping relations record in the mapping table, to generate the mapping table.
205th, electronic equipment generates the corresponding thumbnail of every image in one or more image, and according to the mapping Table by the corresponding thumbnail update to the textures block of the corresponding blank of every image in one or more image, obtains Second textures.
For example, for the image of a width N*M, user can be with pre-set down-sampled coefficient, according to what is set Down-sampled coefficient progress is down-sampled, if being k than down-sampled coefficient, then demonstrates the need for each row and column in artwork every k Point takes a composition piece image, obtains the thumbnail.
Fig. 3 is referred to, Fig. 3 illustrates a thumbnail file (or bitmap file) and the first textures, the breviary picture and text 24 hypertonic sketch map B1~B24 are contained inside part, according to shooting time from closely to far label, B1 are from current time most successively The thumbnail of near image, B24 is the thumbnail of the image farthest from current time, and 8 hypertonics nearest from current time are omited Figure is arranged in the second row, and the 8 hypertonic sketch maps farthest from current time are placed on the first row, correspondingly, also being included in the first textures The textures block of T1~T24 blank, the mapping relations can be T1=B9, T2=B10, T3=B11, T4=B12, T5= B13, T6=B14, T7=B15, T8=B16, T9=B24, T10=B23, T11=B22, T12=B21, T13=B20, T14= B19, T15=B18, T16=B17, T17=B8, T18=B7, T19=B6, T20=B5, T21=B4, T22=B3, T23= B2, T24=B1.
206th, electronic equipment determines the image for belonging to identical month in the photograph album, and will belong to the phase same month in second textures The corresponding textures block of image of part is classified as one group, obtains a moon view textures.
For example, Fig. 4 is referred to, the year view of 2014~2015 years in photograph album is shown in Fig. 4, it will therefore be readily appreciated that 2015 years The moon view textures that there is different number with 2014, and the moon view textures shapes and sizes in identical month are inconsistent, than Such as the moon view textures and moon view textures in April, 2014 in April, 2015.
207th, electronic equipment obtains the texel information of textures block in this month view textures, and should according to default conversion proportion Texel information is converted into Pixel Information.
208th, electronic equipment draws year view according to the Pixel Information, and this year view is stored in the photograph album.
For example, which can be 1 be manually set:2, also textures each texel point in the block is converted Into two pixels, so as to generate corresponding year view.In Fig. 4, it will therefore be readily appreciated that each fraction of the year corresponds to year view, often Its shape of the moon view textures in different months is different in 1 year view, for example the moon view textures of part of in August, 2014 are significantly big In the moon view textures in April, 2014.
209th, electronic equipment obtains year view update instruction, and view update instruction in this year carries image to be updated and treats Update position.
For example, when user has newly deposited image in photograph album or deleted original image, this year view can be generated More new command.
210th, electronic equipment is updated, and according to more second textures according to the image to be updated and position to be updated The second textures after new are updated this year view.
For example, it for Fig. 3, when to delete or increased image is the image of the last shooting, to delete or be inserted into Patch patterns locations (namely position to be updated) for the first row first, after deletion, can will be deleted in the second textures positioned at this Textures block after the textures block removed is integrally moved along a position or by the textures after the newly-increased textures block Block is whole to move a position backward, certainly, also thumbnail file and mapping relations is adjusted accordingly, later, root The moon view textures of every month are regenerated according to updated second textures, and year view is generated with the moon view textures of every month Existing year view is updated.
It can be seen from the above, photograph album display methods provided in this embodiment, wherein electronic equipment can start photograph album application, and Idsplay order is received, which is used to indicate the year view for showing the photograph album, then, detects whether that having preserved the year regards Figure, if so, the year view of reading and saving is shown, if it is not, corresponding first textures of this year view are then generated, first patch Figure includes the textures block of one or more blank, and obtains the shooting time of one or more image in the photograph album, then, root According to the shooting time, the mapping relations between the image and the textures block of the blank are established, and the mapping relations are recorded in and are reflected In firing table, to generate the mapping table, it is then determined belonging to the image in identical month in the photograph album, and it will belong in second textures One group is classified as in the corresponding textures block of the image in identical month, obtains a moon view textures, then, obtains this month and is pasted in view textures The texel information of segment, and the texel information is converted by Pixel Information according to default conversion proportion, believed later according to the pixel Breath draws year view, and this year view is stored in the photograph album, so as to by sharing same thumbnail with moon view Mode completes the first generation of year view, and method is simple, and formation efficiency is high, and then, electronic equipment can obtain a year view update Instruction, the instruction of this year view update carry image to be updated and position to be updated, according to the image to be updated and treat more later New position is updated second textures, and this year view is updated according to updated second textures, so as to When image changes in photograph album, the thumbnail without reloading each image can quickly realize the update of year view, The decoding time of thumbnail is saved, improves renewal speed.
According to the described method of above-described embodiment, the present embodiment will further be retouched from the angle of image processing apparatus It states, which can specifically be independent entity to realize, can also be integrated in electronic equipment, such as terminal It realizes, which can include mobile phone, tablet computer and personal computer etc..
Referring to Fig. 5, image processing apparatus provided by the embodiments of the present application has been described in detail in Fig. 5, applied to electronic equipment, It can include:Starting module 10, receiving module 20 and display module 30, wherein:
(1) starting module 10
Starting module 10, for starting photograph album application.
In the present embodiment, when user needs Album for glancing over pictures, the photograph album application in electronic equipment can be opened.
(2) receiving module 20
Receiving module 20, for receiving idsplay order, which is used to indicate the year view for showing the photograph album.
In the present embodiment, year view be mainly used for sequentially in time showing image (photo) content of same year in photograph album Show on an image, usually, the image of each year corresponds to year view, and the image in the photograph album can be that electronics is set Standby shooting or obtain from network or other equipment.Specifically, the photograph album application in electronic equipment can provide it is more Kind display function, for example the optical axis is shown per year, the moon optical axis is shown or the day optical axis is shown etc., when user selects the year optical axis to show When, the idsplay order can be generated.
(3) display module 30
Display module 30, if for preserving this year view in the electronic equipment, the year view of reading and saving is shown Show.
In the present embodiment, when user is not Album for glancing over pictures year view for the first time, usually preserved in electronic equipment each The year view in time, at this point, display need to be only directly read, and when user's Album for glancing over pictures year view for the first time, it usually needs This year view is generated, if that is, referring to Fig. 6, not preserving this year view in the electronic equipment, which may be used also To include the first generation module 40, the second generation module 50, third generation module 60, the first update module 70 and preserving module 80, wherein:
First generation module 40, for generating corresponding first textures of this year view, first textures include one or The textures block of multiple blank.
In the present embodiment, which both can be used for regarding map generalization in year, can be used for the moon and regards map generalization, Showed in the form of grid view, each grid corresponds to the textures block of a blank, which is used to protect in the form of texel Picture material is deposited, similar with the pixel of image, texel can save colors data, and the difference between pixel and texel is very micro- It is wonderful:Pixel usually represents the color point of a reality on computer screen, is usually used to as a units of measurement, than As it may be said that the size of an image for 256 pixels are wide, 256 pixels are high, and in contrast, texel, which is present in one, virtual not to be had Have in the mathematical coordinates system (be usually S-T axis coordinate systems) of size, in a texture block no matter how many pixel, size is forever Far it is on S axis from 0.0 to 1.0, on T axis from 0.0 to 1.0.
Second generation module 50 generates mapping table for one or more image in the photograph album, which uses In the textures block for recording the corresponding blank of one or more image;
In the present embodiment, which determines preservation sequence of the image in the first textures, usually, is presented to use The year view at family should be according to time shaft come namely the first textures in textures block should per year or the moon from as far as near or From closely preserving corresponding picture material in photograph album successively to remote time sequencing.
For example, second generation module 50 specifically can be used for:
Obtain the shooting time of one or more image in the photograph album;
According to the shooting time, the mapping relations between the image and the textures block of the blank are established
By mapping relations record in the mapping table, to generate the mapping table.
In the present embodiment, which can show as the form of x seconds during x x month x day x, for being obtained from other equipment The image taken, if without specific shooting time, storage time that can using the acquisition time or in the electronic device is as shooting Time.
Third generation module 60, for generating the corresponding thumbnail of every image in one or more image;
In the present embodiment, can thumbnail be generated by down-sampled mode, each image corresponds to a hypertonic sketch map.
First update module 70, for according to the mapping table, by the corresponding contracting of every image in one or more image In sketch map update to the textures block of the corresponding blank, the second textures are obtained.
It, can be by OpenGL (Open Graphics Library, open graphic library) in the patch of blank in the present embodiment Thumbnail is drawn in segment, to realize the update to textures block, which is one and is connect across programming language, cross-platform programming The graphic package interface of the profession of mouth specification.
Preserving module 80 for generating year view according to second textures, and this year view is stored in the photograph album.
In the present embodiment, year view directly can be generated according to the second textures, but this generating mode disposably needs to locate The data volume of reason is bigger, and formation speed is relatively low, to improve formation speed, multithreading generation may be used, that is, needs are first right Second textures are grouped, and then different textures block groups are handled simultaneously by different threads, and different textures block group generations regard in year The different piece of figure, so as to improve formation efficiency as far as possible.
For example, the preserving module 80 specifically can be used for:
Determine the image for belonging to identical month in the photograph album;
The corresponding textures block of image for belonging to identical month in second textures is classified as one group, obtains a moon view textures;
Year view is generated according to this month view textures.
In the present embodiment, textures block can be grouped according to month, the textures block group in different months is as this month Month view textures.Different moon view textures can have a different shapes and sizes, for example, the rectangle of rule or other Irregular shape depends primarily on the quantity of textures block and position in this month view textures.
For example, the preserving module 80 further can be used for:
Obtain the texel information of textures block in this month view textures;
The texel information is converted by Pixel Information according to default conversion proportion;
Year view is drawn according to the Pixel Information.
In the present embodiment, which includes coordinate information and colouring information.The default conversion proportion determines that year regards The screen resolution of figure namely for determine textures single texel point in the block is converted into how many a pixels, can be It has been be manually set that, such as default conversion proportion 1:2, which represent 1 texel point, corresponds to 2 pixels.
In addition, after year view is generated, need to be updated according to the storage condition of image in photograph album in real time, That is, referring to Fig. 7, which can also include the second update module 90, be used for:
1-1, year view update instruction is obtained, view update instruction in this year carries image to be updated and position to be updated.
In the present embodiment, when user has newly deposited image in photograph album or deleted original image, this can be generated Year view update instruction.The image to be updated can include image to be deleted or image to be increased newly, likewise, the position to be updated The position to be deleted in the second textures can also be included and be inserted into position by putting.
1-2, second textures are updated according to the image to be updated and position to be updated.
For example, when the image to be updated is image to be deleted, above-mentioned second update module 90 specifically can be used for:
The corresponding thumbnail of the image to be updated is deleted, and deletes from second textures corresponding patch in the position to be updated Segment;
Remaining textures block in second textures is adjusted.
In the present embodiment, which mainly moves, and specifically can will be located at deleted patch in second textures Textures block after segment is integrally moved along a position, to fill up the blank position where the deleted textures block.
For example, when the image to be updated is when newly-increased image, above-mentioned second update module 90 specifically can be used for:
The thumbnail of the image to be increased newly is generated, and the textures of blank are inserted at the position to be updated of second textures Block;
The thumbnail of the image to be increased newly is drawn in the textures block of the blank of insertion.
In the present embodiment, when the textures block in the second textures when being ranked sequentially, is somebody's turn to do from as far as near according to shooting time Insertion position is exactly the last one position, when the textures block in the second textures is from being closely ranked sequentially to remote according to shooting time When, which is exactly first position.
1-3, this year view is updated according to updated second textures.
In the present embodiment, the update of this year view relates generally to a moon update for view textures, and this month view textures whether Update is needed to depend primarily on whether corresponding textures block changes, for example delete or increased newly a textures block to lead to other patches When the position of segment occurs mobile, need to be updated corresponding moon view textures.It, can be with when the update of of that month view textures finishes Updated moon view textures generation year view is re-used, to be updated to year view, so as to the image in photograph album When changing, the thumbnail without reloading each image can quickly realize the update of year view, save thumbnail Decoding time, improve renewal speed
When it is implemented, Yi Shang each unit can be independent entity to realize, arbitrary combination can also be carried out, is made It is realized for same or several entities, the specific implementation of more than each unit can be found in the embodiment of the method for front, herein not It repeats again.
It can be seen from the above, photograph album display device provided in this embodiment, applied to electronic equipment, is opened by starting module 10 Dynamic photograph album application, receiving module 20 receive idsplay order, which is used to indicate the year view for showing the photograph album, Zhi Houruo This year view is preserved in the electronic equipment, then the year view of 30 reading and saving of display module is shown, so as to by photograph album In picture show user in the way of year view, method is simple, and flexibility is high.
In addition, the embodiment of the present application additionally provides a kind of electronic equipment, which can be smart mobile phone, tablet electricity The equipment such as brain.Shown in Fig. 8, electronic equipment 100 includes processor 101, memory 102, display screen 103 and control circuit 104. Wherein, processor 101 is electrically connected respectively with memory 102, display screen 103, control circuit 104.
Processor 101 is the control centre of electronic equipment 100, utilizes various interfaces and the entire electronic equipment of connection Various pieces, by operation or load store, application program in memory 102 and calling is stored in memory 102 Data, perform electronic equipment various functions and processing data, so as to electronic equipment carry out integral monitoring.
In the present embodiment, processor 101 in electronic equipment 100 can according to the steps, by one or one with On application program process it is corresponding instruction be loaded into memory 102, and memory is stored in run by processor 101 Application program in 102, so as to fulfill various functions:
Start photograph album application;
Idsplay order is received, which is used to indicate the year view for showing the photograph album;
If preserving this year view in the electronic equipment, the year view of reading and saving is shown.
Memory 102 can be used for storage application program and data.Including in the application program that memory 102 stores can be The instruction performed in processor.Application program can form various functions module.Processor 101 is stored in memory by operation 102 application program, so as to perform various functions application and data processing.
Display screen 103 can be used for display by information input by user or be supplied to the information of user and the various figures of terminal Shape user interface, these graphical user interface can be made of image, text, icon, video and its arbitrary combination.
Control circuit 104 is electrically connected with display screen 103, and information is shown for control display screen 103.
In some embodiments, as shown in figure 8, electronic equipment 100 further includes:Radio circuit 105, input unit 106, sound Frequency circuit 107, sensor 108 and power supply 101.Wherein, processor 101 respectively with radio circuit 105, input unit 106, sound Frequency circuit 107, sensor 108 and power supply 109 are electrically connected.
Radio circuit 105 is used for transceiving radio frequency signal, to be built by radio communication with the network equipment or other electronic equipments Vertical wireless telecommunications, the receiving and transmitting signal between the network equipment or other electronic equipments.
Input unit 106 can be used for receive input number, character information or user's characteristic information (such as fingerprint) and Generate the keyboard related with user setting and function control, mouse, operating lever, optics or the input of trace ball signal.Wherein, Input unit 106 can include fingerprint recognition module.
Voicefrequency circuit 107 can provide the audio interface between user and terminal by loud speaker, microphone.
Electronic equipment 100 can also include at least one sensor 108, for example, optical sensor, motion sensor and its His sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can root The brightness of display panel is adjusted according to the light and shade of ambient light, proximity sensor can close display when terminal is moved in one's ear Panel and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three Axis) acceleration size, size and the direction of gravity are can detect that when static, can be used to identify mobile phone posture application (such as Horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor that terminal can also configure, it is no longer superfluous herein It states.
Power supply 101 is powered for all parts of electron equipment 100.In some embodiments, power supply 109 can pass through Power-supply management system and processor 101 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
Although being not shown in Fig. 8, electronic equipment 100 can also include camera, bluetooth module etc., and details are not described herein.
It will appreciated by the skilled person that all or part of step in the various methods of above-described embodiment can be with By instructing to complete or relevant hardware being controlled to complete by instructing, which can be stored in one and computer-readable deposit In storage media, and loaded and performed by processor.For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein storing There is a plurality of instruction, which can be loaded by processor, and any photograph album provided to perform the embodiment of the present invention is shown Show the step in method.
Wherein, which can include:Read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any photograph album that the embodiment of the present invention is provided can be performed and shown Show the step in method, it is thereby achieved that achieved by any photograph album display methods that the embodiment of the present invention is provided Advantageous effect refers to the embodiment of front, and details are not described herein.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
In conclusion although the application is disclosed above with preferred embodiment, above preferred embodiment is not to limit The application processed, those of ordinary skill in the art are not being departed from spirit and scope, can make various changes and profit Decorations, therefore the protection domain of the application is subject to the range that claim defines.

Claims (10)

1. a kind of photograph album display methods, applied to electronic equipment, which is characterized in that including:
Start photograph album application;
Idsplay order is received, the idsplay order is used to indicate the year view for showing the photograph album;
If preserving the year view in the electronic equipment, the year view of reading and saving is shown.
2. photograph album display methods according to claim 1, which is characterized in that the photograph album display methods further includes:
If not preserving the year view in the electronic equipment, corresponding first textures of the year view are generated, described One textures include the textures block of one or more blank;
One or more image generation mapping table in the photograph album, the mapping table are used to record described one or more The textures block of the corresponding blank of image;
Generate the corresponding thumbnail of every image in one or more image;
According to the mapping table, the corresponding thumbnail of every image in one or more image is updated to corresponding described On the textures block of blank, the second textures are obtained;
Year view is generated, and the year view is stored in the photograph album according to second textures.
3. photograph album display methods according to claim 2, which is characterized in that one or more in the photograph album Image generation mapping table is opened, including:
Obtain the shooting time of one or more image in the photograph album;
According to the shooting time, the mapping relations between described image and the textures block of the blank are established;
By mapping relations record in the mapping table, to generate the mapping table.
4. photograph album display methods according to claim 2, which is characterized in that described to be regarded in year according to second textures generation Figure, including:
Determine the image for belonging to identical month in the photograph album;
The corresponding textures block of image for belonging to identical month in second textures is classified as one group, obtains a moon view textures;
Year view is generated according to the moon view textures.
5. the photograph album display methods according to any one in claim 2-4, which is characterized in that according to the described second patch After figure generation year view, further include:
Year view update instruction is obtained, the year view update instruction carries image to be updated and position to be updated;
Second textures are updated according to the image to be updated and position to be updated;
The year view is updated according to updated second textures.
6. a kind of photograph album display device, applied to electronic equipment, which is characterized in that including:
Starting module, for starting photograph album application;
Receiving module, for receiving idsplay order, the idsplay order is used to indicate the year view for showing the photograph album;
Display module, if for preserving the year view in the electronic equipment, the year view of reading and saving is shown.
7. photograph album display device according to claim 6, which is characterized in that further include:
First generation module if for not preserving the year view in the electronic equipment, generates the year view and corresponds to The first textures, first textures include the textures block of one or more blank;
Second generation module generates mapping table for one or more image in the photograph album, and the mapping table is used for Record the textures block of the corresponding blank of one or more image;
Third generation module, for generating the corresponding thumbnail of every image in one or more image;
First update module, for according to the mapping table, by the corresponding breviary of every image in one or more image In figure update to the textures block of the corresponding blank, the second textures are obtained;
Preserving module for generating year view according to second textures, and the year view is stored in the photograph album.
8. photograph album display device according to claim 7, which is characterized in that the preserving module is specifically used for:
Determine the image for belonging to identical month in the photograph album;
The corresponding textures block of image for belonging to identical month in second textures is classified as one group, obtains a moon view textures;
Year view is generated according to the moon view textures.
9. a kind of storage medium, which is characterized in that a plurality of instruction is stored in the storage medium, described instruction is suitable for by handling Device loading requires the photograph album display methods described in any one of 1 to 5 with perform claim.
10. a kind of electronic equipment, which is characterized in that including processor and memory, the processor and the memory are electrical Connection, the memory are required for perform claim described in any one of 1 to 5 for storing instruction with data, the processor Photograph album display methods in step.
CN201810045706.8A 2018-01-17 2018-01-17 Album display method, apparatus, storage medium and electronic device Expired - Fee Related CN108228030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810045706.8A CN108228030B (en) 2018-01-17 2018-01-17 Album display method, apparatus, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810045706.8A CN108228030B (en) 2018-01-17 2018-01-17 Album display method, apparatus, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN108228030A true CN108228030A (en) 2018-06-29
CN108228030B CN108228030B (en) 2021-01-08

Family

ID=62642065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810045706.8A Expired - Fee Related CN108228030B (en) 2018-01-17 2018-01-17 Album display method, apparatus, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN108228030B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463998A (en) * 2020-11-25 2021-03-09 京东方科技集团股份有限公司 Album resource processing method, apparatus, electronic device and storage medium
CN112966130A (en) * 2021-03-18 2021-06-15 北京三快在线科技有限公司 Multimedia resource display method, device, terminal and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020075322A1 (en) * 2000-12-20 2002-06-20 Eastman Kodak Company Timeline-based graphical user interface for efficient image database browsing and retrieval
US20040125150A1 (en) * 2002-12-31 2004-07-01 Adcock John E. Calendar-based interfaces for browsing and manipulation of digital images
US20100174993A1 (en) * 2008-04-01 2010-07-08 Robert Sanford Havoc Pennington Method and apparatus for managing digital media content
CN102722307A (en) * 2011-03-29 2012-10-10 腾讯科技(深圳)有限公司 Thumbnail navigation method and apparatus
CN103235805A (en) * 2013-04-18 2013-08-07 广东欧珀移动通信有限公司 Photo sort management method and system
CN103390034A (en) * 2013-07-12 2013-11-13 北京小米科技有限责任公司 Image display method, device, terminal and server
CN103995841A (en) * 2014-04-30 2014-08-20 小米科技有限责任公司 Method and device for locating pictures
CN105183837A (en) * 2015-09-02 2015-12-23 Tcl移动通信科技(宁波)有限公司 Mobile terminal thumbnail list view display method and system
CN105677748A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Picture display method and device and electronic equipment
CN106502566A (en) * 2016-10-31 2017-03-15 珠海市魅族科技有限公司 A kind of method of picture presentation and mobile terminal
CN107203309A (en) * 2017-05-16 2017-09-26 珠海市魅族科技有限公司 View switching method and device, computer installation and computer-readable recording medium
CN107526504A (en) * 2017-08-10 2017-12-29 广州酷狗计算机科技有限公司 Method and device, terminal and the storage medium that image is shown

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020075322A1 (en) * 2000-12-20 2002-06-20 Eastman Kodak Company Timeline-based graphical user interface for efficient image database browsing and retrieval
US20040125150A1 (en) * 2002-12-31 2004-07-01 Adcock John E. Calendar-based interfaces for browsing and manipulation of digital images
US20100174993A1 (en) * 2008-04-01 2010-07-08 Robert Sanford Havoc Pennington Method and apparatus for managing digital media content
CN102722307A (en) * 2011-03-29 2012-10-10 腾讯科技(深圳)有限公司 Thumbnail navigation method and apparatus
CN103235805A (en) * 2013-04-18 2013-08-07 广东欧珀移动通信有限公司 Photo sort management method and system
CN103390034A (en) * 2013-07-12 2013-11-13 北京小米科技有限责任公司 Image display method, device, terminal and server
CN103995841A (en) * 2014-04-30 2014-08-20 小米科技有限责任公司 Method and device for locating pictures
CN105183837A (en) * 2015-09-02 2015-12-23 Tcl移动通信科技(宁波)有限公司 Mobile terminal thumbnail list view display method and system
CN105677748A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Picture display method and device and electronic equipment
CN106502566A (en) * 2016-10-31 2017-03-15 珠海市魅族科技有限公司 A kind of method of picture presentation and mobile terminal
CN107203309A (en) * 2017-05-16 2017-09-26 珠海市魅族科技有限公司 View switching method and device, computer installation and computer-readable recording medium
CN107526504A (en) * 2017-08-10 2017-12-29 广州酷狗计算机科技有限公司 Method and device, terminal and the storage medium that image is shown

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463998A (en) * 2020-11-25 2021-03-09 京东方科技集团股份有限公司 Album resource processing method, apparatus, electronic device and storage medium
CN112966130A (en) * 2021-03-18 2021-06-15 北京三快在线科技有限公司 Multimedia resource display method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN108228030B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN109977333B (en) Webpage display method and device, computer equipment and storage medium
CN110427110B (en) Live broadcast method and device and live broadcast server
CN108536463A (en) Obtain method, apparatus, equipment and the computer readable storage medium of resource packet
US20100079388A1 (en) Storage medium storing image processing program for implementing image processing according to input coordinate, and information processing device
CN111833461B (en) Method and device for realizing special effect of image, electronic equipment and storage medium
CN112138386A (en) Volume rendering method and device, storage medium and computer equipment
CN112672185B (en) Augmented reality-based display method, device, equipment and storage medium
CN110147380B (en) Data updating method, device, server and storage medium
US20240192939A1 (en) Application porting method and apparatus, device, and medium
CN110033503A (en) Cartoon display method, device, computer equipment and storage medium
CN110377220B (en) Instruction response method and device, storage medium and electronic equipment
CN108256072A (en) Photograph album display methods, device, storage medium and electronic equipment
CN110121094A (en) Video is in step with display methods, device, equipment and the storage medium of template
CN110517346B (en) Virtual environment interface display method and device, computer equipment and storage medium
CN108228030A (en) Photograph album display methods, device, storage medium and electronic equipment
CN111445563A (en) Image generation method and related device
CN113379866A (en) Wallpaper setting method and device
CN117274475A (en) Halo effect rendering method and device, electronic equipment and readable storage medium
CN110677586B (en) Image display method, image display device and mobile terminal
CN116826892A (en) Charging method, charging device, electronic apparatus, and readable storage medium
CN115222867A (en) Overlap detection method, overlap detection device, electronic equipment and storage medium
CN112116719B (en) Method and device for determining object in three-dimensional scene, storage medium and electronic equipment
CN114049403A (en) Multi-angle three-dimensional face reconstruction method and device and storage medium
CN110097619B (en) Animation effect implementation method, device and equipment in application program
CN114797109A (en) Object editing method and device, electronic 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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210108

CF01 Termination of patent right due to non-payment of annual fee