




技术领域technical field
本申请涉及计算机技术领域,特别涉及一种多媒体数据处理方法、装置、设备及可读存储介质。The present application relates to the field of computer technology, in particular to a multimedia data processing method, device, equipment and readable storage medium.
背景技术Background technique
目前,终端设备中可以设有安全CPU和非安全CPU,当使用安全CPU时,设备就工作在安全模式下;当使用非安全CPU时,设备就工作在非安全模式下。如果终端设备中仅有一个CPU,那么该CPU会具有安全模式和非安全模式两种状态,可以根据设备需要进行模式的切换。At present, a safety CPU and a non-safety CPU can be installed in a terminal device. When a safety CPU is used, the device works in a safety mode; when a non-safety CPU is used, the device works in a non-safety mode. If there is only one CPU in the terminal device, then the CPU will have two states: secure mode and non-secure mode, and the mode can be switched according to the needs of the device.
终端设备在处理加密的音频、视频等多媒体数据时,需要调用多个功能模块(如解密模块、解码模块等)。由于多媒体数据是加密状态的安全数据,因此这些功能模块需要在设备安全模式下运行。一般通过开发与设备安全模式相适应的功能组件,来使功能模块在设备安全模式下处理加密的多媒体数据,但这样会增加开发难度。并且,功能模块运行在设备安全模式下会增加CPU从非安全CPU切换到安全CPU的切换频率,从而增加系统负载和功耗,降低系统运行效率。When the terminal device processes encrypted audio, video and other multimedia data, it needs to call multiple functional modules (such as decryption module, decoding module, etc.). Since multimedia data is secure data in an encrypted state, these functional modules need to run in a device security mode. Generally, by developing functional components compatible with the device security mode, the functional modules can process encrypted multimedia data in the device security mode, but this will increase the difficulty of development. Moreover, running the functional module in the device security mode will increase the switching frequency of the CPU from the non-secure CPU to the secure CPU, thereby increasing the system load and power consumption, and reducing the system operating efficiency.
因此,如何适应设备的安全模式与非安全模式,提升各功能模块处理多媒体数据的效率,是本领域技术人员需要解决的问题。Therefore, how to adapt to the security mode and the non-security mode of the device and improve the efficiency of each functional module in processing multimedia data is a problem to be solved by those skilled in the art.
发明内容Contents of the invention
有鉴于此,本申请的目的在于提供一种多媒体数据处理方法、装置、设备及可读存储介质,以适应设备的安全模式与非安全模式,提升各功能模块处理多媒体数据的效率。其具体方案如下:In view of this, the purpose of this application is to provide a multimedia data processing method, device, device and readable storage medium to adapt to the security mode and non-secure mode of the device, and to improve the efficiency of each functional module in processing multimedia data. The specific plan is as follows:
当前方面,本申请提供了一种多媒体数据处理方法,所述方法应用于多媒体处理设备,所述多媒体处理设备包括多个数据处理模块,所述方法包括:In the current aspect, the present application provides a multimedia data processing method, the method is applied to a multimedia processing device, the multimedia processing device includes a plurality of data processing modules, and the method includes:
接收多媒体数据的数据处理请求,根据所述数据处理请求从所述多个数据处理模块确定当前数据处理模块;receiving a data processing request for multimedia data, and determining a current data processing module from the plurality of data processing modules according to the data processing request;
使所述多媒体处理设备的CPU处于安全模式下,为所述当前数据处理模块配置安全内存访问权限;Make the CPU of the multimedia processing device in a safe mode, and configure a safe memory access authority for the current data processing module;
切换所述CPU到非安全模式,调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据。Switching the CPU to a non-secure mode, calling the current data processing module to process the multimedia data according to the security memory access authority.
可选地,所述根据所述数据处理请求从所述多个数据处理模块确定当前数据处理模块的步骤,包括:Optionally, the step of determining the current data processing module from the plurality of data processing modules according to the data processing request includes:
根据所述数据处理请求确定数据处理流程;determining a data processing flow according to the data processing request;
根据所述数据处理流程依次从所述多个数据处理模块确定当前数据处理模块。The current data processing module is sequentially determined from the multiple data processing modules according to the data processing flow.
可选地,所述为所述当前数据处理模块配置安全内存访问权限,包括:Optionally, configuring the security memory access authority for the current data processing module includes:
将所述当前数据处理模块对应的内存访问地址寄存器设置为安全模式,并将所述当前数据处理模块的内存访问地址配置给所述内存访问地址寄存器。Setting the memory access address register corresponding to the current data processing module to a security mode, and configuring the memory access address of the current data processing module to the memory access address register.
可选地,所述将所述当前数据处理模块的内存访问地址配置给所述内存访问地址寄存器的步骤,包括:Optionally, the step of configuring the memory access address of the current data processing module to the memory access address register includes:
获取当前待处理数据的内存地址,将所述当前待处理数据的内存地址配置于所述当前数据处理模块对应的读内存地址寄存器;Acquire the memory address of the current data to be processed, and configure the memory address of the current data to be processed in the read memory address register corresponding to the current data processing module;
获取可写内存区域,将所述可写内存区域的内存地址配置于所述当前数据处理模块对应的写内存地址寄存器。Obtain a writable memory area, and configure the memory address of the writable memory area in the write memory address register corresponding to the current data processing module.
可选地,所述为所述当前数据处理模块配置安全内存访问权限之后,所述方法还包括:Optionally, after configuring the security memory access authority for the current data processing module, the method further includes:
将总线地址控制器设置为安全模式;Set the bus address controller to safe mode;
将所述当前数据处理模块的安全内存访问权限配置给所述总线地址控制器。Configuring the secure memory access authority of the current data processing module to the bus address controller.
可选地,所述调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据的步骤,包括:Optionally, the step of invoking the current data processing module to process the multimedia data according to the security memory access authority includes:
接收所述当前数据处理模块的数据处理总线请求;receiving a data processing bus request from the current data processing module;
判断所述数据处理总线请求是否符合所述安全内存访问权限;judging whether the data processing bus request complies with the security memory access authority;
若符合,则执行所述调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据的步骤。If so, execute the step of invoking the current data processing module to process the multimedia data according to the security memory access authority.
可选地,所述调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据,包括:Optionally, the calling the current data processing module to process the multimedia data according to the security memory access authority includes:
基于所述当前数据处理模块的ID获取所述当前数据处理模块对应的可读内存区域和可写内存区域;Acquiring a readable memory area and a writable memory area corresponding to the current data processing module based on the ID of the current data processing module;
从所述可读内存区域中读取所述多媒体数据作为待处理数据;reading the multimedia data from the readable memory area as data to be processed;
调用所述当前数据处理模块处理所述待处理数据,得到处理结果;calling the current data processing module to process the data to be processed to obtain a processing result;
将所述处理结果写入所述可写内存区域。Writing the processing result into the writable memory area.
第二方面,本申请提供了一种多媒体数据处理装置,所述装置应用于多媒体处理设备,所述多媒体处理设备包括多个数据处理模块,所述装置包括:In a second aspect, the present application provides a multimedia data processing device, the device is applied to a multimedia processing device, the multimedia processing device includes a plurality of data processing modules, and the device includes:
接收模块,用于接收多媒体数据的数据处理请求,根据所述数据处理请求从所述多个数据处理模块确定当前数据处理模块;A receiving module, configured to receive a data processing request for multimedia data, and determine a current data processing module from the plurality of data processing modules according to the data processing request;
配置模块,用于使所述多媒体处理设备的CPU处于安全模式下,为所述当前数据处理模块配置安全内存访问权限;A configuration module, configured to make the CPU of the multimedia processing device in a safe mode, and configure a safe memory access authority for the current data processing module;
调用模块,用于切换所述CPU到非安全模式,调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据。The calling module is used to switch the CPU to a non-secure mode, and call the current data processing module to process the multimedia data according to the security memory access authority.
第三方面,本申请提供了一种电子设备,包括:In a third aspect, the present application provides an electronic device, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序,以实现前述公开的多媒体数据处理方法。A processor, configured to execute the computer program, so as to implement the aforementioned disclosed multimedia data processing method.
第四方面,本申请提供了一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现前述公开的多媒体数据处理方法。In a fourth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program implements the aforementioned disclosed multimedia data processing method when executed by a processor.
通过以上方案可知,本申请提供了一种多媒体数据处理方法,所述方法应用于多媒体处理设备,所述多媒体处理设备包括多个数据处理模块,所述方法包括:接收多媒体数据的数据处理请求,根据所述数据处理请求从所述多个数据处理模块确定当前数据处理模块;使所述多媒体处理设备的CPU处于安全模式下,为所述当前数据处理模块配置安全内存访问权限;切换所述CPU到非安全模式,调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据。It can be known from the above solutions that the present application provides a multimedia data processing method, the method is applied to a multimedia processing device, the multimedia processing device includes a plurality of data processing modules, and the method includes: receiving a data processing request for multimedia data, Determine the current data processing module from the plurality of data processing modules according to the data processing request; make the CPU of the multimedia processing device in a safe mode, and configure a safe memory access authority for the current data processing module; switch the CPU In the non-secure mode, call the current data processing module to process the multimedia data according to the security memory access authority.
可见,本申请在接收到多媒体数据的数据处理请求后,根据数据处理请求从多个数据处理模块确定当前数据处理模块,然后使多媒体处理设备的CPU处于安全模式下,为当前数据处理模块配置安全内存访问权限,之后切换CPU到非安全模式,调用当前数据处理模块按照安全内存访问权限处理多媒体数据。可见,本申请实施例方法能够使各多媒体数据处理模块运行在设备CPU的非安全模式下,因此无需为各多媒体数据处理模块开发安全模式下的相应组件,减小设备系统开发难度,能够使多媒体处理设备在处理多媒体数据时,无需将整个设备或整个多媒体数据处理模块切换至安全模式,而是仅需在给数据处理模块配置安全内存访问权限时,使CPU处于安全模式,通过配置模块的安全内存访问权限以控制当前数据处理模块安全读或写DDR的某一部分空间,提高数据处理的安全性,因为只需要配置当前数据处理模块相应的地址寄存器的安全权限,减少CPU在安全模式和非安全模式之间的切换频率,由此降低CPU运行负载,降低设备整体功耗,提升系统运行效率。It can be seen that after receiving the data processing request of multimedia data, the present application determines the current data processing module from multiple data processing modules according to the data processing request, and then puts the CPU of the multimedia processing device in a safe mode to configure the current data processing module. Memory access rights, then switch the CPU to non-secure mode, call the current data processing module to process multimedia data according to the security memory access rights. It can be seen that the method of the embodiment of the present application can make each multimedia data processing module run in the non-secure mode of the device CPU, so there is no need to develop corresponding components in the safe mode for each multimedia data processing module, which reduces the difficulty of device system development and enables multimedia When the processing device processes multimedia data, it is not necessary to switch the entire device or the entire multimedia data processing module to the safe mode, but only needs to make the CPU in the safe mode when configuring the safe memory access authority for the data processing module. By configuring the module's security Memory access rights to control the current data processing module to safely read or write a certain part of the DDR space to improve the security of data processing, because only the security rights of the corresponding address registers of the current data processing module need to be configured, reducing CPU in safe mode and non-safety mode The frequency of switching between modes can reduce the CPU operating load, reduce the overall power consumption of the device, and improve the operating efficiency of the system.
相应地,本申请提供的一种多媒体数据处理装置、设备及可读存储介质,也同样具有上述技术效果。Correspondingly, the multimedia data processing device, equipment, and readable storage medium provided by the present application also have the above-mentioned technical effects.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本申请公开的一种多媒体数据处理方法流程图;Fig. 1 is a flow chart of a method for processing multimedia data disclosed in the present application;
图2为本申请公开的一种功能模块与内存区域的对应示意图;FIG. 2 is a corresponding schematic diagram of a functional module and a memory area disclosed in the present application;
图3为本申请公开的另一种功能模块与内存区域的对应示意图;FIG. 3 is a corresponding schematic diagram of another functional module and a memory area disclosed in the present application;
图4为本申请公开的一种多媒体数据处理装置示意图;FIG. 4 is a schematic diagram of a multimedia data processing device disclosed in the present application;
图5为本申请公开的一种电子设备示意图。FIG. 5 is a schematic diagram of an electronic device disclosed in the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
目前,终端设备在处理加密的音频、视频等多媒体数据时,需要调用多个功能模块(如解密模块、解码模块等)。由于多媒体数据是加密状态的安全数据,因此这些功能模块需要在设备安全模式下运行。一般通过开发与设备安全模式相适应的功能组件,来使功能模块在设备安全模式下处理加密的多媒体数据,但这样会增加开发难度。并且,功能模块运行在设备安全模式下会增加系统功耗和设备CPU负载,降低系统运行效率。为此,本申请提供了一种多媒体数据处理方案,能够适应设备的安全模式与非安全模式,提升各功能模块处理多媒体数据的效率。At present, when a terminal device processes encrypted multimedia data such as audio and video, it needs to call multiple functional modules (such as a decryption module, a decoding module, etc.). Since multimedia data is secure data in an encrypted state, these functional modules need to run in a device security mode. Generally, by developing functional components compatible with the device security mode, the functional modules can process encrypted multimedia data in the device security mode, but this will increase the difficulty of development. Moreover, running the functional modules in the device security mode will increase system power consumption and device CPU load, reducing system operating efficiency. To this end, the present application provides a multimedia data processing solution, which can adapt to the security mode and non-security mode of the device, and improve the efficiency of each functional module in processing multimedia data.
参见图1所示,本申请实施例公开了一种多媒体数据处理方法,所述方法应用于多媒体处理设备,所述多媒体处理设备包括多个数据处理模块,所述方法包括:Referring to Fig. 1, the embodiment of the present application discloses a multimedia data processing method, the method is applied to a multimedia processing device, the multimedia processing device includes a plurality of data processing modules, and the method includes:
S101、接收多媒体数据的数据处理请求,根据所述数据处理请求从所述多个数据处理模块确定当前数据处理模块。S101. Receive a data processing request for multimedia data, and determine a current data processing module from the plurality of data processing modules according to the data processing request.
在本实施例中,多媒体处理设备可以是任意能够处理多媒体数据的终端设备,如:智能手机、电视机顶盒等。多媒体数据如:音频、视频、图像、文档等。数据处理模块是设备中用于处理多媒体数据的功能模块。以电视机顶盒为例,其处理的多媒体数据多为视频,而这些视频一般以加密视频流的形式到达电视机顶盒,此时电视机顶盒就需要对加密视频流进行解密、解码、后处理,输出显示等数据处理。那么就需要调用相应的解密模块、解码模块、后处理模块及输出显示模块完成整个处理流程。In this embodiment, the multimedia processing device may be any terminal device capable of processing multimedia data, such as a smart phone, a TV set-top box, and the like. Multimedia data such as: audio, video, images, documents, etc. The data processing module is a functional module in the device for processing multimedia data. Taking the TV set-top box as an example, most of the multimedia data it processes is video, and these videos generally arrive at the TV set-top box in the form of encrypted video streams. At this time, the TV set-top box needs to decrypt, decode, post-process, output and display the encrypted video stream, etc. data processing. Then it is necessary to call the corresponding decryption module, decoding module, post-processing module and output display module to complete the entire processing flow.
多媒体处理设备包括多个数据处理模块,在接收到多媒体数据的数据处理请求时,根据所述数据处理请求从多个数据处理模块确定当前数据处理模块,以便后续为所述当前数据处理模块进行安全内存访问权限配置。The multimedia processing device includes a plurality of data processing modules. When receiving a data processing request for multimedia data, the current data processing module is determined from the plurality of data processing modules according to the data processing request, so as to perform security for the current data processing module subsequently. Memory access configuration.
在具体的实施例中,根据所述数据处理请求从所述多个数据处理模块确定当前数据处理模块的步骤包括:根据所述数据处理请求确定数据处理流程;根据所述数据处理流程依次从所述多个数据处理模块确定当前数据处理模块。In a specific embodiment, the step of determining the current data processing module from the plurality of data processing modules according to the data processing request includes: determining a data processing flow according to the data processing request; The multiple data processing modules determine the current data processing module.
具体的,当多媒体接收到数据处理请求后,根据数据处理请求可以确定完整的数据处理流程,例如接收到一个加密视频数据输出显示处理请求,完整的数据处理流程包括解密流程、解码流程、后处理流程及输出显示流程。根据该数据处理流程可以依次确定解密模块、解码模块、后处理模块及输出显示模块作为当前数据处理模块,并进行相应的数据处理。Specifically, when the multimedia receives a data processing request, the complete data processing flow can be determined according to the data processing request. For example, when an encrypted video data output display processing request is received, the complete data processing flow includes decryption flow, decoding flow, post-processing Process and output shows the process. According to the data processing flow, the decryption module, the decoding module, the post-processing module and the output display module can be sequentially determined as the current data processing module, and corresponding data processing is performed.
S102、使所述多媒体处理设备的CPU处于安全模式下,为所述当前数据处理模块配置安全内存访问权限。S102. Put the CPU of the multimedia processing device in a safe mode, and configure a safe memory access right for the current data processing module.
多媒体数据处理设备中有独立的安全CPU和非安全CPU,或CPU包括安全状态和非安全状态,工作时可以进行状态的实时切换,当使用安全CPU或CPU工作在安全状态时,设备CPU就工作在安全模式下;当使用非安全CPU或CPU工作在非安全状态时,设备CPU就工作在非安全模式下。在实际应用场景中,设备运行时,CPU默认运行在非安全模式下,当接收到数据处理请求时,非安全模式下CPU发送CPU切换命令,当接收到CPU切换请求命令后,将CPU从非安全状态切换至安全状态,或由非安全CPU切换至安全CPU,使设备CPU运行在安全模式下。当设备CPU处于安全模式下时,为当前数据处理模块配置安全内存访问权限,配置完成后,再将设备CPU切换至非安全模式,以便后续调用当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据。There are independent safety CPU and non-safety CPU in the multimedia data processing equipment, or the CPU includes safety state and non-safety state, and the state can be switched in real time during work. When the safety CPU is used or the CPU is working in the safety state, the device CPU will work In safe mode; when using a non-safe CPU or the CPU works in a non-safe state, the device CPU works in a non-safe mode. In actual application scenarios, when the device is running, the CPU runs in non-secure mode by default. When receiving a data processing request, the CPU in non-secure mode sends a CPU switching command. The safe state is switched to the safe state, or the non-safety CPU is switched to the safe CPU, so that the device CPU runs in the safe mode. When the device CPU is in the security mode, configure the security memory access authority for the current data processing module. After the configuration is complete, switch the device CPU to the non-security mode, so that the current data processing module can be called to process all data according to the security memory access authority. described multimedia data.
在具体的实施例中,为所述当前数据处理模块配置安全内存访问权限包括:将所述当前数据处理模块对应的内存访问地址寄存器设置为安全模式,并将所述当前数据处理模块的内存访问地址配置给所述内存访问地址寄存器。In a specific embodiment, configuring the security memory access authority for the current data processing module includes: setting the memory access address register corresponding to the current data processing module to a security mode, and setting the memory access permission of the current data processing module to An address is assigned to the memory access address register.
设备的内存可以是DDR等,在为当前数据处理模块配置安全内存访问权限时,同时为其配置可读内存区域和可写内存区域。内存访问地址可以是可读内存区域的内存访问地址,也可以是可写内存区域的内存访问地址。The memory of the device can be DDR, etc. When configuring the security memory access permission for the current data processing module, configure the readable memory area and writable memory area for it at the same time. The memory access address may be a memory access address of a readable memory area, or a memory access address of a writable memory area.
在具体的实施例中,将所述当前数据处理模块的内存访问地址配置给所述内存访问地址寄存器的步骤,包括:获取当前待处理数据的内存地址,将所述当前待处理数据的内存地址配置于所述当前数据处理模块对应的读内存地址寄存器;获取可写内存区域,将所述可写内存区域的内存地址配置于所述当前数据处理模块对应的写内存地址寄存器。In a specific embodiment, the step of configuring the memory access address of the current data processing module to the memory access address register includes: obtaining the memory address of the current data to be processed, and setting the memory address of the current data to be processed to Configured in the read memory address register corresponding to the current data processing module; obtaining a writable memory area, and configuring the memory address of the writable memory area in the write memory address register corresponding to the current data processing module.
当前数据处理模块对应的可读内存区域和可写内存区域可以是设备内存中的不同区域或同一区域。当前数据处理模块对应的可读内存区域即:当前待处理数据在设备内存中所存储的区域。将当前待处理数据的内存地址配置于所述当前数据处理模块对应的读内存地址寄存器,以便于后续当前数据处理模块根据读内存命令获取读内存地址寄存器中的内存地址去读取待处理数据进行相应的数据处理。当前数据处理模块数据处理完成后,需要将处理后的数据结果存入设备内存中,以便下一数据处理模块提取。因此申请相应的可写内存区域,将可写内存区域的内存地址配置于当前数据处理模块对应的写内存地址寄存器中,以便于当前数据处理模块数据处理完成后,获取写内存地址寄存器中的内存地址,并将处理后的数据结果存入对应的内存中。数据处理模块对应的可写内存区域为空白内存区或可删除的脏数据所占内存区,因此按照既定规则申请即可。其中,每次申请的内存大小可按照多媒体数据的大小设定。The readable memory area and writable memory area corresponding to the current data processing module may be different areas in the device memory or the same area. The readable memory area corresponding to the current data processing module is the area where the current data to be processed is stored in the device memory. The memory address of the current data to be processed is configured in the read memory address register corresponding to the current data processing module, so that the subsequent current data processing module obtains the memory address in the read memory address register according to the read memory command to read the data to be processed. corresponding data processing. After the data processing of the current data processing module is completed, the processed data results need to be stored in the device memory for extraction by the next data processing module. Therefore, apply for the corresponding writable memory area, and configure the memory address of the writable memory area in the write memory address register corresponding to the current data processing module, so that after the data processing of the current data processing module is completed, the memory in the write memory address register can be obtained. address, and store the processed data results in the corresponding memory. The writable memory area corresponding to the data processing module is the blank memory area or the memory area occupied by the dirty data that can be deleted, so apply according to the established rules. Wherein, the memory size of each application can be set according to the size of the multimedia data.
一般地,一块内存区域可以用内存起始地址和内存结束地址确定,或者用内存起始地址和内存区域总大小确定,因此给某一数据处理模块配置可读内存区域和可写内存区域时,也按照此原理进行相应寄存器的修改,将内存起始地址、内存结束地址、内存区域总大小配置于相应寄存器中。Generally, a memory area can be determined by the memory start address and memory end address, or by the memory start address and the total size of the memory area. Therefore, when configuring a readable memory area and a writable memory area for a data processing module, The corresponding registers are also modified according to this principle, and the memory start address, memory end address, and total size of the memory area are configured in the corresponding registers.
在一种具体实施方式中,读内存地址寄存器包括:读起始寄存器和读大小寄存器;相应的,将所述当前待处理数据的内存地址配置于所述当前数据处理模块对应的读内存地址寄存器,包括:将当前待处理数据所存储的内存起始地址写入读起始寄存器,将当前待处理数据所存储的内存区域的大小写入读大小寄存器;在另一种具体实施方式中,读内存地址寄存器包括:读起始寄存器和读结束寄存器;相应的,将所述当前待处理数据的内存地址配置于所述当前数据处理模块对应的读内存地址寄存器,包括:将当前待处理数据所存储的内存起始地址写入读起始寄存器,将当前待处理数据所存储的内存结束地址写入读结束寄存器。可见,一个数据处理模块对应一个读起始寄存器和一个读大小寄存器,或对应一个读起始寄存器和一个读结束寄存器。利用这些寄存器便可记录该数据处理模块对应的可读内存区域。In a specific implementation manner, reading the memory address register includes: reading the start register and reading the size register; correspondingly, configuring the memory address of the current data to be processed in the read memory address register corresponding to the current data processing module , comprising: writing the memory start address stored by the current data to be processed into the read start register, and writing the size of the memory area stored by the current data to be processed into the read size register; in another specific implementation manner, the read The memory address register includes: a read start register and a read end register; correspondingly, configuring the memory address of the current data to be processed in the read memory address register corresponding to the current data processing module includes: The stored memory start address is written into the read start register, and the memory end address stored by the current data to be processed is written into the read end register. It can be seen that a data processing module corresponds to a read start register and a read size register, or corresponds to a read start register and a read end register. These registers can be used to record the readable memory area corresponding to the data processing module.
在一种具体实施方式中,写内存地址寄存器包括:写起始寄存器和写大小寄存器;相应的,将所述可写内存区域的内存地址配置于所述当前数据处理模块对应的写内存地址寄存器,包括:将可写内存区域的内存起始地址写入写起始寄存器,将可写内存区域的大小写入写大小寄存器;在另一种具体实施方式中,写内存地址寄存器包括:写起始寄存器和写结束寄存器;相应的,将所述可写内存区域的内存地址配置于所述当前数据处理模块对应的写内存地址寄存器,包括:将可写内存区域的内存起始地址写入写起始寄存器,将可写内存区域的内存结束地址写入写结束寄存器。可见,一个数据处理模块对应一个写起始寄存器和一个写大小寄存器,或对应一个写起始寄存器和一个写结束寄存器。利用这些寄存器便可记录当前数据处理模块对应的可写内存区域。In a specific implementation manner, the write memory address register includes: a write start register and a write size register; correspondingly, the memory address of the writable memory area is configured in the write memory address register corresponding to the current data processing module , including: writing the memory start address of the writable memory area into the write start register, and writing the size of the writable memory area into the write size register; in another specific implementation manner, writing the memory address register includes: correspondingly, configuring the memory address of the writable memory area in the write memory address register corresponding to the current data processing module, including: writing the memory start address of the writable memory area into the write The start register, write the memory end address of the writable memory area into the write end register. It can be seen that a data processing module corresponds to a write start register and a write size register, or corresponds to a write start register and a write end register. These registers can be used to record the writable memory area corresponding to the current data processing module.
S103、切换所述CPU到非安全模式,调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据。S103. Switch the CPU to a non-secure mode, and call the current data processing module to process the multimedia data according to the security memory access authority.
相应安全内存访问权限配置完成后,即可将设备CPU切回非安全模式,并在非安全模式下,调用当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据。After the configuration of the corresponding security memory access authority is completed, the CPU of the device can be switched back to the non-secure mode, and in the non-secure mode, the current data processing module is called to process the multimedia data according to the security memory access authority.
在具体的实施例中,当前数据处理模块安全内存访问权限配置完成后,所述方法还包括:将总线地址控制器设置为安全模式;将所述当前数据处理模块的安全内存访问权限配置给所述总线地址控制器。以便后续总线地址控制器根据安全内存访问权限来判断所述数据处理总线请求是否符合所述安全内存访问权限。具体地,可为安全模式下的当前数据处理模块配置ID,将所述数据处理模块的ID和所述内存访问地址进行映射,并将映射关系发送给所述总线地址控制器。In a specific embodiment, after the security memory access authority configuration of the current data processing module is completed, the method further includes: setting the bus address controller to a security mode; configuring the security memory access authority of the current data processing module to all The bus address controller described above. So that the subsequent bus address controller judges whether the data processing bus request complies with the security memory access permission according to the security memory access permission. Specifically, an ID can be configured for the current data processing module in the security mode, the ID of the data processing module and the memory access address are mapped, and the mapping relationship is sent to the bus address controller.
所述调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据的步骤,包括:接收所述当前数据处理模块的数据处理总线请求;判断所述数据处理总线请求是否符合所述安全内存访问权限;若符合,则调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据。The step of calling the current data processing module to process the multimedia data according to the security memory access authority includes: receiving the data processing bus request of the current data processing module; judging whether the data processing bus request conforms to the Security memory access authority; if yes, call the current data processing module to process the multimedia data according to the security memory access authority.
具体地,按照多媒体数据处理流程,轮到当前数据处理模块进行数据处理,且当前数据处理模块的安全内存访问权限已经配置完成后,当前数据处理模块发起数据处理总线请求,总线地址控制器判断该数据处理总线请求是否符合所述安全内存访问权限;若符合,则调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据,若不符合,则直接返回。Specifically, according to the multimedia data processing flow, it is the turn of the current data processing module to perform data processing, and after the security memory access authority of the current data processing module has been configured, the current data processing module initiates a data processing bus request, and the bus address controller judges the Whether the data processing bus request complies with the secure memory access permission; if so, call the current data processing module to process the multimedia data according to the secure memory access permission; if not, return directly.
在具体的实施方式中,总线地址控制器根据当前处理模块的ID确定该模块申请访问的内存区域、访问属性(读或写)是否符合前述相应配置,如果符合,则允许访问,否则不允许访问。In a specific embodiment, the bus address controller determines whether the memory area and access attributes (read or write) that the module applies for access to meet the aforementioned corresponding configurations according to the ID of the current processing module. If it meets, the access is allowed, otherwise the access is not allowed .
在一些实施例中,调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据,包括,基于当前数据处理模块的ID查询当前数据处理模块对应的可读内存区域,从可读内存区域中读取多媒体数据;调用当前数据处理模块处理多媒体数据,得到处理结果;基于当前数据处理模块的ID查询当前数据处理模块对应的可写内存区域,将处理结果写入可写内存区域。In some embodiments, invoking the current data processing module to process the multimedia data according to the security memory access authority includes querying the readable memory area corresponding to the current data processing module based on the ID of the current data processing module, from the readable Read the multimedia data in the memory area; call the current data processing module to process the multimedia data, and obtain the processing result; query the writable memory area corresponding to the current data processing module based on the ID of the current data processing module, and write the processing result into the writable memory area.
例如,电视机顶盒的CPU具有安全模式和非安全模式,且该电视机顶盒的CPU常运行于非安全模式,只有在为当前数据处理模块配置安全内存访问权限才切换至安全模式。如图2所示,此时电视机顶盒的CPU处于非安全模式下,当加密视频流到达电视机顶盒时,电视机顶盒的CPU将视频流数据写入设备内存的buffer1中,按照当前加密数据流对应的应用层请求确定需要先进行解密处理,并且该解密处理过程必须进行安全保护,因此,首先将解密模块作为当前数据处理模块,只让解密模块能读buffer1中的视频流数据,具体实现方法为:使电视机顶盒的CPU切换至安全模式,并在安全模式下为解密模块配置buffer1的读权限,同时给解密模块配置buffer2的写权限,然后将电视机顶盒的CPU切换到非安全模式下,调用解密模块读取buffer1中的视频流数据作为当前待处理数据进行解密,解密处理完成后,将解密结果写入buffer2。For example, the CPU of a TV set-top box has a secure mode and a non-secure mode, and the CPU of the TV set-top box often runs in the non-secure mode, and only switches to the secure mode when the security memory access authority is configured for the current data processing module. As shown in Figure 2, the CPU of the TV set-top box is in non-secure mode at this time. When the encrypted video stream reaches the TV set-top box, the CPU of the TV set-top box writes the video stream data into buffer1 of the device memory, according to the current encryption data stream corresponding to The application layer request needs to be decrypted first, and the decryption process must be protected. Therefore, firstly, the decryption module is used as the current data processing module, and only the decryption module can read the video stream data in buffer1. The specific implementation method is: Make the CPU of the TV set-top box switch to the safe mode, and configure the read permission of buffer1 for the decryption module in the safe mode, and configure the write permission of buffer2 for the decryption module at the same time, then switch the CPU of the TV set-top box to the non-safe mode, and call the decryption module Read the video stream data in buffer1 as the current data to be processed for decryption. After the decryption process is completed, write the decryption result into buffer2.
然后,再根据多媒体数据处理流程确定解码模块作为当前数据处理模块,使电视机顶盒的CPU再切换至安全模式,并在安全模式下为解码模块配置buffer2的读权限,同时给解码模块配置buffer3的写权限,然后使电视机顶盒的CPU切回非安全模式。在非安全模式下,调用解码模块读取buffer2中的解密结果进行解码操作,解码完成后,将解码结果写入buffer3。后续依次将后处理模块和输出显示模块作为当前数据处理模块进行类似操作,直到得到目标显示数据。Then, determine the decoding module as the current data processing module according to the multimedia data processing flow, switch the CPU of the TV set-top box to the safe mode, and configure the read permission of buffer2 for the decoding module in the safe mode, and configure the writing of buffer3 for the decoding module at the same time. permission, and then switch the CPU of the TV set-top box back to the non-secure mode. In the non-secure mode, call the decoding module to read the decryption result in buffer2 for decoding operation, and write the decoding result into buffer3 after the decoding is completed. Subsequently, the post-processing module and the output display module are used as the current data processing module to perform similar operations until the target display data is obtained.
本申请实施例提供的多媒体数据处理方法,通过根据数据处理请求从多个数据处理模块确定当前数据处理模块;使多媒体处理设备的CPU处于安全模式下,为所述当前数据处理模块配置安全内存访问权限;切换所述CPU到非安全模式,调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据。本实施例方法能够使各多媒体数据处理模块运行在设备CPU的非安全模式下,因此无需为各多媒体数据处理模块开发安全模式下的相应组件,减小设备系统开发难度,能够使多媒体处理设备在处理多媒体数据时,无需将整个设备或整个多媒体数据处理模块切换至安全模式,而是通过配置模块的安全内存访问权限以控制当前数据处理模块安全读或写DDR的某一部分空间,提高数据处理的安全性,因为只需要配置当前数据处理模块相应的地址寄存器的安全权限,减少CPU在安全模式和非安全模式之间的切换频率,由此降低CPU运行负载,降低设备整体功耗,提升系统运行效率。In the multimedia data processing method provided by the embodiment of the present application, the current data processing module is determined from a plurality of data processing modules according to the data processing request; the CPU of the multimedia processing device is placed in a safe mode, and secure memory access is configured for the current data processing module Authority: switch the CPU to a non-secure mode, call the current data processing module to process the multimedia data according to the security memory access authority. The method of this embodiment can make each multimedia data processing module run under the non-secure mode of the device CPU, so there is no need to develop corresponding components under the safe mode for each multimedia data processing module, reduce the difficulty of device system development, and enable the multimedia processing device to operate in the safe mode. When processing multimedia data, it is not necessary to switch the entire device or the entire multimedia data processing module to the safe mode, but to control the current data processing module to safely read or write a certain part of the DDR space by configuring the module's safe memory access rights, thereby improving data processing efficiency. Security, because only the security authority of the corresponding address register of the current data processing module needs to be configured, reducing the switching frequency of the CPU between secure mode and non-secure mode, thereby reducing the CPU operating load, reducing the overall power consumption of the device, and improving system operation efficiency.
在一些实施例中,可以根据视频流中每一次处理片段的平均大小设置内存访问区域大小,例如,一个视频流片段为3MB~4MB时,可将buffer1、buffer2、buffer2的大小设定的不小于4MB,并在处理下一个视频流片段时就无需再为各模块进行安全内存访问权限的配置。也就是:当第二个视频片段到达电视机顶盒后,将第二个视频片段也写入buffer1,此时可发现:解密模块具有buffer1的访问权限,那么解密模块直接读取buffer1中的第二个视频片段进行解密,而无需进行安全内存访问权限的配置,之后将第二个视频片段的解密结果写入buffer2。相应的,对于后续的解码、显示等模块,也无需进行安全内存访问权限的配置,而是直接调用相应模块进行数据处理。In some embodiments, the size of the memory access area can be set according to the average size of each processing segment in the video stream. For example, when a video stream segment is 3MB to 4MB, the size of buffer1, buffer2, and buffer2 can be set not less than 4MB and eliminates the need to configure secure memory access permissions for each module when processing the next video stream segment. That is: when the second video clip arrives at the TV set-top box, the second video clip is also written into buffer1. At this time, it can be found that the decryption module has the access authority of buffer1, so the decryption module directly reads the second file in buffer1. The video segment is decrypted without configuring secure memory access rights, and then the decrypted result of the second video segment is written to buffer2. Correspondingly, for subsequent modules such as decoding and displaying, there is no need to configure security memory access permissions, but to directly call corresponding modules for data processing.
因此,在一种具体实施方式中,多媒体数据处理方法还包括:判断当前数据处理模块是否具有安全内存访问权限;若是,则执行在非安全模式下调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据的步骤。若当前数据处理模块不具有安全内存访问权限,则执行使所述多媒体处理设备的CPU处于安全模式下,为所述当前数据处理模块配置安全内存访问权限的步骤。也即:若设备CPU运行于非安全模式、且当前数据处理模块具有多媒体数据的访问权限,则直接在非安全模式下调用所述当前数据处理模块按照所述安全内存访问权限处理所述多媒体数据。进一步减少CPU的运行负载,提高系统效率。Therefore, in a specific implementation manner, the multimedia data processing method further includes: judging whether the current data processing module has a security memory access authority; The step of accessing said multimedia data. If the current data processing module does not have the security memory access authority, perform the step of setting the CPU of the multimedia processing device in a security mode and configuring the security memory access authority for the current data processing module. That is: if the device CPU runs in a non-secure mode, and the current data processing module has the access authority of multimedia data, then directly call the current data processing module in the non-secure mode to process the multimedia data according to the security memory access authority . Further reduce the operating load of the CPU and improve system efficiency.
当然,如果安全内存访问权限配置的安全访问区域的大小设定的太小,下一次多媒体数据处理时就可能需要更新各模块的安全内存访问权限的配置。例如:当第二个视频片段到达电视机顶盒后,通过判断buffer1大小和第二个视频片段大小发现:buffer1无法容纳第二个视频片段,此时就不能再复用前一次为各模块配置的内存区域,而需要为第二个视频片段重新配置安全内存访问权限。更新各模块的安全内存访问权限的配置的过程可参照上述相关内容,其核心就是:修改相应寄存器中记录的信息。Of course, if the size of the secure access area in the secure memory access configuration is set too small, it may be necessary to update the configuration of the secure memory access of each module during the next multimedia data processing. For example: when the second video clip arrives at the TV set-top box, by judging the size of buffer1 and the size of the second video clip, it is found that buffer1 cannot accommodate the second video clip, and at this time, the memory configured for each module before can no longer be reused region, secure memory access permissions need to be reconfigured for the second video clip. The process of updating the configuration of the security memory access rights of each module can refer to the above-mentioned related content, and its core is to modify the information recorded in the corresponding register.
请参照图3,本实施例能够控制模块对应的内存访问地址。各模块在访问DDR时,通过设备里的安全CPU core控制相应模块能访问到的内存访问地址区间,从而实现保护DDR里的多媒体数据。Referring to FIG. 3 , this embodiment can control memory access addresses corresponding to modules. When each module accesses the DDR, the security CPU core in the device controls the memory access address range that the corresponding module can access, so as to protect the multimedia data in the DDR.
设备的系统在运行时,CPU默认运行在非安全状态(即非安全模式)。从服务器获取加密流后,把加密流写入DDR buffer1,此时需要调用模块1,那么发送状态切换命令至安全CPU core,以使设备切换到安全状态,也使总线地址控制器为安全模式。此时,在安全状态下配置模块1的输出对应的内存访问地址寄存器(其中记录buffer2起始地址)与大小寄存器(其中记录buffer2大小)。同时,为模块1配置buffer1的读权限,也就是:让模块1输入口的内存访问地址寄存器记录buffer1起始地址,让模块1输入口的大小寄存器记录buffer1大小。配置完成后,使设备切换到非安全状态,此时使能并启动模块1,模块1就能从buffer1中读取加密流,对其进行数据处理后将处理结果输出到buffer2中。相应地,其他模块对应的内存访问地址也据此相应配置和处理。When the system of the device is running, the CPU runs in a non-safe state (that is, non-safe mode) by default. After obtaining the encrypted stream from the server, write the encrypted stream into DDR buffer1. At this time,
下面对本申请实施例提供的一种多媒体数据处理装置进行介绍,下文描述的一种多媒体数据处理装置与上文描述的一种多媒体数据处理方法可以相互参照。A multimedia data processing device provided in an embodiment of the present application is introduced below. The multimedia data processing device described below and the multimedia data processing method described above may refer to each other.
参见图4所示,本申请实施例公开了一种多媒体数据处理装置,该装置应用于多媒体处理设备,多媒体处理设备包括多个数据处理模块,该装置包括:Referring to Figure 4, the embodiment of the present application discloses a multimedia data processing device, which is applied to a multimedia processing device, and the multimedia processing device includes a plurality of data processing modules, and the device includes:
接收模块401,用于接收多媒体数据的数据处理请求,根据数据处理请求从多个数据处理模块确定当前数据处理模块;The receiving
配置模块402,用于使多媒体处理设备的CPU处于安全模式下,为当前数据处理模块配置安全内存访问权限;The
调用模块403,用于切换CPU到非安全模式,调用当前数据处理模块按照安全内存访问权限处理多媒体数据。The calling
在一种具体实施方式中,接收模块具体用于:In a specific implementation manner, the receiving module is specifically used for:
根据数据处理请求确定数据处理流程;Determine the data processing process according to the data processing request;
根据数据处理流程依次从多个数据处理模块确定当前数据处理模块。The current data processing module is determined sequentially from multiple data processing modules according to the data processing flow.
在一种具体实施方式中,配置模块具体用于:In a specific implementation manner, the configuration module is specifically used for:
将当前数据处理模块对应的内存访问地址寄存器设置为安全模式,并将当前数据处理模块的内存访问地址配置给内存访问地址寄存器。Setting the memory access address register corresponding to the current data processing module to a safe mode, and configuring the memory access address of the current data processing module to the memory access address register.
在一种具体实施方式中,配置模块具体用于:In a specific implementation manner, the configuration module is specifically used for:
获取当前待处理数据的内存地址,将当前待处理数据的内存地址配置于当前数据处理模块对应的读内存地址寄存器;Obtain the memory address of the current data to be processed, and configure the memory address of the current data to be processed in the read memory address register corresponding to the current data processing module;
获取可写内存区域,将可写内存区域的内存地址配置于当前数据处理模块对应的写内存地址寄存器。Obtain the writable memory area, and configure the memory address of the writable memory area in the write memory address register corresponding to the current data processing module.
在一种具体实施方式中,还包括:In a specific embodiment, it also includes:
总线配置模块,用于将总线地址控制器设置为安全模式;将当前数据处理模块的安全内存访问权限配置给总线地址控制器。The bus configuration module is used for setting the bus address controller to a safe mode; and configuring the safe memory access authority of the current data processing module to the bus address controller.
在一种具体实施方式中,还包括:In a specific embodiment, it also includes:
总线请求处理模块,用于接收当前数据处理模块的数据处理总线请求;判断数据处理总线请求是否符合安全内存访问权限;若符合,则执行调用当前数据处理模块按照安全内存访问权限处理多媒体数据的步骤。The bus request processing module is used to receive the data processing bus request of the current data processing module; judge whether the data processing bus request meets the security memory access authority; if so, execute the step of invoking the current data processing module to process the multimedia data according to the security memory access authority .
在一种具体实施方式中,调用模块具体用于:In a specific implementation manner, the calling module is specifically used for:
基于当前数据处理模块的ID获取当前数据处理模块对应的可读内存区域和可写内存区域;Obtain the readable memory area and writable memory area corresponding to the current data processing module based on the ID of the current data processing module;
从可读内存区域中读取多媒体数据作为待处理数据;Read multimedia data from the readable memory area as pending data;
调用当前数据处理模块处理待处理数据,得到处理结果;Call the current data processing module to process the data to be processed and obtain the processing result;
将处理结果写入可写内存区域。Write the processing result to a writable memory area.
其中,关于本实施例中各个模块、单元更加具体的工作过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。For the more specific working process of each module and unit in this embodiment, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
可见,本实施例提供了一种多媒体数据处理装置,本申请实施例装置能够使各多媒体数据处理模块运行在设备CPU的非安全模式下,因此无需为各多媒体数据处理模块开发安全模式下的相应组件,减小设备系统开发难度,能够使多媒体处理设备在处理多媒体数据时,无需将整个设备或整个多媒体数据处理模块切换至安全模式,而是仅需在给数据处理模块配置安全内存访问权限时,使CPU处于安全模式,通过配置模块的安全内存访问权限以控制当前数据处理模块安全读或写DDR的某一部分空间,提高数据处理的安全性,因为只需要配置当前数据处理模块相应的地址寄存器的安全权限,减少CPU在安全模式和非安全模式之间的切换频率,由此降低CPU运行负载,降低设备整体功耗,提升系统运行效率。It can be seen that this embodiment provides a multimedia data processing device. The device in the embodiment of the present application can make each multimedia data processing module run in the non-secure mode of the device CPU, so it is not necessary to develop a corresponding Components, reducing the difficulty of device system development, enabling multimedia processing devices to process multimedia data without switching the entire device or the entire multimedia data processing module to a safe mode, but only when configuring secure memory access permissions for the data processing module , make the CPU in safe mode, and control the current data processing module to safely read or write a certain part of DDR space by configuring the safe memory access authority of the module, so as to improve the security of data processing, because only the corresponding address register of the current data processing module needs to be configured It can reduce the switching frequency of the CPU between secure mode and non-secure mode, thereby reducing the CPU operating load, reducing the overall power consumption of the device, and improving the operating efficiency of the system.
下面对本申请实施例提供的一种电子设备进行介绍,下文描述的一种电子设备与上文描述的一种多媒体数据处理方法及装置可以相互参照。An electronic device provided by an embodiment of the present application is introduced below, and the electronic device described below and the multimedia data processing method and apparatus described above may refer to each other.
参见图5所示,本申请实施例公开了一种电子设备,包括:Referring to Figure 5, the embodiment of the present application discloses an electronic device, including:
存储器501,用于保存计算机程序;
处理器502,用于执行所述计算机程序,以实现上述任意实施例公开的方法。The
下面对本申请实施例提供的一种可读存储介质进行介绍,下文描述的一种可读存储介质与上文描述的一种多媒体数据处理方法、装置及设备可以相互参照。A readable storage medium provided by an embodiment of the present application is introduced below. The readable storage medium described below and the multimedia data processing method, device, and equipment described above may refer to each other.
一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现前述实施例公开的多媒体数据处理方法。关于该方法的具体步骤可以参考前述实施例中公开的相应内容,在此不再进行赘述。A readable storage medium is used to store a computer program, wherein when the computer program is executed by a processor, the multimedia data processing method disclosed in the foregoing embodiments is implemented. Regarding the specific steps of the method, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
本申请涉及的“当前”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法或设备固有的其它步骤或单元。"Currently", "second", "third", "fourth" and the like referred to in this application, if any, are used to distinguish similar objects and not necessarily to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, e.g. a process, method or apparatus comprising a series of steps or elements is not necessarily limited to those steps or elements explicitly listed , but may include other steps or elements not explicitly listed or inherent to the process, method or apparatus.
需要说明的是,在本申请中涉及“当前”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“当前”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions in this application involving "current", "second" and so on are only for descriptive purposes, and should not be understood as indicating or implying their relative importance or implicitly indicating the quantity of indicated technical features. Thus, the features defined as "current" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present application.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的可读存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known readable storage medium.
本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。In this paper, specific examples are used to illustrate the principles and implementation methods of the application. The descriptions of the above embodiments are only used to help understand the method and core idea of the application; meanwhile, for those of ordinary skill in the art, according to the application There will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be construed as limiting the application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211302512.4ACN115618356A (en) | 2022-10-24 | 2022-10-24 | A multimedia data processing method, device, equipment and readable storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211302512.4ACN115618356A (en) | 2022-10-24 | 2022-10-24 | A multimedia data processing method, device, equipment and readable storage medium |
| Publication Number | Publication Date |
|---|---|
| CN115618356Atrue CN115618356A (en) | 2023-01-17 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211302512.4APendingCN115618356A (en) | 2022-10-24 | 2022-10-24 | A multimedia data processing method, device, equipment and readable storage medium |
| Country | Link |
|---|---|
| CN (1) | CN115618356A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1711524A (en)* | 2002-11-18 | 2005-12-21 | Arm有限公司 | A processor that switches between secure and non-secure modes |
| US20150089246A1 (en)* | 2013-09-20 | 2015-03-26 | Kabushiki Kaisha Toshiba | Information processing apparatus and computer program product |
| US20150089213A1 (en)* | 2013-09-24 | 2015-03-26 | Kabushiki Kaisha Toshiba | Information processing apparatus, information processing system, and computer program product |
| CN111143900A (en)* | 2019-12-24 | 2020-05-12 | 海光信息技术有限公司 | Data processing, access control method, system, device, device, storage medium |
| CN112100090A (en)* | 2020-09-16 | 2020-12-18 | 浪潮(北京)电子信息产业有限公司 | Data access request processing method, device, medium and memory mapping controller |
| CN113344764A (en)* | 2021-05-11 | 2021-09-03 | 中天恒星(上海)科技有限公司 | Secure graphics processor, processor chip, display card, apparatus, method, and storage medium |
| CN114297696A (en)* | 2021-12-31 | 2022-04-08 | 湖南国科微电子股份有限公司 | Data transmission method and device, electronic equipment and computer readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1711524A (en)* | 2002-11-18 | 2005-12-21 | Arm有限公司 | A processor that switches between secure and non-secure modes |
| US20150089246A1 (en)* | 2013-09-20 | 2015-03-26 | Kabushiki Kaisha Toshiba | Information processing apparatus and computer program product |
| US20150089213A1 (en)* | 2013-09-24 | 2015-03-26 | Kabushiki Kaisha Toshiba | Information processing apparatus, information processing system, and computer program product |
| CN111143900A (en)* | 2019-12-24 | 2020-05-12 | 海光信息技术有限公司 | Data processing, access control method, system, device, device, storage medium |
| CN112100090A (en)* | 2020-09-16 | 2020-12-18 | 浪潮(北京)电子信息产业有限公司 | Data access request processing method, device, medium and memory mapping controller |
| CN113344764A (en)* | 2021-05-11 | 2021-09-03 | 中天恒星(上海)科技有限公司 | Secure graphics processor, processor chip, display card, apparatus, method, and storage medium |
| CN114297696A (en)* | 2021-12-31 | 2022-04-08 | 湖南国科微电子股份有限公司 | Data transmission method and device, electronic equipment and computer readable storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| KR101483839B1 (en) | Protecting video content using virtualization | |
| US12147588B2 (en) | Controlled access to data stored in a secure partition | |
| CN112434286B (en) | Dynamic library calling method and device, electronic device and storage medium | |
| KR101837678B1 (en) | Computing apparatus based on trusted execution environment | |
| US9823869B2 (en) | System and method of protecting data in dynamically-allocated regions of memory | |
| WO2009107330A1 (en) | Information processor and method for controlling the same | |
| CN108229190B (en) | Transparent encryption and decryption control method, device, program, storage medium and electronic equipment | |
| CN114237817A (en) | Virtual machine data reading and writing method and related device | |
| CN114296873A (en) | Virtual machine image protection method, related device, chip and electronic equipment | |
| CN114218129A (en) | Flash data access method and related equipment | |
| US8732843B2 (en) | Software validity period changing apparatus, method, and installation package | |
| JP5374751B2 (en) | Memory management method | |
| CN118568743A (en) | Data encryption and decryption method, device, medium and equipment based on hardware encryption card | |
| CN115618356A (en) | A multimedia data processing method, device, equipment and readable storage medium | |
| US20230281304A1 (en) | Method for switching execution environment and related device thereof | |
| US11481338B2 (en) | Hardware control system and hardware control method | |
| CN117592081A (en) | Data decryption method, system, terminal equipment and storage medium | |
| CN111143879A (en) | Android platform SD card file protection method, terminal device and storage medium | |
| WO2016173116A1 (en) | Method and device for accessing storage data | |
| CN115544587A (en) | Encryption method, decryption method, chip, and computer-readable storage medium | |
| CN103270491B (en) | A kind of hardware resource protection method and system and virtual machine manager | |
| CN112486862B (en) | Protection system and method for memory | |
| CN117112047B (en) | USB equipment management and control method, equipment and storage medium | |
| US20240272910A1 (en) | Electronic device and operation method thereof | |
| CN117272377A (en) | Authorization data processing method, device and electronic equipment |
| 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 |