[go: up one dir, main page]

CN106527891B - A kind of edit object selection method and relevant apparatus - Google Patents

A kind of edit object selection method and relevant apparatus Download PDF

Info

Publication number
CN106527891B
CN106527891B CN201610950461.4A CN201610950461A CN106527891B CN 106527891 B CN106527891 B CN 106527891B CN 201610950461 A CN201610950461 A CN 201610950461A CN 106527891 B CN106527891 B CN 106527891B
Authority
CN
China
Prior art keywords
edit object
target
editing area
selector
added
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.)
Active
Application number
CN201610950461.4A
Other languages
Chinese (zh)
Other versions
CN106527891A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610950461.4A priority Critical patent/CN106527891B/en
Publication of CN106527891A publication Critical patent/CN106527891A/en
Application granted granted Critical
Publication of CN106527891B publication Critical patent/CN106527891B/en
Active 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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

A kind of edit object selection method and relevant apparatus are disclosed in the embodiment of the present invention, comprising: pre-selected edit object is imported in editing area;Edit object addition instruction is received in editing area;According to edit object addition instruction, the target edit object selector for being not carried out selection operation is selected from the multiple edit object selectors pre-seted;Invocation target edit object selector, the target edit object being added in editing area needed for selection simultaneously imported into editing area.In the embodiment of the present invention, preset multiple edit object selectors, it is instructed by being added according to the edit object, the target edit object selector for being not carried out selection operation is selected from the multiple edit object selectors pre-seted, come the target edit object being added in editing area needed for selecting and it is imported into editing area, so that realizing can continue that other edit objects is selected to be edited in editing area.

Description

A kind of edit object selection method and relevant apparatus
Technical field
The present invention relates to technical field of data processing, and in particular to a kind of edit object selection method and relevant apparatus.
Background technique
Edit object refers to the picture and/or video to be edited selected in editing area, and editing area refers to can be into Region of edlin, such as the edit page in webpage etc., at present many application programs (application program of such as social type or The application program etc. of information type) edit object on mobile terminal can be selected, and shown in editing area, for It is edited at family.
However, when mobile terminal rests on the editing area of some application program, if user feels currently in editing area In the quantity of edit object that shows not enough, the prior art is needed to the edit object shown in current editing area It abandons editing, and exits after editing area, more edit objects can be reselected from mobile terminal and are carried out again Editor, that is to say, that the prior art can not continue that other edit objects is selected to be edited in editing area.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of edit object selection method and relevant apparatus, it can be in editing area In continue that other edit objects is selected to be edited.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
A kind of edit object selection method, comprising:
Pre-selected edit object is imported in editing area, the pre-selected edit object is more by pre-seting Editing area is imported after the selection of at least one of a edit object selector;
Edit object addition instruction is received in editing area;
It adds and instructs according to the edit object, selected from the multiple edit object selectors pre-seted and be not carried out choosing The target edit object selector of operation is selected, each edit object selector all has the energy that all edit objects are carried out with selection Power;
The target edit object selector is called, the target edit object being added in editing area needed for selection;
The selected target edit object that need to be added in editing area is imported into editing area.
A kind of edit object selection device, comprising:
Edit object import modul is preselected, for importing pre-selected edit object, the preparatory choosing in editing area The edit object selected imports editing area after passing through the selection of at least one of multiple edit object selectors pre-seted;
Edit object adds command reception module, for receiving edit object addition instruction in editing area;
Target edit object selector selecting module is instructed for adding according to the edit object, more from what is pre-seted The target edit object selector for being not carried out selection operation, each edit object selector are selected in a edit object selector All have the ability that all edit objects are carried out with selection;
Target edit object selecting module is added to volume for calling the target edit object selector needed for selection Collect the target edit object in area;
Target edit object import modul, for importing the selected target edit object that need to be added in editing area To editing area.
Based on the above-mentioned technical proposal, a kind of edit object selection method and relevant apparatus are disclosed in the embodiment of the present invention, It include: that pre-selected edit object is imported in editing area, the pre-selected edit object is multiple by pre-seting Editing area is imported after the selection of at least one of edit object selector;Edit object addition instruction is received in editing area;According to It adds and instructs according to the edit object, the mesh for being not carried out selection operation is selected from the multiple edit object selectors pre-seted Edit object selector is marked, each edit object selector all has the ability that all edit objects are carried out with selection;Call institute Target edit object selector is stated, the target edit object being added in editing area needed for selection;It need to be added to selected Target edit object in editing area imported into editing area.In the embodiment of the present invention, multiple edit object selectors are pre-seted, are led to It crosses to add according to the edit object and instruct, selected from the multiple edit object selectors pre-seted and be not carried out selection operation Target edit object selector, come the target edit object being added in editing area needed for selecting and imported into editing area, from And realizing can continue that other edit objects is selected to be edited in editing area.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of edit object selection method provided in an embodiment of the present invention;
Fig. 2 is a kind of album list schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of picture Selection Framework schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of PhotoSelectservice layers of internal truss frame structure figure provided in an embodiment of the present invention;
Fig. 5 be a kind of office provided in an embodiment of the present invention choose photo management device with PhotoSelectService layers and Data interaction block diagram between photo selector layer;
Fig. 6 is that a kind of album data provided in an embodiment of the present invention is read between frame and PhotoSelectService layers Data interaction block diagram;
Fig. 7 is a kind of PhotoSelectService layers of number between photo selector layer provided in an embodiment of the present invention According to interaction block diagram;
Fig. 8 is that picture selector experiences flow chart in a kind of application program provided in an embodiment of the present invention;
Fig. 9 is that a kind of half screen of picture selector provided in an embodiment of the present invention experiences page schematic diagram;
Figure 10 is that a kind of picture selector full screen provided in an embodiment of the present invention experiences page schematic diagram;
Figure 11 is a kind of calling target edit object selector provided in an embodiment of the present invention, from the edit object The method flow diagram of edit object is loaded in database;
Figure 12 is a kind of calling target edit object selector provided in an embodiment of the present invention, is added to needed for selection The method flow diagram of target edit object in editing area;
Figure 13 is a kind of calling target edit object selector provided in an embodiment of the present invention, is added to needed for selection The selected target edit object that need to be added in editing area is imported into editing area by the target edit object in editing area Method flow diagram;
Figure 14 is a kind of test data display diagram provided in an embodiment of the present invention;
Figure 15 be after a kind of technical solution using in the embodiment of the present invention provided in an embodiment of the present invention optimizes with Client terminal start-up time-consuming comparing figure before optimization;
Figure 16 be after a kind of technical solution using in the embodiment of the present invention provided in an embodiment of the present invention optimizes with EMS memory occupation comparing figure when client terminal start-up before optimization;
Figure 17 be after a kind of technical solution using in the embodiment of the present invention provided in an embodiment of the present invention optimizes with Client before optimization enters the time-consuming comparing figure of the target edit object selector page;
Figure 18 be after a kind of technical solution using in the embodiment of the present invention provided in an embodiment of the present invention optimizes with Client before optimization enters the EMS memory occupation comparing figure of the target edit object selector page;
Figure 19 be after a kind of technical solution using in the embodiment of the present invention provided in an embodiment of the present invention optimizes with Client before optimization enters picture editor area committed memory comparing figure;
Figure 20 is a kind of structural block diagram of edit object selection device provided in an embodiment of the present invention;
Figure 21 is a kind of hardware block diagram of edit object selection device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart of edit object selection method provided in an embodiment of the present invention, and this method can be applied to visitor Family end, client are specifically as follows computer, mobile phone, tablet computer etc., are equipped with application software thereon.Application software can be to appoint Meaning type, such as game class application software, social category application software, shopping class application software etc., referring to Fig.1, the method can To include:
Step S100, pre-selected edit object is imported in editing area;
It should be noted that the edit object in the embodiment of the present invention is stored in client in the form of edit object set Local, edit object included in different edit object set is identical or different, can be according to volume in the embodiment of the present invention The source difference for collecting object generates different edit object set, can also be raw according to the content or edit object of edit object At time, place difference generate different edit object set, the embodiment of the present invention is not specifically limited.Due to editor couple As referring to the picture and/or video to be edited selected in editing area, therefore, edit object set refers to be edited Picture set and/or video collection, picture set to be edited and/or video collection are arranged in the client with photograph album to be edited Table shows that album list schematic diagram as shown in Figure 2, show have in the album list: all photo albums add phase recently Volume, Snipping Tool photograph album, Baidu's cloud photograph album, millet throw screen emperorship screenshot photograph album and Netease's news photograph album etc..
It should be noted that editing area refers to the page edited to edit object, wherein carried out to edit object The method of editor for example adds special efficacy to picture to be edited, and addition frame breaks mosaic, is background blurring, in figure to be edited On piece adds dynamic textures or text etc., and the embodiment of the present invention is not specifically limited.
Optionally, the pre-selected edit object passes through at least one in the multiple edit object selectors pre-seted Editing area is imported after a selection, the selection that an edit object selector in multiple edit object selectors receives user refers to After order, according to the edit object index value for including in user's selection instruction, in the edit object set that client locally saves The corresponding edit object of the edit object index value is read, the corresponding edit object of the index value is then imported into editor Qu Zhong, wherein the edit object index value can be the combined index value of edit object set number and edit object number, The embodiment of the present invention is not specifically limited.
Step S110, edit object addition instruction is received in editing area;
In editing area, the triggering (example of button can be added to edit object shown in editing area by receiving user Such as :+number button) receive edit object addition instruction.
Step S120, it adds and instructs according to the edit object, selected from the multiple edit object selectors pre-seted It is not carried out the target edit object selector of selection operation out;
It is instructed it should be noted that can be added according to the edit object in the embodiment of the present invention, according to described each The call sequence of edit object selector is selected from multiple edit object selectors of preset value and is not carried out selection operation Target edit object selector, an edit object selector can be only selected in corresponding call sequence.
For example, multiple edit object selectors are combined in the form of storehouse in the embodiment of the present invention, abovementioned steps When S100 imports pre-selected edit object in editing area, first edit object selector having invoked in storehouse is executed Edit object selection operation, after receiving edit object addition instruction, according to arrangement of the edit object selector in storehouse Sequentially, from stack top to stack bottom, the target edit object selector for being not carried out selection operation is successively selected, primary volume is often received Object addition instruction is collected, then selects the target edit object selector for being not carried out selection operation from storehouse.
Optionally, each edit object selector in the embodiment of the present invention, which all has, selects all edit objects Ability, each edit object selector in the embodiment of the present invention passes through identical interface and edit object reads frame phase Connection, the edit object reads the data access information that frame is used to receive each edit object selector, from client sheet Ground reads edit object, and the edit object of reading is sent to respectively by the data access information according to each edit object selector A edit object selector.
It should be noted that for iOS (iPhone Operating System, Apple Inc.'s operating system) platform, For iOS8 system hereinafter, then use AssetsLibrary frame as edit object read frame, for iOS8 or more with On, then use PhotoKit frame to read frame as edit object.
Also, the technical solution in the embodiment of the present invention, it is contemplated that the problem of platform compatibility reads frame in edit object Rack-layer has done layer interface encapsulation, is used to data access otherness caused by shielding harness version difference.
Step S130, the target edit object selector, the target editor being added in editing area needed for selection are called Object;
Optionally, the target edit object being added in editing area needed for selecting in the embodiment of the present invention can be client What is be locally stored can also be newly generated, such as: the photo that can be locally stored for client, photograph album, video, can be with For the photo or video of current shooting, the photograph album etc. currently established, the embodiment of the present invention is not specifically limited.
It should be noted that the target edit object selector is being called in the embodiment of the present invention, addition needed for selecting When target edit object into editing area, if detecting, edit object generates instruction, obtains the edit object of generation;By institute The edit object for stating generation is imported into corresponding edit object set, while updating all volumes in the edit object set The index value of object and the quantity of all edit objects are collected, realizes that the edit object in target edit object selector is synchronous With update.The operation importeding into the edit object of generation in the embodiment of the present invention in corresponding edit object set, and The state of remaining edit object in the edit object set is not influenced.
Such as following application scenarios: currently in the target edit object selector page of a social type application program, By receiving user operation instruction, which is switched to running background, the camera started in terminal is answered With program, task of taking pictures is executed, after completion of taking pictures, social type application program is switched to foreground, is answered in the social type Go out the photo of newest shooting with meeting synchronized update in the corresponding photograph album shown in the target edit object selector page of program.
On the other hand, the target edit object selector is being called, the target being added in editing area needed for selection is compiled When collecting object, if detecting, edit object set generates instruction, obtains the edit object set of generation;By the volume of the generation It collects object set to imported into edit object aggregate list, realizes the same of the edit object set in target edit object selector Step and update.
Such as following application scenarios: currently in the target edit object selector page of a social type application program, By receiving user operation instruction, which is switched to running background, into the photograph album pipe of mobile terminal Application program is managed, detects that the photograph album of user's triggering establishes instruction, responds the photograph album and establish instruction, create a new photograph album, After the completion of creation, social type application program is switched to foreground, is selected in the target edit object of the social type application program It selects meeting synchronized update in the album list shown in the device page and goes out most newly-established photograph album.
Step S140, the selected target edit object that need to be added in editing area is imported into editing area.
It is disclosed by the embodiments of the present invention that the selected target edit object that need to be added in editing area is imported into editor Area comprises determining that the selected target edit object that need to be added in editing area, and caches;The target recorded in caching is compiled It collects object and imported into editing area.Wherein, target edit object is buffered in the embodiment of the present invention and chooses edit object memory In.The data maintenance for choosing edit object memory to be responsible for all selected edit objects, due to the embodiment of the present invention In can repeatedly call the target edit object selector for being not carried out selection operation, the target being added in editing area needed for selection Edit object, therefore, it is necessary to choose edit object memory to be responsible for being added in editing area needed for maintenance is selected each time Target edit object data.After the completion of to be edited, the target edit object recorded in caching is removed.
In the following, by taking a picture Selection Framework as an example, edit object disclosed in the above-described embodiment that comes that the present invention will be described in detail The detailed process of selection method:
Firstly, it is necessary to illustrate, above-mentioned edit object selection method disclosed in the embodiment of the present invention is based in Fig. 3 Picture Selection Framework is realized, as shown in figure 3, describing the process of picture choosing in detail in the picture Selection Framework.
Photo selector device A, photo selector device B, photo selector device C are multiple edit object selectors, for selecting Photograph album and photo are selected, and receives the interactive instruction (such as photo selection instruction) of user, and interactive instruction is transmitted to lower layer.
PhotoSelectServiceA (photo selection in PhotoSelectService (photo selection server) layer Server A), (photo selection takes by PhotoSelectServiceB (photo selection server B) and PhotoSelectServiceC Be engaged in device C) it is corresponding with photo selector device A, photo selector device B, photo selector device C respectively, for the photo to acquisition, phase The data maintenance of volume and the photo being newly generated, the photo chosen and the photo of preview etc., while safeguarding photo preview shape State, the complex logic for choosing quantity etc., to mitigate the logic of photo selector layer.
Wherein, album list manager and photograph album photo having the same select in PhotoSelectService layers each Manager is selected, each PhotoSelectService layers can be transferred through album list manager and photograph album photo selection manager Selection manages the photo in each photograph album and each photograph album.The album list that album list manager is used to will acquire is mapped to photograph The data model that piece selector layer uses, and the photo list of specified photograph album is exported, one PhotoSelectService layers It only include an album list manager.Photograph album photo selection manager is used to input the specified phase of album list manager output Volume photo list, then according to the shooting photo list of album list manager maintenance, choose and the construction such as preview state The photo list model that photo selector layer uses out, each PhotoSelectservice layers selects comprising multiple photograph album photos Manager, number are determined by photo album number.
The data mould that the embodiment of the present invention is used by GBLSelectionOperation protocol definition photo selector layer Type, the operation in photo selector layer is indicated using unified data model, to reduce logical complexity.
As shown in figure 4, Fig. 4 is PhotoSelectservice layer of internal truss frame structure figure, in the structural block diagram mainly Describe PhotosManager photograph album photo selection manager and AlbumManager photograph album in PhotoSelectservice layers Data interaction between list manager, AlbumManager are used to provide the photo in specified photograph album to PhotosManager List, PhotosManager for exporting photo list in specified photograph album, be stored in PhotosManager shooting photo, Photo etc. in the photo of the photo, preview chosen, specified photograph album.
As shown in figure 5, describing the overall situation in Fig. 5 chooses photo management device and PhotoSelectService layers and photo Data exchange process between selector layer, the overall situation choose photo management device to choose volume for what is mentioned in the above embodiment of the present invention Object memories are collected, the maintenance of picture data model is chosen for being responsible for the overall situation, can repeatedly call and be not carried out selection operation Photo selector, the photo being added in editing area needed for selection, therefore, it is necessary to the overall situations, and photo management device to be chosen to be responsible for maintenance often The photo being added in editing area needed for once selecting.The overall situation chooses photo management device will be from PhotoSelectService The photo chosen in layer is stored in global listings, and the photo chosen stored in global listings is output to picture editor Area.
Such as: user has selected three photos when first entering the photo selector page, subsequently into picture editor area; Enter the picture selector page once more and selected a photo, then is edited to picture editor area;There are also a pictures for discovery later It needs to edit, then user is re-introduced into the picture selector page and selects, and can show on the picture selector page complete Portion's photo or album list, user specify some photograph album, show some photograph album on the picture selector page at this time Photo.
As shown in fig. 6, describing the data between album data reading frame and PhotoSelectService layers in Fig. 6 Interactive process.Album data reads frame and is mainly used to PhotoSelectService layers of offer photograph meta data, Yi Jijie PhotoSelectService layers are received to data access such as the requests of picture.Frame used below for iOS8 system: AssetsLibrary.PhotoKit frame used above for iOS8 or more.Album data read frame to PhotoSelectService layers of offer photograph meta data include at least: album list, photo list, specified photo, in photograph album More new photo etc..
It should be noted that between the PhotoSelectService layer in the embodiment of the present invention and photo selector layer Data interaction frame is as shown in fig. 7, show the data between PhotoSelectService layers and photo selector layer in Fig. 7 Interactive process.
PhotoSelectService layers for from picture selector layer receive user interactive operations instruction (such as take pictures, Photograph album etc. is chosen and switched to photo preview, photo), and instructed according to the interactive operation of user and provide service for picture selector Interface, wherein for picture selector provide service interface include: provide specified photograph album photo list, provide all album lists, It updates photograph album or updates the photo list in specified photograph album, picture selector can connect from PhotoSelectService layers of service Mouth obtains the service data that above-mentioned service interface provides and is shown.
Optionally, the interactive operation instruction for the user that picture selector layer generates can be encapsulated in realization GBLSelectorOperation agreement data model (such as: album data model GBLPhotoAlbumModel, number of pictures According in model GBLPhotoModel).
In the following, by taking a concrete application scene as an example, edit object disclosed in the above-described embodiment that comes that the present invention will be described in detail The detailed process of selection method:
Fig. 8 shows picture selector in an application program disclosed by the embodiments of the present invention and experiences process, in conjunction with Fig. 8 institute Showing, user enters the application program first, and the picture and text button triggered on the figure of the first row leftmost side first enters picture selector, User selects a picture, and the imaging icon that then user triggers in the first row middle graph in the picture selection page opens mobile phone phase Machine carries out captured in real-time photo, and the photo of shooting is shown in selector and default label is chosen.User has selected picture to trigger The next button in the upper right corner in the first row middle graph carries out the picture that editor enters in the picture of the first row rightmost side to picture Editing area, user can stick expression etc. to picture in the picture editor area.If user feels picture not enough at this time, and And be not desired to abandon the picture of this editor again, then user can trigger the "+" number of the centre in the picture of the first row rightmost side again Secondary to enter the picture selection page (the second row middle graph), user selects shooting photo to edit as the photo chosen again (preset total quantity for choosing photo and be no more than 6).
User can also trigger in the first row middle graph " whole photo ", album list, Yong Huke can be listed at this time It is shown in selector with a specified photograph album, and can equally complete to choose the task of shooting photo.
It should be noted that the picture selector page can select in application program shown in Fig. 8 for picture shown in Fig. 9 Half screen of device experiences page schematic diagram, can experience the full frame experience page of picture selector shown in Fig. 10 with the upper screen sliding curtain of user Face schematic diagram.
Optionally, in the embodiment of the present invention, the target edit object selector is being called, is being added to editor needed for selection Before target edit object in area, further includes: the target edit object selector is called, from the edit object database The process of middle load edit object.Figure 11 is a kind of calling target edit object selector provided in an embodiment of the present invention, Load the method flow diagram of edit object from the edit object database, referring to Fig.1 1, this method may include:
S200, target edit object selector obtain edit object database-access rights;
It should be noted that target edit object selector only obtains the visit of edit object database in the embodiment of the present invention After asking permission, it could access in each edit object set and edit object set stored in edit object database Edit object, each edit object set in edit object database are distributed in edit object aggregate list, each editor Object set all corresponds to a unique index of set value, the volume in each edit object set in edit object aggregate list It collects object to be all distributed in corresponding edit object list, also, the edit object in each edit object set is all right Answer only one edit object index value.
S210, target edit object selector send access request to the edit object database;
Target edit object selector before sending access request to edit object database before needing to empty or reset The access request once sent, such as: empty or reset the access request parameters of last transmission.
S220, the target edit object selector load edit object metadata from the edit object database;
The edit object metadata is used to describe the attribute of the edit object, be mainly used for describing picture and/or The essential attribute of video, such as: pixel, resolution ratio, size, color, locating depth, hue, saturation, intensity, color channel, video are long Degree and audio etc., the embodiment of the present invention is not specifically limited.
It should be noted that, in order to quickly load edit object, the waiting time of user is reduced in the embodiment of the present invention, The target edit object selector can first load the edit object member number of predetermined number from the edit object database According to, all edit object metadata are then being loaded from the edit object database, such as first preload 100 pictures progress Then display is loading remaining picture.
Since what is loaded in the embodiment of the present invention is edit object metadata, and edit object metadata is for describing to compile The attribute data for collecting object, is not edit object itself, for load edit object itself, can reduce accounting for for memory With improving the loading velocity of edit object.Especially with the edit object saved in client quantity from thousands of Be raised to it is up to ten thousand, it is tens of thousands of it is even more in the case where, can be effective using above-mentioned loading method disclosed in the embodiments of the present invention Improve the loading performance of edit object.
Optionally, Figure 12 is a kind of calling target edit object selector provided in an embodiment of the present invention, selects institute The method flow diagram of the target edit object in editing area need to be added to, referring to Fig.1 2, this method may include:
S300, target edit object selector are according to user's selection instruction, the target being added in editing area needed for acquisition Edit object index value;
According to the selection instruction of user, the required target edit object index being added in editing area of user's selection is extracted Value.
S310, target edit object selector obtain the corresponding target edit object member of the target edit object index value Data;
The target object metadata is identified with corresponding target object using identical index value.
S320, target edit object selector are added to editor according to the target edit object metadata needed for generation Preview target edit object in area.
The preview target edit object obtains after carrying out compression processing to the target edit object.
It should be noted that can be according to the target edit object metadata, by required addition in the embodiment of the present invention Target edit object into editing area is cut or is carried out quality compression, the preview being added in editing area needed for obtaining Target edit object.It wherein, specifically can be according to the size dimension of client display screen, to the whole frame of target edit object Frame is cut, and is changed the size of target edit object, can be carried out image matter under the premise of guaranteeing clarity for picture Amount compression, obtain high definition preview graph, due to high definition preview graph be full figure is carried out cut or quality compress, can protect Under the premise of demonstrate,proving clarity, it is further reduced EMS memory occupation.
Optionally, Figure 13 is a kind of calling target edit object selector provided in an embodiment of the present invention, selects institute The selected target edit object that need to be added in editing area is imported by the target edit object that need to be added in editing area The method flow diagram of editing area, referring to Fig.1 3, this method may include:
S400, target edit object selector are according to user's selection instruction, the target being added in editing area needed for acquisition Edit object index value;
According to the selection instruction of user, the required target edit object index being added in editing area of user's selection is extracted Value.
S410, target edit object selector obtain the corresponding target edit object member of the target edit object index value Data;
The target object metadata is identified with corresponding target object using identical index value.
S420, target edit object selector are added to editor according to the target edit object metadata needed for generation Preview target edit object in area;
The preview target edit object being added in editing area needed for S430, judgement whether need currently to be previewed or by It chooses;If it is, executing S440;
S440, the preview target edit object for being currently previewed or being selected will be needed labeled as preview or choose shape State;
S450, editing area will be imported into labeled as the preview target edit object of preview or selected state and show;
S460, judge whether to receive the screen scroll instruction of user's input;If it is, executing S470;Otherwise, it ties Beam.
S470, it is instructed according to rolling, discharges the preview target edit object being shown in outside screen, recalculate current screen Curtain needs the target edit object index value of loaded and displayed, and returns and execute S410.
In the following, with a specific application scenarios, compiled in the present invention will be described in detail embodiment above-described embodiment by load Object metadata is collected, and according to the target edit object metadata, the preview target being added in editing area needed for generation The selected preview target edit object that need to be added in editing area is imported into the mode of editing area by edit object, for The occupancy for reducing memory, the effect that the loading velocity and loading performance aspect for improving edit object generate are shown.
In this application scenarios, using test data as shown in Figure 14, each phase is illustrated in the test data Number of pictures and total number of pictures in volume, the number of pictures in rubber volume is 9529, the photo in my photo stream Quantity is 922 etc., is respectively shown after optimizing using the technical solution in the embodiment of the present invention in Figure 15 and Figure 16 It is by Figure 15 and Figure 16 it is found that real using the present invention with the client terminal start-up time-consuming before optimization and EMS memory occupation situation when starting It applies the technical solution in example and optimizes the starting performance of rear client and improve 4.42 times, EMS memory occupation reduces when starting 7.28%.
Illustrated in Figure 17 using the technical solution in the embodiment of the present invention optimize afterwards with the client before optimization into Enter the time-consuming situation of the target edit object selector page (enter and select figure interface), it is known that, using in the embodiment of the present invention Technical solution optimizes 4.1 times of the performance raising that rear client enters the target edit object selector page, EMS memory occupation drop Low 35.71%.
Illustrated in Figure 18 using the technical solution in the embodiment of the present invention optimize afterwards with the client before optimization into Enter the EMS memory occupation situation of the target edit object selector page (enter and select figure interface), it is known that, using the embodiment of the present invention In technical solution optimize after, all target edit objects all rotate out screen in the target edit object selector page EMS memory occupation reduces by 35.06%.
Illustrated in Figure 19 using the technical solution in the embodiment of the present invention optimize afterwards with the client before optimization into Enter picture editor area committed memory situation, it is known that, before optimization, the data of Cong Tuzhong be can be seen that with choosing number of pictures Increase, the occupancy of memory is substantially linear growth, the reason is that each full figure occupy memory headroom it is too big, if picture Quantity increase will certainly excessively cause system issue memory warning, application crash.After optimization, as can be seen from the figure With the increase of picture number, the occupancy situation of memory is substantially held stationary, this is because loading out in prioritization scheme Picture is high definition preview graph, and is not full figure, but the EMS memory occupation very little of these preview graphs, clarity have substantially no effect on use Family experience.
Edit object selection device provided in an embodiment of the present invention is introduced below, edit object choosing described below Reference can be corresponded to each other with edit object selection method above by selecting device.
Figure 20 is the structural block diagram of edit object selection device provided in an embodiment of the present invention, referring to Figure 20, the editor couple As selection device may include:
Edit object import modul 100 is preselected, it is described preparatory for importing pre-selected edit object in editing area The edit object of selection imports editing area after passing through the selection of at least one of multiple edit object selectors pre-seted;
Edit object adds command reception module 110, for receiving edit object addition instruction in editing area;
Target edit object selector selecting module 120 is instructed for adding according to the edit object, from what is pre-seted The target edit object selector for being not carried out selection operation, each edit object selection are selected in multiple edit object selectors Device all has the ability that all edit objects are carried out with selection;
Target edit object selecting module 130 is added to needed for selection for calling the target edit object selector Target edit object in editing area;
Target edit object import modul 140, for by the selected target edit object that need to be added in editing area It imported into editing area.
Based on above-mentioned edit object selection device embodiment, the present invention can also be chosen suitable element from lower module and be formed New edit object selection device, concrete composition mode can the associated description in corresponding method embodiment be determined, this implementation Example repeats no more.
The target edit object import modul includes:
First import modul chooses volume for the selected target edit object that need to be added in editing area to be imported into It collects in object memories;
Second import modul, for the target edit object chosen in edit object memory to be imported into editor Area.
The target edit object selector is being called by target edit object selecting module, is being added to volume needed for selection When collecting the target edit object in area, further includes:
It generates edit object and obtains module, for when detecting that edit object generates instruction, then obtaining the editor of generation Object;
Third import modul, for the edit object of the generation to be imported into corresponding edit object set.
The target edit object selector is being called by target edit object selecting module, is being added to volume needed for selection When collecting the target edit object in area, further includes:
It generates edit object set and obtains module, for when detecting that edit object set generates instruction, then obtaining life At edit object set;
4th import modul, for the edit object set of the generation to be imported into edit object aggregate list.
The target edit object selector selecting module includes:
Target edit object selector selects submodule, instructs for adding according to the edit object, according to described each The call sequence of a edit object selector is selected from multiple edit object selectors of preset value and is not carried out selection operation Target edit object selector, an edit object selector can only be selected in corresponding call sequence.Further include:
Edit object loading module, for calling the target edit object selector, from the edit object database Middle load edit object.
The edit object loading module includes:
Access authority obtains module, for obtaining edit object database-access rights;
Access request sending module, for sending access request to the edit object database;
Edit object metadata loading module, for loading edit object metadata from the edit object database, The edit object metadata is used to describe the attribute of the edit object.
The target edit object selecting module includes:
Target edit object index value obtains module, for being added to editing area needed for acquisition according to user's selection instruction In target edit object index value;
Target edit object metadata obtains module, compiles for obtaining the corresponding target of the target edit object index value Collect object metadata;
Preview target edit object generation module, for being added needed for generating according to the target edit object metadata Preview target edit object into editing area, the preview target edit object are to compress to the target edit object It is obtained after processing.
The preview target edit object generation module includes:
Preview target edit object generates submodule, is used for according to the target edit object metadata, by required addition Target edit object into editing area is cut or is carried out quality compression, the preview being added in editing area needed for obtaining Target edit object.
The target edit object import modul includes:
Preview target edit object import modul, for by the selected preview target editor that need to be added in editing area Object imported into editing area.
Optionally, edit object selection device can be hardware device, and above-described module can be set in editor couple As the functional module in selection device.Figure 21 shows the hardware block diagram of edit object selection device, referring to Figure 21, editor Object selecting device may include: processor 1, communication interface 2, memory 3 and communication bus 4;Wherein processor 1, communication connect Mouth 2, memory 3 complete mutual communication by communication bus 4;Optionally, communication interface 2 can connecing for communication module Mouthful, such as the interface of gsm module;
Processor 1, for executing program;Memory 3, for storing program;Program may include program code, the journey Sequence code includes computer operation instruction;
Processor 1 may be a central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road;Memory 3 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile Memory), a for example, at least magnetic disk storage.
Wherein, program can be specifically used for:
Pre-selected edit object is imported in editing area, the pre-selected edit object is more by pre-seting Editing area is imported after a selection in a edit object selector;
Edit object addition instruction is received in editing area;
It adds and instructs according to the edit object, selected from the multiple edit object selectors pre-seted and be not carried out choosing The target edit object selector of operation is selected, each edit object selector all has the energy that all edit objects are carried out with selection Power;
The target edit object selector is called, the target edit object being added in editing area needed for selection;
The selected target edit object that need to be added in editing area is imported into editing area.
In summary:
A kind of edit object selection method and relevant apparatus are disclosed in the embodiment of the present invention, comprising: lead in editing area Enter pre-selected edit object, the pre-selected edit object passes through in the multiple edit object selectors pre-seted Editing area is imported after one selection;Edit object addition instruction is received in editing area;It adds and instructs according to the edit object, The target edit object selector for being not carried out selection operation, Ge Gebian are selected from the multiple edit object selectors pre-seted It collects object selector and all has the ability that all edit objects are carried out with selection;The target edit object selector is called, is selected The target edit object being added in editing area needed for selecting;The selected target edit object that need to be added in editing area is led Enter to editing area.In the embodiment of the present invention, multiple edit object selectors are pre-seted, by referring to according to edit object addition It enables, the target edit object selector selection for being not carried out selection operation is selected from the multiple edit object selectors pre-seted The required target edit object being added in editing area simultaneously imported into editing area, continues to select it in editing area to realize His edit object is edited.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (20)

1. a kind of edit object selection method characterized by comprising
Pre-selected edit object to be edited is imported in editing area, the pre-selected edit object is by pre-seting The selection of at least one of multiple edit object selectors after import editing area;
Edit object addition instruction is received in editing area;
It adds and instructs according to the edit object, selected from the multiple edit object selectors pre-seted and be not carried out selection behaviour The target edit object selector of work, each edit object selector all have the ability that all edit objects are carried out with selection;
The target edit object selector is called, the target edit object being added in editing area needed for selection;
The selected target edit object that need to be added in editing area is imported into editing area.
2. the method according to claim 1, wherein described by the selected target that need to be added in editing area Edit object imported into editing area
It determines the selected target edit object that need to be added in editing area, and caches;
The target edit object recorded in caching is imported into editing area.
3. the method according to claim 1, wherein selecting institute calling the target edit object selector When the target edit object that need to be added in editing area,
If detecting, edit object generates instruction, obtains the edit object of generation;
The edit object of the generation is imported into corresponding edit object set.
4. the method according to claim 1, wherein selecting institute calling the target edit object selector When the target edit object that need to be added in editing area,
If detecting, edit object set generates instruction, obtains the edit object set of generation;
The edit object set of the generation is imported into edit object aggregate list.
5. the method according to claim 1, wherein described add according to the edit object instructs, from default It is selected in the multiple edit object selectors set and is not carried out the target edit object selector of selection operation and includes:
It adds and instructs according to the edit object, according to the call sequence of each edit object selector, from preset value The target edit object selector for being not carried out selection operation, an edit object selection are selected in multiple edit object selectors Device can be only selected in corresponding call sequence.
6. the method according to claim 1, wherein selecting institute calling the target edit object selector It need to be added to before the target edit object in editing area, further includes:
The target edit object selector is called, loads edit object from the edit object database.
7. according to the method described in claim 6, it is characterized in that, described call the target edit object selector, from institute Stating load edit object in edit object database includes:
The target edit object selector obtains edit object database-access rights;
The target edit object selector sends access request to the edit object database;
The target edit object selector loads edit object metadata, the editor couple from the edit object database Object metadata is used to describe the attribute of the edit object.
8. the method according to the description of claim 7 is characterized in that described call the target edit object selector, selection The required target edit object being added in editing area includes:
According to user's selection instruction, the target edit object index value being added in editing area needed for acquisition;
Obtain the corresponding target edit object metadata of the target edit object index value;
According to the target edit object metadata, the preview target edit object being added in editing area needed for generation is described Preview target edit object obtains after carrying out compression processing to the target edit object.
9. according to the method described in claim 8, it is characterized in that, described according to the target edit object metadata, generation The required preview target edit object being added in editing area includes:
According to the target edit object metadata, the required target edit object being added in editing area cut or Quality compression is carried out, the preview target edit object being added in editing area needed for obtaining.
10. according to the method described in claim 8, it is characterized in that, described by the selected mesh that need to be added in editing area Mark edit object imported into editing area and includes:
The selected preview target edit object that need to be added in editing area is imported into editing area.
11. a kind of edit object selection device characterized by comprising
Edit object import modul is preselected, it is described pre- for importing pre-selected edit object to be edited in editing area The edit object first selected imports editing area after passing through the selection of at least one of multiple edit object selectors pre-seted;
Edit object adds command reception module, for receiving edit object addition instruction in editing area;
Target edit object selector selecting module is instructed for adding according to the edit object, from the multiple volumes pre-seted It collects in object selector and selects the target edit object selector for being not carried out selection operation, each edit object selector has There is the ability that all edit objects are carried out with selection;
Target edit object selecting module is added to editing area needed for selection for calling the target edit object selector In target edit object;
Target edit object import modul, for the selected target edit object that need to be added in editing area to be imported into volume Collect area.
12. device according to claim 11, which is characterized in that the target edit object import modul includes:
First import modul chooses editor couple for the selected target edit object that need to be added in editing area to be imported into As in memory;
Second import modul, for the target edit object chosen in edit object memory to be imported into editing area.
13. device according to claim 11, which is characterized in that described in being called by target edit object selecting module Target edit object selector, when the target edit object being added in editing area needed for selection, further includes:
It generates edit object and obtains module, for when detecting that edit object generates instruction, then obtaining the edit object of generation;
Third import modul, for the edit object of the generation to be imported into corresponding edit object set.
14. device according to claim 11, which is characterized in that described in being called by target edit object selecting module Target edit object selector, when the target edit object being added in editing area needed for selection, further includes:
It generates edit object set and obtains module, for when detecting that edit object set generates instruction, then obtaining generation Edit object set;
4th import modul, for the edit object set of the generation to be imported into edit object aggregate list.
15. device according to claim 11, which is characterized in that the target edit object selector selecting module packet It includes:
Target edit object selector selects submodule, instructs for adding according to the edit object, according to each volume The call sequence for collecting object selector, selects the mesh for being not carried out selection operation from multiple edit object selectors of preset value Edit object selector is marked, an edit object selector can be only selected in corresponding call sequence.
16. device according to claim 11, which is characterized in that further include:
Edit object loading module adds from the edit object database for calling the target edit object selector Carry edit object.
17. device according to claim 16, which is characterized in that the edit object loading module includes:
Access authority obtains module, for obtaining edit object database-access rights;
Access request sending module, for sending access request to the edit object database;
Edit object metadata loading module, it is described for loading edit object metadata from the edit object database Edit object metadata is used to describe the attribute of the edit object.
18. device according to claim 17, which is characterized in that the target edit object selecting module includes:
Target edit object index value obtains module, for being added in editing area needed for acquisition according to user's selection instruction Target edit object index value;
Target edit object metadata obtains module, for obtaining the corresponding target editor couple of the target edit object index value Object metadata;
Preview target edit object generation module, for being added to volume needed for generation according to the target edit object metadata The preview target edit object in area is collected, the preview target edit object is to carry out compression processing to the target edit object It obtains afterwards.
19. device according to claim 18, which is characterized in that the preview target edit object generation module includes:
Preview target edit object generates submodule, for being added to volume for required according to the target edit object metadata The target edit object collected in area is cut or is carried out quality compression, the preview target being added in editing area needed for obtaining Edit object.
20. device according to claim 18, which is characterized in that the target edit object import modul includes:
Preview target edit object import modul, for by the selected preview target edit object that need to be added in editing area It imported into editing area.
CN201610950461.4A 2016-10-26 2016-10-26 A kind of edit object selection method and relevant apparatus Active CN106527891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610950461.4A CN106527891B (en) 2016-10-26 2016-10-26 A kind of edit object selection method and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610950461.4A CN106527891B (en) 2016-10-26 2016-10-26 A kind of edit object selection method and relevant apparatus

Publications (2)

Publication Number Publication Date
CN106527891A CN106527891A (en) 2017-03-22
CN106527891B true CN106527891B (en) 2019-09-17

Family

ID=58325200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610950461.4A Active CN106527891B (en) 2016-10-26 2016-10-26 A kind of edit object selection method and relevant apparatus

Country Status (1)

Country Link
CN (1) CN106527891B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019041303A1 (en) * 2017-09-01 2019-03-07 毛蔚青 Client album management system based on cloud computing technology, and interaction method thereof
CN110968238A (en) * 2019-11-20 2020-04-07 四川商通实业有限公司 Image fast editing method and system based on ios system
CN111324249B (en) * 2020-01-21 2020-12-01 北京达佳互联信息技术有限公司 Multimedia material generation method and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005202666A (en) * 2004-01-15 2005-07-28 Dainippon Screen Mfg Co Ltd Graphic processor, graphic processing method and program
CN103677502A (en) * 2012-09-13 2014-03-26 腾讯科技(深圳)有限公司 Method and device for displaying pictures
CN104978739A (en) * 2015-04-29 2015-10-14 腾讯科技(深圳)有限公司 Image object selection method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005202666A (en) * 2004-01-15 2005-07-28 Dainippon Screen Mfg Co Ltd Graphic processor, graphic processing method and program
CN103677502A (en) * 2012-09-13 2014-03-26 腾讯科技(深圳)有限公司 Method and device for displaying pictures
CN104978739A (en) * 2015-04-29 2015-10-14 腾讯科技(深圳)有限公司 Image object selection method and apparatus

Also Published As

Publication number Publication date
CN106527891A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN112184856B (en) Multimedia processing device supporting multi-layer special effect and animation mixing
CN100429660C (en) Information processing apparatus and method, and program used therewith
JP5903187B1 (en) Automatic video content generation system
US20080292212A1 (en) Image Display Apparatus, Image Display Method, and Computer Program
CN103544207B (en) A kind of method and system of picture loaded and displayed
JP3942941B2 (en) COMMUNICATION DEVICE, PLUG-IN MODULE CONTROL METHOD, PROGRAM FOR EXECUTING COMPUTER, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING PROGRAM FOR EXECUTING COMPUTER
EP2075714A1 (en) Apparatus and methods for retrieving/downloading content on a communication device
CN106453572B (en) Method and system based on Cloud Server synchronous images
CN106527891B (en) A kind of edit object selection method and relevant apparatus
CN105094920A (en) Game rendering method and device
US20150134665A1 (en) System and method for associating a file with one or more other files in an online storage system
CN113329176A (en) Image processing method and related device applied to camera of intelligent terminal
US7606903B2 (en) Data storage device and data storage method with network access management
CN103207725B (en) Icon conversion method and device
CN102291506A (en) Picture uploading method and device
CN102447842B (en) Fast editing method and system supporting external medium selection, editing and uploading
CN106933702A (en) A kind of method of intelligent terminal storage space management, device and intelligent terminal
CN111327941B (en) Offline video playing method, device, equipment and medium
CN114285961A (en) Image processing method, image processing device, computer equipment and storage medium
CN107220302A (en) Auto slice storage system and method based on QT technologies
CN116527994A (en) Video generation method and device and electronic equipment
CN106020730A (en) Clearing method and device for multi-media data of mobile device
WO2015010557A1 (en) Image generating method and device
JP2018084980A (en) Image processing apparatus, image processing method, and computer program
CN112738416A (en) Thumbnail previewing method, system, device and computer-readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant