CN112866777A - Layer moving method and device, video processing equipment system and storage medium - Google Patents

Layer moving method and device, video processing equipment system and storage medium Download PDF

Info

Publication number
CN112866777A
CN112866777A CN201911185028.6A CN201911185028A CN112866777A CN 112866777 A CN112866777 A CN 112866777A CN 201911185028 A CN201911185028 A CN 201911185028A CN 112866777 A CN112866777 A CN 112866777A
Authority
CN
China
Prior art keywords
moving
layer
pixels
pixel
clock frequency
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.)
Granted
Application number
CN201911185028.6A
Other languages
Chinese (zh)
Other versions
CN112866777B (en
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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201911185028.6A priority Critical patent/CN112866777B/en
Publication of CN112866777A publication Critical patent/CN112866777A/en
Application granted granted Critical
Publication of CN112866777B publication Critical patent/CN112866777B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a layer moving method and device, video processing equipment and a computer readable storage medium. The layer moving method includes: receiving layer moving information, wherein the layer moving information comprises a layer moving direction and the number of layer moving pixels; obtaining a layer to be moved; determining the number of moving clocks and the number of residual moving pixels for moving the layer to be moved according to the number of clock frequency pixels and the number of layer moving pixels; in response to the fact that the number of the mobile clocks is not zero, moving the layer to be moved according to the layer moving direction, the number of the mobile clocks and the number of clock frequency pixels; and in response to the fact that the number of the residual moving pixels is not zero, the layer to be moved is subjected to bit complementing movement according to the layer moving direction and the number of the residual moving pixels. The embodiment of the invention can avoid the problems of blockage, discontinuity and the like caused by the movement of the layer by the distance of the non-integral multiple clock frequency pixel number, and improves the display effect when the layer moves.

Description

Layer moving method and device, video processing equipment system and storage medium
Technical Field
The present invention relates to the field of display technologies, and in particular, to a layer moving method, a layer moving apparatus, a video processing device, and a computer-readable storage medium.
Background
With the increasing market demand of video display and the rapid development of high-definition video technology, 1080P resolution cannot meet the market demand, so 4K and 8K videos come along, but the pixel clock frequency processed by the video processing device is increased greatly. In order to keep the bandwidth of the resolution unchanged, for the processing of 4K and 8K videos, a method (4PPC) of processing 4 pixels by one clock is mostly adopted at present, and further, the clock frequency is reduced. If the data format with the Clock frequency of a plurality of pixels (nPPC, n Pixel Per Clock, n is an integer greater than 1) is not processed, the movement of the image layer is performed by taking n pixels as a unit instead of moving Pixel by Pixel. Therefore, for the layer whose moving distance is not an integer multiple of n, there are many problems such as jamming, discontinuity, wrong line, and loss of image data in the layer display during the movement.
Disclosure of Invention
The embodiment of the invention provides a layer moving method, a layer moving device, video processing equipment and a computer readable storage medium, which can avoid the problems of blockage, discontinuity and the like caused by the fact that a layer moves by the distance of non-integral multiple clock frequency pixel number and improve the display effect when the layer moves.
On one hand, a layer moving method provided by the embodiment of the present invention includes: receiving layer moving information, wherein the layer moving information comprises a layer moving direction and the number of layer moving pixels; obtaining a layer to be moved; determining the number of moving clocks and the number of residual moving pixels of the layer to be moved according to the number of clock frequency pixels and the number of layer moving pixels; responding to the fact that the number of the mobile clocks is not zero, and moving the layer to be moved according to the layer moving direction, the number of the mobile clocks and the number of the clock frequency pixels; and in response to that the number of the residual moving pixels is not zero, shifting the layer to be shifted according to the layer shifting direction and the number of the residual moving pixels by bit complementing.
According to the embodiment of the invention, the number of the residual moving pixels is determined according to the number of the moving pixels of the image layer, and the pixels are integrally moved and subjected to bit complementing according to the residual moving pixel part, so that the image layer with the non-integral multiple clock frequency pixel number distance can be moved, the problems of blockage, discontinuity and the like caused by the image layer movement with the non-integral multiple clock frequency pixel number distance in the prior art are solved, and the display effect when the image layer is moved is improved.
In an embodiment of the present invention, the determining, according to the number of clock frequency pixels and the number of layer moving pixels, the number of moving clocks and the number of remaining moving pixels for moving the layer to be moved includes: dividing the number of the layer moving pixels by the number of the clock frequency pixels; taking the quotient obtained by division operation as the number of the mobile clocks; and taking the remainder obtained by the division operation as the number of the residual moving pixels.
In an embodiment of the present invention, the moving the layer to be moved according to the layer moving direction and the padding of the remaining number of moved pixels in response to the remaining number of moved pixels not being zero includes: performing pixel bit compensation on the layer to be moved according to the layer moving direction, the clock frequency pixel quantity and the residual moving pixel quantity; and moving the position-supplemented layer to be moved along the layer moving direction, wherein the moving distance is equal to the distance of a plurality of pixels of the clock frequency.
In an embodiment of the present invention, the performing pixel bit padding on the layer to be moved according to the layer moving direction, the number of pixels with the clock frequency, and the number of remaining moving pixels includes: a first pixel block with a first number of complementary pixels at the front part of the moving picture layer along the moving direction of the picture layer and setting the pixels of the first pixel block as transparent pixels, wherein the first number is equal to the difference value between the number of the clock frequency pixels and the number of the residual moving pixels; and a second pixel block with a second number of complementary pixels at the rear part of the moving picture layer along the moving direction of the picture layer, and setting the pixels of the second pixel block as transparent pixels, wherein the second number is equal to the number of the residual moving pixels.
On the other hand, an image layer moving apparatus provided in an embodiment of the present invention includes: the device comprises a mobile information receiving module, a layer moving information acquiring module and a layer moving information acquiring module, wherein the mobile information receiving module is used for receiving layer moving information, and the layer moving information comprises a layer moving direction and a layer moving pixel number; the layer acquiring module is used for acquiring a layer to be moved; the moving parameter determining module is used for determining the number of moving clocks and the number of residual moving pixels of the layer to be moved according to the number of clock frequency pixels and the number of layer moving pixels; a first moving module, configured to, in response to that the number of the mobile clocks is not zero, move the layer to be moved according to the layer moving direction, the number of the mobile clocks, and the number of clock frequency pixels; and the second moving module is used for responding to the condition that the number of the residual moving pixels is not zero, and shifting the layer to be moved according to the layer moving direction and the number of the residual moving pixels in a position supplementing manner.
In one embodiment of the invention, the movement parameter determination module comprises: the parameter operation unit is used for dividing the number of the layer moving pixels and the number of the clock frequency pixels; a first determining unit, configured to use a quotient obtained by a division operation as the number of mobile clocks; and a second determination unit configured to use a remainder obtained by the division operation as the remaining number of the moving pixels.
In one embodiment of the present invention, the second moving module includes: the pixel data bit supplementing unit is used for performing pixel bit supplementing on the layer to be moved according to the layer moving direction, the clock frequency pixel quantity and the residual moving pixel quantity; and the position supplementing layer moving unit is used for moving the position supplemented layer to be moved along the layer moving direction, and the moving distance is equal to the distance of a plurality of pixels of the clock frequency pixels.
In one embodiment of the present invention, the pixel data padding unit includes: a front pixel padding subunit, configured to set, in the layer moving direction, a first padding pixel block whose number of front padding pixels of the moving layer is a first number and to set pixels of the first padding pixel block as transparent pixels, where the first number is equal to a difference between the number of clock frequency pixels and the number of remaining moving pixels; and a rear pixel complement subunit, configured to set, in the moving direction of the layer, a second complement pixel block whose number of complement pixels at the rear of the moving layer is a second number, and set a pixel of the second complement pixel block as a transparent pixel, where the second number is equal to the number of the remaining moving pixels.
In another aspect, an embodiment of the present invention provides a video processing apparatus, including: the image layer moving method comprises a memory and a processor connected with the memory, wherein the memory stores a computer program, and the processor executes any one of the image layer moving methods when running the computer program.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium, which is a non-volatile memory and stores computer-executable instructions, where the computer-executable instructions are used to execute any one of the layer moving methods described above.
One or more of the above technical solutions may have the following advantages or beneficial effects: according to the embodiment of the invention, the number of the residual moving pixels is obtained according to the number of the moving pixels of the image layer, and the pixels are integrally moved and subjected to bit complementing according to the residual moving pixel part, so that the image layer with the non-integral multiple clock frequency pixel number distance can be moved, the problems of blockage, discontinuity and the like caused by the image layer movement with the non-integral multiple clock frequency pixel number distance in the prior art are solved, and the display effect when the image layer is moved is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, 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 invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a layer moving method according to a first embodiment of the present invention.
Fig. 2 is a detailed flowchart of step S15 in fig. 1.
Fig. 3 is a detailed flowchart of step S19 in fig. 1.
Fig. 4 is a detailed flowchart of step S191 in fig. 3.
Fig. 5 is a schematic structural diagram of a hardware architecture for implementing the layer moving method in the first embodiment of the present invention.
Fig. 6A is a schematic diagram illustrating a relationship between pixel data and a time sequence of a layer before moving.
Fig. 6B is a schematic diagram of a relationship between pixel data and a time sequence of a layer shifted by one pixel to the right.
Fig. 6C is a schematic diagram of a relationship between pixel data and a time sequence of a layer shifted to the left by one pixel.
Fig. 7A is a schematic structural diagram of a layer moving apparatus according to a second embodiment of the present invention.
Fig. 7B is a schematic structural diagram of the motion parameter determining module 450 in fig. 7A.
Fig. 7C is a schematic structural diagram of the second moving module 490 in fig. 7A.
Fig. 7D is a schematic structural diagram of the pixel data supplement unit 491 in fig. 7C.
Fig. 8 is a schematic structural diagram of a video processing apparatus according to a third embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a computer-readable storage medium 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.
[ first embodiment ] A method for manufacturing a semiconductor device
As shown in fig. 1, a first embodiment of the present invention provides a layer moving method. Specifically, the layer moving method provided in the embodiment of the present invention includes, for example, the steps of:
s11: receiving layer moving information, wherein the layer moving information comprises a layer moving direction and the number of layer moving pixels;
s13: obtaining a layer to be moved;
s15: determining the number of moving clocks and the number of residual moving pixels of the layer to be moved according to the number of clock frequency pixels and the number of layer moving pixels;
s17: responding to the fact that the number of the mobile clocks is not zero, and moving the layer to be moved according to the layer moving direction, the number of the mobile clocks and the number of the clock frequency pixels; and
s19: and in response to that the number of the residual moving pixels is not zero, shifting the layer to be shifted according to the layer shifting direction and the number of the residual moving pixels.
Therefore, the number of the residual moving pixels is obtained according to the number of the moving pixels of the image layer, and then the pixel position compensation is carried out on the residual moving pixels, so that the image layer with the distance of the number of the non-integral multiple clock frequency pixels can be moved, the problems of blockage, discontinuity and the like caused by the movement of the image layer with the distance of the number of the non-integral multiple clock frequency pixels in the prior art are solved, and the display effect when the image layer moves is improved.
Specifically, as shown in fig. 2, the determining, according to the number of clock frequency pixels and the number of layer moving pixels, the number of moving clocks and the number of remaining moving pixels for moving the layer to be moved in step S15 includes:
s151: dividing the number of the layer moving pixels by the number of the clock frequency pixels;
s153: taking the quotient obtained by division operation as the number of the mobile clocks; and
s155: and taking the remainder obtained by the division operation as the number of the residual moving pixels.
In addition, as shown in fig. 3, in response to that the number of remaining moving pixels is not zero, the step S19 of shifting the layer to be moved according to the layer shifting direction and the number of remaining moving pixels by padding includes:
s191: performing pixel bit compensation on the layer to be moved according to the layer moving direction, the clock frequency pixel quantity and the residual moving pixel quantity; and
s193: and moving the position-supplemented layer to be moved along the layer moving direction, wherein the moving distance is equal to the distance of the number of the clock frequency pixels.
Further, as shown in fig. 4, in another embodiment of the present invention, the performing pixel padding on the layer to be moved according to the layer moving direction, the number of pixels with the clock frequency, and the number of remaining moving pixels in step S191 includes:
s1911: a first pixel block with a first number of complementary pixels at the front part of the moving picture layer along the moving direction of the picture layer and setting the pixels of the first pixel block as transparent pixels, wherein the first number is equal to the difference value between the number of the clock frequency pixels and the number of the residual moving pixels; and
s1913: and setting the number of the second complement pixel blocks to be a second number of second complement pixel blocks at the rear part of the moving picture layer along the moving direction of the picture layer, wherein the second number is equal to the number of the residual moving pixels, and the pixels of the second complement pixel blocks are transparent pixels.
In order to facilitate understanding of the present invention, each step of the layer moving method of the present embodiment will be described in detail below with reference to fig. 5 to 6C.
The layer moving method provided by the embodiment of the invention is suitable for a video processing device to process the situation that the layer moving is processed in an nPPC mode. The video processing apparatus herein is, for example, a video processing apparatus. For example, as shown in fig. 5, a video processing device is connected to a display screen. The display screen may be, for example, an LED display screen, or may also be other display screens such as an LCD, and the invention is not limited thereto. The video processing device mainly comprises an embedded processor and a programmable logic device connected with the embedded processor. The Programmable logic device is, for example, an FPGA (Field-Programmable Gate Array), and is configured to receive a video source input, process a layer of the input video source, and output processed video data to a display screen for display. The embedded processor is, for example, a processor based on an ARM core, and is mainly used for loading an FPGA program, transmitting and receiving a display control instruction, and the like. The following describes in detail the layer moving method provided in the embodiment of the present invention, by taking an example that the number of clock frequency pixels is 4PPC (that is, 4 pixels of one clock processing layer), and the distance of moving the layer, or the pixels are non-4 integral multiples of pixels.
Firstly, an embedded processor receives a layer moving instruction generated by user operation, analyzes the layer moving instruction to obtain layer moving information, and then sends the layer moving information to a programmable logic device (FPGA) connected with the layer moving information. And receiving the layer moving information by the FPGA. The layer moving instruction may be generated by a user operating a key of the video processing device, or may be generated by a user operating corresponding upper computer software on an upper computer connected to the video processing device, for example, which is not limited in the present invention. In addition, the layer movement information includes a layer movement direction and a layer movement pixel number (or referred to as a layer movement distance). The layer moving direction may be, for example, a left-right direction, an up-down direction, or the like of the layer. The present embodiment will be described by taking the left-right direction of the layer movement as an example.
And then, the FPGA acquires the layer to be moved. The layer to be moved obtained here may be understood as obtaining pixel data of the layer to be moved, that is, pixel data and pixel position of each pixel on the layer to be moved. The pixel data of a pixel typically includes ARGB data, i.e., a transparency coefficient (a) of the pixel and RGB color gray values of the pixel.
And then, the FPGA determines the number of the mobile clocks and the number of the residual mobile pixels of the layer to be moved according to the number of the clock frequency pixels and the number of the layer mobile pixels. Specifically, the FPGA divides the number of the layer moving pixels and the number of the clock frequency pixels; taking the quotient obtained by division operation as the number of the mobile clocks; and taking the remainder obtained by the division operation as the number of the residual moving pixels. For example, the number of layer shift pixels of the to-be-shifted layer (or) is 13 pixels, and the number of clock frequency pixels is 4, so that the number of layer shift pixels and the number of clock frequency pixels are divided, a quotient obtained by dividing the number of layer shift pixels by the number of clock frequency pixels is 3 as the number of shift clocks, and a remainder obtained by dividing the number of layer shift pixels by the number of clock frequency pixels is 1 as the number of remaining shift pixels.
Then, the FPGA determines whether the number of the mobile clocks is zero. And responding to the situation that the number of the mobile clocks is not zero, and the FPGA moves the layer to be moved according to the layer moving direction, the number of the mobile clocks and the number of clock frequency pixels (4 PPC). For the foregoing example, the number of the mobile clocks is 3 and is not zero, and the FPGA moves the layer to be moved by a distance of 3 × 4 and 12 pixels in total along the layer moving direction. Of course, if the number of shift clocks is zero, i.e. the number of layer shift pixels with shifted layers is smaller than the number of clock frequency pixels (4PPC), i.e. the number of pixels processed by less than one clock, then this step need not be performed.
Secondly, the FPGA judges whether the number of the residual moving pixels is zero or not. And responding to the condition that the number of the residual moving pixels is not zero, and the FPGA carries out bit complementing movement on the layer to be moved according to the layer moving direction and the number of the residual moving pixels. Specifically, the FPGA performs pixel bit-filling on the layer to be moved according to the layer moving direction, the clock frequency pixel number, and the remaining moving pixel number, and then moves the layer to be moved after bit-filling along the layer moving direction, where the moving pixel number is equal to the clock frequency pixel number, or the moving distance is equal to the distance of the clock frequency pixel number. Furthermore, the pixel bit-filling, by the FPGA, the to-be-moved layer according to the layer moving direction, the clock frequency pixel number, and the remaining moving pixel number includes: a first pixel block with a first number of complementary pixels at the front part of the moving picture layer along the moving direction of the picture layer and setting the pixels of the first pixel block as transparent pixels, wherein the first number is equal to the difference value between the number of the clock frequency pixels and the number of the residual moving pixels; and a second pixel block with a second number of complementary pixels at the rear part of the moving picture layer along the moving direction of the picture layer, and setting the pixels of the second pixel block as transparent pixels, wherein the second number is equal to the number of the residual moving pixels. In order to more conveniently understand the process of the present step, the embodiments of the present invention are still illustrated by the foregoing examples. As described above, the number of remaining moving pixels is 1, which is less than the number of pixels processed by one clock, and therefore, if the part of pixel data is to be moved without data loss, tearing, or other problems, the part of pixel data corresponding to the number of remaining moving pixels needs to be subjected to pixel padding. As shown in fig. 6A, it is assumed that a row of pixel data (dat) of a layer to be moved is 8 pixels, and the number of clock frequency pixels is 4PPC, so that a row of pixel data of the layer to be moved is distributed in 2 clocks (clk), two effective image data indicating signals (de) of the pixel data of two 4 PPCs are assumed that the sequence of 8 pixels is 01234567 in turn, and the sequence is as shown in fig. 6A, where it is worth mentioning that when packing the pixel data into the row of pixel data (dat) in the 4PPC mode, the pixel data of 4 pixels are packed in each clock range, that is, each dat is packed with 4 pixel data respectively; in addition, the way of storing the pixel data into the row pixel data is: the pixel data with the larger storage address is stored on the left, the pixel data with the smaller storage address is stored on the right, and among the 8 pixels, the storage address of the pixel 7 is the largest and the storage address of 0 is the smallest, so in fig. 6A, the storage order of the 8 pixels in dat is 3210-. Of course, the packing of the row pixel data (dat) can also be performed in other manners, and the invention is not limited thereto.
Since the number of remaining moving pixels is 1, it is necessary to move the layer to be moved one pixel (or a distance of one pixel) to the left or right. As shown in fig. 6B, when the FPGA moves the layer to be moved by one pixel to the right, the FPGA delays the length of the effective image data indication signal (de) by one clock, i.e. there are three de signals, and then supplements a first number of first complementary pixel blocks in front of the pixel 7, where the first number is equal to the difference between the number of clock frequency pixels and the number of remaining moved pixels, i.e. 4-1-3, i.e. supplements a first complementary pixel block (xxx) of 3 pixels in front of the pixel 7, and sets the transparency coefficient (a) in the pixel data of the 3 pixels of the first complementary pixel block to 1, i.e. the pixel data of the 3 pixels of the first complementary pixel block is transparent; the RGB data can be set arbitrarily or by default to RGB (0,0,0), i.e. 3 pixels of the first complement pixel block are transparent pixels; subsequently, a second number of second complement pixel blocks are supplemented behind the pixel 0, wherein the second number is equal to the number of the remaining moving pixels, namely 1 pixel, namely a second complement pixel block (x) of 1 pixel is supplemented behind the pixel 0, and the transparency coefficient (A) in the pixel data of 1 pixel of the second complement pixel block is set to be 1, namely the pixel data of 1 pixel of the second complement pixel block is transparent; the RGB data can be set arbitrarily or by default to RGB (0,0,0), i.e. 1 pixel of the second complement pixel block is a transparent pixel; and finally, the FPGA moves the layer to be moved after bit compensation to the right, the number of the moved pixels is equal to the number of the clock frequency pixels, or the moving distance is equal to the distance of the clock frequency pixels which are a number of pixels. Similarly, when the FPGA moves the layer to be moved by one pixel to the left, the FPGA delays the length of the effective image data indication signal (de) by one clock, that is, there are three de signals, and then supplements a first number of first complementary pixel blocks in front of the pixel 0, where the first number is equal to the difference between the number of clock frequency pixels and the number of remaining moved pixels, that is, 4-1 to 3, that is, supplements a first complementary pixel block (xxx) of 3 pixels in front of the pixel 0, and sets the transparency coefficient (a) in the pixel data of the 3 pixels of the first complementary pixel block to 1, that is, the pixel data of the 3 pixels of the first complementary pixel block is transparent; the RGB data can be set arbitrarily or by default to RGB (0,0,0), i.e. 3 pixels of the first complement pixel block are transparent pixels; then supplementing a second number of second complementary pixel blocks behind the pixels 7, wherein the second number is equal to the number of the remaining moving pixels, namely 1 pixel, namely supplementing a second complementary pixel block (x) of 1 pixel behind the pixels 7, and setting the transparency coefficient (A) in the pixel data of 1 pixel of the second complementary pixel block to be 1, namely the pixel data of 1 pixel of the second complementary pixel block is transparent; the RGB data can be set arbitrarily or by default to RGB (0,0,0), i.e. 1 pixel of the second complement pixel block is a transparent pixel; and finally, the FPGA moves the layer to be moved after bit compensation to the right, the number of the moved pixels is equal to the number of clock frequency pixels (4PPC), or the moving distance is equal to the distance of the clock frequency pixels (4PPC) pixels. For the remaining number of shifted pixels being 2 or 3, the shifting principle and steps are completely the same, and the number of pixels to be shifted or the number of pixels to be shifted is different, which is not described herein again. In this way, layer shifting of non-integer multiples of the clock frequency pixel count is accomplished. Of course, if the number of remaining shifted pixels is zero, that is, the number of layer shifted pixels with shifted layers is an integer multiple of the number of clock frequency pixels (4PPC), then this step is not required.
In summary, in the embodiments of the present invention, the number of remaining moving pixels is obtained according to the number of layer moving pixels, and then the pixels are integrally moved and bit-complemented according to the remaining moving pixels, so that the movement of the layer with the non-integer-multiple clock frequency pixel number distance can be realized, the problems of stutter, discontinuity, and the like caused by the movement of the layer with the non-integer-multiple clock frequency pixel number distance in the prior art are solved, and the display effect when the layer is moved is improved.
[ second embodiment ]
As shown in fig. 7A, a layer moving apparatus 400 is provided according to a second embodiment of the present invention. The layer moving apparatus 400 includes, for example: the mobile information receiving module 410, the layer obtaining module 430, the mobile parameter determining module 450, the first moving module 470, and the second moving module 490.
A moving information receiving module 410, configured to receive layer moving information, where the layer moving information includes a layer moving direction and a layer moving pixel number;
the layer obtaining module 430 is configured to obtain a layer to be moved;
a moving parameter determining module 450, configured to determine, according to the number of clock frequency pixels and the number of layer moving pixels, the number of moving clocks and the number of remaining moving pixels for moving the layer to be moved;
a first moving module 470, configured to, in response to that the number of the moving clocks is not zero, move the layer to be moved according to the layer moving direction, the number of the moving clocks, and the number of clock frequency pixels; and
a second moving module 490, configured to, in response to that the number of remaining moving pixels is not zero, perform bit-filling movement on the layer to be moved according to the layer moving direction and the number of remaining moving pixels.
Further, as shown in fig. 7B, the movement parameter determining module 450 includes, for example:
a parameter operation unit 451, configured to perform division operation on the number of layer shift pixels and the number of clock frequency pixels;
a first determination unit 453 configured to take the quotient obtained by the division operation as the number of mobile clocks; and
and a second determining unit 455, configured to use the remainder obtained by the division operation as the remaining number of the moved pixels.
Further, as shown in fig. 7C, the second moving module 490 includes:
a pixel data padding unit 491, configured to perform pixel padding on the layer to be moved according to the layer moving direction, the number of clock frequency pixels, and the number of remaining moving pixels; and
and a position-compensated layer moving unit 493, configured to move the position-compensated layer to be moved along the layer moving direction, where a moving distance is equal to a distance of a number of clock frequency pixels.
More specifically, as shown in fig. 7D, the pixel data supplement unit 491 further includes, for example:
a front pixel complement subunit 4911, configured to complement, in the layer moving direction, a first complement pixel block whose number of front complement pixels of the moving layer is a first number and set a pixel of the first complement pixel block as a transparent pixel, where the first number is equal to a difference between the number of clock frequency pixels and the number of remaining moving pixels; and
a rear pixel complement subunit 4913, configured to complement, in the layer moving direction, a second number of second complement pixel blocks in the rear portion of the moving layer with the moving picture, and set pixels of the second complement pixel blocks to be transparent pixels, where the second number is equal to the number of remaining moving pixels.
For specific working processes and technical effects among the modules in the layer moving apparatus 400 in this embodiment, reference is made to the description of the first embodiment, and details are not repeated here.
[ third embodiment ]
As shown in fig. 8, a third embodiment of the present invention provides a video processing apparatus 500. Typically, the video processing device 500 may be, for example, a video processor, a video splicer, a video switcher, and the like having video and image processing functions such as image and layer movement, and the like. The video processing device 500 comprises, for example, a memory 510 and a processor 530 coupled to the memory 510. The memory 510 may be, for example, a non-volatile memory having stored thereon a computer program 511. Processor 530 may be, for example, an embedded processor. The processor 530 executes the computer program 511 to execute the layer moving method in the first embodiment.
The specific operation and technical effects of the video processing apparatus 500 in the present embodiment are described with reference to the foregoing first embodiment.
[ fourth example ] A
As shown in fig. 9, a fourth embodiment of the present invention provides a storage medium such as a computer-readable storage medium 600. The computer-readable storage medium 600 is, for example, a nonvolatile memory, which is, for example: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). Computer-readable storage medium 600 has stored thereon computer-executable instructions 610. The computer-readable storage medium 600 may execute the computer-executable instructions 610 by one or more processors or processing devices to implement the layer moving method in the foregoing first embodiment.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments can be arbitrarily combined and collocated without conflict between technical features and structural contradictions, which do not violate the purpose of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for moving a layer, comprising:
receiving layer moving information, wherein the layer moving information comprises a layer moving direction and the number of layer moving pixels;
obtaining a layer to be moved;
determining the number of moving clocks and the number of residual moving pixels of the layer to be moved according to the number of clock frequency pixels and the number of layer moving pixels;
responding to the fact that the number of the mobile clocks is not zero, and moving the layer to be moved according to the layer moving direction, the number of the mobile clocks and the number of the clock frequency pixels; and
and in response to that the number of the residual moving pixels is not zero, shifting the layer to be shifted according to the layer shifting direction and the number of the residual moving pixels.
2. The layer moving method according to claim 1, wherein the determining the number of moving clocks and the number of remaining moving pixels for the layer to be moved according to the number of clock frequency pixels and the number of layer moving pixels includes:
dividing the number of the layer moving pixels by the number of the clock frequency pixels;
taking the quotient obtained by division operation as the number of the mobile clocks; and
and taking the remainder obtained by the division operation as the number of the residual moving pixels.
3. The layer moving method according to claim 1, wherein the moving the layer to be moved according to the layer moving direction and the remaining moving pixel number by bit-filling in response to the remaining moving pixel number not being zero comprises:
performing pixel bit compensation on the layer to be moved according to the layer moving direction, the clock frequency pixel quantity and the residual moving pixel quantity; and
and moving the position-supplemented layer to be moved along the layer moving direction, wherein the moving distance is equal to the distance of the number of the clock frequency pixels.
4. The layer moving method according to claim 3, wherein the performing pixel padding on the layer to be moved according to the layer moving direction, the number of pixels at the clock frequency, and the number of remaining moving pixels includes:
a first pixel block with a first number of complementary pixels at the front part of the moving picture layer along the moving direction of the picture layer and setting the pixels of the first pixel block as transparent pixels, wherein the first number is equal to the difference value between the number of the clock frequency pixels and the number of the residual moving pixels; and
and setting the number of the second complement pixel blocks to be a second number of second complement pixel blocks at the rear part of the moving picture layer along the moving direction of the picture layer, wherein the second number is equal to the number of the residual moving pixels, and the pixels of the second complement pixel blocks are transparent pixels.
5. An image layer moving device, comprising:
the device comprises a mobile information receiving module, a layer moving information acquiring module and a layer moving information acquiring module, wherein the mobile information receiving module is used for receiving layer moving information, and the layer moving information comprises a layer moving direction and a layer moving pixel number;
the layer acquiring module is used for acquiring a layer to be moved;
the moving parameter determining module is used for determining the number of moving clocks and the number of residual moving pixels of the layer to be moved according to the number of clock frequency pixels and the number of layer moving pixels;
a first moving module, configured to, in response to that the number of the mobile clocks is not zero, move the layer to be moved according to the layer moving direction, the number of the mobile clocks, and the number of clock frequency pixels; and
and the second moving module is used for responding to the condition that the number of the residual moving pixels is not zero, and shifting the layer to be moved according to the layer moving direction and the number of the residual moving pixels in a position supplementing manner.
6. The image layer moving apparatus of claim 5, wherein the moving parameter determining module includes:
the parameter operation unit is used for dividing the number of the layer moving pixels and the number of the clock frequency pixels;
a first determining unit, configured to use a quotient obtained by a division operation as the number of mobile clocks; and
and the second determining unit is used for taking the remainder obtained by the division operation as the number of the residual moving pixels.
7. The image layer moving apparatus of claim 5, wherein the second moving module includes:
the pixel data bit supplementing unit is used for performing pixel bit supplementing on the layer to be moved according to the layer moving direction, the clock frequency pixel quantity and the residual moving pixel quantity; and
and the position supplementing layer moving unit is used for moving the position supplemented layer to be moved along the layer moving direction, and the moving distance is equal to the distance of a plurality of pixels of the clock frequency pixels.
8. The layer shifting apparatus of claim 7, wherein the pixel data padding unit comprises:
a front pixel padding subunit, configured to set, in the layer moving direction, a first padding pixel block whose number of front padding pixels of the moving layer is a first number and to set pixels of the first padding pixel block as transparent pixels, where the first number is equal to a difference between the number of clock frequency pixels and the number of remaining moving pixels; and
and the rear pixel complement subunit is configured to set, in the moving direction of the layer, a second complement pixel block whose number of the pixels in the rear portion of the moving layer is a second number, and set the pixels of the second complement pixel block as transparent pixels, where the second number is equal to the number of the remaining moving pixels.
9. A video processing apparatus, comprising: a memory and a processor connected to the memory, the memory storing a computer program, the processor executing the computer program to perform the layer moving method according to any one of claims 1 to 4.
10. A computer-readable storage medium, which is a non-volatile memory and stores computer-executable instructions, wherein the computer-executable instructions are used for executing the layer moving method according to any one of claims 1 to 4.
CN201911185028.6A 2019-11-27 2019-11-27 Layer moving method and device, video processing equipment system and storage medium Active CN112866777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911185028.6A CN112866777B (en) 2019-11-27 2019-11-27 Layer moving method and device, video processing equipment system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911185028.6A CN112866777B (en) 2019-11-27 2019-11-27 Layer moving method and device, video processing equipment system and storage medium

Publications (2)

Publication Number Publication Date
CN112866777A true CN112866777A (en) 2021-05-28
CN112866777B CN112866777B (en) 2022-12-09

Family

ID=75984990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911185028.6A Active CN112866777B (en) 2019-11-27 2019-11-27 Layer moving method and device, video processing equipment system and storage medium

Country Status (1)

Country Link
CN (1) CN112866777B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1776798A (en) * 2004-12-08 2006-05-24 威盛电子股份有限公司 System, method and device for displaying grey leval on liquidcrystal displaying board
US20100118961A1 (en) * 2008-11-11 2010-05-13 Electronics And Telecommunications Research Institute High-speed motion estimation apparatus and method
CN103576312A (en) * 2012-07-27 2014-02-12 株式会社理光 Pixel clock generator, optical scanner and image forming device incorporating same
CN105702233A (en) * 2016-01-22 2016-06-22 青岛海信电器股份有限公司 Image data windowing method and device
CN105898521A (en) * 2016-04-12 2016-08-24 王邈 Bullet screen adding device and bullet screen adding method
JP2017135571A (en) * 2016-01-28 2017-08-03 京セラドキュメントソリューションズ株式会社 Image processing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1776798A (en) * 2004-12-08 2006-05-24 威盛电子股份有限公司 System, method and device for displaying grey leval on liquidcrystal displaying board
US20100118961A1 (en) * 2008-11-11 2010-05-13 Electronics And Telecommunications Research Institute High-speed motion estimation apparatus and method
CN103576312A (en) * 2012-07-27 2014-02-12 株式会社理光 Pixel clock generator, optical scanner and image forming device incorporating same
CN105702233A (en) * 2016-01-22 2016-06-22 青岛海信电器股份有限公司 Image data windowing method and device
JP2017135571A (en) * 2016-01-28 2017-08-03 京セラドキュメントソリューションズ株式会社 Image processing system
CN105898521A (en) * 2016-04-12 2016-08-24 王邈 Bullet screen adding device and bullet screen adding method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ERIC J. BERG等: "《A MPPC based tool for timing and spatial resolution characterization of PET detectors》", 《2012 IEEE NUCLEAR SCIENCE SYMPOSIUM AND MEDICAL IMAGING CONFERENCE RECORD (NSS/MIC)》 *
刘艳艳等: "时序彩色LCoS数据接口的优化设计", 《液晶与显示》 *

Also Published As

Publication number Publication date
CN112866777B (en) 2022-12-09

Similar Documents

Publication Publication Date Title
JP6388865B2 (en) Processor, system and method for efficient and fast processing of interrelated two-dimensional data sets
CN104641412A (en) Method and device for selective display refresh
CN102547120A (en) Global arming method for image processing pipeline
US10803589B2 (en) Image processing device
CN108241211A (en) One kind wears display equipment and image rendering method
CN108509241B (en) Full-screen display method and device for image and mobile terminal
CN111988552B (en) Image output control method and device and video processing equipment
CN112399095A (en) Video processing method, device and system
US20150242996A1 (en) Image processing apparatus and image processing method
CN112866777B (en) Layer moving method and device, video processing equipment system and storage medium
US9652826B2 (en) Interpolation method and corresponding device
CN114710702A (en) Video playing method and device
KR20230092739A (en) Methods and apparatus to process video frame pixel data using artificial intelligence video frame segmentation
CN115543244A (en) Multi-screen splicing method and device, electronic equipment and storage medium
US8494253B2 (en) Three-dimensional (3D) image processing method and system
CN112005209B (en) Mechanism for atomically rendering a single buffer covering multiple displays
US7996657B2 (en) Reconfigurable computing circuit
CN114067758A (en) Mobile terminal and image display method thereof
CN112822545A (en) Image display method, device and system and video controller
CN114245108B (en) DisplayPort test system supporting custom extension
CN114281295B (en) Image processing method and device and LED display screen system
JP2014216668A (en) Imaging apparatus
CN112785973B (en) Image splicing method and device
US20210400228A1 (en) Drive control system, control method and computer readable storage medium
CN115866167A (en) LED display screen image data splicing transmission method and device and 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
GR01 Patent grant
GR01 Patent grant