CN115037935A - Method for determining quantization parameter in encoding, chip system, display device and medium - Google Patents

Method for determining quantization parameter in encoding, chip system, display device and medium Download PDF

Info

Publication number
CN115037935A
CN115037935A CN202210609505.2A CN202210609505A CN115037935A CN 115037935 A CN115037935 A CN 115037935A CN 202210609505 A CN202210609505 A CN 202210609505A CN 115037935 A CN115037935 A CN 115037935A
Authority
CN
China
Prior art keywords
quantization parameter
unit
determining
row
cell
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210609505.2A
Other languages
Chinese (zh)
Inventor
杨韬育
汪佳丽
李锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shunjiu Electronic Technology Co ltd
Original Assignee
Shanghai Shunjiu Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Shunjiu Electronic Technology Co ltd filed Critical Shanghai Shunjiu Electronic Technology Co ltd
Priority to CN202210609505.2A priority Critical patent/CN115037935A/en
Publication of CN115037935A publication Critical patent/CN115037935A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/154Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation

Abstract

The embodiment of the application provides a quantization parameter determination method in coding, a chip system, a display device and a medium, wherein an initial quantization parameter corresponding to each unit of a first row is determined as a target quantization parameter corresponding to each unit of the first row, and smooth values corresponding to other rows are determined according to a preset first weight corresponding to each unit and a preset target quantization parameter corresponding to each unit of a previous row for each other row except the first row in sequence; and according to the smoothing value, smoothing the initial quantization parameter of each unit in the other lines, and determining the target quantization parameter of each unit in the other lines. That is, in the embodiment of the present application, the target quantization parameter of each unit is determined by performing smoothing processing on the initial quantization parameter of each unit, so that on the basis of not changing the available space of each line, the difference between the quantization parameters of two adjacent units is reduced, the situation of image distortion is reduced, and the image compression quality is improved.

Description

Method for determining quantization parameter in encoding, chip system, display device and medium
Technical Field
The present application relates to the field of image and video compression technologies, and in particular, to a method for determining quantization parameters in encoding, a chip system, a display device, and a medium.
Background
Fig. 1 is a schematic diagram of a process for compressing an image provided in the prior art, and as shown in fig. 1, the compression process includes forward prediction, quantization and encoding.
In the prior art, the process of quantizing an image is as follows: each image is divided into a plurality of block regions, and each block region is divided into a plurality of cells. And aiming at each block area, sequentially aiming at each unit according to a preset sequence, determining the sum value of the available space of the unit and the residual available spaces of other units before the unit, searching at least one quantization parameter of which the corresponding available space does not exceed the sum value in the corresponding relationship between the pre-stored quantization parameters and the available spaces, and taking the quantization parameter with the largest available space as the quantization parameter of the unit.
Specifically, fig. 2 is a schematic diagram of a process for determining quantization parameters in a quantization process provided in the prior art, and as shown in fig. 2, an available space corresponding to each unit is 35 bits, available spaces corresponding to two selectable quantization parameters q1 are 30 bits, and an available space corresponding to q2 is 40 bits. And each block area is divided into two units, the available space corresponding to the first unit is 35 bits, the quantization parameter corresponding to the first unit is determined to be q1, the available space of the first unit with the residual 5 bits is 35 bits +5 bits, and the quantization parameter corresponding to the second unit is determined to be q 2.
Fig. 3 is a schematic diagram of an image obtained after an image is quantized according to the prior art, as shown in fig. 3, in any two adjacent partitions, two units located at the boundary of the two partitions contain similar image contents, but quantization parameters of the two units determined by the prior art are different, which causes different quantization results of the two units, and causes banding artifacts to appear in the image obtained after quantization, which causes image distortion and reduces image compression quality.
Disclosure of Invention
The application provides a method for determining quantization parameters in coding, a chip system, a display device and a medium, which are used for solving the problems that when the quantization parameters corresponding to each unit are determined in the prior art, the image contents of two units positioned at the boundary of two partitions are the same, but the determined quantization parameters are different, so that image distortion is caused, and the image compression quality is reduced.
In a first aspect, an embodiment of the present application provides a method for determining a quantization parameter in encoding, where the method includes:
determining an initial quantization parameter corresponding to each unit of each line of the image to be compressed according to a corresponding relation between a pre-stored quantization parameter and an available space and a preset target available space of each unit;
according to the line sequence, determining the initial quantization parameter corresponding to each unit of the head line as the target quantization parameter corresponding to each unit of the head line;
sequentially aiming at each other row except the head row according to the row sequence, and determining a smooth value corresponding to the other row according to a preset first weight corresponding to each unit and a preset target quantization parameter corresponding to each unit in the previous row; and according to the smoothing value, smoothing the initial quantization parameter of each unit in the other lines, and determining the target quantization parameter of each unit in the other lines.
In a second aspect, an embodiment of the present application further provides an apparatus for determining a quantization parameter in encoding, where the apparatus includes:
the processing module is used for determining an initial quantization parameter corresponding to each unit of each line of the image to be compressed according to the corresponding relation between the pre-stored quantization parameter and the available space and the preset target available space of each unit;
the determining module is used for determining the initial quantization parameter corresponding to each unit of the first row as the target quantization parameter corresponding to each unit of the first row according to the row sequence;
the determining module is further configured to determine, for each other row except the head row in turn according to the row sequence, a smooth value corresponding to the other row according to a preset first weight corresponding to each cell and a preset target quantization parameter corresponding to each cell in a previous row; and according to the smoothing value, smoothing the initial quantization parameter of each unit in the other lines, and determining the target quantization parameter of each unit in the other lines.
In a third aspect, an embodiment of the present application further provides a chip system, where the chip system includes a memory and a processor, and the processor is coupled to the memory; wherein the memory includes program instructions, and when the program instructions are executed by the processor, the system on chip performs the steps of the method for determining quantization parameters in the coding according to any one of the above descriptions.
In a fourth aspect, an embodiment of the present application further provides a display device, where the display device includes:
a display screen;
a controller configured to perform the steps of the quantization parameter determination method in encoding as described in any one of the above.
In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the quantization parameter determination method in the encoding as described in any one of the above.
In the embodiment of the application, according to a corresponding relation between a quantization parameter and an available space which are stored in advance and a preset target available space of each unit, an initial quantization parameter corresponding to each unit of each line of an image to be compressed is determined, according to a line sequence, the initial quantization parameter corresponding to each unit of a first line is determined as a target quantization parameter corresponding to each unit of the first line, and according to a line sequence, sequentially aiming at each other line except the first line, and according to a first weight corresponding to each unit which is set in advance and the target quantization parameter corresponding to each unit of a previous line, a smooth value corresponding to the other line is determined; and according to the smoothing value, smoothing the initial quantization parameter of each unit in the other lines, and determining the target quantization parameter of each unit in the other lines. That is, in the embodiment of the present application, the target quantization parameter of each unit is determined by performing smoothing processing on the initial quantization parameter of each unit, so that on the basis of not changing the available space of each line, the difference between the quantization parameters of two adjacent units is reduced, the situation of image distortion is reduced, and the image compression quality is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram of a process for compressing an image provided by the prior art;
fig. 2 is a schematic diagram of a process for determining quantization parameters in a quantization process provided in the prior art;
fig. 3 is a schematic diagram of an image obtained after an image is quantized according to the prior art;
fig. 4 is a schematic diagram illustrating an operation scenario between a display device and a control apparatus according to an embodiment;
fig. 5 is a block diagram exemplarily showing a hardware configuration of the display device 200 according to the exemplary embodiment;
FIG. 6 is a schematic diagram of a quantization parameter determination process provided in an embodiment of the present application;
fig. 7 is a schematic diagram illustrating division of each line of an image to be compressed according to an embodiment of the present application;
FIG. 8 is a schematic diagram illustrating the division of each partition of an image to be compressed according to an embodiment of the present application;
FIG. 9 is a schematic diagram illustrating the division of each unit of an image to be compressed according to an embodiment of the present application;
fig. 10 is a schematic diagram illustrating a division of an image to be compressed according to an embodiment of the present application;
FIG. 11 is a schematic diagram of a process for determining quantization parameters according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a quantization parameter determining apparatus according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a chip system according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
All other embodiments, which can be derived by a person skilled in the art from the exemplary embodiments shown in the present application without inventive effort, shall fall within the scope of protection of the present application. Moreover, while the disclosure herein has been presented in terms of exemplary embodiment or embodiments, it is to be understood that each aspect of the disclosure can independently be implemented as a single unitary embodiment.
It should be understood that the terms "first," "second," "third," and the like in the description and in the claims of the present application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used are interchangeable under appropriate circumstances and can be implemented in sequences other than those illustrated or otherwise described herein with respect to the embodiments of the application, for example.
Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or device that comprises a list of elements is not necessarily limited to those elements explicitly listed, but may include other elements not expressly listed or inherent to such product or device.
The term "module," as used herein, refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and/or software code that is capable of performing the functionality associated with that element.
Fig. 4 is a schematic diagram illustrating an operation scenario between a display device and a control apparatus according to an embodiment. As shown in fig. 4, the user may operate the display apparatus 200 through the control device 100.
The control device 100 may be a remote control 100A, which includes infrared protocol communication, bluetooth protocol communication, other short-distance communication modes, and the like, and controls the display device 200 in a wireless or other wired manner. The user may input a user command through a key on a remote controller, a voice input, a control panel input, etc. to control the display apparatus 200. Such as: the user can input a corresponding control command through a volume up/down key, a channel control key, up/down/left/right moving keys, a voice input key, a menu key, a power on/off key, etc. on the remote controller, to implement the function of controlling the display device 200.
The control device 100 may also be an intelligent device, such as a mobile terminal 100B, a tablet computer, a notebook computer, and the like. For example, the display device 200 is controlled using an application program running on the smart device. The application may provide the user with various controls through an intuitive User Interface (UI) on a screen associated with the smart device.
For example, the mobile terminal 100B may install a software application with the display device 200, implement connection communication through a network communication protocol, and implement the purpose of one-to-one control operation and data communication. Such as: the mobile terminal 100B and the display device 200 may establish a control instruction protocol, synchronize the remote control keyboard to the mobile terminal 100B, and control the function of the display device 200 by controlling the user interface on the mobile terminal 100B. The audio and video content displayed on the mobile terminal 100B may also be transmitted to the display device 200, so as to implement a synchronous display function.
As shown in fig. 4, the display apparatus 200 also performs data communication with the server 300 through various communication means. The display device 200 may be allowed to be communicatively connected through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 300 may provide various contents and interactions to the display apparatus 200. Illustratively, the display device 200 receives software program updates, or accesses a remotely stored digital media library, by sending and receiving information, as well as Electronic Program Guide (EPG) interactions. The servers 300 may be a group or groups, and may be one or more types of servers. Other web service contents such as video-on-demand and advertisement services are provided through the server 300.
The display device 200 may be a liquid crystal display, an OLED display, a projection display device. The specific display device type, size, resolution, etc. are not limiting, and those skilled in the art will appreciate that the display device 200 may be modified in performance and configuration as desired.
The display apparatus 200 may additionally provide an intelligent network tv function that provides a computer support function in addition to the broadcast receiving tv function. Examples include a web tv, a smart tv, an Internet Protocol Tv (IPTV), and the like.
A hardware configuration block diagram of the display apparatus 200 according to an exemplary embodiment is exemplarily shown in fig. 5. As shown in fig. 5, the display apparatus 200 may include a tuner demodulator 220, a communicator 230, a detector 240, an external device interface 250, a controller 210, a memory 290, a user input interface, a video processor 260-1, an audio processor 260-2, a display 280, an audio input interface 272, and a power supply.
The tuner/demodulator 220 receives the broadcast television signal in a wired or wireless manner, and may perform modulation/demodulation processing such as amplification, mixing, resonance, and the like, so as to demodulate, from a plurality of wireless or wired broadcast television signals, the audio/video signal carried in the frequency of the television channel selected by the user, and additional information (e.g., EPG data signal).
The tuner demodulator 220 is responsive to a user selected television channel frequency and the television signal carried thereby, as selected by the user and as controlled by the controller 210.
The tuner demodulator 220 may receive signals according to different broadcasting systems of television signals, such as: terrestrial broadcasting, cable broadcasting, satellite broadcasting, internet broadcasting, or the like; and according to different modulation types, the digital modulation mode and the analog modulation mode can be adopted; and can demodulate the analog signal and the digital signal according to different types of the received television signals.
In other exemplary embodiments, the tuner/demodulator 220 may be in an external device, such as an external set-top box. In this way, the set-top box outputs television audio/video signals after modulation and demodulation, and the television audio/video signals are input into the display device 200 through the input/output interface 250.
The communicator 230 is a component for communicating with an external device or an external server according to various communication protocol types. For example: the communicator 230 may include a WIFI module 231, a bluetooth communication protocol module 232, a wired ethernet communication protocol module 233, and other network communication protocol modules or near field communication protocol modules.
The display apparatus 200 may establish a connection of a control signal and a data signal with an external control apparatus or a content providing apparatus through the communicator 230. For example, the communicator may receive a control signal of the remote controller 100A according to the control of the controller.
The detector 240 is a component of the display apparatus 200 for collecting signals of an external environment or interaction with the outside. The detector 240 may include a light receiver 242, a sensor for collecting the intensity of ambient light, which may be used to adapt to display parameter changes, etc.; the system can further include an image collector 241, such as a camera, etc., which can be used for collecting external environment scenes, collecting attributes of the user or interacting gestures with the user, adaptively changing display parameters, and recognizing user gestures, so as to realize the function of interaction with the user.
In some other exemplary embodiments, the detector 240 may further include a temperature sensor, such as by sensing an ambient temperature, and the display device 200 may adaptively adjust a display color temperature of the image. For example, when the temperature is higher, the display apparatus 200 may be adjusted to display a color temperature of an image that is cooler; when the temperature is lower, the display device 200 may be adjusted to display a warmer color temperature of the image.
In some other exemplary embodiments, the detector 240 may further include a sound collector, such as a microphone, which may be used to receive a user's voice, a voice signal including a control instruction of the user to control the display device 200, or collect an ambient sound for identifying an ambient scene type, and the display device 200 may adapt to the ambient noise.
The external device interface 250 provides a component for the controller 210 to control data transmission between the display apparatus 200 and other external apparatuses. The external device interface may be connected with an external apparatus such as a set-top box, a game device, a notebook computer, etc. in a wired/wireless manner, and may receive data such as a video signal (e.g., moving image), an audio signal (e.g., music), additional information (e.g., EPG), etc. of the external apparatus.
The external device interface 250 may include: a High Definition Multimedia Interface (HDMI) terminal 251, a Composite Video Blanking Sync (CVBS) terminal 252, an analog or digital component terminal 253, a Universal Serial Bus (USB) terminal 254, a red, green, blue (RGB) terminal (not shown), and the like.
The controller 210 controls the operation of the display device 200 and responds to the operation of the user by running various software control programs (such as an operating system and various application programs) stored on the memory 290.
As shown in fig. 5, the controller 210 includes a random access memory RAM213, a read only memory ROM214, a graphics processor 216, a CPU processor 212, a communication interface 218, and a communication bus. The RAM213 and the ROM214, the graphic processor 216, the CPU processor 212, and the communication interface 218 are connected via a bus.
A ROM213 for storing instructions for various system boots. If the display device 200 is powered on upon receipt of the power-on signal, the CPU processor 212 executes a system boot instruction in the ROM and copies the operating system stored in the memory 290 to the RAM214 to start running the boot operating system. After the start of the operating system is completed, the CPU processor 212 copies the various application programs in the memory 290 to the RAM214, and then starts running and starting the various application programs.
A graphics processor 216 for generating various graphics objects, such as: icons, operation menus, user input instruction display graphics, and the like. The display device comprises an arithmetic unit which carries out operation by receiving various interactive instructions input by a user and displays various objects according to display attributes. And a renderer for generating various objects based on the operator and displaying the rendered result on the display 280.
A CPU processor 212 for executing operating system and application program instructions stored in memory 290. And executing various application programs, data and contents according to various interactive instructions received from the outside so as to finally display and play various audio and video contents.
In some exemplary embodiments, the CPU processor 212 may include a plurality of processors. The plurality of processors may include one main processor and a plurality of or one sub-processor. A main processor for performing some operations of the display apparatus 200 in a pre-power-up mode and/or operations of displaying a screen in a normal mode. A plurality of or one sub-processor for performing an operation in a standby mode or the like.
The communication interfaces may include a first interface 218-1 through an nth interface 218-n. These interfaces may be network interfaces that are connected to external devices via a network.
The controller 210 may control the overall operation of the display apparatus 200. For example: in response to receiving a user command for selecting a UI object to be displayed on the display 280, the controller 210 may perform an operation related to the object selected by the user command.
Wherein the object may be any one of selectable objects, such as a hyperlink or an icon. Operations related to the selected object, such as: displaying an operation connected to a hyperlink page, document, image, or the like, or performing an operation of a program corresponding to an icon. The user command for selecting the UI object may be a command input through various input means (e.g., a mouse, a keyboard, a touch pad, etc.) connected to the display apparatus 200 or a voice command corresponding to a voice spoken by the user.
The memory 290 includes a memory for storing various software modules for driving and controlling the display apparatus 200. Such as: various software modules stored in memory 290, including: the system comprises a basic module, a detection module, a communication module, a display control module, a browser module, various service modules and the like.
The basic module is a bottom layer software module used for signal communication between hardware in the display device 200 and sending processing and control signals to an upper layer module. The detection module is a management module used for collecting various information from various sensors or user input interfaces, and performing digital-to-analog conversion and analysis management.
Meanwhile, the memory 290 is also used to store received external data and user data, images of respective items in various user interfaces, and visual effect maps of the focus object, etc.
A user input interface for transmitting an input signal of a user to the controller 210 or transmitting a signal output from the controller to the user. For example, the control device (e.g., a mobile terminal or a remote controller) may transmit an input signal input by a user, such as a power switch signal, a channel selection signal, a volume adjustment signal, etc., to the user input interface, and then the input signal is forwarded to the controller through the user input interface; alternatively, the control device may receive an output signal such as audio, video, or data output from the user input interface via the controller, and display the received output signal or output the received output signal in audio or vibration form.
In some embodiments, the user may input a user command on a Graphical User Interface (GUI) displayed on the display 280, and the user input interface receives the user input command through the Graphical User Interface (GUI). Alternatively, the user may input a user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through the sensor.
The video processor 260-1 is configured to receive a video signal, and perform video data processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to a standard codec protocol of the input signal, so as to obtain a video signal that is directly displayed or played on the display 280.
Illustratively, the video processor 260-1 includes a demultiplexing module, a video decoding module, an image synthesizing module, a frame rate conversion module, a display formatting module, and the like.
The demultiplexing module is used for demultiplexing the input audio and video data stream, and if the input MPEG-2 is input, the demultiplexing module demultiplexes the input audio and video data stream into a video signal and an audio signal.
And the video decoding module is used for processing the video signal after demultiplexing, including decoding, scaling and the like.
And the image synthesis module is used for carrying out superposition mixing processing on the GUI signal input by the user or generated by the user and the video image after the zooming processing by the graphic generator so as to generate an image signal for display.
The frame rate conversion module is configured to convert a frame rate of an input video, such as a frame rate of an input 24Hz, 25Hz, 30Hz, or 60Hz video into a frame rate of 60Hz, 120Hz, or 240Hz, where the input frame rate may be related to a source video stream, and the output frame rate may be related to an update rate of a display screen. The input is realized in a common format in a frame interpolation mode.
And a display formatting module for converting the signal output by the frame rate conversion module into a signal conforming to a display format of a display, such as converting the format of the signal output by the frame rate conversion module to output an RGB data signal.
And a display 280 for receiving the image signal input from the video processor 260-1 and displaying the video content and image and the menu manipulation interface. The display 280 includes a display screen assembly for presenting a picture and a driving assembly for driving the display of an image. The video content may be displayed from the video in the broadcast signal received by the tuner/demodulator 220, or from the video content input from the communicator or the external device interface. The display 280 simultaneously displays a user manipulation interface UI generated in the display apparatus 200 and used to control the display apparatus 200.
And, a driving component for driving the display according to the type of the display 280. Alternatively, in case the display 280 is a projection display, it may also comprise a projection device and a projection screen.
The audio processor 260-2 is configured to receive an audio signal, decompress and decode the audio signal according to a standard codec protocol of the input signal, and perform noise reduction, digital-to-analog conversion, amplification and other audio data processing to obtain an audio signal that can be played in the speaker 272.
An audio output interface 270 for receiving the audio signal output by the audio processor 260-2 under the control of the controller 210, wherein the audio output interface may include a speaker 272 or an external sound output terminal 274 for outputting to a generating device of an external device, such as: external sound terminal or earphone output terminal.
In other exemplary embodiments, the video processor 260-1 may comprise one or more chips. The audio processor 260-2 may also include one or more chips.
And, in other exemplary embodiments, the video processor 260-1 and the audio processor 260-2 may be separate chips or may be integrated in one or more chips with the controller 210.
And a power supply for supplying power supply support to the display apparatus 200 from the power input from the external power source under the control of the controller 210. The power supply may include a built-in power supply circuit installed inside the display apparatus 200, or may be a power supply installed outside the display apparatus 200, such as a power supply interface for providing an external power supply in the display apparatus 200.
In order to reduce the difference between quantization parameters of two adjacent units, reduce the situation of image distortion and improve the image compression quality on the basis of not changing the available space of each line, the embodiment of the application provides a quantization parameter determination method in coding, a chip system, a display device and a medium.
According to the corresponding relation between the pre-stored quantization parameter and the available space and the preset target available space of each unit, determining an initial quantization parameter corresponding to each unit of each line of an image to be compressed, according to a line sequence, determining the initial quantization parameter corresponding to each unit of a first line as a target quantization parameter corresponding to each unit of the first line, and sequentially aiming at each other line except the first line according to the line sequence, and determining a smooth value corresponding to the other line according to a first preset weight corresponding to each unit and the target quantization parameter corresponding to each unit of a previous line; and according to the smoothing value, smoothing the initial quantization parameter of each unit in the line, and determining the target quantization parameter of each unit in the other lines.
Fig. 6 is a schematic diagram of a quantization parameter determination process provided in an embodiment of the present application, where the process includes:
s601: and determining an initial quantization parameter corresponding to each unit of each line of the image to be compressed according to the corresponding relation between the pre-stored quantization parameter and the available space and the preset target available space of each unit.
The method for determining the quantization parameter in the coding provided by the embodiment of the application is applied to a display device, and the display device may be the display device shown in fig. 4 or fig. 5.
In the embodiment of the application, for each row of pixel points of an image, the row of pixel points is divided into a preset number of block areas, and then the pixel points in each block area are divided into a preset number of units, wherein the number of the pixel points in each block area is the same, and the number of the pixel points in each unit is the same.
Fig. 7 is a schematic diagram illustrating division of each line of an image to be compressed according to an embodiment of the present application, and as shown in fig. 7, a display device divides the image to be compressed into a plurality of lines according to pixels of each line of the image to be compressed, and names line1, line2, and the like.
Fig. 8 is a schematic diagram of dividing each partition of an image to be compressed according to an embodiment of the present application, and as shown in fig. 8, a display device divides a pixel point of each row into two partitions, which are slice1 and slice2 respectively.
Fig. 9 is a schematic diagram illustrating division of each cell of an image to be compressed according to an embodiment of the present application, and as shown in fig. 9, a display device divides a pixel point of each partition into four cells, which are packet1, packet2, packet3, and packet4 respectively.
Fig. 10 is a schematic diagram of dividing an image to be compressed according to an embodiment of the present application, and as shown in fig. 10, a display device divides the image to be compressed into a plurality of rows, divides pixel points of each row into two partitions, and divides pixel points of each partition into a plurality of units.
In the embodiment of the application, the corresponding relation between the quantization parameter and the available space and the target available space of each unit are stored in the display device in advance, and the display device determines the initial quantization parameter of each unit according to the target available space of each unit and the corresponding relation.
In the embodiment of the present application, the process of determining the initial quantization parameter of each cell is the same as the process of determining the quantization parameter of each cell in the related art.
Specifically, for each row of pixel points of the image to be compressed, the display device divides the row of pixel points into a preset number of block areas, and then divides the pixel points in each block area into a preset number of units, wherein the number of pixel points in each block area is the same, and the number of pixel points in each unit is the same. And aiming at each block area, sequentially aiming at each unit according to the unit sequence, determining the sum value of the available space of the unit and the residual available space of other units before the unit, searching at least one quantization parameter of which the corresponding available space does not exceed the sum value in the corresponding relationship of the pre-stored quantization parameters and the available space, and taking the quantization parameter with the largest available space as the initial quantization parameter of the unit.
S602: and according to the line sequence, determining the initial quantization parameter corresponding to each unit of the head line as the target quantization parameter corresponding to each unit of the head line.
In the embodiment of the present application, after the initial quantization parameter corresponding to each unit is determined, since the display device is the initial quantization parameter of each unit in the partition determined for each partition, the difference between the initial quantization parameters of two units located at the edges of two adjacent partitions in the same row may be large, but in the image to be compressed, since the two units are adjacent, the difference between the pixel values of the pixels included in the two units should be small, which results in that if the quantization operation is performed on the image to be compressed based on the initial quantization parameter, the difference between the quantization results corresponding to the two units is large, and when the compressed image is subsequently decompressed, the two partitions may generate blocking artifacts. Moreover, each line adopts the same partition mode and the mode of determining the initial quantization parameter of each unit, so that if the quantization operation is performed on the image to be compressed based on the initial quantization parameter, after the compressed image is subsequently decompressed, a block artifact is generated at the boundary of every two adjacent partitions of each line, and further a banding artifact is formed in the image.
Based on this, in order to improve the quality of image compression and avoid image distortion, in the embodiment of the present application, after the initial quantization parameter of each unit is determined, the initial quantization parameter of each unit in each row is adjusted, so as to reduce the difference between the initial quantization parameters of two adjacent units.
Specifically, in the embodiment of the present application, when adjusting the initial quantization of each unit of the image to be compressed, the initial quantization parameter of each unit of each line is sequentially adjusted based on the line sequence of the image to be compressed, and when adjusting, the initial quantization parameter of each unit of the current line is adjusted according to the target quantization parameter adjusted by each unit of the previous line of the current line. Based on this, since there is no previous line in the top line of the image to be compressed, in the embodiment of the present application, the initial quantization parameter corresponding to each unit of the top line is determined as the target quantization parameter corresponding to each unit of the top line.
S603: sequentially aiming at each other row except the head row according to the row sequence, and determining a smooth value corresponding to the other row according to a preset first weight corresponding to each unit and a preset target quantization parameter corresponding to each unit in the previous row; and according to the smoothing value, smoothing the initial quantization parameter of each unit in the other lines, and determining the target quantization parameter of each unit in the other lines.
In the embodiment of the present application, when determining the target quantization parameter of each cell of each other row except the head row, the target quantization parameter of each cell of each other row is sequentially determined according to the row order. Specifically, for each other line except the head line, a smoothing value corresponding to the other line is determined according to the target quantization parameter of each unit in the previous line of the other line in sequence according to the line order, and then the initial quantization parameter of each unit in the other line is smoothed according to the smoothing value to obtain the target quantization parameter of each unit in the other line.
In this embodiment of the present application, the display device further stores a first weight corresponding to each cell, and when determining the smooth value corresponding to the other row, the smooth value may be determined based on the first weight corresponding to each cell in the previous row and the target quantization parameter. It should be noted that, when dividing each line of the image to be compressed into a plurality of units, the number of units divided in each line is the same, and the number of pixels included in each unit is also the same, so in order to reduce the occupation of the memory of the display device, in the embodiment of the present application, when saving the first weight corresponding to each unit, the first weight corresponding to each unit in one line may be saved, and the first weights corresponding to other units are the same as the first weights corresponding to the units with the same position in the line, that is, the first weights corresponding to the units with the same position in each line are the same.
In addition, in this embodiment of the present application, the first weight corresponding to each cell may be set by a technician, the first weights corresponding to each cell in a row may be the same, and the first weights corresponding to each cell may also be different. The cells where the banding artifact occurs are generally two cells at the boundary of two partitions, and therefore, in the embodiment of the present application, when the first weight corresponding to each cell in a row is configured, the value of the first weight corresponding to a cell closer to the boundary of two partitions is larger.
In this embodiment of the present application, when determining the smooth value corresponding to each other row, an average value of the target quantization parameters of each cell in the upper row may be calculated according to the first weight corresponding to each cell in the upper row of the other row and the target quantization parameter of each cell, and the average value may be used as the smooth value corresponding to the other row. And then, smoothing the initial quantization parameter of each unit of the other rows according to the smoothing value, for example, determining a target quantization parameter corresponding to each unit by adopting a preset function and the initial quantization parameter and the smoothing value of each unit.
That is, in the embodiment of the present application, the target quantization parameter of each unit is determined by performing smoothing processing on the initial quantization parameter of each unit, so that on the basis of not changing the available space of each line, the difference between the quantization parameters of two adjacent units is reduced, the situation of image distortion is reduced, and the image compression quality is improved.
In order to determine a smooth value corresponding to another row, on the basis of the foregoing embodiment, in this embodiment of the application, the determining a smooth value corresponding to the other row according to a preset first weight corresponding to each cell and a preset target quantization parameter corresponding to each cell in a previous row includes:
for each cell in the previous row, determining a first product of the target quantization parameter corresponding to the cell and a first weight corresponding to the cell;
and determining a first sum of the first products of each unit of the previous row, and determining a first ratio of the first sum to the number of units of the other row as a smooth value corresponding to the other row.
In this embodiment, for each other row, when determining the smooth value corresponding to the other row, for each cell in the previous row of the other row, a first product of the target quantization parameter corresponding to the cell and the first weight corresponding to the cell is determined. And determining a first sum of the first products corresponding to each cell, and determining a smooth value corresponding to the other row by using a first ratio of the first sum and the number of the cells in the other row.
In the prior art, the display device determines the quantization parameter of each cell in each partition in a row in parallel, so the quantization parameters of the cells in any two partitions are not shared. In this embodiment, the smoothing value determined based on the above method includes information of the target quantization parameter of each unit in the previous row, and then the smoothing processing is performed on the quantization parameter of each unit in the current other row according to the smoothing value, so that the target quantization parameter obtained by smoothing processing of each unit in the other row is affected by the target quantization parameter of each unit in the previous row.
For example, in the embodiment of the present application, the upper row is divided into six cells, the target quantization parameters of the six cells are determined to be 1, 3, 4, 3, and 1 according to the position sequence of each cell in the upper row, the first weights corresponding to each cell are 0.7, 0.8, 0.9, 1, 0.85, and 0.7, respectively, and then the smoothing value corresponding to the current other row is determined to be (0.7 +0.8 + 3+0.9 + 4+ 1+ 3+0.85 + 3+0.7 + 1)/6, that is, the smoothing value is 2.16.
In order to reduce the difference between the quantization parameters of two adjacent cells, reduce the distortion of the image, and improve the image compression quality, in the embodiments of the present application, on the basis of the foregoing embodiments, the smoothing processing on the initial quantization parameter of each cell in the line according to the smoothing value, and determining the target quantization parameter of each cell in the other line includes:
respectively determining the difference value of the initial quantization parameter corresponding to each unit of the other lines and the smooth value corresponding to the other lines, and determining the second sum value of the difference values;
and for each unit of the other rows, determining the target quantization parameter of the unit according to the difference value between the initial quantization parameter corresponding to the unit and the smooth value, the second sum value and the initial quantization parameter corresponding to the unit.
In the embodiment of the present application, in order to reduce the image distortion during the compression process and improve the image compression quality, for each other line, the initial quantization parameter of each unit of the other line is smoothed according to the smoothing value corresponding to the other line.
Specifically, in the embodiment of the present application, for each cell of each other row, the difference between the initial quantization parameter of the cell and the smoothed value is determined, and the second sum of the differences corresponding to each cell is calculated. And then based on the smooth value, the second sum value and the difference value corresponding to each unit, carrying out smoothing processing on the initial quantization parameter of each unit of the other rows, and determining a target quantization parameter corresponding to each unit.
In this embodiment of the present application, when determining the target quantization parameter corresponding to each cell based on the smoothed value, the second sum value, and the difference value corresponding to each cell, the sum of the available space of each cell in the other rows is not changed, and no additional space is used, that is, the available space after compression of the pixel points in each row in this embodiment of the present application is unchanged compared with the available space in the prior art, and the unchanged available space for each row means that the compression rate is unchanged. In summary, in the embodiment of the present application, under the condition that the compression rate is not changed, the initial quantization parameter of each unit determined based on the prior art is smoothed, so that the quality of image compression is improved.
In order to reduce the difference between the quantization parameters of two adjacent cells, reduce the distortion of the image, and improve the image compression quality, in the embodiments of the present application, on the basis of the above embodiments, the determining the target quantization parameter of the cell according to the difference between the smoothed value and the initial quantization parameter corresponding to the cell, the second sum, and the initial quantization parameter corresponding to the cell includes:
determining a first difference corresponding to the unit, and determining a second ratio of the first difference to the second sum;
and determining a second product of the second ratio and the first difference, and determining a third sum of the second product and the initial quantization parameter corresponding to the unit as a target quantization parameter of the unit.
In the embodiment of the present application, for each cell in other rows, when determining the target quantization parameter of the cell, the influence of the position of the cell in the partition where the cell is located on the target quantization parameter may be considered, or may not be considered.
Specifically, for each unit in the other rows, if the influence of the position of the unit in the partition where the unit is located on the target quantization parameter is not considered, a first difference value between the smooth value corresponding to the other row and the initial quantization parameter of the unit is determined, a second sum value of the absolute value of each difference value between the initial quantization parameter corresponding to each unit in the other row and the smooth value is determined, and a second ratio of the first difference value to the second sum value is determined. And calculating a second product of the second ratio and the first difference, and determining a third sum of the second product and the initial quantization parameter of the unit as the target quantization parameter of the unit.
In the embodiment of the application, for each other line, on the basis of not changing the sum of the available space of each unit of the other line, the available space is divided for each unit again according to the corresponding smoothing value of the other line, so that the quantization result of each unit of the other line tends to be smooth, and the generation of block artifacts is avoided.
For example, in the embodiment of the present application, the other row has a corresponding smoothing value of 3.5, the other row is divided into four units, and the four units are respectively unit a, unit B, unit C, and unit D in the order of positions of the other row. The initial quantization parameter of the unit a is 3, the initial quantization parameter of the unit B is 4, the initial quantization parameter of the unit C is 3, and the initial quantization parameter of the unit D is 4, then the difference between the initial quantization parameter of the unit a and the smoothed value is 0.5, the difference between the initial quantization parameter of the unit B and the smoothed value is-0.5, the difference between the initial quantization parameter of the unit C and the smoothed value is 0.5, the difference between the initial quantization parameter of the unit D and the smoothed value is-0.5, and the second sum of the absolute values of the differences corresponding to the four units is 2. Determining that the target quantization parameter corresponding to the cell a is 0.5/2 × 0.5+3, that is, the target quantization parameter of the cell a is 3.125, based on the difference value, the second sum value and the smoothed value corresponding to each cell; determining that the target quantization parameter corresponding to the cell B is-0.5/2 x 0.5+4, that is, the target quantization parameter of the cell B is 3.875; determining that the target quantization parameter corresponding to the cell C is 0.5/2 × 0.5+3, that is, the target quantization parameter of the cell C is 3.125; the target quantization parameter corresponding to cell D is determined to be-0.5/2 x 0.5+4, i.e. the target quantization parameter of cell D is 3.875.
In order to reduce the difference between the quantization parameters of two adjacent cells, reduce the distortion of the image, and improve the image compression quality, in the embodiments of the present application, on the basis of the above embodiments, the determining the target quantization parameter of the cell according to the difference between the smoothed value and the initial quantization parameter corresponding to the cell, the second sum, and the initial quantization parameter corresponding to the cell includes:
determining a first difference corresponding to the unit, and determining a second ratio of the first difference to the second sum;
and determining a third product of the second ratio and the first difference, determining a fourth product of the third product and a prestored second weight corresponding to the unit, and determining a fifth sum of the fourth product and a second initial quantization parameter corresponding to the unit as a target quantization parameter of the unit.
In the embodiment of the present application, for each cell in another row, if the influence of the position of the cell in the partition where the cell is located on the target quantization parameter is considered, a first difference value between the initial quantization parameter of the cell and the smooth value corresponding to the other row is determined, and a second sum value of the absolute value of each difference value between the initial quantization parameter and the smooth value corresponding to each cell in the other row is determined, and a second ratio of the first difference value to the second sum value is determined. And calculating a third product of the second ratio and the first difference, calculating a fourth product of the third product and a prestored corresponding second weight of the unit, and determining a third sum of the fourth product and the initial quantization parameter of the unit as the target quantization parameter of the unit.
The second weight is preset by a technician according to the position of the unit in the partition where the unit is located. The second weight corresponding to each unit may be the same as or different from the first weight corresponding to the unit, and is not limited herein.
For example, in the embodiment of the present application, the smoothing value corresponding to the other row is 3.5, the other row is divided into four units, and the four units are respectively the unit a, the unit B, the unit C, and the unit D in the position order of the other row. Wherein the initial quantization parameter of the cell a is 3, the initial quantization parameter of the cell B is 4, the initial quantization parameter of the cell C is 3, and the initial quantization parameter of the cell D is 4, then the difference between the initial quantization parameter of the cell a and the smoothed value is 0.5, the difference between the initial quantization parameter of the cell B and the smoothed value is-0.5, the difference between the initial quantization parameter of the cell C and the smoothed value is 0.5, and the difference between the initial quantization parameter of the cell D and the smoothed value is-0.5, and the second sum of the absolute values of the differences corresponding to the four cells is 2.
The second weight corresponding to the cell a is 1, the second weight corresponding to the cell B is 2, the second weight corresponding to the cell C is 2, and the second weight corresponding to the cell D is 1. Determining the target quantization parameter of the cell a to be 0.5/2 × 0.5 × 1+3, that is, the target quantization parameter of the cell a is 3.125, based on the difference value corresponding to each cell, the second weight corresponding to each cell, the second sum value, and the smoothed value; determining that the target quantization parameter corresponding to the cell B is-0.5/2 0.5 x 2+4, that is, the target quantization parameter of the cell B is 3.75; determining that the target quantization parameter corresponding to the cell C is 0.5/2 × 0.5 × 2+3, that is, the target quantization parameter of the cell C is 3.25; the target quantization parameter corresponding to cell D is determined to be-0.5/2 × 0.5 × 1+4, i.e., the target quantization parameter of cell D is 3.875.
In order to avoid the waste of the display device resources, on the basis of the foregoing embodiments, in an embodiment of the present application, the method further includes:
and if the other row is determined to be the last row in the row sequence, ending the determination of the quantization parameter in the coding.
In the embodiment of the application, when determining the quantization parameter of each unit in the image, the display device determines the quantization parameter of each unit of each line in turn according to the line sequence. Based on this, in order to avoid the waste of display device resources, in the embodiment of the present application, if the last line in the sequence of other lines currently being processed is, after the quantization parameter of each cell in the other lines is determined, the display device ends the determination of the quantization parameter of the image.
In order to implement the quantization process on the image, on the basis of the foregoing embodiments, in an embodiment of the present application, the method further includes:
and saving the target quantization parameter of each unit in the other rows into the DDR.
In order for the display device to encode the image based on the quantization parameter, in the embodiment of the present application, after determining the target quantization parameter of each unit of each row, the display device stores the target quantization parameter of each unit of the row into a Double Data Rate (DDR) Synchronous Dynamic Random Access Memory (DDR).
Fig. 11 is a schematic diagram of a process for determining quantization parameters according to an embodiment of the present application, where the process shown in fig. 11 includes:
s1101: and determining an initial quantization parameter corresponding to each unit of each line of the image to be compressed according to the corresponding relation between the pre-stored quantization parameter and the available space and the preset target available space of each unit.
For example, for the currently processed line, the available space corresponding to each unit saved in advance is 35 bits, the available space corresponding to two optional quantization parameters q1 ═ 1 is 30 bits, and the available space corresponding to q2 ═ 3 is 40 bits. The currently processed line is divided into a first block area, a second block area and a third opening, and each block area is divided into two units, so that the available space corresponding to the first unit of the first block area is 35 bits, the quantization parameter corresponding to the first unit of the first block area is determined to be 1, the available space of 5 bits is remained in the first unit, the available space corresponding to the second unit of the second block area is 35 bits +5 bits, and the quantization parameter corresponding to the second unit is determined to be 3. Similarly, it is determined that the quantization parameter corresponding to the third unit of the second block is 1, and the quantization parameter corresponding to the fourth unit of the second block is 3.
S1102: and judging whether the current processed line is the first line in the line sequence, if so, executing S1109, and if not, executing S1103.
Wherein, S1109 and S1103 are two respectively independent processes.
S1103: and determining a target quantization parameter corresponding to each unit in the previous row.
S1104: and determining a smooth value corresponding to the current processed line according to a preset first weight corresponding to each unit and a preset target quantization parameter corresponding to each unit in the previous line.
Following the above example, the previous row is divided into six cells, the target quantization parameters of the six cells are respectively 1, 3, 1 and 3 according to the position sequence of each cell in the previous row, and the first weights corresponding to each cell are respectively 0.7, 0.9, 1 and 0.7, so that the smooth value corresponding to the currently processed row is determined to be (0.7 × 1+0.9 × 3+ 1+0.7 × 3)/4, that is, the smooth value is 0.53.
S1105: the method includes determining first differences corresponding to the cell, determining a second sum of absolute values of each of the first differences, and determining a second ratio of the first differences to the second sum.
Following the above example, the position sequence of each cell of the currently processed line is cell a, cell B, cell C and cell D, respectively, and the initial quantization parameters of the four cells are 1, 3, 1 and 3 in sequence. The first difference of the initial quantization parameter and the smoothed value for each cell is 0.47, 2.47, 0.47, and 2.47 in order, and the second sum is 3.88. For cell a, the second ratio of the first difference value of cell a to the second sum value is 0.12.
S1106: and determining a second product of the second ratio and the first difference, and determining a third sum of the second product and the initial quantization parameter corresponding to the unit as the target quantization parameter of the unit.
Following the above example, for the unit a, a second product of the first difference and the second ratio of the unit a is determined to be 0.36, and a third sum of the second product and the initial quantization parameter of the unit a is determined to be 1.36, that is, the target quantization parameter of the unit a is determined to be 1.36.
S1107: and saving the target quantization parameter of each unit in the current processed line to the DDR.
S1108: judging whether the current processed line is the last line in the line sequence, if not, taking the next line of the current processed line as a line to be processed, and continuing to execute the step S1102; if so, the process is ended.
S1109: and determining the initial quantization parameter corresponding to each unit of the line to be processed as the target quantization parameter corresponding to each unit of the line to be processed.
Fig. 12 is a schematic structural diagram of a quantization parameter determining apparatus according to an embodiment of the present application, where the apparatus includes:
a processing module 1201, configured to determine an initial quantization parameter corresponding to each unit of each line of the image to be compressed according to a pre-stored correspondence between the quantization parameter and the available space and a preset target available space of each unit;
a determining module 1202, configured to determine, according to a row sequence, an initial quantization parameter corresponding to each unit of a top row as a target quantization parameter corresponding to each unit of the top row;
the determining module 1202 is further configured to determine, for each other row except the head row in turn according to the row sequence, a smooth value corresponding to the other row according to a preset first weight corresponding to each cell and a preset target quantization parameter corresponding to each cell in the previous row; and according to the smoothing value, smoothing the initial quantization parameter of each unit in the other lines, and determining the target quantization parameter of each unit in the other lines.
In a possible implementation, the determining module 1202 is specifically configured to determine, for each cell in the previous row, a first product of the target quantization parameter corresponding to the cell and the first weight corresponding to the cell; and determining a first sum of the first products of each unit of the previous row, and determining a first ratio of the first sum to the unit number of the other row as a smooth value corresponding to the other row.
In a possible implementation manner, the determining module 1202 is specifically configured to determine differences between the smoothed values corresponding to the other rows and the initial quantization parameters corresponding to each unit of the other rows, and determine a second sum of absolute values of the differences; and aiming at each unit of the other rows, determining the target quantization parameter of the unit according to the difference value of the smooth value and the initial quantization parameter corresponding to the unit, the second sum value and the initial quantization parameter corresponding to the unit.
In a possible implementation manner, the determining module 1202 is specifically configured to determine a first difference corresponding to the unit, and determine a second ratio of the first difference to the second sum;
and determining a second product of the second ratio and the first difference, and determining a third sum of the second product and the initial quantization parameter corresponding to the unit as a target quantization parameter of the unit.
In a possible implementation manner, the determining module 1202 is specifically configured to determine a first difference corresponding to the unit, and determine a second ratio of the first difference to the second sum;
and determining a third product of the second ratio and the first difference, determining a fourth product of the third product and a prestored second weight corresponding to the unit, and determining a fifth sum of the fourth product and a second initial quantization parameter corresponding to the unit as a target quantization parameter of the unit.
In a possible implementation manner, the processing module 1201 is further configured to end the determination of the quantization parameter in encoding if the other line is determined to be the last line in the line order.
In a possible embodiment, the apparatus further comprises:
a saving module 1203, configured to save the target quantization parameter of each unit in the other row to the double data rate synchronous dynamic random access memory DDR.
Fig. 13 is a schematic structural diagram of a chip system according to an embodiment of the present disclosure. The system-on-a-chip includes one or more (including two) processors 1301 and a communication interface 1302.
Optionally, the chip system further includes a memory 1303, and the memory 1303 may include a read-only memory and a random access memory, and provides the processor with operation instructions and data. The portion of memory may also include non-volatile random access memory (NVRAM).
In some embodiments, as shown in FIG. 13, memory 1303 stores elements, execution modules or data structures, or subsets thereof, or extended sets thereof.
As shown in fig. 13, in the embodiment of the present application, by calling an operation instruction (which may be stored in an operating system) stored in the memory 1303, a corresponding operation is performed.
As shown in fig. 13, a processor 1301, which may also be referred to as a Central Processing Unit (CPU), controls the processing operations of the head-end device.
As shown in fig. 13, the memory 1303 may include a read-only memory and a random access memory, and provides instructions and data to the processor. A portion of the memory 1303 may also include NVRAM. For example, in-application communication interfaces and memory are coupled together via a bus system 1304, where the bus system 1304 may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 13 as the bus system 1304.
The method disclosed in the embodiments of the present application may be applied to a processor, or may be implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor may be a general purpose processor, a Digital Signal Processor (DSP), an ASIC, an FPGA (field-programmable gate array) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It should be noted that, in the embodiment of the present application, the above chip system is installed in a display device, and performs the steps of completing the above method.
On the basis of the foregoing embodiments, some embodiments of the present application further provide a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program is run on the processor, the processor is caused to execute the steps of the foregoing method.
Because the principle of solving the problem of the computer-readable storage medium is similar to the method for determining the quantization parameter in the code, the implementation of the computer-readable storage medium can refer to the embodiment of the method, and repeated details are not repeated.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Each flow and/or block in the flow charts and/or block diagrams, and combinations of flows and/or blocks in the flow charts and/or block diagrams, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for determining quantization parameters in coding, the method comprising:
determining an initial quantization parameter corresponding to each unit of each line of the image to be compressed according to a corresponding relation between a pre-stored quantization parameter and an available space and a preset target available space of each unit;
according to the line sequence, determining the initial quantization parameter corresponding to each unit of the head line as the target quantization parameter corresponding to each unit of the head line;
sequentially aiming at each other row except the head row according to the row sequence, and determining a smooth value corresponding to the other row according to a preset first weight corresponding to each unit and a preset target quantization parameter corresponding to each unit in the previous row; and according to the smoothing value, smoothing the initial quantization parameter of each unit in the other lines, and determining the target quantization parameter of each unit in the other lines.
2. The method according to claim 1, wherein the determining the smooth value corresponding to the other row according to the preset first weight corresponding to each cell and the preset target quantization parameter corresponding to each cell in the previous row comprises:
for each cell in the previous row, determining a first product of a target quantization parameter corresponding to the cell and a first weight corresponding to the cell;
and determining a first sum of the first products of each unit of the previous row, and determining a first ratio of the first sum to the number of units of the other row as a smooth value corresponding to the other row.
3. The method of claim 1, wherein the smoothing the initial quantization parameter of each cell in the other row according to the smoothing value, and determining the target quantization parameter of each cell in the other row comprises:
respectively determining the difference value of the smooth value corresponding to the other line and the initial quantization parameter corresponding to each unit of the other line, and determining a second sum value of the absolute values of the difference values;
and aiming at each unit of the other rows, determining the target quantization parameter of the unit according to the difference value of the smooth value and the initial quantization parameter corresponding to the unit, the second sum value and the initial quantization parameter corresponding to the unit.
4. The method of claim 3, wherein determining the target quantization parameter for the cell based on the difference between the smoothed value and the initial quantization parameter for the cell, the second sum, and the initial quantization parameter for the cell comprises:
determining a first difference corresponding to the unit, and determining a second ratio of the first difference to the second sum;
and determining a second product of the second ratio and the first difference, and determining a third sum of the second product and the initial quantization parameter corresponding to the unit as a target quantization parameter of the unit.
5. The method of claim 3, wherein determining the target quantization parameter for the cell based on the difference between the smoothed value and the initial quantization parameter for the cell, the second sum, and the initial quantization parameter for the cell comprises:
determining a first difference corresponding to the unit, and determining a second ratio of the first difference to the second sum;
and determining a third product of the second ratio and the first difference, determining a fourth product of the third product and a prestored second weight corresponding to the unit, and determining a fifth sum of the fourth product and a second initial quantization parameter corresponding to the unit as a target quantization parameter of the unit.
6. The method of claim 1, further comprising:
and if the other row is determined to be the last row in the row sequence, ending the determination of the quantization parameter in the coding.
7. The method of claim 1, further comprising:
and saving the target quantization parameter of each unit in the other rows into the DDR.
8. A system on a chip, the system on a chip comprising a memory and a processor, the processor and the memory coupled; wherein the memory includes program instructions which, when executed by the processor, cause the system-on-chip to perform the steps of the method for quantization parameter determination in an encoding as claimed in any one of claims 1 to 7.
9. A display device, characterized in that the display device comprises:
a display screen;
a controller configured to perform the steps of the quantization parameter determination method in the encoding of any one of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for determining a quantization parameter in an encoding according to any one of claims 1 to 7.
CN202210609505.2A 2022-05-31 2022-05-31 Method for determining quantization parameter in encoding, chip system, display device and medium Pending CN115037935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210609505.2A CN115037935A (en) 2022-05-31 2022-05-31 Method for determining quantization parameter in encoding, chip system, display device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210609505.2A CN115037935A (en) 2022-05-31 2022-05-31 Method for determining quantization parameter in encoding, chip system, display device and medium

Publications (1)

Publication Number Publication Date
CN115037935A true CN115037935A (en) 2022-09-09

Family

ID=83123508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210609505.2A Pending CN115037935A (en) 2022-05-31 2022-05-31 Method for determining quantization parameter in encoding, chip system, display device and medium

Country Status (1)

Country Link
CN (1) CN115037935A (en)

Similar Documents

Publication Publication Date Title
CN111405333B (en) Display apparatus and channel control method
CN111899680B (en) Display device and setting method thereof
CN110213657B (en) Starting method and smart television
CN112214189A (en) Image display method and display device
CN112118400B (en) Display method of image on display device and display device
CN111726673B (en) Channel switching method and display device
CN111107428A (en) Method for playing two-way media stream data and display equipment
WO2021189708A1 (en) Method for turning on screen protection for display device, and display device
CN111899175A (en) Image conversion method and display device
CN111954059A (en) Screen saver display method and display device
CN111954043B (en) Information bar display method and display equipment
CN111757181B (en) Method for reducing network media definition jitter and display device
CN111277911B (en) Image processing method of panoramic video, display device and server
CN111078926A (en) Method for determining portrait thumbnail image and display equipment
CN111445427B (en) Video image processing method and display device
CN113497906B (en) Volume adjusting method and device and terminal
CN112040285B (en) Interface display method and display equipment
CN115037935A (en) Method for determining quantization parameter in encoding, chip system, display device and medium
CN111343498B (en) Mute control method and device and smart television
CN113515249A (en) Device for supporting variable refresh rate signal for intelligent display equipment
CN112004127B (en) Signal state display method and display equipment
CN111405380B (en) Method and device for playing streaming media data
CN111901686B (en) Method for keeping normal display of user interface stack and display equipment
CN115119035B (en) Display device, image processing method and device
CN112286472B (en) UI display method and display equipment

Legal Events

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