CN116126233A - Data processing method, device, equipment and medium - Google Patents

Data processing method, device, equipment and medium Download PDF

Info

Publication number
CN116126233A
CN116126233A CN202211675849.XA CN202211675849A CN116126233A CN 116126233 A CN116126233 A CN 116126233A CN 202211675849 A CN202211675849 A CN 202211675849A CN 116126233 A CN116126233 A CN 116126233A
Authority
CN
China
Prior art keywords
program
resource
storage
stored
storage space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211675849.XA
Other languages
Chinese (zh)
Inventor
欧阳其平
叶金湖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huidu Technology Co ltd
Original Assignee
Shenzhen Huidu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Huidu Technology Co ltd filed Critical Shenzhen Huidu Technology Co ltd
Priority to CN202211675849.XA priority Critical patent/CN116126233A/en
Publication of CN116126233A publication Critical patent/CN116126233A/en
Pending legal-status Critical Current

Links

Images

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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/08Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers from or to individual record carriers, e.g. punched card, memory card, integrated circuit [IC] card or smart card
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data processing method, a device, equipment and a medium, wherein the method comprises the following steps: acquiring a program list to be stored and media resources of each program in the program list to be stored; if the external storage mode is not preset, determining the resource storage position of each media resource from the external storage space and the internal storage space according to the residual space size of the internal storage space; determining a program list storage position of a program list to be stored in the internal storage space according to the space category of each resource storage position; storing the corresponding media assets in the asset storage location and storing the program listings to be stored in the program listing storage location. According to the technical scheme, if the external storage mode is not preset, the resource storage position and the program list storage position of the media resources of each program in the program list can be flexibly determined according to the residual space size of the internal storage space, and the storage requirements of different program lists and different media resources can be met.

Description

Data processing method, device, equipment and medium
Technical Field
The embodiment of the application relates to the technical field of data processing, in particular to a data processing method, a device, equipment and a medium.
Background
As the resolution and fineness of media assets continue to increase, the size of space required by media assets is also increasing. When the space size of the internal storage space for storing the media resources is limited, it is difficult to store the entire media resources, and it is necessary to introduce an external storage space. Therefore, how to flexibly store each media resource into the internal storage space and the external storage space so as to meet the storage requirements of different media resources is very important.
Disclosure of Invention
The application provides a data processing method, a device, equipment and a medium, so as to flexibly determine a resource storage position and a program list storage position and meet the storage requirements of different program lists and different media resources.
In a first aspect, an embodiment of the present application provides a data processing method, including:
acquiring a program list to be stored and media resources of each program in the program list to be stored;
if the external storage mode is not preset, determining the resource storage position of each media resource from the external storage space and the internal storage space according to the residual space size of the internal storage space;
determining a program list storage position of a program list to be stored in the internal storage space according to the space category of each resource storage position;
Storing the corresponding media assets in the asset storage location and storing the program listings to be stored in the program listing storage location.
In a second aspect, embodiments of the present application further provide a data processing apparatus, including:
the program list acquisition module is used for acquiring the program list to be stored and the media resources of each program in the program list to be stored;
the resource storage position determining module is used for determining the resource storage position of each media resource from the external storage space and the internal storage space according to the residual space size of the internal storage space if the external storage mode is not preset;
the program list storage position determining module is used for determining the program list storage position of the program list to be stored in the internal storage space according to the space category of each resource storage position;
and the media resource storage module is used for storing corresponding media resources in the resource storage position and storing the program list to be stored in the program list storage position.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a data processing method of any one of the embodiments of the present application.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium storing computer instructions for causing a processor to execute a data processing method according to any one of the embodiments of the present application.
According to the embodiment of the application, the program list to be stored and the media resources of all programs in the program list to be stored are obtained; if the external storage mode is not preset, determining the resource storage position of each media resource from the external storage space and the internal storage space according to the residual space size of the internal storage space; determining a program list storage position of a program list to be stored in the internal storage space according to the space category of each resource storage position; storing the corresponding media assets in the asset storage location and storing the program listings to be stored in the program listing storage location. According to the technical scheme, if the external storage mode is not preset, the resource storage position and the program list storage position of the media resources of each program in the program list can be flexibly determined according to the residual space size of the internal storage space, and the storage requirements of different program lists and different media resources can be met.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
Fig. 1 is a flowchart of a data transmission method in a first embodiment of the present application;
fig. 2 is a flowchart of a data transmission method in a second embodiment of the present application;
fig. 3 is a flowchart of a data transmission method in a third embodiment of the present application;
fig. 4 is a block diagram of a data transmission device in a fourth embodiment of the present application;
fig. 5 is a block diagram of an electronic device implementing a data transmission method according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In addition, it should be noted that, in the technical scheme of the present invention, the related processes of using, processing, transmitting, providing, disclosing, etc. the data of the program list to be stored all conform to the regulations of the related laws and regulations, and do not violate the popular regulations.
Example 1
Fig. 1 is a flowchart of a data processing method provided in an embodiment of the present application, where the embodiment is applicable to a case of storing a program to be stored and media resources of each program in the program to be stored, the data processing method may be performed by a data processing apparatus, the data processing apparatus may be implemented in a form of hardware and/or software, and the data processing may be configured in an electronic device. In an alternative embodiment, the electronic device may be a program presentation device, such as an advertiser.
As shown in fig. 1, the method includes:
s101, acquiring a program list to be stored, and acquiring media resources of each program in the program list to be stored.
In this embodiment, the program list may be a collection of one or more programs, in which the play order of each program is recorded; the program list to be stored is the program list to be stored at this time; a program may be a collection of at least one media asset; media assets can include, but are not limited to, video assets, picture assets, text assets, and the like. It should be noted that, the method for acquiring the program to be stored and the media resources of each program in the program to be stored is not limited in the present application.
In a specific embodiment, the program to be stored and the media resources in the program to be stored may be prefabricated and stored in a terminal device, and the terminal device may be a PC (Personal Computer ), a mobile phone, a server, and the like. And acquiring the program list to be stored and the media resources in the program list to be stored from the terminal equipment in a network transmission mode.
S102, if the external storage mode is not preset, determining the resource storage position of each media resource from the external storage space and the internal storage space according to the residual space size of the internal storage space.
In this embodiment, the external storage mode may be understood as a preset mode of storing media resources in an external storage space. The external storage space may be a storage space of an external storage medium connected to an electronic device implementing the data processing method of the embodiment of the present application, and for example, the external storage medium may be an SD card (Secure Digital Memory Card, secure memory card), a USB (Universal Serial Bus ) flash disk, a removable hard disk, or the like. The internal storage space may be a storage space of an electronic device implementing the data processing method of the embodiment of the present application; the size of the remaining space may be the size of unoccupied space in the storage space; the resource storage locations may be locations in the corresponding storage space where media resources are stored.
Specifically, if the external storage mode is not preset, the resource storage position of each media resource in the internal storage space and/or the external storage space is determined according to the residual space size of the internal storage space.
In an alternative embodiment, if the external storage mode is preset and the size of the remaining space of the external storage space is greater than or equal to the size of the space required to be occupied by each media resource, then the resource storage location of each media resource is determined from the external storage space.
In another alternative embodiment, if the external storage mode is preset and the remaining space size of the external storage space is smaller than the space size required to occupy each media resource, the resource storage location of each media resource is determined from the external storage space and the internal storage space.
S103, determining the program list storage position of the program list to be stored in the internal storage space according to the space category of each resource storage position.
In this embodiment, the space class may be a class of a storage space corresponding to the resource storage location, including, but not limited to, an internal storage space class and an external storage space class; the internal storage space class may be used to characterize the resource storage location as a resource storage location in the internal storage space; the external storage space class may be used to characterize the resource storage locations including the resource storage locations in the external storage space; the program guide storage location may be a location in the internal storage space where a program guide to be stored is stored.
S104, storing corresponding media resources in the resource storage position, and storing the program list to be stored in the program list storage position.
According to the embodiment of the application, the program list to be stored and the media resources of all programs in the program list to be stored are obtained; if the external storage mode is not preset, determining the resource storage position of each media resource from the external storage space and the internal storage space according to the residual space size of the internal storage space; determining a program list storage position of a program list to be stored in the internal storage space according to the space category of each resource storage position; storing the corresponding media assets in the asset storage location and storing the program listings to be stored in the program listing storage location. According to the technical scheme, if the external storage mode is not preset, the resource storage position and the program list storage position of the media resources of each program in the program list can be flexibly determined according to the residual space size of the internal storage space, the storage requirements of different program lists and different media resources can be met, and the convenience and the expandability of storing related data of the program list are improved.
Example two
Fig. 2 is a flowchart of a data processing method according to a second embodiment of the present application, where the determining operation of the resource storage location of each media resource is optimized and improved based on the foregoing embodiments.
Further, the resource storage position of each media resource is determined from the external storage space and the internal storage space according to the residual space size of the internal storage space and is thinned into the program attribute information of each program in the stored program list if the residual space size of the internal storage space is smaller than the required space size of each media resource in the program list to be stored; and determining the resource storage position' of the corresponding media resource of each program from the external storage space and the internal storage space according to the program attribute information of each program so as to perfect the determination operation of the resource storage position of each media resource.
It should be noted that, in the embodiments of the present application, parts not described in detail may be referred to the related expressions of other embodiments, which are not described herein.
As shown in fig. 2, the method includes:
s201, acquiring a program list to be stored, and acquiring media resources of each program in the program list to be stored.
S202, if the external storage mode is not preset, if the residual space size of the internal storage space is smaller than the required space size of each media resource in the program list to be stored, acquiring the program attribute information of each program in the stored program list.
In this embodiment, the required space size may be the space size occupied by the media resources, and the program attribute information may include, but is not limited to, a program name, a program number, a program sequence, a required space size of each media resource corresponding to the program, and the like.
In an alternative embodiment, if the size of the remaining space of the internal storage space is greater than or equal to the size of the required space of each media resource in the program to be stored, the resource storage location of each media resource is determined from the internal storage space.
S203, determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information of each program.
Optionally, determining, according to the program attribute information of each program, a resource storage location of a media resource corresponding to each program from an external storage space and an internal storage space, includes: determining a program attribute field according to the currently selected automatic storage strategy; and determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information corresponding to the program attribute field.
The automatic storage strategy can be a strategy for automatically storing media resources corresponding to each program; the program attribute field may be a field in program attribute information. It should be noted that the automatic storage policy may be set by a technician according to actual requirements and practical experience, and the application is not limited to the automatic storage policy.
Specifically, according to the currently selected automatic storage strategy, determining a program attribute field corresponding to the currently selected automatic storage strategy; and determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information corresponding to the program attribute field and the currently selected automatic storage strategy.
It can be understood that by adopting the technical scheme, the program attribute field is determined according to the automatic storage strategy, and the resource storage position is determined according to the program attribute information corresponding to the program attribute field, so that the resource storage position of the media resources of each program can be flexibly determined, the diversity of the media resource storage is improved, and the personalized media resource storage requirement can be met.
Optionally, determining the program attribute field according to the currently selected automatic storage policy includes: if the currently selected automatic storage strategy is stored according to the program sequence, determining the program attribute field as the program sequence; correspondingly, determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information corresponding to the program attribute field comprises the following steps: according to the program sequence of each program in the program list to be stored, sequentially determining the media resources stored in the internal storage space and the media resources stored in the external storage space.
Specifically, according to the program sequence in the program attribute information of each program in the program list to be stored, the media resources of the programs with the front program sequence are sequentially determined to be stored in the internal storage space until the residual space size of the internal storage space is smaller than the required space size of each media resource of the next program, and each media resource of the residual program is determined to be stored in the external storage space.
It can be understood that by adopting the above technical scheme, according to the automatic storage strategy stored according to the program sequence, the media resources stored in the internal storage space and the media resources stored in the external storage space are sequentially determined, so that the storage positions of the media resources are strongly associated with the program sequence, and the convenience of searching and acquiring the corresponding media resources of the program is improved when the program is played according to the corresponding program.
Optionally, determining the program attribute field according to the currently selected automatic storage policy includes: if the currently selected automatic storage strategy is stored according to the size of the media resource, determining the attribute field of the program as the size of the media resource; correspondingly, determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information corresponding to the program attribute field comprises the following steps: according to the media resource size of the media resources corresponding to each program in the program list to be stored, sequentially determining the media resources stored in the internal storage space and the media resources stored in the external storage space.
Specifically, according to the media resource sizes of corresponding media resources in the program attribute information of each program in the program list to be stored, sequentially determining the media resources with smaller media resources as being stored in the internal storage space until the residual space size of the internal storage space is smaller than the required space size of each media resource of the next program, and determining each media resource of the residual program as being stored in the external storage space, thereby ensuring that the internal storage space stores as many programs as possible, and avoiding the situation that the external storage space cannot be used due to accidental damage or loss of external storage equipment, thereby influencing the acquisition of the stored media resources.
It can be understood that by adopting the above technical scheme, according to the automatic storage strategy stored according to the size of the media resource, the media resource stored in the internal storage space and the media resource stored in the external storage space are sequentially determined, so that the storage position of the media resource is strongly associated with the size of the media resource, the storage of the media resource with the number as much as possible in the storage space where more programs are expected to be stored is ensured, and the flexibility of the storage of the media resource is improved.
S204, determining the program list storage position of the program list to be stored in the internal storage space according to the space category of each resource storage position.
S205, storing corresponding media resources in a resource storage position and storing a program list to be stored in a program list storage position.
In the embodiment of the application, if the size of the remaining space of the internal storage space is smaller than the size of the required space of each media resource in the program list to be stored, acquiring the program attribute information of each program in the stored program list; and determining the resource storage position of the corresponding media resource of each program from the external storage space and the internal storage space according to the program attribute information of each program. By adopting the technical scheme, the program attribute information is acquired, and the resource storage position is determined according to the program attribute information, so that the resource storage position of the media resources of each program in the program list can be flexibly determined, the diversity of the media resource storage is improved, and the storage requirements of the media resources of different program lists can be met.
Example III
Fig. 3 is a flowchart of a data processing method according to a third embodiment of the present application, where additional optimization is performed based on the above embodiments.
Further, the "program list storage position" is thinned into an "internal program list storage position or an external program list storage position"; correspondingly, after storing corresponding media resources in a resource storage position and storing program lists to be stored in a program list storage position, adding the program list to be output from different program list storage positions according to the storage time information of the stored program list; according to the program sequence of each program in the program list to be output, acquiring and outputting the corresponding media resource from the resource storage position of the corresponding media resource of each program so as to realize the output operation of each media resource in the program list to be output.
It should be noted that, in the embodiments of the present application, parts not described in detail may be referred to the related expressions of other embodiments, which are not described herein.
As shown in fig. 3, the method includes:
s301, acquiring a program list to be stored, and acquiring media resources of each program in the program list to be stored.
S302, if the external storage mode is not preset, determining the resource storage position of each media resource from the external storage space and the internal storage space according to the residual space size of the internal storage space.
S303, determining a program list storage position of a program list to be stored in an internal storage space according to the space category of each resource storage position; the program list storage position is an internal program list storage position or an external program list storage position.
In this embodiment, the internal program storage locations may be resource storage locations of media resources of each program, which are all storage locations of program listings in the internal storage space; the storage position of the affiliated program list can be a resource storage position with program media resources and a storage position of the program list with an external storage space category.
Specifically, if each resource storage position in the program list to be stored is an internal space storage type, determining that the program list storage position in the internal storage space of the program list to be stored is an internal program list storage position; if all the resource storage positions in the program list to be stored are the external storage space types, or part of the resource storage positions in the program list to be stored are the external storage space types and part of the resource storage positions are the internal storage space types, determining that the program list storage positions in the internal storage space of the program list to be stored are the affiliated program list storage positions.
S304, storing corresponding media resources in the resource storage position, and storing the program list to be stored in the program list storage position.
In one embodiment, if the media resource is already stored in the resource storage location, the media resource of the program to be stored is overlaid on the stored media resource in the resource storage location; and if the program list storage position stores the program list, the program list to be stored is covered on the stored program list in the program list storage position.
S305, selecting a program list to be output from different program list storage positions according to the storage time information of the stored program list.
In this embodiment, the stored program may be a program to be stored that has been stored in the program storage location; the storing time information may be time information of storing a stored program list; the program to be output may be a newly stored program.
Specifically, according to the storage time information of the stored program list, the latest stored program list is used as the program list to be output; if the latest stored program list is the affiliated program list storage position, selecting a program list to be output from the affiliated program list storage position of the internal storage space; if the latest stored program list is the internal program list position, selecting the program list from the internal program list position of the internal storage space.
S306, according to the program sequence of each program in the program list to be output, acquiring and outputting the corresponding media resources from the resource storage positions of the media resources corresponding to each program.
In an optional embodiment, when the program to be output is a storage position of an external program and the program to be output includes an internal program and an external program, if the media resources of the external program are lost, acquiring and outputting corresponding media resources from the resource storage positions of the media resources corresponding to each internal program according to the program sequence of each internal program in the program to be output; and under the condition that the program list to be output is an outer program list storage position and only comprises an external program, if the media resource of the external program is lost, selecting the stored program list of the inner program storage position as a new program list to be output, and acquiring and outputting the corresponding media resource from the resource storage position of the corresponding media resource of each program according to the program sequence of each program in the new program list to be output.
Wherein, the internal program is a program stored in the internal storage space by the corresponding media resource; the external program is a program stored in the external storage space by the corresponding media resource.
It can be understood that by adopting the technical scheme, when the program to be output is the storage position of the program related to the external program and the media resource of the external program is lost, the corresponding media resource can be flexibly obtained and output, so that the situation that the media resource cannot be output due to the loss of the media resource of the external program is avoided.
In another alternative embodiment, when the program to be output is an internal program storage location, the program to be output includes only internal programs, and then according to the program sequence of each internal program in the program to be output, the corresponding media resource is obtained and output from the resource storage location of the corresponding media resource of each internal program.
According to the embodiment of the application, according to the storage time information of the stored program list, selecting the program list to be output from different program list storage positions; and acquiring and outputting corresponding media resources from the resource storage positions of the media resources corresponding to each program according to the program sequence of each program in the program list to be output. By adopting the technical scheme, the program list to be output can be selected according to the storage time information; and corresponding resources are acquired and output from the resource storage positions of the corresponding media resources of each program of the program list to be output, so that the operation of acquiring and outputting the corresponding media resources according to the storage time information of the stored program list is realized.
Example IV
Fig. 4 is a schematic structural diagram of a data processing device provided in a fourth embodiment of the present application, where the embodiment is applicable to a case of storing a program to be stored and media resources of each program in the program to be stored, the data processing device may be implemented in a form of hardware and/or software, and the data processing may be configured in an electronic device. In an alternative embodiment, the electronic device may be a program presentation device, such as an advertiser.
As shown in fig. 4, the apparatus includes: a program list acquisition module 401, a resource storage location determination module 402, a program list storage location determination module 403, and a media resource storage module 404. Wherein, the liquid crystal display device comprises a liquid crystal display device,
a program list obtaining module 401, configured to obtain a program list to be stored, and media resources of each program in the program list to be stored;
a resource storage location determining module 402, configured to determine, if the external storage mode is not preset, a resource storage location of each media resource from the external storage space and the internal storage space according to a remaining space size of the internal storage space;
a program list storage position determining module 403, configured to determine a program list storage position of a program list to be stored in the internal storage space according to a space category of each resource storage position;
The media resource storage module 404 is configured to store the corresponding media resource in a resource storage location and store the program to be stored in a program list storage location.
According to the embodiment of the application, the program list to be stored and the media resources of all programs in the program list to be stored are acquired through the program list acquisition module; if the external storage mode is not preset through the resource storage position, the determining module determines the resource storage position of each media resource from the external storage space and the internal storage space according to the residual space size of the internal storage space; determining a program list storage position of a program list to be stored in an internal storage space according to the space category of each resource storage position by a program list storage position determining module; and storing corresponding media resources in a resource storage position and storing a program list to be stored in a program list storage position through a media resource storage module. According to the technical scheme, if the external storage mode is not preset, the resource storage position and the program list storage position of the media resources of each program in the program list can be flexibly determined according to the residual space size of the internal storage space, the storage requirements of different program lists and different media resources can be met, and the convenience and the expandability of storing related data of the program list are improved.
Optionally, the resource storage location determination module 402 includes:
the program attribute information acquisition unit is used for acquiring the program attribute information of each program in the stored program list if the residual space size of the internal storage space is smaller than the required space size of each media resource in the program list to be stored;
and the resource storage position determining unit is used for determining the resource storage position of the corresponding media resource of each program from the external storage space and the internal storage space according to the program attribute information of each program.
Optionally, the resource storage location determining unit includes:
a program attribute field determining subunit, configured to determine a program attribute field according to the currently selected automatic storage policy;
and the resource storage position determining subunit is used for determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information corresponding to the program attribute field.
Optionally, the program attribute field determining subunit is specifically configured to:
if the currently selected automatic storage strategy is stored according to the program sequence, determining the program attribute field as the program sequence;
correspondingly, determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information corresponding to the program attribute field comprises the following steps:
According to the program sequence of each program in the program list to be stored, sequentially determining the media resources stored in the internal storage space and the media resources stored in the external storage space.
Optionally, the program attribute field determining subunit is specifically configured to:
if the currently selected automatic storage strategy is stored according to the size of the media resource, determining the attribute field of the program as the size of the media resource;
correspondingly, determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information corresponding to the program attribute field comprises the following steps:
according to the media resource size of the media resources corresponding to each program in the program list to be stored, sequentially determining the media resources stored in the internal storage space and the media resources stored in the external storage space.
Optionally, the data processing device, wherein the program list storage location is an internal program list storage location or an external program list storage location; correspondingly, the device also comprises:
the program list selecting module is used for selecting the program list to be output from different program list storage positions according to the storage time information of the stored program list;
and the media resource output module is used for acquiring and outputting corresponding media resources from the resource storage positions of the media resources corresponding to each program according to the program sequence of each program in the program list to be output.
Optionally, the media resource output module includes:
the first media resource output unit is used for acquiring and outputting corresponding media resources from the resource storage positions of the media resources corresponding to each internal program in the program list to be output according to the program sequence of each internal program in the program list to be output if the media resources of the external program are lost under the condition that the program list to be output is the storage position of the program list to be output and the program list to be output comprises the internal program and the external program;
the second media resource output unit is used for selecting a stored program list of the internal program storage position as a new program list to be output and acquiring and outputting corresponding media resources from the resource storage position of the corresponding media resources of each program according to the program sequence of each program in the new program list to be output if the program list to be output is an outer program storage position and the program list to be output only comprises the external program and if the media resources of the external program are lost;
wherein, the internal program is a program stored in the internal storage space by the corresponding media resource; the external program is a program stored in the external storage space by the corresponding media resource.
The data processing device provided by the embodiment of the application can execute the data processing method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the method of the data processing device.
Example five
Fig. 5 shows a schematic diagram of an electronic device 510 that may be used to implement an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 5, the electronic device 510 includes at least one processor 511, and a memory communicatively connected to the at least one processor 511, such as a Read Only Memory (ROM) 512, a Random Access Memory (RAM) 513, etc., in which the memory stores computer programs executable by the at least one processor, and the processor 511 may perform various suitable actions and processes according to the computer programs stored in the Read Only Memory (ROM) 512 or the computer programs loaded from the storage unit 518 into the Random Access Memory (RAM) 513. In the RAM 513, various programs and data required for the operation of the electronic device 510 can also be stored. The processor 511, the ROM 512, and the RAM 513 are connected to each other by a bus 514. An input/output (I/O) interface 515 is also connected to bus 514.
Various components in the electronic device 510 are connected to the I/O interface 515, including: an input unit 516 such as a keyboard, a mouse, etc.; an output unit 517 such as various types of displays, speakers, and the like; a storage unit 518 such as a magnetic disk, optical disk, etc.; and a communication unit 519 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 519 allows the electronic device 510 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks.
The processor 511 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 511 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 511 performs the various methods and processes described above, such as with a carbon quantity prediction method.
In some embodiments, the carbon usage prediction method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 518. In some embodiments, some or all of the computer program may be loaded and/or installed onto the electronic device 510 via the ROM 512 and/or the communication unit 519. When a computer program is loaded into RAM 513 and executed by processor 511, one or more of the steps of the carbon amount prediction method described above may be performed. Alternatively, in other embodiments, processor 511 may be configured to perform the carbon usage prediction method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solutions of the present application are achieved, and the present application is not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A method of data processing, comprising:
acquiring a program list to be stored and media resources of each program in the program list to be stored;
if the external storage mode is not preset, determining the resource storage position of each media resource from the external storage space and the internal storage space according to the residual space size of the internal storage space;
determining the program list storage position of the program list to be stored in the internal storage space according to the space category of each resource storage position;
Storing corresponding media resources in the resource storage location, and storing the program to be stored in the program list storage location.
2. The method of claim 1, wherein determining the resource storage location of each of the media resources from the external storage space and the internal storage space according to the remaining space size of the internal storage space comprises:
if the size of the residual space of the internal storage space is smaller than the size of the required space of each media resource in the program list to be stored, acquiring program attribute information of each program in the stored program list;
and determining the resource storage position of the corresponding media resource of each program from the external storage space and the internal storage space according to the program attribute information of each program.
3. The method of claim 2, wherein determining the resource storage location of the corresponding media resource for each program from the external storage space and the internal storage space based on the program attribute information of each program comprises:
determining a program attribute field according to the currently selected automatic storage strategy;
and determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information corresponding to the program attribute field.
4. The method of claim 3, wherein said determining a program attribute field according to the currently selected automatic storage policy comprises:
if the currently selected automatic storage strategy is stored according to the program sequence, determining that the program attribute field is the program sequence;
correspondingly, the determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information corresponding to the program attribute field includes:
and sequentially determining media resources stored in the internal storage space and media resources stored in the external storage space according to the program sequence of each program in the program list to be stored.
5. The method of claim 3, wherein said determining a program attribute field according to the currently selected automatic storage policy comprises:
if the currently selected automatic storage strategy is stored according to the size of the media resource, determining the attribute field of the program as the size of the media resource;
correspondingly, the determining the resource storage position of the media resource corresponding to each program from the external storage space and the internal storage space according to the program attribute information corresponding to the program attribute field includes:
And sequentially determining the media resources stored in the internal storage space and the media resources stored in the external storage space according to the media resource sizes of the media resources corresponding to each program in the program list to be stored.
6. The method of any one of claims 1-5, wherein the program storage location is an internal program storage location or an external program storage location; correspondingly, the method further comprises the steps of:
selecting a program list to be output from different program list storage positions according to the storage time information of the stored program list;
and acquiring and outputting corresponding media resources from the resource storage positions of the media resources corresponding to each program according to the program sequence of each program in the program list to be output.
7. The method according to claim 6, wherein the obtaining and outputting the corresponding media assets from the asset storage locations of the media assets corresponding to the respective programs according to the program sequence of the respective programs in the program list to be outputted comprises:
if the program list to be output is a storage position of an outer program list and comprises an inner program and an outer program, acquiring and outputting corresponding media resources from the resource storage positions of the corresponding media resources of each inner program according to the program sequence of each inner program in the program list to be output if the media resources of the outer program are lost;
If the program list to be output is an outer program list storage position and only comprises an outer program, if the media resource of the outer program is lost, selecting the stored program list of the inner program storage position as a new program list to be output, and acquiring and outputting the corresponding media resource from the resource storage position of the corresponding media resource of each program according to the program sequence of each program in the new program list to be output;
wherein, the internal program is a program stored in the internal storage space by the corresponding media resource; the external program is a program stored in the external storage space by the corresponding media resource.
8. A data processing apparatus, comprising:
the program list acquisition module is used for acquiring a program list to be stored and media resources of each program in the program list to be stored;
the resource storage position determining module is used for determining the resource storage position of each media resource from the external storage space and the internal storage space according to the residual space size of the internal storage space if the external storage mode is not preset;
the program list storage position determining module is used for determining the program list storage position of the program list to be stored in the internal storage space according to the space category of each resource storage position;
And the media resource storage module is used for storing corresponding media resources in the resource storage position and storing the program list to be stored in the program list storage position.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement a data processing method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a data processing method as claimed in any one of claims 1-7.
CN202211675849.XA 2022-12-26 2022-12-26 Data processing method, device, equipment and medium Pending CN116126233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211675849.XA CN116126233A (en) 2022-12-26 2022-12-26 Data processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211675849.XA CN116126233A (en) 2022-12-26 2022-12-26 Data processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116126233A true CN116126233A (en) 2023-05-16

Family

ID=86302032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211675849.XA Pending CN116126233A (en) 2022-12-26 2022-12-26 Data processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116126233A (en)

Similar Documents

Publication Publication Date Title
CN109862100B (en) Method and device for pushing information
CN111026493B (en) Interface rendering processing method and device
CN113766487B (en) Cloud mobile phone information acquisition method, device, equipment and medium
CN110007936B (en) Data processing method and device
CN110020383B (en) Page data request processing method and device
US20190107929A1 (en) Method and device for loading content of page, and electronic device
US10521499B2 (en) Method and device for editing data
CN114071190B (en) Cloud application video stream processing method, related device and computer program product
CN109358927B (en) Application program display method and device and terminal equipment
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN112270572A (en) Automated marketing method, system, electronic device and computer readable storage medium
CN116126233A (en) Data processing method, device, equipment and medium
CN114374703B (en) Cloud mobile phone information acquisition method, device, equipment and storage medium
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
CN113377295B (en) Data storage and reading method, device and equipment for multi-producer single-consumer
CN109818851A (en) A kind of information persistence method, device and electronic equipment
CN115248735A (en) Log data output control method, device, equipment and storage medium
CN115510508A (en) Page information protection method and device and electronic equipment
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN116440504B (en) Game resource processing method, device and storage medium
RU2471226C2 (en) Transmitter of graphical commands and method of graphical commands transfer
CN113407329B (en) Task execution method, device, equipment and storage medium
CN116431561B (en) Data synchronization method, device, equipment and medium based on heterogeneous many-core accelerator card
CN115840604B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN114690990B (en) Note generation method and device, equipment, medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination