CN106952630A - Pixel region processing method, device and pixel region switching method and apparatus - Google Patents

Pixel region processing method, device and pixel region switching method and apparatus Download PDF

Info

Publication number
CN106952630A
CN106952630A CN201710178593.4A CN201710178593A CN106952630A CN 106952630 A CN106952630 A CN 106952630A CN 201710178593 A CN201710178593 A CN 201710178593A CN 106952630 A CN106952630 A CN 106952630A
Authority
CN
China
Prior art keywords
region
pixel
lattice
source
value
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
CN201710178593.4A
Other languages
Chinese (zh)
Inventor
徐佳宏
朱吕亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN201710178593.4A priority Critical patent/CN106952630A/en
Publication of CN106952630A publication Critical patent/CN106952630A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2310/00Command of the display device
    • G09G2310/04Partial updating of the display screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a kind of pixel region processing method, device and pixel region switching method and apparatus, the pixel region processing method includes:Generate the lattice partition dimension of pixel area and target pixel region;Pixel area is divided according to lattice partition dimension, at least one source lattice region is obtained;Also, target pixel region is divided according to lattice partition dimension, at least one target lattice region is obtained;For each source lattice region, corresponding target lattice region is searched, and set up mapping relations.Method based on disclosure of the invention, it is ensured that source lattice region is identical with the number of target lattice region and arrangement, solves the problem of full frame size is not integer so that the value for the original image vegetarian refreshments that target pixel points existence anduniquess is determined is filled.

Description

Pixel area processing method and device and pixel area switching method and device
Technical Field
The present invention relates to the field of screen display technologies, and in particular, to a pixel region processing method and apparatus, and a pixel region switching method and apparatus.
Background
With the continuous development of the television industry, the display resolution of the screen changes greatly from standard definition television to high definition television. The display resolution is the precision of the screen image, and refers to how many pixels can be displayed on the display, for example, the pixel area with high definition resolution is 1280 × 720.
The screen corresponds to the concept of a frame buffer in a window management system. The system pre-allocates a block of memory to store the contents of the source pixel region to be displayed. When a source pixel area is refreshed locally, firstly, the aspect scaling ratio of the source pixel area and a target pixel area, namely the full-screen size ratio, is calculated; then, searching a target pixel area corresponding to the local refresh pixel area according to the calculated full-screen size ratio; finally, the value of the original pixel point in the local refresh pixel region is sent to the target pixel point in the corresponding target pixel region, so that the switching of the pixel region is completed, for example, the standard definition picture is switched to the high definition picture.
However, when the full-screen size ratio is not an integer, the aspect ratio of the local refresh pixel region to the target pixel region is also not an integer, which may cause some target pixels to have no uniquely determined value of the original pixel for filling. In order to solve the above problems, a method of taking values of adjacent pixels is generally adopted for processing at present, but this may cause a large difference between values of target pixels obtained by two adjacent local refreshes, thereby causing a problem of screen image jitter.
Disclosure of Invention
In view of this, the present invention provides a pixel region processing method and apparatus, and a pixel region switching method and apparatus, so as to solve the problem that when the full-screen size ratio is not an integer, part of target pixels have no uniquely determined value of an original pixel for filling. The technical scheme is as follows:
a pixel region processing method, comprising:
generating lattice division dimensions of a source pixel region and a target pixel region, wherein the lattice division dimensions are used for dividing a minimum integer scaling region in the pixel region and comprise a horizontal division dimension and a vertical division dimension;
dividing the source pixel region according to the lattice division dimension to obtain at least one source lattice region; dividing the target pixel region according to the lattice division dimension to obtain at least one target lattice region;
and aiming at each source lattice region, searching the corresponding target lattice region and establishing a mapping relation.
Preferably, the generating of the lattice division dimension of the source pixel region and the target pixel region includes:
acquiring a first pixel value of a source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction; acquiring a third pixel value of the target pixel area in the horizontal direction and a fourth pixel value of the target pixel area in the vertical direction;
calculating a first greatest common divisor of the first pixel value and the third pixel value; and calculating a second greatest common divisor of the second pixel value and the fourth pixel value;
and generating a lattice division dimension according to the first greatest common divisor and the second greatest common divisor, wherein the first greatest common divisor is a horizontal division dimension of the lattice division dimension, and the second greatest common divisor is a vertical division dimension of the lattice division dimension.
Preferably, the dividing the source pixel region according to the lattice division dimension to obtain at least one source lattice region includes:
acquiring a first pixel value of the source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction;
calculating a first quotient value of the first pixel value and the horizontal division dimension; and, calculating a second quotient of the second pixel value and the vertical division dimension;
dividing the source pixel region according to the first quotient value and the second quotient value to obtain at least one source lattice region, wherein a pixel value of the source lattice region in the horizontal direction is the first quotient value, and a pixel value of the source lattice region in the vertical direction is the second quotient value;
dividing the target pixel region according to the lattice division dimension to obtain at least one target lattice region, including:
acquiring a third pixel value of the source pixel region in the horizontal direction and a fourth pixel value of the source pixel region in the vertical direction;
calculating a third quotient value of the third pixel value and the horizontal division dimension; and, calculating a fourth quotient value of the fourth pixel value and the vertical division dimension;
and dividing the target pixel region according to the third quotient value and the fourth quotient value to obtain at least one target lattice region, wherein the pixel value of the target lattice region in the horizontal direction is the third quotient value, and the pixel value of the target lattice region in the vertical direction is the fourth quotient value.
A pixel region switching method, comprising:
when a local refreshing request carrying a source pixel region, a local refreshing pixel region and a target pixel region is received, carrying out lattice alignment processing on the local refreshing pixel region according to all source lattice regions divided in the source pixel region to obtain a current local refreshing pixel region; wherein,
the current local refreshing pixel region is an integral multiple of the source lattice region, and the source lattice region is obtained by the pixel region processing method according to any one of the technical schemes;
aiming at each source lattice region contained in the current local refreshing pixel region, selecting a corresponding target lattice region from the target pixel regions according to a mapping relation established in advance, wherein the target lattice region is obtained by a pixel region processing method according to any one of the technical schemes;
and sending the value of the original pixel point in the source lattice region to the corresponding target pixel point in the target lattice region.
Preferably, the performing lattice alignment processing on the local refresh pixel region according to all source lattice regions divided in the source pixel region to obtain a current local refresh pixel region includes:
judging whether the edge of the local refreshing pixel area is aligned with the edge of the source lattice area in the source pixel area;
if so, determining the local refreshing pixel area as the current local refreshing pixel area;
if not, expanding the edge of the local refreshing pixel region to the edge of the nearest source lattice region, and determining the local refreshing pixel region after the edge is expanded as the current local refreshing pixel region.
A pixel area processing apparatus comprising: the device comprises a lattice division dimension generating module, a region division module and a mapping establishing module;
the lattice division dimension generating module is used for generating lattice division dimensions of the source pixel region and the target pixel region, the lattice division dimensions are used for dividing a minimum integer scaling region in the pixel region, and the lattice division dimensions comprise a horizontal division dimension and a vertical division dimension;
the region division module is used for dividing the source pixel region according to the lattice division dimension to obtain at least one source lattice region; dividing the target pixel region according to the lattice division dimension to obtain at least one target lattice region;
and the mapping establishing module is used for searching the corresponding target lattice region aiming at each source lattice region and establishing a mapping relation.
Preferably, the lattice division dimension generating module is configured to generate a lattice division dimension of the source pixel region and the target pixel region, and specifically includes:
acquiring a first pixel value of a source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction; acquiring a third pixel value of the target pixel area in the horizontal direction and a fourth pixel value of the target pixel area in the vertical direction;
calculating a first greatest common divisor of the first pixel value and the third pixel value; and calculating a second greatest common divisor of the second pixel value and the fourth pixel value;
and generating a lattice division dimension according to the first greatest common divisor and the second greatest common divisor, wherein the first greatest common divisor is a horizontal division dimension of the lattice division dimension, and the second greatest common divisor is a vertical division dimension of the lattice division dimension.
Preferably, the region dividing module is configured to divide the source pixel region according to the lattice division dimension to obtain at least one source lattice region, and specifically includes:
acquiring a first pixel value of the source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction;
calculating a first quotient value of the first pixel value and the horizontal division dimension; and, calculating a second quotient of the second pixel value and the vertical division dimension;
dividing the source pixel region according to the first quotient value and the second quotient value to obtain at least one source lattice region, wherein a pixel value of the source lattice region in the horizontal direction is the first quotient value, and a pixel value of the source lattice region in the vertical direction is the second quotient value;
the region dividing module is configured to divide the target pixel region according to the lattice division dimension to obtain at least one target lattice region, and specifically includes:
acquiring a third pixel value of the source pixel region in the horizontal direction and a fourth pixel value of the source pixel region in the vertical direction;
calculating a third quotient value of the third pixel value and the horizontal division dimension; and, calculating a fourth quotient value of the fourth pixel value and the vertical division dimension;
and dividing the target pixel region according to the third quotient value and the fourth quotient value to obtain at least one target lattice region, wherein the pixel value of the target lattice region in the horizontal direction is the third quotient value, and the pixel value of the target lattice region in the vertical direction is the fourth quotient value.
A pixel area switching device, comprising: the device comprises a lattice alignment module, a target lattice region selection module and a sending module;
the lattice alignment module is used for carrying out lattice alignment processing on the local refreshing pixel region according to all source lattice regions divided in the source pixel region to obtain a current local refreshing pixel region when receiving a local refreshing request carrying the source pixel region, the local refreshing pixel region and a target pixel region; wherein,
the current local refreshing pixel region is an integral multiple of a source lattice region, and the source lattice region is obtained by the pixel region processing method according to any one of the technical schemes;
the target lattice region selection module is configured to select, for each source lattice region included in the current local refresh pixel region, a corresponding target lattice region from the target pixel region according to a mapping relationship established in advance, where the target lattice region is obtained by using the pixel region processing method according to any one of the above technical solutions;
and the sending module is used for sending the value of the original pixel point in the source lattice region to the corresponding target pixel point in the target lattice region.
Preferably, the lattice alignment module is configured to perform lattice alignment processing on the local refresh pixel region according to all source lattice regions divided in the source pixel region to obtain a current local refresh pixel region, and specifically includes:
judging whether the edge of the local refreshing pixel area is aligned with the edge of the source lattice area in the source pixel area;
if so, determining the local refreshing pixel area as the current local refreshing pixel area;
if not, expanding the edge of the local refreshing pixel region to the edge of the nearest source lattice region, and determining the local refreshing pixel region after the edge is expanded as the current local refreshing pixel region.
Compared with the prior art, the invention has the following beneficial effects:
the pixel region processing method and device, and the pixel region switching method and device provided by the invention ensure that the number and arrangement of the source lattice region and the target lattice region are the same by dividing the source pixel region and the target pixel region into lattices, and further, a mapping relation can be established for each source lattice region and the target lattice region uniquely corresponding to the source lattice region, so that the problem that the full-screen size ratio is not an integer is solved, and the target pixel point has the uniquely determined value of the original pixel point for filling.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a pixel region processing method according to an embodiment of the present invention;
FIG. 2 is a partial flowchart of another pixel region processing method according to an embodiment of the present invention;
FIG. 3 is a partial flowchart of another pixel region processing method according to an embodiment of the present invention;
FIG. 4 is a partial flowchart of another pixel region processing method according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a pixel region processing apparatus according to a second embodiment of the present invention;
fig. 6 is a flowchart of a pixel region switching method according to a third embodiment of the present invention;
FIG. 7 is a partial flowchart of another pixel region switching method according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of a pixel area switching device according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
Example one
The embodiment of the invention discloses a pixel area processing method, a flow chart of which is shown in figure 1, and the method comprises the following steps:
s101, generating lattice division dimensions of a source pixel region and a target pixel region, wherein the lattice division dimensions are used for dividing a minimum integer scaling region of the pixel region and comprise a horizontal division dimension and a vertical division dimension;
in the process of executing step S101, defining the lattice region as an integer scaling region where the pixel region is smallest, and accordingly, the lattice division dimension is a dimension for dividing the lattice region in the pixel region, that is, dividing the lattice;
for example, if the source pixel region is 720 × 576 and the target pixel region is 1280 × 720, the resulting lattice partition dimension is 80 × 144 for the two pixel regions.
Preferably, the specific process of generating the lattice division dimension of the source pixel region and the target pixel region in step S101, as shown in fig. 2, includes the following steps:
s201, acquiring a first pixel value of a source pixel area in a horizontal direction and a second pixel value of the source pixel area in a vertical direction; acquiring a third pixel value of the target pixel area in the horizontal direction and a fourth pixel value of the target pixel area in the vertical direction;
in the process of performing step S201, for example, if the source pixel area is 720 × 576 and the target pixel area is 1280 × 720, a first pixel value 720 in the horizontal direction and a second pixel value 576 in the vertical direction of the source pixel area are obtained; a third pixel value 1280 in the horizontal direction and a fourth pixel value 720 in the vertical direction of the target pixel area are obtained.
S202, calculating a first greatest common divisor of the first pixel value and the third pixel value; calculating a second greatest common divisor of the second pixel value and the fourth pixel value;
in the process of performing step S202, for example, if the source pixel area is 720 × 576 and the target pixel area is 1280 × 720, a first greatest common divisor 80 of the first pixel value 720 and the third pixel value 1280 is calculated; a second greatest common divisor 144 of the second pixel value 576 and the fourth pixel value 720 is calculated.
S203, generating a lattice division dimension according to a first greatest common divisor and a second greatest common divisor, wherein the first greatest common divisor is a horizontal division dimension of the lattice division dimension, and the second greatest common divisor is a vertical division dimension of the lattice division dimension;
in the process of performing step S203, for example, the source pixel region is 720 × 576, the target pixel region is 1280 × 720, and the lattice partition dimension 80 × 144 is generated according to the first greatest common divisor 80 and the second greatest common divisor 144, where the first greatest common divisor 80 is a horizontal partition dimension of the lattice partition dimension, and the second greatest common divisor 144 is a vertical partition dimension of the lattice partition dimension.
S102, dividing a source pixel region according to a lattice division dimension to obtain at least one source lattice region; dividing the target pixel region according to the lattice division dimension to obtain at least one target lattice region;
in the process of executing the step S102, dividing the source pixel region and the target pixel region according to a horizontal division dimension and a vertical division dimension of the lattice division dimensions, respectively, to obtain a source lattice region of a minimum integer scaling region in the source pixel region and a target lattice region in the target pixel region;
for example, the source pixel region is 720 × 576, the target pixel region is 1280 × 720, and the lattice division dimension of the two pixel regions is 80 × 144, then the source pixel region is divided into 720 × 576 according to the horizontal division dimension 80 and the vertical division dimension 144, and the obtained source lattice region is 9 × 4; the target pixel region is divided into 1280 × 720 according to the horizontal division dimension 80 and the vertical division dimension 144, resulting in the target lattice region 16 × 5.
Preferably, in step S102, the source pixel region is divided according to the lattice division dimension to obtain a specific implementation process of at least one source lattice region, as shown in fig. 3, the method includes the following steps:
s301, acquiring a first pixel value of a source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction;
in the process of performing step S301, for example, the source pixel region is 720 × 576, a first pixel value 720 in the horizontal direction and a second pixel value 576 in the vertical direction of the source pixel region are obtained.
S302, calculating a first quotient value of the first pixel value and the horizontal division dimension; and calculating a second quotient of the second pixel value and the vertical division dimension;
in the process of performing step S302, for example, if the source pixel area is 720 × 576 and the lattice division dimension is 80 × 144, a first quotient 9 between the first pixel value 720 and the horizontal division dimension 80 is calculated; and, a second quotient 4 of the second pixel value 576 and the vertical division dimension 144 is calculated.
S303, dividing a source pixel region according to a first quotient value and a second quotient value to obtain at least one source lattice region, wherein the pixel value of the source lattice region in the horizontal direction is the first quotient value, and the pixel value of the source lattice region in the vertical direction is the second quotient value;
in the process of performing step S303, for example, the source pixel region is 720 × 576, the first quotient is 9, and the second quotient is 4, the first quotient 9 is used as the pixel value of the source lattice region in the horizontal direction, and the second quotient 4 is used as the pixel value of the source lattice region in the vertical direction, that is, the source lattice region is 9 × 4.
Preferably, in step S102, the target pixel region is divided according to the lattice division dimension to obtain a specific implementation process of at least one target lattice region, as shown in fig. 4, the implementation process includes the following steps:
s401, acquiring a third pixel value of a source pixel area in the horizontal direction and a fourth pixel value of the source pixel area in the vertical direction;
in the process of performing step S401, for example, the target pixel area is 1280 × 720, a third pixel value 1280 in the horizontal direction and a fourth pixel value 720 in the vertical direction of the target pixel area are obtained.
S402, calculating a third quotient value of a third pixel value and a horizontal division dimension; and, calculating a fourth quotient value of the fourth pixel value and the vertical division dimension;
in the process of performing step S402, for example, when the target pixel area is 1280 × 720 and the lattice division dimension is 80 × 144, a third quotient 16 of the third pixel value 1280 and the horizontal division dimension 80 is calculated; and, a fourth quotient value of 5 is calculated for the fourth pixel value 720 and the vertical division dimension 144.
S403, dividing a target pixel region according to a third quotient value and a fourth quotient value to obtain at least one target lattice region, wherein the pixel value of the target lattice region in the horizontal direction is the third quotient value, and the pixel value of the target lattice region in the vertical direction is the fourth quotient value;
in the process of performing step S403, for example, the target pixel region is 1280 × 720, the third quotient value is 16, and the fourth quotient value is 5, then the third quotient value 16 is used as the pixel value of the source lattice region in the horizontal direction, and the fourth quotient value is 5 as the pixel value of the source lattice region in the vertical direction, that is, the target lattice region is 16 × 5.
S103, aiming at each source lattice region, searching a corresponding target lattice region and establishing a mapping relation;
in the process of executing step S103, the number and arrangement of the source lattice regions and the target lattice regions divided from the source pixel regions and the target pixel regions are the same, so that for each source lattice region in the source pixel regions, the corresponding target lattice region can be found according to the position identifier, for example, the position identifier of one source lattice region in the first row and the first column in the source pixel regions can be (1,1), and the target lattice region with the position identifier also being (1,1), that is, the target lattice region in the first row and the first column in the target pixel regions, is found.
According to the pixel area processing method provided by the embodiment of the invention, the source pixel area and the target pixel area are divided into lattices, so that the number and arrangement of the source lattice area and the target lattice area are ensured to be the same, and further, a mapping relation can be established for each source lattice area and the target lattice area uniquely corresponding to the source lattice area, so that the problem that the full-screen size ratio is not an integer is solved, and the target pixel point has the uniquely determined value of the original pixel point for filling.
Example two
With reference to the pixel region processing method disclosed in the first embodiment of the present invention, a structural schematic diagram of a device for executing the pixel region processing method is shown in fig. 5, and the device includes a lattice division dimension generating module 101, a region dividing module 102, and a mapping establishing module 103;
a lattice division dimension generating module 101, configured to generate lattice division dimensions of a source pixel region and a target pixel region, where the lattice division dimensions are used to divide a minimum integer scaling region in the pixel region, and the lattice division dimensions include a horizontal division dimension and a vertical division dimension;
the region dividing module 102 is configured to divide a source pixel region according to a lattice division dimension to obtain at least one source lattice region; dividing the target pixel region according to the lattice division dimension to obtain at least one target lattice region;
and the mapping establishing module 103 is configured to search for a corresponding target lattice region for each source lattice region, and establish a mapping relationship.
Preferably, the lattice division dimension generating module 101 is configured to generate lattice division dimensions of the source pixel region and the target pixel region, and specifically includes:
acquiring a first pixel value of a source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction; acquiring a third pixel value of the target pixel area in the horizontal direction and a fourth pixel value of the target pixel area in the vertical direction;
calculating a first greatest common divisor of the first pixel value and the third pixel value; calculating a second greatest common divisor of the second pixel value and the fourth pixel value;
and generating a lattice division dimension according to a first greatest common divisor and a second greatest common divisor, wherein the first greatest common divisor is a horizontal division dimension of the lattice division dimension, and the second greatest common divisor is a vertical division dimension of the lattice division dimension.
Preferably, the region dividing module 102 is configured to divide the source pixel region according to a lattice division dimension to obtain at least one source lattice region, and specifically includes:
acquiring a first pixel value of a source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction;
calculating a first quotient value of the first pixel value and the horizontal division dimension; and calculating a second quotient of the second pixel value and the vertical division dimension;
dividing a source pixel region according to a first quotient value and a second quotient value to obtain at least one source lattice region, wherein the pixel value of the source lattice region in the horizontal direction is the first quotient value, and the pixel value of the source lattice region in the vertical direction is the second quotient value;
the region dividing module 102 is configured to divide the target pixel region according to the lattice division dimension to obtain at least one target lattice region, and specifically includes:
acquiring a third pixel value of the source pixel region in the horizontal direction and a fourth pixel value of the source pixel region in the vertical direction;
calculating a third quotient value of the third pixel value and the horizontal division dimension; and, calculating a fourth quotient value of the fourth pixel value and the vertical division dimension;
and dividing the target pixel region according to the third quotient value and the fourth quotient value to obtain at least one target lattice region, wherein the pixel value of the target lattice region in the horizontal direction is the third quotient value, and the pixel value of the target lattice region in the vertical direction is the fourth quotient value.
According to the pixel area processing device provided by the embodiment of the invention, the source pixel area and the target pixel area are divided into lattices, so that the number and arrangement of the source lattice area and the target lattice area are ensured to be the same, and further, a mapping relation can be established for each source lattice area and the target lattice area uniquely corresponding to the source lattice area, so that the problem that the full-screen size ratio is not an integer is solved, and the target pixel point has the uniquely determined value of the original pixel point for filling.
EXAMPLE III
Based on the pixel region processing method disclosed in the first embodiment, a third embodiment of the present invention provides a pixel region switching method, and a flowchart of the method is shown in fig. 6, and includes the following steps:
s501, when a local refreshing request carrying a source pixel region, a local refreshing pixel region and a target pixel region is received, carrying out lattice alignment processing on the local refreshing pixel region according to all source lattice regions divided in the source pixel region to obtain a current local refreshing pixel region; wherein,
the current local refreshing pixel region is an integral multiple of a source lattice region, and the source lattice region is obtained by the pixel region processing method according to any one of the technical schemes;
in the process of executing step S501, performing lattice alignment processing on the local refresh area with all source lattice areas obtained by division in the source pixel area as reference, thereby obtaining a current local output pixel area whose pixel area is an integral multiple of the source lattice area;
preferably, in step S501, according to all source lattice regions divided in the source pixel region, the local refresh pixel region is subjected to lattice alignment processing to obtain a specific implementation process of the current local refresh pixel region, as shown in fig. 7, including the following steps:
s601, judging whether the edge of the local refreshing pixel area is aligned with the edge of the source lattice area in the source pixel area; if yes, go to step S602; if not, executing step S603;
s602, determining the local refreshing pixel area as the current local refreshing pixel area;
s603, expanding the edge of the local refreshing pixel region to the edge of the nearest source lattice region, and determining the local refreshing pixel region after the edge is expanded as the current local refreshing pixel region;
in the process of executing step S603, the edge of the local refresh pixel region is expanded to the edge of the nearest source lattice region, so that the local refresh pixel region after the edge expansion is the current local refresh pixel region with the smallest region that satisfies the following two conditions: one, aligned with the lattice edge; which is 2, is an integer multiple of the source lattice region.
S502, aiming at each source lattice region contained in the current local refreshing pixel region, selecting a corresponding target lattice region from target pixel regions according to a mapping relation established in advance, wherein the target lattice region is obtained by a pixel region processing method according to any one of the technical schemes;
s503, sending the value of the original pixel point in the source lattice region to a target pixel point in a corresponding target lattice region;
in the process of executing step S503, since the aspect ratios of each group of source lattice regions and the corresponding target lattice regions are the same, the unique corresponding relationship between the original pixel points in the source lattice region and the target pixel points in the corresponding target lattice region can be established by calling the hardware scaling interface of the existing platform, and thus, the values of the original pixel points can be sent to the target pixel points according to the corresponding relationship, thereby realizing the switching of the pixel regions.
The embodiment of the invention provides a pixel region switching method, which is characterized in that a local refreshing pixel region is subjected to lattice alignment treatment to obtain a current local refreshing pixel region which is an integral multiple of a source lattice region, so that a target pixel point in a target lattice region is filled according to a pre-established mapping relation between the source lattice region and the target lattice region. Therefore, the uniquely determined value of the original pixel point is filled to the target pixel point in each local refreshing, the values of the target pixel points obtained by two adjacent local refreshing are consistent, and the problem of screen image jitter is avoided.
Example four
With reference to the pixel area switching method disclosed in the third embodiment, a structural schematic diagram of a device for performing the pixel area switching method disclosed in the fourth embodiment of the present invention is shown in fig. 8, and includes: a lattice alignment module 201, a target lattice region selection module 202 and a transmission module 203;
the lattice alignment module 201 is configured to, when a local refresh request carrying a source pixel region, a local refresh pixel region, and a target pixel region is received, perform lattice alignment processing on the local refresh pixel region according to all source lattice regions divided in the source pixel region to obtain a current local refresh pixel region; wherein,
the current local refreshing pixel region is an integral multiple of a source lattice region, and the source lattice region is obtained by the pixel region processing method according to any one of the technical schemes;
a target lattice region selection module 202, configured to select, for each source lattice region included in the current local refresh pixel region, a corresponding target lattice region from the target pixel region according to a mapping relationship established in advance, where the target lattice region is obtained by using the pixel region processing method according to any one of the above technical solutions;
a sending module 203, configured to send the value of the original pixel point in the source lattice region to a target pixel point in a corresponding target lattice region.
Preferably, the lattice alignment module 201 is configured to perform lattice alignment processing on the local refresh pixel region according to all source lattice regions divided in the source pixel region, so as to obtain the current local refresh pixel region, and specifically includes:
judging whether the edge of the local refreshing pixel area is aligned with the edge of the source lattice area in the source pixel area;
if so, determining the local refreshing pixel area as the current local refreshing pixel area;
if not, expanding the edge of the local refreshing pixel region to the edge of the nearest source lattice region, and determining the local refreshing pixel region after the edge is expanded as the current local refreshing pixel region
The embodiment of the invention provides a pixel region switching device, which is used for carrying out lattice alignment treatment on a local refreshing pixel region to obtain a current local refreshing pixel region which is an integral multiple of a source lattice region, so that target pixel points in a target lattice region are filled according to a pre-established mapping relation between the source lattice region and the target lattice region. Therefore, the uniquely determined value of the original pixel point is filled to the target pixel point in each local refreshing, the values of the target pixel points obtained by two adjacent local refreshing are consistent, and the problem of screen image jitter is avoided.
The above detailed description is provided for a pixel region processing method and apparatus, and a pixel region switching method and apparatus provided by the present invention, and a specific example is applied in this document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include or include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A pixel region processing method, comprising:
generating lattice division dimensions of a source pixel region and a target pixel region, wherein the lattice division dimensions are used for dividing a minimum integer scaling region in the pixel region and comprise a horizontal division dimension and a vertical division dimension;
dividing the source pixel region according to the lattice division dimension to obtain at least one source lattice region; dividing the target pixel region according to the lattice division dimension to obtain at least one target lattice region;
and aiming at each source lattice region, searching the corresponding target lattice region and establishing a mapping relation.
2. The method of claim 1, wherein generating a lattice division dimension of the source pixel region and the target pixel region comprises:
acquiring a first pixel value of a source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction; acquiring a third pixel value of the target pixel area in the horizontal direction and a fourth pixel value of the target pixel area in the vertical direction;
calculating a first greatest common divisor of the first pixel value and the third pixel value; and calculating a second greatest common divisor of the second pixel value and the fourth pixel value;
and generating a lattice division dimension according to the first greatest common divisor and the second greatest common divisor, wherein the first greatest common divisor is a horizontal division dimension of the lattice division dimension, and the second greatest common divisor is a vertical division dimension of the lattice division dimension.
3. The method of claim 1, wherein said partitioning the source pixel region according to the lattice partitioning dimension to obtain at least one source lattice region comprises:
acquiring a first pixel value of the source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction;
calculating a first quotient value of the first pixel value and the horizontal division dimension; and, calculating a second quotient of the second pixel value and the vertical division dimension;
dividing the source pixel region according to the first quotient value and the second quotient value to obtain at least one source lattice region, wherein a pixel value of the source lattice region in the horizontal direction is the first quotient value, and a pixel value of the source lattice region in the vertical direction is the second quotient value;
dividing the target pixel region according to the lattice division dimension to obtain at least one target lattice region, including:
acquiring a third pixel value of the source pixel region in the horizontal direction and a fourth pixel value of the source pixel region in the vertical direction;
calculating a third quotient value of the third pixel value and the horizontal division dimension; and, calculating a fourth quotient value of the fourth pixel value and the vertical division dimension;
and dividing the target pixel region according to the third quotient value and the fourth quotient value to obtain at least one target lattice region, wherein the pixel value of the target lattice region in the horizontal direction is the third quotient value, and the pixel value of the target lattice region in the vertical direction is the fourth quotient value.
4. A method for switching pixel regions, comprising:
when a local refreshing request carrying a source pixel region, a local refreshing pixel region and a target pixel region is received, carrying out lattice alignment processing on the local refreshing pixel region according to all source lattice regions divided in the source pixel region to obtain a current local refreshing pixel region; wherein,
the current local refreshing pixel region is an integral multiple of the source lattice region, and the source lattice region is obtained by the pixel region processing method according to any one of claims 1 to 3;
aiming at each source lattice region contained in the current local refreshing pixel region, selecting a corresponding target lattice region from the target pixel regions according to a mapping relation established in advance, wherein the target lattice region is obtained by the pixel region processing method according to any one of claims 1 to 3;
and sending the value of the original pixel point in the source lattice region to the corresponding target pixel point in the target lattice region.
5. The method according to claim 4, wherein the performing lattice alignment processing on the local refresh pixel region according to all source lattice regions divided in the source pixel region to obtain a current local refresh pixel region comprises:
judging whether the edge of the local refreshing pixel area is aligned with the edge of the source lattice area in the source pixel area;
if so, determining the local refreshing pixel area as the current local refreshing pixel area;
if not, expanding the edge of the local refreshing pixel region to the edge of the nearest source lattice region, and determining the local refreshing pixel region after the edge is expanded as the current local refreshing pixel region.
6. A pixel area processing apparatus, comprising: the device comprises a lattice division dimension generating module, a region division module and a mapping establishing module;
the lattice division dimension generating module is used for generating lattice division dimensions of the source pixel region and the target pixel region, the lattice division dimensions are used for dividing a minimum integer scaling region in the pixel region, and the lattice division dimensions comprise a horizontal division dimension and a vertical division dimension;
the region division module is used for dividing the source pixel region according to the lattice division dimension to obtain at least one source lattice region; dividing the target pixel region according to the lattice division dimension to obtain at least one target lattice region;
and the mapping establishing module is used for searching the corresponding target lattice region aiming at each source lattice region and establishing a mapping relation.
7. The apparatus according to claim 6, wherein the lattice partition dimension generating module is configured to generate lattice partition dimensions of the source pixel region and the target pixel region, and specifically includes:
acquiring a first pixel value of a source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction; acquiring a third pixel value of the target pixel area in the horizontal direction and a fourth pixel value of the target pixel area in the vertical direction;
calculating a first greatest common divisor of the first pixel value and the third pixel value; and calculating a second greatest common divisor of the second pixel value and the fourth pixel value;
and generating a lattice division dimension according to the first greatest common divisor and the second greatest common divisor, wherein the first greatest common divisor is a horizontal division dimension of the lattice division dimension, and the second greatest common divisor is a vertical division dimension of the lattice division dimension.
8. The apparatus according to claim 6, wherein the region dividing module is configured to divide the source pixel region according to the lattice division dimension to obtain at least one source lattice region, and specifically includes:
acquiring a first pixel value of the source pixel area in the horizontal direction and a second pixel value of the source pixel area in the vertical direction;
calculating a first quotient value of the first pixel value and the horizontal division dimension; and, calculating a second quotient of the second pixel value and the vertical division dimension;
dividing the source pixel region according to the first quotient value and the second quotient value to obtain at least one source lattice region, wherein a pixel value of the source lattice region in the horizontal direction is the first quotient value, and a pixel value of the source lattice region in the vertical direction is the second quotient value;
the region dividing module is configured to divide the target pixel region according to the lattice division dimension to obtain at least one target lattice region, and specifically includes:
acquiring a third pixel value of the source pixel region in the horizontal direction and a fourth pixel value of the source pixel region in the vertical direction;
calculating a third quotient value of the third pixel value and the horizontal division dimension; and, calculating a fourth quotient value of the fourth pixel value and the vertical division dimension;
and dividing the target pixel region according to the third quotient value and the fourth quotient value to obtain at least one target lattice region, wherein the pixel value of the target lattice region in the horizontal direction is the third quotient value, and the pixel value of the target lattice region in the vertical direction is the fourth quotient value.
9. A pixel area switching device, comprising: the device comprises a lattice alignment module, a target lattice region selection module and a sending module;
the lattice alignment module is used for carrying out lattice alignment processing on the local refreshing pixel region according to all source lattice regions divided in the source pixel region to obtain a current local refreshing pixel region when receiving a local refreshing request carrying the source pixel region, the local refreshing pixel region and a target pixel region; wherein,
the current local refreshing pixel region is an integral multiple of a source lattice region, and the source lattice region is obtained by the pixel region processing method according to any one of claims 1 to 3;
the target lattice region selection module is configured to select, for each source lattice region included in the current local refresh pixel region, a corresponding target lattice region from the target pixel region according to a mapping relationship established in advance, where the target lattice region is obtained by the pixel region processing method according to any one of claims 1 to 3;
and the sending module is used for sending the value of the original pixel point in the source lattice region to the corresponding target pixel point in the target lattice region.
10. The apparatus according to claim 9, wherein the lattice alignment module is configured to perform lattice alignment processing on the local refresh pixel region according to all source lattice regions divided in the source pixel region to obtain a current local refresh pixel region, and specifically includes:
judging whether the edge of the local refreshing pixel area is aligned with the edge of the source lattice area in the source pixel area;
if so, determining the local refreshing pixel area as the current local refreshing pixel area;
if not, expanding the edge of the local refreshing pixel region to the edge of the nearest source lattice region, and determining the local refreshing pixel region after the edge is expanded as the current local refreshing pixel region.
CN201710178593.4A 2017-03-23 2017-03-23 Pixel region processing method, device and pixel region switching method and apparatus Pending CN106952630A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710178593.4A CN106952630A (en) 2017-03-23 2017-03-23 Pixel region processing method, device and pixel region switching method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710178593.4A CN106952630A (en) 2017-03-23 2017-03-23 Pixel region processing method, device and pixel region switching method and apparatus

Publications (1)

Publication Number Publication Date
CN106952630A true CN106952630A (en) 2017-07-14

Family

ID=59472472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710178593.4A Pending CN106952630A (en) 2017-03-23 2017-03-23 Pixel region processing method, device and pixel region switching method and apparatus

Country Status (1)

Country Link
CN (1) CN106952630A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108717395A (en) * 2018-05-18 2018-10-30 记忆科技(深圳)有限公司 A kind of method and device reducing dynamic address mapping information committed memory
WO2023206475A1 (en) * 2022-04-29 2023-11-02 北京小米移动软件有限公司 Image processing method and apparatus, electronic device and storage medium
CN118209565A (en) * 2024-05-21 2024-06-18 青岛超瑞纳米新材料科技有限公司 Intelligent monitoring method for processing process of carbon nano tube

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484434A (en) * 2002-09-17 2004-03-24 ���ǵ�����ʽ���� Method of pantography according to scale for digital image in embedded system
CN101593490A (en) * 2008-05-26 2009-12-02 联想(北京)有限公司 A kind of method and system of controlling backlight sources of display device
CN103150108A (en) * 2013-02-05 2013-06-12 华为技术有限公司 Equipment screen component moving method and device, and electronic equipment
CN103797787A (en) * 2012-09-10 2014-05-14 华为技术有限公司 Image processing method and image processing device
CN104918073A (en) * 2015-05-27 2015-09-16 深圳市金立通信设备有限公司 Image display method and terminal
CN105867757A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method and device for controlling large-screen intelligent equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484434A (en) * 2002-09-17 2004-03-24 ���ǵ�����ʽ���� Method of pantography according to scale for digital image in embedded system
CN101593490A (en) * 2008-05-26 2009-12-02 联想(北京)有限公司 A kind of method and system of controlling backlight sources of display device
CN103797787A (en) * 2012-09-10 2014-05-14 华为技术有限公司 Image processing method and image processing device
CN103150108A (en) * 2013-02-05 2013-06-12 华为技术有限公司 Equipment screen component moving method and device, and electronic equipment
CN104918073A (en) * 2015-05-27 2015-09-16 深圳市金立通信设备有限公司 Image display method and terminal
CN105867757A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method and device for controlling large-screen intelligent equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108717395A (en) * 2018-05-18 2018-10-30 记忆科技(深圳)有限公司 A kind of method and device reducing dynamic address mapping information committed memory
WO2023206475A1 (en) * 2022-04-29 2023-11-02 北京小米移动软件有限公司 Image processing method and apparatus, electronic device and storage medium
CN118209565A (en) * 2024-05-21 2024-06-18 青岛超瑞纳米新材料科技有限公司 Intelligent monitoring method for processing process of carbon nano tube
CN118209565B (en) * 2024-05-21 2024-08-13 青岛超瑞纳米新材料科技有限公司 Intelligent monitoring method for processing process of carbon nano tube

Similar Documents

Publication Publication Date Title
US10085056B2 (en) Method and system for improving application sharing by dynamic partitioning
CN106952630A (en) Pixel region processing method, device and pixel region switching method and apparatus
US20160342376A1 (en) Multi-screen combined display method and an apparatus, and computer storage medium
CN110704770A (en) Display method and device for expansion tile map based on WebGIS environment
CN106055612A (en) Data paging display method and terminal equipment
CN106503012A (en) page display method and device
CN110851050B (en) Method and device for testing clicking of page elements
CN104063837A (en) Image display processing method and system and mobile terminal
CN111986601A (en) Screen display method and device, terminal equipment and storage medium
US20180199019A1 (en) Digital image conversion method and apparatus, storage medium, and device
CN103236042A (en) Self-adaptive picture processing method and device
WO2024082933A1 (en) Video processing method and apparatus, and electronic device and storage medium
CN103699582A (en) Multi-source map data processing method
CN105389308B (en) Webpage display processing method and device
CN105635703A (en) Projection method and device based on image geometric correction coordinate compression and projector
US5701138A (en) Resolution independent methods for rendering a graphic image on a display device
CN109657023B (en) Scenic spot dynamic electronic map drawing method, server and system
CN106940634B (en) Screen resolution switching method and system
US20200167052A1 (en) Picture presentation method and device
CN113535645B (en) Display method and device of shared document, electronic equipment and storage medium
CN111190894A (en) Map display method and device, related storage medium and client
KR20190081162A (en) Multi display system
CN103853530A (en) Method for quickly displaying medical image on browser
CN110471734B (en) Display control method and device
CN111158618A (en) Method and equipment for displaying pattern based on mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170714

RJ01 Rejection of invention patent application after publication