CN106527891A - Editing object selection method and related apparatus - Google Patents

Editing object selection method and related apparatus Download PDF

Info

Publication number
CN106527891A
CN106527891A CN201610950461.4A CN201610950461A CN106527891A CN 106527891 A CN106527891 A CN 106527891A CN 201610950461 A CN201610950461 A CN 201610950461A CN 106527891 A CN106527891 A CN 106527891A
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.)
Granted
Application number
CN201610950461.4A
Other languages
Chinese (zh)
Other versions
CN106527891B (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

Abstract

Embodiments of the invention disclose an editing object selection method and a related apparatus. The method comprises the steps of importing a pre-selected editing object in an editing region; receiving an editing object addition instruction in the editing region; selecting out a target editing object selector which does not execute selection operation from a plurality of preset editing object selectors according to the editing object addition instruction; and calling the target editing object selector, selecting a target editing object needed to be added to the editing region, and importing the target editing object to the editing region. According to the method and the apparatus provided by the embodiments of the invention, the editing object selectors are preset; and by selecting out the target editing object selector which does not execute the selection operation from the preset editing object selectors according to the editing object addition instruction, the target editing object needed to be added to the editing region is selected and imported to the editing region, so that other editing objects can continue to be selected in the editing region for performing editing.

Description

A kind of edit object system of selection and relevant apparatus
Technical field
The present invention relates to technical field of data processing, and in particular to a kind of edit object system of selection and relevant apparatus.
Background technology
Edit object refers to the picture to be edited selected in editing area and/or video, and editing area refers to enter Edit page in the region of edlin, such as webpage etc., at present many application programs (as social type application program or Application program of information type etc.) edit object that can select on mobile terminal, and show in editing area, for Edlin is entered at family.
However, when mobile terminal rests on the editing area of certain application program, if user is felt currently in editing area In the quantity of edit object that shows not enough, prior art needs the edit object to showing in current editing area Editor is abandoned, and after exiting editing area, more edit objects can be reselected from mobile terminal to be carried out again Editor, that is to say, that prior art cannot continue to select other edit objects to enter edlin in editing area.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of edit object system of selection and relevant apparatus, can be in editing area It is middle to continue to select other edit objects to enter edlin.
For achieving the above object, the embodiment of the present invention provides following technical scheme:
A kind of edit object system of selection, including:
The edit object being pre-selected is imported in editing area, the edit object being pre-selected is more by what is pre-seted At least one of individual edit object selector imports editing area after selecting;
Edit object addition instruction is received in editing area;
Instruct according to edit object addition, select from the multiple edit object selectores for pre-seting and be not carried out choosing The target edit object selector of operation is selected, each edit object selector is respectively provided with 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 to needed for selecting in editing area;
The selected target edit object that need to be added in editing area is imported to into editing area.
A kind of edit object selecting device, including:
Pre-selection edit object import modul, for the edit object being pre-selected, the advance choosing are imported in editing area The edit object selected imports editing area after at least one of multiple edit object selectores for pre-seting are selected;
Edit object adds command reception module, for edit object addition instruction is received in editing area;
Target edit object selector selecting module is for instructing according to edit object addition, 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 individual edit object selector Be respectively provided with carries out the ability of selection to all edit objects;
Target edit object selecting module, for calling the target edit object selector, is added to volume needed for selecting Collect the target edit object in area;
Target edit object import modul, for the selected target edit object that need to be added in editing area is imported To editing area.
Based on above-mentioned technical proposal, a kind of edit object system of selection and relevant apparatus in the embodiment of the present invention, are disclosed, Including:The edit object being pre-selected is imported in editing area, the edit object being pre-selected is multiple by what is pre-seted At least one of edit object selector imports editing area after selecting;Edit object addition instruction is received in editing area;According to Instruct according to edit object addition, the mesh for being not carried out selection operation is selected from the multiple edit object selectores for pre-seting Mark edit object selector, each edit object selector are respectively provided with 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 to needed for selecting in editing area;Need to be added to selected Target edit object in editing area imports to editing area.In the embodiment of the present invention, multiple edit object selectores are pre-seted, led to Cross and instruct according to edit object addition, select from the multiple edit object selectores for pre-seting and be not carried out selection operation Target edit object selector, needed for selecting, the target edit object that is added in editing area simultaneously imports to editing area, from And realize and can continue to select other edit objects to enter edlin in editing area.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of flow chart of edit object system of selection 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 internal truss frame structure figure of PhotoSelectservice layers provided in an embodiment of the present invention;
Fig. 5 for a kind of office provided in an embodiment of the present invention choose photo management device and PhotoSelectService layers and Data interaction block diagram between photo selector layer;
Fig. 6 is read between framework and PhotoSelectService layers for a kind of album data provided in an embodiment of the present invention Data interaction block diagram;
Fig. 7 is the number between a kind of PhotoSelectService layers provided in an embodiment of the present invention and photo selector layer According to interaction block diagram;
Fig. 8 is picture selector experience flow chart in a kind of application program provided in an embodiment of the present invention;
Fig. 9 is that half screen of a kind of picture selector provided in an embodiment of the present invention experiences page schematic diagram;
Figure 10 experiences page schematic diagram for a kind of picture selector full screen provided in an embodiment of the present invention;
Figure 11 calls the target edit object selector for one kind provided in an embodiment of the present invention, from the edit object The method flow diagram of edit object is loaded in data base;
Figure 12 calls the target edit object selector for one kind provided in an embodiment of the present invention, is added to needed for selecting The method flow diagram of the target edit object in editing area;
Figure 13 calls the target edit object selector for one kind provided in an embodiment of the present invention, is added to needed for selecting The selected target edit object that need to be added in editing area is imported to editing area by the target edit object in editing area Method flow diagram;
Figure 14 shows figure for a kind of test data provided in an embodiment of the present invention;
Figure 15 be after the technical scheme in a kind of application embodiment of the present invention provided in an embodiment of the present invention is optimized with The time-consuming comparing figure of client terminal start-up before optimization;
Figure 16 be after the technical scheme in a kind of application embodiment of the present invention provided in an embodiment of the present invention is optimized with EMS memory occupation comparing figure during client terminal start-up before optimization;
Figure 17 be after the technical scheme in a kind of application embodiment of the present invention provided in an embodiment of the present invention is optimized with Client before optimization enters the time-consuming comparing figure of the target edit object selector page;
Figure 18 be after the technical scheme in a kind of application embodiment of the present invention provided in an embodiment of the present invention is optimized with Client before optimization enters the EMS memory occupation comparing figure of the target edit object selector page;
Figure 19 be after the technical scheme in a kind of application embodiment of the present invention provided in an embodiment of the present invention is optimized with Client before optimization enters picture editor area committed memory comparing figure;
Figure 20 is a kind of structured flowchart of edit object selecting device provided in an embodiment of the present invention;
Figure 21 is a kind of hardware block diagram of edit object selecting device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is a kind of flow chart of edit object system of selection provided in an embodiment of the present invention, and the method can be applicable to visitor Family end, client are specifically as follows computer, mobile phone, panel computer etc., are provided with application software thereon.Application software can be to appoint Meaning type, such as game class application software, social class application software, shopping class application software etc., with reference to Fig. 1, methods described can To include:
Step S100, the edit object being pre-selected 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 Locally, the edit object included in different edit object set is identical or different, in the embodiment of the present invention, can be according to volume The different edit object set of the different generations in source of object are collected, can be given birth to the content according to edit object or edit object Into time, place difference generate different edit object set, the embodiment of the present invention is not specifically limited.It is right due to editing As the picture to be edited that refers to select in editing area and/or video, therefore, edit object set refers to be edited Picture set and/or video collection, picture set to be edited in the client and/or video collection are arranged with photograph album to be edited Table shows that album list schematic diagram as shown in Figure 2, displaying in the album list have:All photo albums, add phase recently Volume, Snipping Tool photograph album, Baidu's cloud photograph album, Semen setariae throw screen emperorship sectional drawing photograph album and Netease's news photograph album etc..
It should be noted that editing area refers to the page for entering edlin to edit object, wherein, edit object is carried out The method of editor addition frame, breaks mosaic, background blurring, in figure to be edited for example to picture addition specially good effect to be edited Add dynamic pinup picture or word etc. on piece, the embodiment of the present invention is not specifically limited.
Optionally, the edit object being pre-selected passes through at least in the multiple edit object selectores for pre-seting Editing area is imported after individual selection, the selection that an edit object selector in multiple edit object selectores receives user refers to After order, according to the edit object index value included in user's selection instruction, in the edit object set that client is locally preserved The corresponding edit object of the edit object index value is read, the index value corresponding edit object is imported to into editor then Qu Zhong, wherein, the edit object index value can be the combined index value of edit object set number and edit object numbering, The embodiment of the present invention is not specifically limited.
Step S110, the reception edit object addition instruction in editing area;
In editing area, the triggering (example that receive user adds button to edit object shown in editing area can be passed through Such as:+ number button etc.) receive edit object addition instruction.
Step S120, according to the edit object addition instruct, from the multiple edit object selectores for pre-seting select Go out to be not carried out the target edit object selector of selection operation;
It should be noted that in the embodiment of the present invention can according to the edit object addition instruct, according to it is described each The call sequence of edit object selector, selects from multiple edit object selectores of preset value and is not carried out selection operation Target edit object selector, an edit object selector only can be selected in corresponding call sequence.
For example, multiple edit object selectores are combined in the form of storehouse in the embodiment of the present invention, abovementioned steps When S100 imports the edit object being pre-selected in editing area, the first edit object selector that have invoked in storehouse is performed Edit object selection operation, after edit object addition instruction is received, 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 selected successively, is often received and is once compiled Object addition instruction is collected, then one target edit object selector for being not carried out selection operation of selection from storehouse.
Optionally, each edit object selector in the embodiment of the present invention is respectively provided with and all edit objects is selected Ability, each edit object selector in the embodiment of the present invention is by identical interface and edit object reading framework phase Connection, the edit object reads framework to be used to receive the data access information of 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 Individual edit object selector.
It should be noted that as a example by with iOS (iPhone Operating System, Apple's operating system) platform, Below iOS8 systems, then read framework using AssetsLibrary frameworks as edit object, for iOS8 and the above with On, then framework is read using PhotoKit frameworks as edit object.
Also, the technical scheme 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, for the data access diversity that shielding harness version difference is caused.
Step S130, the target edit object selector is called, the target editor being added to needed for selecting in editing area Object;
Optionally, the target edit object being added in editing area needed for selecting in the embodiment of the present invention can be client Locally stored can also be newly generated, for example:Can be the locally stored photo of client, photograph album, video, can be with For the photo or video of current shooting, current photograph album set up etc., 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 During target edit object in editing area, if detecting edit object generates instruction, the edit object of generation is obtained;By institute The edit object for stating generation is imported in 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, the edit object synchronization in target edit object selector is realized With renewal.The edit object of generation is imported to into the operation in corresponding edit object set in the embodiment of the present invention, and The state of remaining edit object in the edit object set is not affected.
Such as following application scenarios:Currently in the target edit object selector page of a social type application program, By receive user operational order, the social type application program is switched to into running background, the photographing unit started in terminal should With program, task of taking pictures is performed, is taken pictures after completing, social type application program is switched to into foreground, should 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 to needed for selecting in editing area is compiled When collecting object, if detecting edit object set generates instruction, the edit object set of generation is obtained;By the volume of the generation Volume object set is imported in edit object aggregate list, realizes the same of edit object set in target edit object selector Step and renewal.
Such as following application scenarios:Currently in the target edit object selector page of a social type application program, By receive user operational order, the social type application program is switched to into running background, into the photograph album pipe of mobile terminal Reason application program, the photograph album for detecting user's triggering set up instruction, respond the photograph album and set up instruction, create a new photograph album, After the completion of establishment, social type application program is switched to into foreground, is selected in the target edit object of the social type application program In the album list shown in selecting the device page, meeting synchronized update goes out most newly-established photograph album.
Step S140, the selected target edit object that need to be added in editing area is imported to into editing area.
The embodiment of the present invention is disclosed to import to editor by the selected target edit object that need to be added in editing area Area includes:Determine the selected target edit object that need to be added in editing area, and cache;The target recorded in caching is compiled Collect object and import to editing area.Wherein, target edit object is buffered in the embodiment of the present invention and chooses edit object memorizer In.The data maintenance for choosing edit object memorizer 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 to needed for selecting in editing area Edit object, accordingly, it would be desirable to choose edit object memorizer be responsible for safeguarding select each time needed for be added in editing area Target edit object data.After the completion of to be edited, the target edit object recorded in removing caching.
Below, by taking a picture Selection Framework as an example, describe edit object disclosed in the above embodiment of the present invention in detail The detailed process of system of selection:
Firstly, it is necessary to explanation, the above-mentioned edit object system of selection disclosed in the embodiment of the present invention is based in Fig. 3 Picture Selection Framework is realized, as shown in figure 3, in the picture Selection Framework, describing the process of picture choosing in detail.
Photo selector device A, photo selector device B, photo selector device C are multiple edit object selectores, for selecting Select photograph album and photo, and receive the interactive instruction (such as photo selection instruction) of user, and interactive instruction is transmitted to lower floor.
(photo is selected PhotoSelectServiceA in PhotoSelectService (photo selection server) layer Server A), (photo selects clothes for PhotoSelectServiceB (photo selection server B) and PhotoSelectServiceC Business device C) respectively with photo selector device A, photo selector device B, selector device C is corresponding for photo, for the photo to obtaining, phase The data maintenance of volume and the photo of photo, the photo chosen and preview that is newly generated etc., while safeguarding photo preview shape State, the complex logic for choosing quantity etc., so as to mitigate the logic of photo selector layer.
Wherein, there is identical album list manager to be selected with photograph album photo in each PhotoSelectService layer Manager is selected, and each PhotoSelectService layer can be transferred through album list manager and manager be selected with photograph album photo Select to manage each photograph album and the photo in each photograph album.Album list manager is for being mapped to photograph by the album list of acquisition The data model that piece selector layer is used, and the photo list of the specified photograph album of output, a PhotoSelectService layer An album list manager is included only.Photograph album photo selects manager to be used to be input into the specified phase of album list manager output Volume photo list, the shooting photo list then safeguarded according to the album list manager, chooses and the construction such as preview state Go out the photo list model that photo selector layer is used, each PhotoSelectservice layer is selected 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 layers Type, the operation in photo selector layer are represented using unified data model, so as to reduce logical complexity.
As shown in figure 4, internal truss frame structure figures of the Fig. 4 for PhotoSelectservice layers, main in the structured flowchart In describing PhotoSelectservice layers, PhotosManager photograph albums photo selects manager and AlbumManager photograph albums Data interaction between list manager, AlbumManager is for the photo in the specified photograph album of PhotosManager offers List, PhotosManager are used to export photo list in specified photograph album, the photo of the shooting that is stored with PhotosManager, The photo chosen, the photo of preview, the photo specified in photograph album etc..
As shown in figure 5, the overall situation is described in Fig. 5 chooses photo management device with PhotoSelectService layers and photo Data exchange process between selector layer, the overall situation are chosen photo management device and 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 be called and be not carried out selection operation Photo selector, the photo being added to needed for selecting in editing area, accordingly, it would be desirable to the overall situation chooses photo management device to be responsible for safeguarding every The photo being added in editing area needed for once selecting.The overall situation chooses the photo management device will be from PhotoSelectService The photo chosen in layer is stored in global listings, and by the photo output chosen stored in global listings to picture editor Area.
For example:User have selected three photos when first entering into the photo selector page, subsequently into picture editor area; A photo is selected into the picture selector page once more, then has been edited to picture editor area;Found there be pictures later Editor is needed, then user is re-introduced into the picture selector page and is selected, can be presented on the picture selector page complete Portion's photo or album list, user specify certain photograph album, now show certain photograph album on the picture selector page Photo.
As shown in fig. 6, album data is described in Fig. 6 reads the data between framework and PhotoSelectService layers Interaction.Album data reads framework and is mainly used to provide photograph meta data, Yi Jijie to PhotoSelectService layers PhotoSelectService layers are received to data accesses such as the requests of picture.For iOS8 systems framework used below: AssetsLibrary.For iOS8 and above PhotoKit frameworks used above.Album data read framework to PhotoSelectService layers provide photograph meta data at least to be included:Album list, photo list, specify photo, in photograph album More new photo etc..
It should be noted that between PhotoSelectService layers and photo selector layer in the embodiment of the present invention Data interaction framework is as shown in fig. 7, show the data between PhotoSelectService layers and photo selector layer in Fig. 7 Interaction.
PhotoSelectService layers for from picture selector layer receive user interactive operation instruct (such as take pictures, Photograph album etc. is chosen and switched to photo preview, photo), and the interactive operation instruction according to user provides service for picture selector Interface, wherein, providing service interface for picture selector includes:There is provided specify photograph album photo list, provide all album lists, Photograph album or the photo list in the specified photograph album of renewal are updated, picture selector can be connect from PhotoSelectService layer services Mouth obtains the service data of above-mentioned service interface offer and is shown.
Optionally, the interactive operation instruction of the user that picture selector layer is produced can be encapsulated in realization The data model of GBLSelectorOperation agreements is (for example:Album data model GBLPhotoAlbumModel, number of pictures According to model GBLPhotoModel) in.
Below, by taking a concrete application scene as an example, describe edit object disclosed in the above embodiment of the present invention in detail The detailed process of system of selection:
Fig. 8 shows picture selector experience flow process in an application program disclosed in the embodiment of the present invention, with reference to Fig. 8 institutes Show, user enters the application program first, the picture and text button triggered on the figure of the first row leftmost side first enters into picture selector, User selects pictures, and then in user's triggering the first row middle graph, picture selects the imaging icon opening mobile phone phase in the page 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 editing the picture 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 now feels picture not enough, and And and be not desired to abandon the picture of this editor, then user can trigger the "+" number of the centre in the picture of the first row rightmost side again The secondary picture that enters into selects the page (the second row middle graph), user to select shooting photo to enter edlin as the photo chosen again (default total quantity for choosing photo is less than 6).
User can also be triggered in the first row middle graph " whole photos ", can now list album list, Yong Huke To specify a photograph album to show in selector, and can equally complete to choose the task of shooting photo.
It should be noted that the picture selector page can be that picture shown in Fig. 9 is selected in application program shown in Fig. 8 Half screen of device experiences page schematic diagram, can experience the full frame experience page of picture selector shown in Figure 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, needed for selecting, is being added to editor Before target edit object in area, also include:The target edit object selector is called, from the edit object data base The process of middle loading edit object.Figure 11 calls the target edit object selector for one kind provided in an embodiment of the present invention, The method flow diagram of edit object is loaded from the edit object data base, with reference to Figure 11, the method can include:
S200, target edit object selector obtain edit object database-access rights;
It should be noted that target edit object selector only obtains edit object data base visit in the embodiment of the present invention After asking authority, in each edit object set stored during edit object data base could be accessed and edit object set Edit object, each edit object set in edit object data base 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 Collect object to be all distributed in each self-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 data base;
Before target edit object selector before access request is sent to edit object data base needed to empty or reset The access request for once sending, for example:Empty or reset the access request parameters of last transmission.
S220, the target edit object selector load edit object metadata from the edit object data base;
The edit object metadata is used to describe the attribute of the edit object, be mainly used for describing picture and/or The base attribute of video, such as:Pixel, resolution, size, color, locating depth, hue, saturation, intensity, color channel, video are long Degree and audio frequency etc., the embodiment of the present invention is not specifically limited.
It should be noted that in the embodiment of the present invention, in order to quickly load edit object, the waiting time of user is reduced, The target edit object selector first can load the edit object unit number of predetermined number from the edit object data base According to, all edit object metadata are being loaded from the edit object data base then, such as first 100 pictures of prestrain are carried out Show, then in the remaining picture of loading.
It is edit object metadata due to what is loaded in the embodiment of the present invention, and edit object metadata is compiled for describing The attribute data of object is collected, is not edit object itself, for loading edit object itself, accounting for for internal memory can be reduced With the loading velocity of raising edit object.Especially with the edit object preserved in client quantity on thousand of Be raised to it is up to ten thousand, it is tens of thousands of or even more often, using above-mentioned loading method disclosed in the embodiments of the present invention, can be effective Improve the loading performance of edit object.
Optionally, Figure 12 calls the target edit object selector for one kind provided in an embodiment of the present invention, selects institute The method flow diagram of the target edit object that need to be added in editing area, with reference to Figure 12, the method can include:
S300, target edit object selector are according to user's selection instruction, the target being added to needed for obtaining in editing area Edit object index value;
According to the selection instruction of user, the required target edit object index being added in editing area that user selects is extracted Value.
S310, target edit object selector obtain the corresponding target edit object unit of the target edit object index value Data;
The destination object metadata is identified using identical index value with corresponding destination object.
S320, target edit object selector are added to editor needed for generating according to the target edit object metadata Preview target edit object in area.
The preview target edit object is obtained after process is compressed 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 in editing area carries out cutting or carries out quality compression, the preview being added in editing area needed for obtaining Target edit object.Wherein, specifically can be according to the size dimension of client display screen, the overall frame to target edit object Frame carries out cutting, changes the size of target edit object, for picture can carry out image matter on the premise of definition is ensured Amount compression, obtain high definition preview graph, due to high definition preview graph full figure is carried out cutting or quality compression obtain, can protect On the premise of card definition, EMS memory occupation is further reduced.
Optionally, Figure 13 calls the target edit object selector for one kind provided in an embodiment of the present invention, selects institute The target edit object that need to be added in editing area, the selected target edit object that need to be added in editing area is imported to The method flow diagram of editing area, with reference to Figure 13, the method can include:
S400, target edit object selector are according to user's selection instruction, the target being added to needed for obtaining in editing area Edit object index value;
According to the selection instruction of user, the required target edit object index being added in editing area that user selects is extracted Value.
S410, target edit object selector obtain the corresponding target edit object unit of the target edit object index value Data;
The destination object metadata is identified using identical index value with corresponding destination object.
S420, target edit object selector are added to editor needed for generating according to the target edit object metadata Preview target edit object in area;
Whether the preview target edit object being added in editing area needed for S430, judgement needs currently to be previewed or quilt Choose;If it is, performing S440;
S440, will need currently to be previewed or selected preview target edit object is labeled as preview or chooses shape State;
S450, the preview target edit object for being labeled as preview or selected state is imported to into editing area shown;
S460, the screen scroll instruction for judging whether to receive user input;If it is, performing S470;Otherwise, tie Beam.
S470, foundation roll instruction, discharge the preview target edit object being displayed in outside screen, recalculate current screen Curtain needs the target edit object index value of loaded and displayed, and returns execution S410.
Below, with specific application scenarios, compiled by loading in describing embodiment of the present invention above-described embodiment in detail Object metadata is collected, and according to the target edit object metadata, the preview target being added to needed for generating in editing area The selected preview target edit object that need to be added in editing area is imported to the mode of editing area by edit object, for The occupancy of internal memory is reduced, the effect produced in terms of the loading velocity and loading performance that improve edit object shows.
In this application scenarios, using test data as shown in Figure 14, each phase in the test data, is illustrated Number of pictures and total number of pictures in volume, the number of pictures in rubber volume are 9529, the photo in my photo stream Quantity is 922 etc., is respectively show after being optimized using the technical scheme in the embodiment of the present invention in Figure 15 and Figure 16 EMS memory occupation situation during and startup time-consuming with the client terminal start-up before optimization, from Figure 15 and Figure 16, using of the invention real Apply the technical scheme in example and be optimized the startability of rear client and improve 4.42 times, EMS memory occupation is reduced during startup 7.28%.
Illustrate in Figure 17 Enter the time-consuming situation of the target edit object selector page (entering selected figure interface), it is known that, using in the embodiment of the present invention Technical scheme is optimized rear client and improves 4.1 times into the performance of the target edit object selector page, EMS memory occupation drop It is low by 35.71%.
Illustrate in Figure 18 Enter the EMS memory occupation situation of the target edit object selector page (entering selected figure interface), it is known that, using the embodiment of the present invention In technical scheme be optimized after, in the target edit object selector page, all target edit objects all rotate out screen EMS memory occupation reduces by 35.06%.
Illustrate in Figure 19 Enter picture editor area committed memory situation, it is known that, before optimization, the data from figure are can be seen that with choosing number of pictures Increase, the occupancy of internal memory is substantially linear growth, and reason is that the memory headroom that each full figure takes is too big, if picture Quantity increase will certainly excessively cause system send internal memory warning, application crash.After optimization, as can be seen from the figure With the increase of picture number, the occupancy situation of internal memory is substantially held stationary, this is because in prioritization scheme, loading out Picture is high definition preview graph, and is not full figure, but the EMS memory occupation very little of these preview graphs, and definition has substantially no effect on use Experience at family.
Below edit object selecting device provided in an embodiment of the present invention is introduced, edit object choosing described below Selecting device can be with edit object system of selection above mutually to should refer to.
Figure 20 is the structured flowchart of edit object selecting device provided in an embodiment of the present invention, and with reference to Figure 20, the editor is right As selecting device can include:
Pre-selection edit object import modul 100, it is for the edit object being pre-selected is imported in editing area, described advance The edit object of selection imports editing area after at least one of multiple edit object selectores for pre-seting are selected;
Edit object adds command reception module 110, for edit object addition instruction is received in editing area;
Target edit object selector selecting module 120, for instructing according to edit object addition, from what is pre-seted The target edit object selector for being not carried out selection operation is selected in multiple edit object selectores, each edit object is selected Device is respectively provided with the ability that all edit objects are carried out with selection;
Target edit object selecting module 130, for calling the target edit object selector, is added to needed for selecting 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 Import to editing area.
Based on above-mentioned edit object selecting device embodiment, the present invention can also be from selection suitable element composition in lower module New edit object selecting device, the associated description that concrete composition mode can be in corresponding method embodiment are determined, this enforcement Example is repeated 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 is imported to Collect in object memories;
Second import modul, for the target edit object chosen in edit object memorizer is imported to editor Area.
The target edit object selector is being called by target edit object selecting module, needed for selecting, is being added to volume When collecting the target edit object in area, also include:
Edit object acquisition module is generated, for when edit object generation instruction is detected, then obtaining the editor of generation Object;
3rd import modul, for the edit object of the generation is imported in corresponding edit object set.
The target edit object selector is being called by target edit object selecting module, needed for selecting, is being added to volume When collecting the target edit object in area, also include:
Edit object set acquisition module is generated, for when edit object set generation instruction is detected, then obtaining life Into edit object set;
4th import modul, for the edit object set of the generation is imported in edit object aggregate list.
The target edit object selector selecting module includes:
Target edit object selector selects submodule, for instructing according to edit object addition, according to described each The call sequence of individual edit object selector, selects from multiple edit object selectores of preset value and is not carried out selection operation Target edit object selector, an edit object selector only can be selected in corresponding call sequence.Also include:
Edit object load-on module, for calling the target edit object selector, from the edit object data base Middle loading edit object.
The edit object load-on module includes:
Access rights acquisition module, for obtaining edit object database-access rights;
Access request sending module, for sending access request to the edit object data base;
Edit object metadata load-on module, for edit object metadata is loaded from the edit object data base, The edit object metadata is used for the attribute for describing the edit object.
The target edit object selecting module includes:
Target edit object index value acquisition module, for according to user's selection instruction, being added to editing area needed for obtaining In target edit object index value;
Target edit object metadata acquisition module, compiles for obtaining the corresponding target of the target edit object index value Collect object metadata;
Preview target edit object generation module, for according to the target edit object metadata, adding needed for generating Preview target edit object in editing area, the preview target edit object are that the target edit object is compressed Obtain after process.
The preview target edit object generation module includes:
Preview target edit object generates submodule, for according to the target edit object metadata, by required addition Target edit object in editing area carries out cutting or carries 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 imports to editing area.
Optionally, edit object selecting device can be hardware device, and it is right that above-described module can be arranged at editor As the functional module in selecting device.Figure 21 shows the hardware block diagram of edit object selecting device, with reference to Figure 21, editor Object selecting device can include:Processor 1, communication interface 2, memorizer 3 and communication bus 4;Wherein processor 1, communication connects Mouth 2, memorizer 3 completes mutual communication by communication bus 4;Optionally, communication interface 2 can be connecing for communication module Mouth, the such as interface of gsm module;
Processor 1, for configuration processor;Memorizer 3, for depositing program;Program can include program code, the journey Sequence code includes computer-managed instruction;
The possibly central processor CPU of processor 1, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement one or more integrated electricity of the embodiment of the present invention Road;Memorizer 3 may include high-speed RAM memorizer, it is also possible to also including nonvolatile memory (non-volatile Memory), for example, at least one disk memory.
Wherein, program can be specifically for:
The edit object being pre-selected is imported in editing area, the edit object being pre-selected is more by what is pre-seted One in individual edit object selector imports editing area after selecting;
Edit object addition instruction is received in editing area;
Instruct according to edit object addition, select from the multiple edit object selectores for pre-seting and be not carried out choosing The target edit object selector of operation is selected, each edit object selector is respectively provided with 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 to needed for selecting in editing area;
The selected target edit object that need to be added in editing area is imported to into editing area.
In sum:
A kind of edit object system of selection and relevant apparatus are disclosed in the embodiment of the present invention, including:Lead in editing area Enter the edit object being pre-selected, the edit object being pre-selected passes through in the multiple edit object selectores for pre-seting Editing area is imported after one selection;Edit object addition instruction is received in editing area;Instruct according to edit object addition, The target edit object selector for being not carried out selection operation is selected from the multiple edit object selectores for pre-seting, each volume Collect object selector and be respectively provided with 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 selectores are pre-seted, by referring to according to edit object addition Order, selects the target edit object selector selection for being not carried out selection operation from the multiple edit object selectores for pre-seting The required target edit object being added in editing area simultaneously imports to editing area, it is achieved thereby that continuing to select which in editing area His edit object enters edlin.
In this specification, each embodiment is described by the way of progressive, and what each embodiment was stressed is and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For, as which corresponds to the method disclosed in Example, so description is fairly simple, related part is said referring to method part It is bright.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and The interchangeability of software, generally describes the composition and step of each example in the above description according to function.These Function actually with hardware or software mode performing, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can use different methods to realize described function to each specific application, but this realization should not Think beyond the scope of this invention.
The step of method described with reference to the embodiments described herein or algorithm, directly can be held with hardware, processor Capable software module, or the combination of the two is implementing.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, depositor, 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 professional and technical personnel in the field to realize or using the present invention. Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope for causing.

Claims (20)

1. a kind of edit object system of selection, it is characterised in that include:
The edit object being pre-selected is imported in editing area, the edit object being pre-selected passes through the multiple volumes for pre-seting Collect after at least one of object selector is selected and import editing area;
Edit object addition instruction is received in editing area;
Instruct according to edit object addition, select from the multiple edit object selectores for pre-seting and be not carried out selecting behaviour The target edit object selector of work, each edit object selector are respectively provided with the ability that all edit objects are carried out with selection;
The target edit object selector is called, the target edit object being added to needed for selecting in editing area;
The selected target edit object that need to be added in editing area is imported to into editing area.
2. method according to claim 1, it is characterised in that described by the selected target that need to be added in editing area Edit object imports to editing area to be included:
Determine the selected target edit object that need to be added in editing area, and cache;
The target edit object recorded in caching is imported to into editing area.
3. method according to claim 1, it is characterised in that calling the target edit object selector, selecting institute During the target edit object that need to be added in editing area,
If detecting edit object generates instruction, the edit object of generation is obtained;
The edit object of the generation is imported in corresponding edit object set.
4. method according to claim 1, it is characterised in that calling the target edit object selector, selecting institute During the target edit object that need to be added in editing area,
If detecting edit object set generates instruction, the edit object set of generation is obtained;
The edit object set of the generation is imported in edit object aggregate list.
5. method according to claim 1, it is characterised in that described to instruct according to edit object addition, from default Select in the multiple edit object selectores put and be not carried out the target edit object selector of selection operation and include:
Instruct according to edit object addition, 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 is selected in multiple edit object selectores, an edit object is selected Device only can be selected in corresponding call sequence.
6. method according to claim 1, it is characterised in that calling the target edit object selector, selecting institute Before the target edit object in editing area need to be added to, also include:
The target edit object selector is called, and edit object is loaded from the edit object data base.
7. method according to claim 6, it is characterised in that described to call the target edit object selector, from institute Edit object is loaded in stating edit object data base includes:
The target edit object selector obtains edit object database-access rights;
The target edit object selector sends access request to the edit object data base;
The target edit object selector loads edit object metadata from the edit object data base, and the editor is right Object metadata is used for the attribute for describing the edit object.
8. method according to claim 7, it is characterised in that described to call the target edit object selector, selects 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 to needed for obtaining in editing area;
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 to needed for generating in editing area is described Preview target edit object is obtained after process is compressed to the target edit object.
9. method according to claim 8, it is characterised in that described according to the target edit object metadata, generates The required preview target edit object being added in editing area includes:
According to the target edit object metadata, by the required target edit object being added in editing area carry out cutting or Quality compression is carried out, the preview target edit object being added in editing area needed for obtaining.
10. method according to claim 8, it is characterised in that described by the selected mesh that need to be added in editing area Mark edit object imports to editing area to be included:
The selected preview target edit object that need to be added in editing area is imported to into editing area.
11. a kind of edit object selecting devices, it is characterised in that include:
Pre-selection edit object import modul, it is for importing the edit object being pre-selected in editing area, described to be pre-selected Edit object imports editing area after at least one of multiple edit object selectores for pre-seting are selected;
Edit object adds command reception module, for edit object addition instruction is received in editing area;
Target edit object selector selecting module, for instructing according to edit object addition, from the multiple volumes for pre-seting The target edit object selector for being not carried out selection operation is selected in collecting object selector, each edit object selector has Have carries out the ability of selection to all edit objects;
Target edit object selecting module, for calling the target edit object selector, is added to editing area needed for selecting In target edit object;
Target edit object import modul, for the selected target edit object that need to be added in editing area is imported to volume Collect area.
12. devices according to claim 11, it is characterised in that the target edit object import modul includes:
First import modul, chooses editor right for the selected target edit object that need to be added in editing area is imported to As in memorizer;
Second import modul, for the target edit object chosen in edit object memorizer is imported to editing area.
13. devices according to claim 11, it is characterised in that described being called by target edit object selecting module Target edit object selector, when being added to the target edit object in editing area needed for selecting, also includes:
Edit object acquisition module is generated, for when edit object generation instruction is detected, then obtaining the edit object of generation;
3rd import modul, for the edit object of the generation is imported in corresponding edit object set.
14. devices according to claim 11, it is characterised in that described being called by target edit object selecting module Target edit object selector, when being added to the target edit object in editing area needed for selecting, also includes:
Edit object set acquisition module is generated, for when edit object set generation instruction is detected, then obtaining what is generated Edit object set;
4th import modul, for the edit object set of the generation is imported in edit object aggregate list.
15. devices according to claim 11, it is characterised in that the target edit object selector selecting module bag Include:
Target edit object selector selects submodule, for instructing according to edit object addition, according to described each volume The call sequence of object selector is collected, the mesh for being not carried out selection operation is selected from multiple edit object selectores of preset value Mark edit object selector, an edit object selector only can be selected in corresponding call sequence.
16. devices according to claim 11, it is characterised in that also include:
Edit object load-on module, for calling the target edit object selector, adds from the edit object data base Carry edit object.
17. devices according to claim 16, it is characterised in that the edit object load-on module includes:
Access rights acquisition module, for obtaining edit object database-access rights;
Access request sending module, for sending access request to the edit object data base;
Edit object metadata load-on module, it is for edit object metadata is loaded from the edit object data base, described Edit object metadata is used for the attribute for describing the edit object.
18. devices according to claim 17, it is characterised in that the target edit object selecting module includes:
Target edit object index value acquisition module, for according to user's selection instruction, being added in editing area needed for obtaining Target edit object index value;
Target edit object metadata acquisition module, for obtaining the corresponding target editor couple of the target edit object index value Object metadata;
Preview target edit object generation module, for according to the target edit object metadata, being added to volume needed for generating The preview target edit object in area is collected, and the preview target edit object is process to be compressed to the target edit object Obtain afterwards.
19. devices according to claim 18, it is characterised in that the preview target edit object generation module includes:
Preview target edit object generates submodule, for according to the target edit object metadata, being added to volume by required The target edit object collected in area carries out cutting or carries out quality compression, the preview target being added in editing area needed for obtaining Edit object.
20. devices according to claim 18, it is characterised 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 Import to 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 true CN106527891A (en) 2017-03-22
CN106527891B 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)

Cited By (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
CN111324249A (en) * 2020-01-21 2020-06-23 北京达佳互联信息技术有限公司 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

Cited By (4)

* 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
CN111324249A (en) * 2020-01-21 2020-06-23 北京达佳互联信息技术有限公司 Multimedia material generation method and device and storage medium
US11188203B2 (en) 2020-01-21 2021-11-30 Beijing Dajia Internet Information Technology Co., Ltd. Method for generating multimedia material, apparatus, and computer storage medium

Also Published As

Publication number Publication date
CN106527891B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN100429660C (en) Information processing apparatus and method, and program used therewith
CN103020076B (en) Dynamic preview method and device for player video file
JP5903187B1 (en) Automatic video content generation system
CN104823157B (en) For the system and method for the dynamic elasticity for providing liaison centre's resource
US20160203134A1 (en) Processing media items in location-based groups
CN106599208A (en) Content sharing method and user client
CN103947217B (en) Image management method and image management system
CN103336691A (en) Dynamic layout method and system based on Android
CN103929558B (en) Image processing system
US7423771B2 (en) On-demand image delivery server, image resource database, client terminal, and method of displaying retrieval result
US7606903B2 (en) Data storage device and data storage method with network access management
CN106527891B (en) A kind of edit object selection method and relevant apparatus
KR20020007945A (en) Enlarged Digital Image Providing Method and Apparatus Using Data Communication Networks
CN107291736A (en) A kind of method and system of edit page
KR100845815B1 (en) Method for producing the mutimedia contents
CN105578304A (en) Live broadcast method and live broadcast system of terminal device
CN102810099B (en) The storage method and device of augmented reality view
CN108038779A (en) Video face label identity checking method, device, equipment and readable storage medium storing program for executing
KR20130118580A (en) Method and apparatus for providing contents based on voice call
CN104239527A (en) Method, device and terminal for screening pictures
CN109618003A (en) A kind of servers' layout method, server and storage medium
JP2005033619A (en) Contents management device and contents management method
CN108268499A (en) A kind of Webpage display process and device
KR100882250B1 (en) A method for combining dynamic virtual image
CN108228477A (en) It is a kind of that the method and system of operation data are obtained based on memory capacity

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