Data processing apparatus, method and electronic device
By setting a switching component between the DPU and the discrete graphics chip, the data processing path can be dynamically switched according to the data type, which solves the problem of insufficient data processing flexibility in the existing technology and realizes efficient image enhancement processing of the discrete graphics chip in different scenarios.
Patent Information
- Application Number
- CN202611285651.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-24
- Publication Date
- 2026-11-24
AI Technical Summary
In existing data processing devices, discrete graphics chips have a single data transmission path, which cannot be adjusted to different data, resulting in insufficient data processing flexibility and poor adaptability.
A switching component is set between the DPU and the discrete graphics chip and the display screen. The SoC controls the switching component to switch to different data processing paths when the data to be processed is different, so as to ensure that the data passes through the DPU and the discrete graphics chip in different orders, and achieve flexible data transmission order matching.
It improves the flexibility and adaptability of data processing. The image enhancement processing capability of the discrete graphics chip covers both unencrypted and encrypted scenarios, avoiding image quality loss and data processing limitations caused by a single path.
Smart Images

Figure CN123164262A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, specifically to data processing apparatus, methods, and electronic devices. Background Technology
[0002] With the continuous development of display technology in electronic devices, users' demands for image quality are increasing. As dedicated image processing hardware, discrete graphics chips can perform motion compensation, super-resolution enhancement, and color adjustment on display data, thereby effectively improving visual effects. The position of the discrete graphics chip in the data transmission path directly affects the data processing performance.
[0003] In the existing technology, data processing devices equipped with discrete graphics chips usually use a single data transmission path to complete data transmission and processing, which cannot adjust the data transmission order according to the differences in different data, resulting in insufficient data processing flexibility. Summary of the Invention
[0004] The purpose of this application is to provide a data processing apparatus, method, and electronic device that can improve the flexibility of data processing and adaptability to different types of data.
[0005] In a first aspect, embodiments of this application provide a data processing apparatus, comprising: a system-on-a-chip (SoC) including a display processing unit (DPU); a discrete graphics chip; and a switching component connected between the DPU, the discrete graphics chip, and a display screen; the SoC is configured to control the switching component to switch to a first path when the data to be processed is of a non-encrypted type; and to control the switching component to switch to a second path when the data to be processed is of an encrypted type; wherein, in the first path, the data to be processed is first processed by the discrete graphics chip and then by the DPU; and in the second path, the data to be processed is first processed by the DPU and then by the discrete graphics chip.
[0006] Secondly, embodiments of this application provide a data processing method, comprising: when the type of data to be processed is unencrypted, controlling a switch component to switch to a first path; when the type of data to be processed is encrypted, controlling the switch component to switch to a second path; and processing the data to be processed through the first path or the second path; wherein the switch component is connected between a DPU, a discrete graphics chip, and a display screen; in the first path, the data to be processed is first processed by the discrete graphics chip and then by the DPU; in the second path, the data to be processed is first processed by the DPU and then by the discrete graphics chip.
[0007] Thirdly, embodiments of this application provide a data processing apparatus, comprising: a control unit, configured to control a switch assembly to switch to a first path when the type of data to be processed is unencrypted; and to control the switch assembly to switch to a second path when the type of data to be processed is encrypted; and a processing unit, configured to process the data to be processed through the first path or the second path; wherein the switch assembly is connected between a DPU, a discrete graphics chip, and a display screen; in the first path, the data to be processed is first processed by the discrete graphics chip and then by the DPU; and in the second path, the data to be processed is first processed by the DPU and then by the discrete graphics chip.
[0008] Fourthly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions, when executed by the processor, implementing the steps of the method described in the second aspect.
[0009] Fifthly, embodiments of this application provide a readable storage medium on which a computer program is stored, and when executed by a processor, the computer program implements the steps of the method described in the first aspect above.
[0010] In a sixth aspect, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method described in the second aspect.
[0011] In a seventh aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the second aspect.
[0012] In this embodiment, a switching component is set between the DPU, the discrete graphics chip, and the display screen. The SoC controls the switching component to switch to the first path when the data to be processed is of unencrypted type, and to switch to the second path when the data to be processed is of encrypted type. The data flows through the DPU and the discrete graphics chip in different orders in the first and second paths, thereby matching the corresponding data transmission order according to the type of data to be processed. Compared with fixed-order transmission, this improves the flexibility of data processing. At the same time, the image enhancement processing capability of the discrete graphics chip can cover both unencrypted and encrypted scenarios, improving the adaptability to different types of data. Attached Figure Description
[0013] Figure 1 This is a schematic diagram of the data processing apparatus provided in the embodiments of this application; Figure 2 This is a schematic diagram of the data processing apparatus provided in the embodiments of this application; Figure 3 This is a flowchart of the data processing method provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of the data processing apparatus provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application; Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0014] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0015] The terms "first," "second," etc., used in this application's specification are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, in the specification, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects have an "or" relationship.
[0016] The terminology used in the implementation section of this application is only for explaining specific embodiments of this application and is not intended to limit this application. The terminology involved in the embodiments of this application is explained below.
[0017] A System-on-Chip (SoC), also known as a system-on-a-chip, is an integrated circuit that integrates multiple functional modules of a computer or electronic system onto a single chip. An SoC typically includes a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Display Processing Unit (DPU), memory, a modem, and other functional modules. SoCs can process digital signals, analog signals, mixed signals, and even radio frequency signals. SoCs are widely used in embedded systems such as smartphones, tablets, smart TVs, and automotive electronics. By highly integrating multiple functional modules onto a single chip, SoCs can significantly reduce device size, lower power consumption, and improve system performance. In this invention, the SoC, as the core control and computing unit of the entire data processing device, is responsible for executing data processing path switching decisions and carries key functional modules such as the display processing unit.
[0018] A discrete graphics chip (GPU) is a hardware module independent of the main SoC (System-on-a-Chip) and dedicated to image enhancement processing. GPUs do not participate in the real-time rendering calculations generated by the CPU and GPU; they only perform secondary image quality optimization on the complete image data rendered by the GPU. GPUs are equipped with independent video memory and a high-speed bus interface, focusing on high-performance graphics computing and parallel processing tasks. GPUs can perform various image enhancement algorithms on display data, including Motion Estimation and Motion Compensation (MEMC), Artificial Intelligence Super Resolution (AISR), and Picture Quality (PQ) adjustment. Through these processes, GPUs can improve the smoothness, clarity, and color performance of the displayed image.
[0019] A display screen is an output device used to present a final image to a user. It is an electronic device capable of outputting images. The main technology types of displays include Liquid Crystal Displays (LCDs) and Organic Light-Emitting Diodes (OLEDs). LCD screens achieve display by controlling light transmission through a backlight and liquid crystal molecules. OLED screens achieve display by emitting light themselves through organic light-emitting materials, possessing self-emissive properties. The core components of a display screen include a liquid crystal panel or OLED panel, driving circuitry, and a backlight or control circuitry. The display screen receives data from a Digital Processing Unit (DPU) or discrete graphics chip through a standard interface and converts it into a visible image.
[0020] The Central Processing Unit (CPU) is one of the main components of a computer, a very large-scale integrated circuit. The CPU consists of an arithmetic logic unit (ALU), a control unit, registers, and other components. The CPU's primary functions are interpreting computer instructions and processing data from computer software. It is responsible for instruction parsing, task scheduling, logical judgment, and system control, and is the core of the entire computing device. The CPU is the computer's computational and control core. It retrieves instructions or data from memory from the operating system, processes them, and issues control signals to various devices.
[0021] A Graphics Processing Unit (GPU), also known as a display core, display chip, or visual processor, is a processor specifically designed for handling image and graphics computations. The GPU's primary function is graphics rendering, including the calculation and generation of complex visuals such as lighting and modeling in games. A GPU contains hundreds or thousands of smaller, more efficient cores, possessing powerful parallel computing capabilities. GPUs are suitable for handling a large number of simple but highly concurrent computational tasks. The GPU can store rendered image data in memory for the GPU to read and output to the display screen.
[0022] A Display Processing Unit (DPU) is a hardware module specifically designed for image processing and display output control. The DPU retrieves pixel data from memory and sends it to display peripherals via a standard interface. The DPU provides hardware-accelerated image processing capabilities. It can perform image processing and display output tasks with low power consumption. DPU functions include image compositing, scaling, color format conversion, color space conversion, and color processing. The DPU blends multiple layers into a single frame and sends that frame to the display panel. The DPU connects to various displays via the Mobile Industry Processor Interface (MIPI).
[0023] Memory is a hardware module integrated within a System-on-a-Chip (SoC) for temporary data storage, used to temporarily store data processed by modules such as the CPU, GPU, and DPU. Memory read and write speeds are significantly higher than external storage devices. Memory provides high-speed data access capabilities for various functional modules within the SoC. For example, memory may include, but is not limited to, Double Data Rate (DDR) memory.
[0024] The Mobile Industry Processor Interface (MIPI) is an open standard interface specification for mobile application processors, initiated by the MIPI Alliance. MIPI is a high-performance, low-power, and low-cost serial communication interface. The purpose of MIPI is to standardize interfaces within mobile devices (such as camera interfaces, display interfaces, and RF / baseband interfaces). The MIPI Display Serial Interface (MIPI DSI) defines the communication protocol between the host processor and display peripherals. MIPI interfaces reduce the complexity of device design and increase design flexibility.
[0025] Peripheral Component Interconnect Express (PCIE) is a high-speed serial bus interface standard for connecting processors to peripherals, memory, and other components. PCIE uses a point-to-point topology, providing an independent link for each connected device. PCIE features high bandwidth, low latency, and supports hot-swapping and various device types. PCIE is widely used to connect high-speed peripherals such as graphics cards, network cards, and solid-state drives. The PCIE standard is developed and maintained by the Peripheral Component Interconnect Special Interest Group (PCI-SIG).
[0026] Digital Rights Management (DRM) is a technological means of protecting digital multimedia content from unauthorized use. Based on digital encryption technology and combined with a range of hardware and software technologies, DRM protects digital content. It ensures that digital content is used within a specified authorized scope and technically prevents illegal copying. DRM is used to control and manage access to copyrighted material. DRM aims to protect the rights of copyright owners and prevent unauthorized distribution and modification of content.
[0027] A Video Processing Unit (VPU) is a hardware engine specifically designed for video processing. The VPU features hardware decoding capabilities. It reduces CPU load, server load, and network bandwidth consumption. VPU functions include video decoding, 3D processing, image enhancement, image content recognition, and motion-compensated frame rate conversion. As a hardware accelerator specifically optimized for video scenarios, the VPU boasts high performance, low power consumption, and low latency.
[0028] Motion estimation and motion compensation (MEMC) is a motion quality compensation technology. MEMC uses chips and algorithms to predict the trajectory of moving objects in a video. MEMC inserts one or more motion compensation frames between two traditional frames. MEMC can increase the refresh rate of low frame rate videos to higher frame rates, resulting in smoother visuals.
[0029] Artificial Intelligence Super Resolution (AISR) is an image resolution enhancement technology based on artificial intelligence. AISR uses deep learning algorithms to improve the clarity of low-resolution images or videos. AISR can upscale standard definition, high definition, and full high definition video sources to 4K resolution with high quality. AISR learns from known high-resolution resources through a special convolutional neural network, thereby achieving super-resolution processing of low-resolution images and videos.
[0030] In the field of display technology, image quality (PQ) refers to the process of adjusting visual parameters such as color, brightness, contrast, and saturation of a displayed image to achieve a desired visual effect. PQ adjustment includes adjusting parameters such as grayscale consistency, brightness, hue, saturation, density, dynamic contrast, and gamma curve. The purpose of PQ adjustment is to optimize the display effect, making the image more in line with human visual preferences. In this invention, PQ is one of the image enhancement processes performed by the discrete graphics chip, used to optimize and adjust display data in terms of color and contrast to improve the visual effect of the image.
[0031] The data processing method and apparatus provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0032] Please refer to Figure 1 The diagram illustrates a data processing apparatus provided in an embodiment of this application. The data processing apparatus is an integrated electronic device capable of image data processing, image quality optimization, and display output. It can complete the entire process of processing and displaying the data to be displayed. For example, it may include devices such as smartphones, tablets, and portable smart terminals equipped with independent display hardware.
[0033] In this embodiment, the data processing device includes a System-on-a-Chip (SoC), a discrete graphics chip, and a switching component, wherein the SoC includes a Data Processing Unit (DPU). The switching component connects the DPU, the discrete graphics chip, and the display screen, and its function is to adjust the data transmission path by changing the internal conduction branches. The on / off state of the switching component is controlled by the SoC's control signals, enabling flexible switching between different transmission paths. The hardware overhead of the switching component is small, requiring only a few additional switching devices to be added to the existing architecture.
[0034] In this embodiment, the SoC can be used to control the switching component to switch the data processing path pointing to the display screen based on the type of data to be processed. Specifically, the SoC can detect the type of data to be processed, generate a corresponding control signal according to the type, and send the control signal to the switching component. The control signal instructs the switching component to switch to the data processing path that matches the current data type.
[0035] Data to be processed refers to the raw image data that needs to be optimized for image quality and ultimately output for display. Different types of data to be processed correspond to different optimal transmission and processing paths. The type of data to be processed refers to the classification of the data to be displayed in terms of data security attributes, source, format, etc. Different types of data to be processed have different processing requirements. For example, different types of data have different requirements for data access permissions. Different types of data have different requirements for the processing order, and the SoC can determine the data processing path to switch to based on the type of data to be processed.
[0036] A data processing path refers to the complete transmission and processing route of data from its origin to the display screen. The data processing path contains different processing units, which determine the processing timing and transmission path of the data. Different data processing paths correspond to different processing sequences.
[0037] The data processing path includes a first path and a second path. The order in which the data to be processed flows through the DPU and the discrete graphics chip differs between the first and second paths, and the timing of data processing by the DPU and the discrete graphics chip also changes accordingly. The data processing path is determined by the connection state of the switching components. Specifically, in the first path, the data to be displayed is first processed by the discrete graphics chip, and then output to the display screen via the DPU. In the second path, the data to be displayed is first processed by the DPU, then by the discrete graphics chip, and finally output to the display screen.
[0038] Understandably, if only a single path is set up, for example, placing the discrete graphics chip between the SoC and the display, with the DPU processing before the discrete graphics chip, the data input to the discrete graphics chip is the complete, full-screen data synthesized by the DPU. In this case, specific layers and all layers, including UI layers, are merged into one, making it impossible for the discrete graphics chip to separate specific layers for differentiated image enhancement. Simultaneously, the resolution of the data input to the discrete graphics chip is the same as the display's physical resolution, which is typically high. This results in a large computational load for the discrete graphics chip's internal algorithms. To meet the performance requirements of real-time processing, image scaling is often necessary to reduce the computational load, leading to image quality loss. This path is only suitable for processing specific types of data.
[0039] For example, if only one single path is set up, placing the discrete graphics chip between the SoC's GPU and DPU, with the discrete graphics chip processing before the DPU, the processing order is as follows: the GPU stores the rendered data into the SoC's memory; the discrete graphics chip reads the data from memory, performs image enhancement processing, and then sends it back to memory; the DPU reads the processed data from memory and outputs it to the display. In this path, because the discrete graphics chip intervenes after the GPU rendering is complete and before the DPU's composite output, it can read the original layer data rendered by the GPU from memory, thus enabling differentiated image enhancement processing for specific layers in the image. Simultaneously, the resolution of the data input to the discrete graphics chip is the GPU's actual rendering resolution, which is usually lower than the display's physical resolution. The discrete graphics chip can complete the algorithm calculation without scaling the image, thus avoiding image quality loss due to scaling. However, when the data to be processed is encrypted, because the encrypted data is protected by DRM and forcibly stored in a secure frame buffer that is prohibited from direct access by external devices such as the discrete graphics chip, the discrete graphics chip cannot perform image enhancement processing on this type of data.
[0040] By setting up a switching component connecting the Display Processing Unit (DPU), the discrete graphics chip, and the display screen, two switchable data processing paths are provided on the display transmission link. This breaks the limitation of traditional architectures that can only use a single fixed path, providing a hardware foundation for the adaptive processing of different data and achieving hardware-level compatibility support for dual data processing paths. By controlling the switching component to switch between the two data processing paths with different flow orders based on the type of data to be processed, the SoC can match the corresponding adaptive transmission processing link for different types of data, avoiding the adaptation barrier of a single path for specific types of data and eliminating the limitation that some types of data cannot be processed by the discrete graphics chip under a single path. Therefore, the data processing device in this embodiment can match the corresponding data transmission order according to the type of data to be processed, improving the flexibility of data processing.
[0041] Furthermore, in this embodiment, the types of data to be processed include encrypted and unencrypted types. Unencrypted data is screen data without access restrictions and directly readable by the discrete graphics chip. Examples include, but are not limited to, game screen data, images received via instant messaging, system interface rendering data, and images and videos from the local photo album. Encrypted data is screen data protected by DRM, resulting in restricted access; this type of data cannot be directly accessed by the discrete graphics chip. Examples include, but are not limited to, copyrighted streaming video content or digital rights-protected multimedia files.
[0042] Based on this, the SoC controls the switching component to switch to the first path when the data to be processed is of an unencrypted type. In the first path, the data to be processed is first processed by the discrete graphics chip, and then by the DPU. Specifically, the discrete graphics chip first performs image enhancement processing on the data to be displayed. Image enhancement processing may include, but is not limited to, at least one of the following: frame interpolation to improve smoothness, increasing image resolution to improve clarity, and adjusting the color and contrast of the image to optimize visual effects. After completing the image enhancement processing, the discrete graphics chip transmits the processed data to the DPU. The DPU performs display output processing on the data to be displayed. Display output processing includes image compositing processing and output control processing. The DPU outputs the processed data to the display screen.
[0043] Because the discrete graphics chip processes raw layer data before it has been synthesized by the DPU, it can distinguish the image content of different layers. Therefore, the discrete graphics chip can perform differentiated image enhancement processing on specific layers individually; for example, it can optimize the image quality of only the 3D rendered main body in a game scene without processing the UI layer. Simultaneously, in the first path, the resolution of the data input to the discrete graphics chip is the original generation resolution of the image data. This resolution is determined by the GPU during rendering and is usually lower than the physical resolution of the display screen. The discrete graphics chip performs image enhancement processing directly at this resolution, completing the algorithm calculation without scaling down or upscaling the image. This avoids the loss of image details and blurring caused by pixel interpolation or sampling, thus ensuring the image quality after processing by the discrete graphics chip. Therefore, the first path achieves fine-grained processing and high-quality image enhancement of unencrypted display data at the layer level.
[0044] Furthermore, the SoC also controls the switching component to switch to the second path when the data to be processed is encrypted. In the second path, the data to be processed is first processed by the DPU and then by the discrete graphics chip. Specifically, the data to be displayed is first processed by the DPU for display output. Display output processing includes image compositing and output control processing. The DPU transmits the processed data to the discrete graphics chip, which performs image enhancement processing before outputting the optimized data to the display screen. By processing encrypted data to be displayed by the DPU before transmitting it to the discrete graphics chip, the problem of encrypted data being unreadable by the discrete graphics chip due to access restrictions is avoided, enabling the discrete graphics chip to perform image enhancement processing on encrypted data as well.
[0045] Since the DPU, as the display output module within the SoC, has access to encrypted data to be processed, the data is read by the DPU and then transmitted to the discrete graphics chip through the data transmission interface. The discrete graphics chip receives the data from the DPU instead of reading it directly from memory, thus bypassing the access restriction. The image enhancement processing is also performed by the discrete graphics chip, so that encrypted data that could not be processed by the discrete graphics chip due to the security isolation mechanism can also receive image enhancement processing from the discrete graphics chip.
[0046] Therefore, the data processing device in this embodiment can support two data processing sequences through the same hardware architecture, enabling the image enhancement processing capability of the discrete graphics chip to cover both unencrypted and encrypted scenarios, thereby improving the adaptability of the data processing device to different types of data.
[0047] In some alternative embodiments, the SoC includes memory, which comprises a secure frame buffer and a non-secure frame buffer. Encrypted data to be processed is stored in the secure frame buffer, and unencrypted data to be processed is stored in the aforementioned non-secure frame buffer.
[0048] Specifically, the secure frame buffer is a memory region that is prohibited from direct access by external devices. Data in this memory region is restricted from direct access by all external devices, thus preventing unauthorized interception and copying of data at the hardware level. External devices are those independent of the SoC, including but not limited to discrete graphics chips. Discrete graphics chips cannot read data from the secure frame buffer via standard interfaces such as PCIe. However, the DPU, as the display output module within the SoC, has the security permissions to access the secure frame buffer. The DPU can read data from the secure frame buffer.
[0049] The insecure frame buffer is a memory region that allows direct access from external devices. There is no hardware isolation mechanism for access permissions in the insecure frame buffer; data in this memory region can be accessed and written by internal processing units and external devices. The discrete graphics chip can read data from the insecure frame buffer through standard interfaces such as PCIe, and can also write processed data back to the insecure frame buffer.
[0050] By dividing the SoC's memory into a secure frame buffer and a non-secure frame buffer, and storing encrypted data in the secure frame buffer and unencrypted data in the non-secure frame buffer, different types of data are isolated at the physical storage level. The secure frame buffer prohibits direct access from external devices. Encrypted data stored in this area is protected at the hardware level, preventing unauthorized external devices from reading copyrighted content and ensuring the effectiveness of digital rights management mechanisms. The non-secure frame buffer allows direct access from external devices. Unencrypted data stored in this area can be freely read by the discrete graphics chip through a standard interface, providing data accessibility for image enhancement processing in unencrypted scenarios. Therefore, this embodiment, through memory region division and the corresponding storage of data types with storage regions, ensures both the security of encrypted data and the accessibility of unencrypted data to the discrete graphics chip.
[0051] In some alternative embodiments, see Figure 1 In the first path, the discrete graphics chip is used to perform the following steps: read the data to be processed from the non-secure frame buffer via PCIe; perform image enhancement processing on the data to be processed to obtain the first data; write the first data back to the non-secure frame buffer via PCIe; the DPU is used to read the first data from the non-secure frame buffer and transmit the first data to the display screen via the Mobile Industry Processing Interface (MIPI).
[0052] By having the discrete graphics chip directly read and write the data to be processed in the non-secure frame buffer via PCIe, and then outputting it to the display screen by the display processing unit (DPU) after processing, the discrete graphics chip can directly read the unencrypted screen at the original resolution and perform optimization without having to process the packaged full-screen display data stream. This reduces the computing load on the discrete graphics chip, avoids the image quality loss caused by secondary scaling of the screen, and achieves a dual improvement in image quality optimization and processing efficiency in unencrypted scenarios.
[0053] In some alternative embodiments, see Figure 2 In the second path, the DPU is used to read the data to be processed from the security frame buffer; decode the data to be processed to obtain decoded data; transmit the decoded data to the discrete graphics chip through MIPI; the discrete graphics chip is used to perform image enhancement processing on the decoded data to obtain second data, and transmit the second data to the display screen through the MIPI interface.
[0054] After the DPU reads and decodes the data from the security frame buffer, it transmits it to the discrete graphics chip via MIPI for processing and then outputs it to the display screen. This avoids the permission restriction that external discrete graphics chips cannot directly access the security frame buffer, enabling encrypted copyright data to be processed normally by calling the discrete graphics chip to perform image enhancement processing. This solves the problem of discrete graphics failure in encrypted scenarios under traditional front-end architecture and makes the discrete graphics image quality enhancement function available in encrypted scenarios.
[0055] By designing differentiated interfaces and planning data flow through two pathways, and taking into account both the processing efficiency in non-encrypted scenarios and the functional compatibility in encrypted scenarios, the system achieves complete coverage of discrete image enhancement functionality for all types of data to be processed.
[0056] In some optional embodiments, the SoC includes a VPU and a GPU. The VPU is used to perform hardware decoding of DRM-protected encrypted data to be processed and stores the decoded data in a secure frame buffer in the SoC's memory. Thus, encrypted data to be processed includes image data protected by DRM and decoded by the VPU. Examples include, but are not limited to, video data from streaming platforms, digital rights-protected multimedia data, and pay-per-view content. The GPU is used to perform rendering operations and stores the rendered data in a non-secure frame buffer in the SoC's memory. Therefore, unencrypted data to be processed includes image data rendered by the GPU. Examples include, but are not limited to, game screen data, images received in instant messaging, system interface rendering data, and images and videos from the local photo album. Through this design, the SoC can accurately determine the type of data to be processed based on the data, and then control the switching components to switch to the corresponding data processing path, ensuring the accuracy of data type identification and the reliability of path switching.
[0057] In some optional embodiments, the switching assembly includes a first switch and a second switch. In a first path, the first and second switches are in a first state, and the output of the DPU is connected to the display screen via the first and second switches in sequence; in a second path, the first and second switches are in a second state, and the output of the DPU is connected to the input of the discrete graphics chip via the first switch, and the output of the discrete graphics chip is connected to the display screen via the second switch.
[0058] Specifically, the first switch is connected between the output of the DPU and the second switch. The first switch is also connected between the output of the DPU and the input of the discrete graphics chip. The first switch is used to select which path the data output by the DPU should be sent to under the control of the SoC. The first switch has one input and two outputs. The first switch can selectively connect the input to one of the two outputs according to a control signal. The first switch can be implemented using a single-pole double-throw (SPDT) switch. A SPDT switch is a switching device with one common input and two selectable outputs; the common input can be connected to one of the two outputs via a control signal. In its first state, the first switch connects the output of the DPU to the second switch; in its second state, it connects the output of the DPU to the input of the discrete graphics chip.
[0059] The second switch is connected between the first switch and the display screen. The second switch is also connected between the output of the discrete graphics chip and the display screen. The second switch, under the control of the SoC, selects whether data from the first switch or the discrete graphics chip is sent to the display screen. The second switch has two inputs and one output. The second switch can selectively connect its output to one of the two inputs based on a control signal. The second switch can be implemented using a single-pole double-throw switch. In its first state, the second switch connects the output of the first switch to the display screen; in its second state, it connects the output of the discrete graphics chip to the display screen.
[0060] The first state is the connected state of the switching components in the first path. In the first state, the first and second switches connect the DPU, discrete graphics chip, and display screen into a complete direct transmission path according to a specific internal connection method. In the first state, the output of the DPU is connected to the display screen sequentially via the first and second switches. After data is output from the DPU, it is directly transmitted to the second switch via the first switch, and then to the display screen via the second switch, without passing through the discrete graphics chip. When the type of data to be displayed is unencrypted, the SoC controls the first and second switches to switch to the first state.
[0061] The second state is the connected state of the switching components in the second path. In the second state, the first and second switches connect the DPU, discrete graphics chip, and display screen into a complete serial transmission path according to a specific internal connection method. In the second state, the output of the DPU is connected to the input of the discrete graphics chip via the first switch. The output of the discrete graphics chip is connected to the display screen via the second switch. After data is output from the DPU, it is transmitted to the discrete graphics chip via the first switch, processed by the discrete graphics chip, and then transmitted to the display screen via the second switch. When the type of data to be displayed is encrypted, the SoC controls the first and second switches to switch to the second state.
[0062] By configuring the switching assembly to include a first switch and a second switch, and setting both switches to a first state in a first path and a second state in a second path, the same switching assembly can achieve two different physical connection paths through two different combinations of the two switches' states. In the first state, the DPU's output is connected to the display screen sequentially via the first and second switches. This is a direct path, where data is directly transmitted between the DPU and the display screen without the discrete graphics chip intervening in the transmission path. This ensures that unencrypted data, after processing by the discrete graphics chip, can be directly output from the DPU to the display screen via this direct path. In the second state, the DPU's output is connected to the discrete graphics chip's input via the first switch, and the discrete graphics chip's output is connected to the display screen via the second switch. This is a serial path, where data output from the DPU must sequentially pass through the discrete graphics chip before reaching the display screen. This ensures that encrypted data, after processing by the DPU, is forcibly routed to the discrete graphics chip for image enhancement processing before being output to the display screen. The two state transitions are mutually exclusive and executed synchronously. Switching between two physical transmission paths with different processing sequences can be achieved simply by coordinating the switching of two switches. Thus, the switching component in this embodiment can achieve dynamic switchability of the data path with minimal hardware overhead, ensuring that data flows through the DPU and discrete graphics chip in the required order under different paths.
[0063] In some alternative embodiments, see Figure 1 or Figure 2 The first switch includes one input terminal and two output terminals, and the second switch includes two input terminals and one output terminal. Specifically, the first switch includes a first input terminal, a first output terminal, and a second output terminal; the second switch includes a second input terminal, a third input terminal, and a third output terminal.
[0064] For the first switch, its first input terminal is the input port of the first switch, which is connected to the output terminal of the DPU to receive data from the DPU. The first output terminal is one of the output ports of the first switch, connected to the second input terminal of the second switch. The second output terminal is the other output port of the first switch. The second output terminal is connected to the input terminal of the discrete graphics chip.
[0065] The second switch has two input terminals, one of which is connected to the first output terminal of the first switch. The third input terminal is the other input terminal of the second switch and is connected to the output terminal of the discrete graphics chip. The third output terminal is the output terminal of the second switch and is connected to the display screen.
[0066] In the first path, the first switch connects its first input terminal to its first output terminal. The output terminal of the DPU is connected to the first input terminal of the first switch. The first output terminal of the first switch is connected to the second input terminal of the second switch. Thus, data output by the DPU is transmitted to the second input terminal of the second switch via the first output terminal of the first switch. Simultaneously, in the first path, the second switch connects its second input terminal to its third output terminal. The second input terminal of the second switch receives data from the first switch. The third output terminal of the second switch is connected to the display screen. Thus, data is transmitted to the display screen via the third output terminal of the second switch. In summary, in the first path, the first input terminal is connected to the first output terminal, the second input terminal is connected to the third output terminal, and the output terminal of the DPU is sequentially connected to the display screen via the first and second switches.
[0067] In the second path, the first switch connects its first input terminal to its second output terminal. The output terminal of the DPU is connected to the first input terminal of the first switch. The second output terminal of the first switch is connected to the input terminal of the discrete graphics chip. Thus, data output by the DPU is transmitted to the input terminal of the discrete graphics chip via the second output terminal of the first switch. Simultaneously, in the second path, the second switch connects its third input terminal to its third output terminal. The third input terminal of the second switch is connected to the output terminal of the discrete graphics chip. The third output terminal of the second switch is connected to the display screen. Thus, data processed by the discrete graphics chip is transmitted to the display screen via the path from the third input terminal to the third output terminal of the second switch. In summary, in the second path, the first input terminal is connected to the second output terminal, the third input terminal is connected to the third output terminal, the output terminal of the DPU is connected to the input terminal of the discrete graphics chip via the first switch, and the output terminal of the discrete graphics chip is connected to the display screen via the second switch.
[0068] Through the structural design of the aforementioned switch assembly, the first and second switches can collaboratively switch between two different physical paths by connecting and disconnecting their respective internal ports. In the first path, the first input terminal is connected to the first output terminal, and the second input terminal is connected to the third output terminal. Data output by the DPU is directly transmitted to the display screen via the first and second switches, without passing through the discrete graphics chip. In the second path, the first input terminal is connected to the second output terminal, and the third input terminal is connected to the third output terminal. Data output by the DPU is transmitted to the discrete graphics chip via the first switch for image enhancement processing, and then transmitted to the display screen via the second switch. In both paths, the complete data path switching can be achieved simply by changing the connection state of the internal ports of the two switches. Therefore, this embodiment achieves physical layer support for two different data processing paths with a simple hardware connection through port connection relationships and switching of the internal connection states of the switches, ensuring that data flows through the DPU and the discrete graphics chip in the required processing order.
[0069] Please refer to Figure 3 The diagram illustrates a flowchart of a data processing method provided in an embodiment of this application. This data processing method can be applied to electronic devices. In practice, the aforementioned electronic devices may be smartphones, tablets, laptops, wearable devices, etc.
[0070] The data processing method provided in this application includes the following steps: Step 301: If the data to be processed is of a non-encrypted type, the control switch component switches to the first path.
[0071] Step 302: If the data to be processed is encrypted, the control switch component switches to the second path.
[0072] The switching component is connected between the DPU, the discrete graphics chip, and the display screen. In the first path, the data to be processed is first processed by the discrete graphics chip and then by the DPU; in the second path, the data to be processed is first processed by the DPU and then by the discrete graphics chip.
[0073] Step 303: Perform data processing on the data to be processed through the first channel or the second channel.
[0074] In some optional implementations of this embodiment, encrypted data to be processed is stored in the secure frame buffer of the system-on-a-chip (SoC) memory, while unencrypted data to be processed is stored in the insecure frame buffer of the memory. The secure frame buffer is a memory area that is prohibited from direct access by external devices, while the insecure frame buffer is a memory area that is allowed to be directly accessed by external devices.
[0075] In some optional implementations of this embodiment, step 303 may further include: when the data processing path is the first path, performing the following steps through the discrete graphics chip: reading the data to be processed from the non-secure frame buffer through the PCIe high-speed peripheral component interconnect standard interface; performing image enhancement processing on the data to be processed to obtain the first data; writing the first data back to the non-secure frame buffer through PCIe; reading the first data from the non-secure frame buffer through the DPU; and transmitting the first data to the display screen through the Mobile Industry Processing Interface (MIPI).
[0076] In some optional implementations of this embodiment, step 303 may further include: when the data processing path is the second path, the DPU performs the following steps: read the data to be processed from the security frame buffer; decode the data to be processed to obtain decoded data; transmit the decoded data to the discrete graphics chip via MIPI; perform image enhancement processing on the decoded data via the discrete graphics chip to obtain second data, and transmit the second data to the display screen via the MIPI interface.
[0077] In some optional implementations of this embodiment, encrypted data to be processed is stored in the secure frame buffer of the system-on-a-chip (SoC) memory, while unencrypted data to be processed is stored in the insecure frame buffer of the memory. The secure frame buffer is a memory area that is prohibited from direct access by external devices, while the insecure frame buffer is a memory area that is allowed to be directly accessed by external devices.
[0078] In some optional implementations of this embodiment, encrypted data to be processed includes image data protected by digital rights management and decoded by the video processing unit (VPU) in the SoC; unencrypted data to be processed includes image data rendered by the graphics processing unit (GPU) in the SoC.
[0079] The specific operation process of this embodiment can be found in the operation process performed by the SoC in the above embodiment, and the same technical effect can be produced. To avoid repetition, it will not be described again here.
[0080] The method provided in the above embodiments of this application controls the switching component to switch two data processing paths with different data flows through the DPU and discrete graphics chip based on the type of data to be processed. This allows the method to match the corresponding data transmission order according to the type of data to be processed, which improves the flexibility of data processing compared to fixed-order transmission. At the same time, the image enhancement processing capability of the discrete graphics chip can cover both unencrypted and encrypted scenarios, improving the adaptability to different types of data.
[0081] It should be noted that the data processing method provided in this application embodiment can be executed by a data processing device. This application embodiment uses a data processing device executing the data processing method as an example to illustrate the data processing device provided in this application embodiment.
[0082] like Figure 4 As shown, the data processing device 400 of this embodiment includes: a control unit 401, configured to: control a switching component to switch to a first path when the type of data to be processed is unencrypted; and control the switching component to switch to a second path when the type of data to be processed is encrypted; and a processing unit 402, configured to process the data to be processed through the first path or the second path; wherein the switching component is connected between the DPU, the discrete graphics chip, and the display screen; in the first path, the data to be processed is first processed by the discrete graphics chip and then by the DPU; in the second path, the data to be processed is first processed by the DPU and then by the discrete graphics chip.
[0083] In some optional implementations of this embodiment, the encrypted data to be processed is stored in the secure frame buffer of the memory in the system-on-a-chip (SoC), and the unencrypted data to be processed is stored in the insecure frame buffer of the memory. The secure frame buffer is a memory area that is prohibited from direct access by external devices, and the insecure frame buffer is a memory area that is allowed to be directly accessed by external devices.
[0084] In some optional implementations of this embodiment, the processing unit 402 is further configured to: when the data processing path is the first path, perform the following steps through the discrete graphics chip: read the data to be processed from the non-secure frame buffer through the PCIe high-speed peripheral component interconnect standard interface; perform image enhancement processing on the data to be processed to obtain first data; write the first data back to the non-secure frame buffer through the PCIe; read the first data from the non-secure frame buffer through the DPU; and transmit the first data to the display screen through the Mobile Industry Processing Interface (MIPI).
[0085] In some optional implementations of this embodiment, the processing unit 402 is further configured to: when the data processing path is the second path, perform the following steps through the DPU: read the data to be processed from the security frame buffer; decode the data to be processed to obtain decoded data; transmit the decoded data to the discrete graphics chip through MIPI; perform image enhancement processing on the decoded data through the discrete graphics chip to obtain second data, and transmit the second data to the display screen through the MIPI interface.
[0086] In some optional implementations of this embodiment, the encrypted data to be processed includes image data protected by digital rights management and decoded by the video processing unit (VPU) in the SoC; the unencrypted data to be processed includes image data rendered by the graphics processing unit (GPU) in the SoC.
[0087] The apparatus provided in the above embodiments of this application controls the switching component to switch two data processing paths with different data flows through the DPU and the discrete graphics chip based on the type of data to be processed. This allows the corresponding data transmission order to be matched according to the type of data to be processed, which improves the flexibility of data processing compared to fixed-order transmission. At the same time, the image enhancement processing capability of the discrete graphics chip can cover both unencrypted and encrypted scenarios, improving the adaptability to different types of data.
[0088] The data processing device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0089] The data processing device in this application embodiment can be a device with an operating system. The operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0090] The data processing device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0091] Optionally, such as Figure 5As shown, this application embodiment also provides an electronic device 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps of the above-described data processing method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0092] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.
[0093] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application. The electronic device 600 includes, but is not limited to, components such as: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
[0094] Those skilled in the art will understand that the electronic device 600 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 610 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here. The processor 610 is configured to control a switching component to switch to a first path when the data to be processed is of an unencrypted type; and to control a switching component to switch to a second path when the data to be processed is of an encrypted type; and to process the data to be processed through the first path or the second path; wherein the switching component is connected between the DPU, the discrete graphics chip, and the display screen; in the first path, the data to be processed is first processed by the discrete graphics chip and then by the DPU; in the second path, the data to be processed is first processed by the DPU and then by the discrete graphics chip.
[0095] By controlling the switching component to switch between two data processing paths with different sequences of data flow through the DPU and discrete graphics chip based on the type of data to be processed, the data transmission order can be matched according to the type of data to be processed, which improves the flexibility of data processing compared to fixed sequence transmission. At the same time, the image enhancement processing capability of the discrete graphics chip can cover both unencrypted and encrypted scenarios, improving the adaptability to different types of data.
[0096] In some optional implementations of this embodiment, encrypted data to be processed is stored in the secure frame buffer of the system-on-a-chip (SoC) memory, while unencrypted data to be processed is stored in the insecure frame buffer of the memory. The secure frame buffer is a memory area that is prohibited from direct access by external devices, while the insecure frame buffer is a memory area that is allowed to be directly accessed by external devices.
[0097] In some optional implementations of this embodiment, the processor 610 is also configured to perform the following steps via the discrete graphics chip when the data processing path is the first path: read data to be processed from the unsecure frame buffer via the PCIe high-speed peripheral component interconnect standard interface; perform image enhancement processing on the data to be processed to obtain first data; write the first data back to the unsecure frame buffer via PCIe; read the first data from the unsecure frame buffer via the DPU; and transmit the first data to the display screen via the Mobile Industry Processing Interface (MIPI).
[0098] In some optional implementations of this embodiment, the processor 610 is also configured to perform the following steps via the DPU when the data processing path is the second path: read the data to be processed from the security frame buffer; decode the data to be processed to obtain decoded data; transmit the decoded data to the discrete graphics chip via MIPI; perform image enhancement processing on the decoded data via the discrete graphics chip to obtain second data, and transmit the second data to the display screen via the MIPI interface.
[0099] In some optional implementations of this embodiment, encrypted data to be processed includes image data protected by digital rights management and decoded by the video processing unit (VPU) in the SoC; unencrypted data to be processed includes image data rendered by the graphics processing unit (GPU) in the SoC.
[0100] The specific operation process of this embodiment can be found in the operation process performed by the SoC in the above embodiment, and the same technical effect can be produced. To avoid repetition, it will not be described again here.
[0101] It should be understood that, in this embodiment, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0102] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 609 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 609 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0103] Processor 610 may include one or more processing units; optionally, processor 610 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 610.
[0104] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described data processing method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0105] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0106] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above data processing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0107] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0108] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the data processing method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0109] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0110] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0111] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A data processing apparatus, characterized in that, The device includes: System-on-a-chip (SoC), including a display processing unit (DPU); Dedicated graphics chip; A switching assembly is connected between the DPU, the discrete graphics chip, and the display screen; The SoC is configured to control the switching component to switch to the first path when the type of data to be processed is unencrypted, and to control the switching component to switch to the second path when the type of data to be processed is encrypted. In the first path, the data to be processed is first processed by the discrete graphics chip and then by the DPU; in the second path, the data to be processed is first processed by the DPU and then by the discrete graphics chip.
2. The apparatus according to claim 1, characterized in that, The SoC includes memory, which includes a secure frame buffer and a non-secure frame buffer. The secure frame buffer is a memory area that is prohibited from direct access by external devices, and the non-secure frame buffer is a memory area that is allowed to be directly accessed by external devices. The encrypted data to be processed is stored in the secure frame buffer, and the unencrypted data to be processed is stored in the non-secure frame buffer.
3. The apparatus according to claim 2, characterized in that, In the first path, the discrete graphics chip is used to read the data to be processed from the non-secure frame buffer through the PCIe high-speed peripheral component interconnect standard interface; The data to be processed is subjected to image enhancement processing to obtain the first data; The first data is written back to the non-secure frame buffer via the PCIe; The DPU is used to read the first data from the non-secure frame buffer and transmit the first data to the display screen through the Mobile Industry Processing Interface (MIPI). In the second path, the DPU is used to read the data to be processed from the security frame buffer; The data to be processed is decoded to obtain decoded data; The decoded data is transmitted to the discrete graphics chip via the MIPI interface; the discrete graphics chip performs image enhancement processing on the decoded data to obtain second data, and transmits the second data to the display screen via the MIPI interface.
4. The apparatus according to any one of claims 1-3, characterized in that, The SoC includes a video processing unit (VPU) and a graphics processing unit (GPU); the encrypted data to be processed includes image data protected by digital rights management and decoded by the VPU; the unencrypted data to be processed includes image data rendered by the GPU.
5. The apparatus according to claim 1, characterized in that, The switching assembly includes a first switch and a second switch; In the first path, the first switch and the second switch are in the first state, and the output terminal of the DPU is connected to the display screen in sequence through the first switch and the second switch; In the second path, the first switch and the second switch are in the second state, the output terminal of the DPU is connected to the input terminal of the discrete graphics chip via the first switch, and the output terminal of the discrete graphics chip is connected to the display screen via the second switch.
6. The apparatus according to claim 5, characterized in that, The first switch includes a first input terminal, a first output terminal, and a second output terminal; the second switch includes a second input terminal, a third input terminal, and a third output terminal; the first input terminal is connected to the output terminal of the DPU, the first output terminal is connected to the second input terminal, the second output terminal is connected to the input terminal of the discrete graphics chip; the third input terminal is connected to the output terminal of the discrete graphics chip, and the third output terminal is connected to the display screen. In the first path, the first input terminal is connected to the first output terminal, and the second input terminal is connected to the third output terminal; In the second path, the first input terminal is connected to the second output terminal, and the third input terminal is connected to the third output terminal.
7. A data processing method, characterized in that, The method includes: When the data to be processed is of an unencrypted type, the control switch component switches to the first path; If the data to be processed is encrypted, the control switch component switches to the second path; The data to be processed is processed through the first or the second channel; The switching component is connected between the DPU, the discrete graphics chip, and the display screen. In the first path, the data to be processed is first processed by the discrete graphics chip and then by the DPU. In the second path, the data to be processed is first processed by the DPU and then by the discrete graphics chip.
8. The method according to claim 7, characterized in that, The encrypted data to be processed is stored in the secure frame buffer of the system-on-a-chip (SoC) memory, and the unencrypted data to be processed is stored in the insecure frame buffer of the memory. The secure frame buffer is a memory area that is prohibited from direct access by external devices, and the insecure frame buffer is a memory area that is allowed to be directly accessed by external devices.
9. The method according to claim 8, characterized in that, The data processing of the data to be processed through the first channel or the second channel includes: When the data processing path is the first path, the discrete graphics chip performs the following steps: reads the data to be processed from the non-secure frame buffer through the PCIe high-speed peripheral component interconnect standard interface; performs image enhancement processing on the data to be processed to obtain first data; and writes the first data back to the non-secure frame buffer through the PCIe. The first data is read from the non-secure frame buffer by the DPU and transmitted to the display screen via the Mobile Industry Processing Interface (MIPI).
10. The method according to claim 8, characterized in that, The data processing of the data to be processed through the first channel or the second channel includes: When the data processing path is the second path, the DPU performs the following steps: reads the data to be processed from the security frame buffer; decodes the data to be processed to obtain decoded data; and transmits the decoded data to the discrete graphics chip via MIPI. The discrete graphics chip performs image enhancement processing on the decoded data to obtain second data, and then transmits the second data to the display screen through the MIPI interface.
11. The method according to any one of claims 7-10, characterized in that, The encrypted data to be processed includes image data protected by digital rights management and decoded by the video processing unit (VPU) in the SoC; the unencrypted data to be processed includes image data rendered by the graphics processing unit (GPU) in the SoC.
12. A data processing apparatus, characterized in that, The device includes: The control unit is configured to switch the switching assembly to the first path when the data to be processed is of an unencrypted type, and to switch the switching assembly to the second path when the data to be processed is of an encrypted type. A processing unit is configured to perform data processing on the data to be processed through the first channel or the second channel; The switching component is connected between the DPU, the discrete graphics chip, and the display screen. In the first path, the data to be processed is first processed by the discrete graphics chip and then by the DPU. In the second path, the data to be processed is first processed by the DPU and then by the discrete graphics chip.
13. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the data processing method as described in any one of claims 7-11.
