Encoding and decoding of video stream using tile-based scheme

By detecting and updating unchanged tiles in a video frame with a key value, the method addresses inefficiencies in tile-based encoding and decoding, enhancing video stream processing efficiency and quality.

GB2629386APending Publication Date: 2024-10-30ADDER TECHNOLOGY LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
GB2023006147
Authority / Receiving Office
GB · GB
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-10-30

AI Technical Summary

Technical Problem

Existing tile-based video encoding and decoding schemes face inefficiencies due to the need to track and transmit additional information about changed areas, leading to increased computational costs and bandwidth usage, especially when dealing with numerous small tiles in video streams.

Method used

The method involves detecting tiles in a video frame where all pixel-values are identical to a key value and replacing these pixels with corresponding values from the previous frame, allowing for efficient decoding by updating unchanged tiles with a key value, thereby reducing the need for separate encoding and transmission of unchanged data.

Benefits of technology

This approach simplifies the decoding process, reduces computational overhead, and enables higher frame rates and quality by allowing motion video to be sent with minimal overhead, utilizing standard decoding technology and hardware acceleration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Encoding and decoding video, including determining whether each pixel-value of the plurality of pixels in a tile or block 208 in an image 210 of the video to be encoded is within a predetermined threshold tolerance of a pixel-value of the corresponding pixel in the corresponding or collocated block in the preceding image. If each pixel-value in the block is within the threshold tolerance of the corresponding pixel in the preceding image, replacing each pixel-value in the block with a key value, wherein the key value is the same pixel-value for each pixel in the block. Another independent claim is present for decoding where any pixel value in a block that has the key value is decoded as the pixel-value of the corresponding pixel in a preceding image. Blocks 212 which differ from their corresponding block in the previous image may be unchanged for encoding. The key value may be the same for all blocks, and for all images, or may be adaptive and differ between blocks and / or images. The adaptive key-value may be set depending on the pixel values used in the images and may be sent with the bitstream data as metadata.
Need to check novelty before this filing date? Find Prior Art

Description

The decoder detects all the tiles that consist entirely of the key value (or key colour) and replaces those tiles with the corresponding pixels from the previous frame, thereby reinserting the “missing” data from the frame. The key value for each tile is known by or determined by the decoder. The detection step may be done by inspection of the compressed data stream (i.e. the encoded frames), as the tiles where each pixel-value in the tile has the key value will have a recognisable format. Optionally, the key value is the same pixel-value for each tile in the second image. Optionally, the key value is not the same pixel-value for each tile in the second image. According to a third aspect, the present disclosure provides a computer-implemented method of decoding a video stream encoded using a tile-based encoding scheme, wherein each frame of the video stream is formed of an image, wherein each image comprises a plurality of tiles and each tile comprises a plurality of pixels, each pixel having a respective pixel-value, wherein the method comprises receiving a first encoded image corresponding to a first frame of the video stream, decoding the first encoded image using a tile-based decoding scheme to obtain a first image, receiving a second encoded image corresponding to a second frame of the video stream, decoding the second encoded image using the tile-based decoding scheme to obtain a second image, detecting each pixel in the second image having a pixel-value equal to a key value, the key value being a predetermined pixel-value for the second image, and for each detected pixel, replacing the pixel-value with a pixel-value of the corresponding pixel in the first image. Thus, rather than detecting all tiles where each pixel-value corresponds to the key value or key colour, the method may include detecting all pixels in the second image having the given key value. It will be appreciated that this requires that, when the video stream is encoded, the same key value is used for each tile in a given image or frame. However, different key values (different predetermined pixel-values) can be used for different frames in the video stream. The key value for each image or frame is therefore known by or determined by the decoder. It will be appreciated that this per-pixel method of decoding may be simpler to implement, in terms of computational requirements, than the tile-based decoding in the second aspect of the present disclosure. The following explanations, embodiments, examples, or optional features are equally applicable to either decoding method, as described in the second aspect of the disclosure and the third aspect of the disclosure: It will be appreciated that the tile-based decoding scheme is the reverse operation of the tile-based encoding scheme used to encode the video stream. The computer-implemented method of decoding the video stream may be carried out by any suitable decoder. The decoder may use CPU or GPU hardware to implement the decoding method. Optionally, the method may further comprise receiving the key value. The key value for each tile, or each image, may be transmitted to the decoder. Optionally, the method further comprises determining the key value. The key value for each tile, or each image, may be determined by the encoder from information transmitted with the video stream. Optionally, the key value is determined using data or metadata received with the second encoded image. Optionally, the key value is determined using a predetermined sequence or a predetermined algorithm. It will be appreciated the same predetermined sequence or predetermined algorithm may be applied by the encoder and the decoder, to result in a given key value for each tile. The method may include receiving information identifying the predetermined sequence or predetermined algorithm. Optionally, the key value is the same for each image or frame in the video stream. In another embodiment, a different key value may be used for each image or frame in the video stream. Thus, the key value may be a different pixel-value for each frame of the video stream. The method of decoding the video stream may be repeated for each frame in the video stream. The method may include detecting all tiles in a given decoded image where each pixel-value of the plurality of pixels in the tile is a key value, the key value being a predetermined pixel-value for the tile, and for each detected tile, replacing the pixel-value of each of the plurality of pixels in the tile with a pixel-value of the corresponding pixel in the corresponding tile of the preceding image (or frame). The method may include detecting each pixel in a given decoded image having a pixel-value equal to a key value, the key value being a predetermined pixel-value for the given image, and for each detected pixel, replacing the pixel-value with a pixel-value of the corresponding pixel in the preceding image. Optionally, the tile-based decoding scheme may be a JPEG decoding scheme. Each encoded image may be a JPEG image. The encoded video stream may be a motion JPEG stream. The method of decoding the video stream may be implemented by a motion JPEG CODEC. Optionally, the computer-implemented method is at least partially implemented by a web browser. Each method step of any aspect of the present disclosure may be implemented on a processor, or a processing resource. According to a further aspect, there is provided a computing device comprising one or more processors and memory, the memory including executable instructions that, as a result of execution by the one or more processors, causes the computing device to perform the computer-implemented method of any aspect or embodiment of the first, second or third aspects of the present disclosure. According to a further aspect, there is provided a computer program comprising instructions which, when the computer program is executed by a computing device, cause the computing device to carry out the method of any aspect or embodiment of the first, second or third aspects of the present disclosure. The computer program may equivalently be referred to as a computer program product. According to a further aspect, there is provided a non-transitory computer-readable medium comprising instructions which, when executed by a computer, cause the computer to carry out the method of any aspect or embodiment of the first, second or third aspects of the present disclosure. The non-transitory computer-readable medium may equivalently be referred to as a non-transitory computer-readable storage medium, or a computer-readable storage medium. BRIEF DESCRIPTION OF THE DRAWINGS Embodiments of this disclosure will be described hereinafter, by way of example only, with reference to the accompanying drawings in which like reference signs relate to like elements and in which: Figure 1A shows a representation of a frame of a video stream divided into a plurality of tiles; Figure IB shows a close-up of a tile in Figure 1A; Figure 2A shows a representation of a second frame of a video stream; Figure 2B shows the second frame of Figure 2A after being updated according to an embodiment of this disclosure; Figure 2C shows the second frame of Figure 2A after being updated according to another embodiment of this disclosure; Figure 3 is a flowchart illustrating a method of decoding a video stream according to an embodiment of this disclosure; Figure 4 is a flowchart illustrating a method of decoding a video stream according to a further embodiment of this disclosure; and Figure 5 is a block diagram of a computing device according to an embodiment of this disclosure. DETAILED DESCRIPTION Embodiments of this disclosure are described in the following with reference to the accompanying drawings. It will be appreciated that the drawings are provided for illustrative purposes and are not drawn to scale. Figure 1A shows a simplified representation of a frame 100 of a video stream. The frame 100 consists of an image defined by image data. In this example, the image 100 comprises a plurality of stars, including stars 103, 105 and 107, and a lower portion of the image 100 is a different colour to the remainder of the image 100. Whilst there are a variety of different methods for encoding or compressing a video stream, the present disclosure is concerned with tile-based encoding schemes. The skilled person will be familiar with a plurality of different tile-based encoding schemes that may be used in the present disclosure. In one non-limiting example, each frame 100 of the video stream may be separately encoded as a JPEG image using a motion JPEG encoding scheme. In a tile-based encoding scheme, the image or frame 100 is considered to be composed of a plurality of tiles 102, as represented by the grid shown in Figure 1A. Each square of the grid corresponds to one tile 102. Each tile 102 has the same dimensions. The division of the image 100 into the plurality of tiles 102 is a mathematical or notional construct, as the image is not physically separated into the tiles, nor is the grid a physical grid. It will be appreciated that the tiles 102 could be of any size or shape. Each tile 102 comprises a plurality of pixels 104. Figure IB shows a close up of tile 102a from Figure 1A, thereby illustrating the pixels 104. It will be appreciated that each tile 102 can comprise any number of pixels, and the number of pixels 104 shown in Figure IB is non-limiting and for illustrative purposes only. Each pixel has a numerical pixel-value (not shown) which defines (or corresponds to) the colour of the pixel in the image 100, as represented by the colour or shading of the pixel 104 in Figure IB. In an example of a tile-based compression scheme, to encode or compress the image 100 an average colour (or pixel-value) of each tile 102 is determined. This may be referred to as a DC component. It is also determined how the pixel-value of each pixel 104 in the tile 102 differs from this average colour. This data may be referred to the AC components. The DC and AC component data together forms the encoded frame data. It will be appreciated that other tile-based compression schemes may be used. Figure 2A shows an example of a second frame 200 of a video stream, where Figure 1A is the first frame 100 of the same video stream. Thus, image 200 immediately follows image 100 in the video stream. The second frame or image 200 comprises a plurality of tiles 202, each tile comprising a plurality of pixels (not shown). The tiles 202 have the same dimensions as the tiles 102 in the first image 100, such that each tile 202 has a corresponding tile 102 at the same position in the first image 100. A comparison between Figures 1A and 2A shows that stars 103 and 105 have changed position between the first image 100 and the second image 200. Star 107 is not present in the second image 200 and the second image 200 includes the semi-circle 109 that is not present in the first image 100. Thus, the second image 200 is not identical to the first image 100, but a number of tiles are unchanged between the first image 100 and the second image 200. As such, if the whole of the second image 200 is encoded (using the same scheme as the first image 100) this wastes processing time and bandwidth, as much of the second image 200 is the same as the first image 100 resulting in duplication of data. This is particularly true of a video stream comprising desktop images (which may be used in, for example, a KVM system) as any activity or changes to the frames is often limited to a small area of the screen, such that the majority of the frames are unchanged. In some prior art systems and methods, it is known to only transmit the portions of a frame that have changed or are not the same as the preceding frame of the video stream. For example, with regards to Figure 2A this would involve encoding and transmitting only the tiles 202 inside the dotted lines in Figure 2A. This process is used in virtual network computing (VNC) protocols and can be referred to as a “rectangle approach”, as the video stream is sent as one or more smaller rectangular images (such as the dotted portions in Figure 2A) that cover only a part of the frame and these smaller images are combined with the image of the previous frame (e.g. first image 100) to re-create the image (e.g. second image 100). Other protocols use a “tile-based” approach, wherein the image is broken down into small, fixed-size areas or tiles 102, 202 and only the tiles that have changed are encoded and transmitted. Whilst these schemes do reduce the amount of data that is encoded, there are a number of disadvantages. Firstly, these schemes require additional information to be provided to indicate which areas of the frame have been encoded / transmitted and which have not. This is particularly costly (in terms of computing processing time and power) for tile-based approaches where the protocol needs to track hundreds or even thousands of tiles. The data used to transmit this additional information can significantly increase the bandwidth and reduce or even completely remove the benefit of such mechanisms. Secondly, these schemes require the decoding of multiple images in order to create the frame in question (i.e. the final frame). Those images are generally of different sizes and, in the case of the tile-based approaches, are often small and numerous. This makes it more costly to use any accelerated decoding that is available on the CPU because of the overhead of processing each image independently and, if required, re-configuring the decoder for different image sizes. A tile-based approach can require hundreds or even thousands of separate images to be decoded every second. The present disclosure aims to provide an improved scheme to remedy or mitigate these deficiencies. Returning to Figure 2A, according to an embodiment of the present disclosure, the method of encoding the image 200 includes, for each tile 202, determining whether each pixel-value of the plurality of pixels in the tile 202 is within a predetermined tolerance of the pixel-value of the corresponding pixel in the corresponding tile 102 in the first image 100. This can be done by direct comparison of pixel-values, or comparing encoding data of the images. In some embodiments, the predetermined tolerance may be zero, such that the method comprises determining whether each pixel-value of the plurality of pixels in the tile 202 is identical to the pixel-value of the corresponding pixel in the corresponding tile 102 in the first image 100. In some embodiments, the predetermined tolerance may be greater than zero. Thus, the pixel-value of a given pixel in a tile 202 does not have to be exactly identical to the corresponding pixel in the corresponding tile 102 in the first image 100 for the method to determine that the pixel-value has not changed. The predetermined tolerance may be set to account for noise or dither which may be added (deliberately or otherwise) to the video stream. It may be advantageous for the predetermined tolerance to be greater than zero, as this may prevent unnecessary encoding and sending of tiles which only have very small (almost negligible) changes between the first image 100 and the second image 200. The method may still determine that only the tiles 202 within the dotted lines have “changed” (i.e. are outside of the predetermined tolerance) compared to the first image 100. Thus, only the tiles 202 within the dotted lines are encoded without being updated. For each tile not within the dotted lines (i.e. the tiles that have not “changed”), the method comprises updating the second image 200 by replacing each pixel-value in these tiles with a key value, wherein the key value is the same pixel-value for each pixel in the tile. The updated second image 210 is shown in Figure 2B and Figured 2C. As shown in Figure 2B, any tile 202 which was determined not to have changed compared to the first image 100, or only have changed within the predetermined tolerance, has been updated such that each pixel-value of the tile 202 is equal to the key value 208. In Figure 2B the key value 208 is the same pixel-value for each tile in the second image 200. Thus, each “unchanged” tile 202 in Figure 2B has the same key value, or key colour. As shown in Figure 2C, any tile 202 which was determined not to have changed compared to the first image 100, or only have changed within the predetermined tolerance, has been updated such that each pixel-value of the tile 202 is equal to a respective key value 208. In Figure 2C the key value 208 is a different pixel-value for different tiles 202 in the second image 200. Thus, each “unchanged” tile 202 in Figure 2C does not have the same colour. As shown in Figure 2C, the key value is cyclic or sequential depending on the position of the tile 202 in the image 200, but this is just one possible key value sequence that may be used. There are a variety of different algorithms or sequences that could be used to determine or set the key value for each tile, as would be understood by the skilled person. The key value(s) may be received by the encoder, or they may be determined by the encoder. In some embodiments the key value(s) may be determined using data or metadata received with the second image. The updated images 210 can then be encoded or compressed using the same tile-based compression scheme as the applied to the first image 100. The encoding method can be repeated for each frame in a video stream (not shown in the drawings for brevity). The encoded video stream can then be transmitted. Accordingly, the encoding method of the present disclosure, as described above, advantageously provides a single image that contains both the image data and the information about which parts of the image have changed. Rather than removing any tiles which are determined to have not changed from the preceding frame, these tiles are updated or replaced such that each pixel in the tile has a key colour or a key pixel-value. This allows the data to be decoded in a single operation using standard decoding technology using an accelerated decoder and minimal overhead. In summary, the encoding method of the present disclosure allows motion video to be sent at a higher frame rate and higher quality than would otherwise be possible. Modern systems contain accelerated support for decoding images (e.g. JPEG images) into pixels. This is typically implemented using hardware acceleration on the CPU or GPU, or using a highly-optimised software library that takes advantage of the vector acceleration on the CPU. These accelerated implementations typically require some configuration for a given frame size, and further configuration for each decode operation. For large images this overhead is small compared to the total time taken for decoding, so the benefits of using this acceleration outweigh the cost of this overhead. With smaller images the overhead is proportionally more costly and can dominate the overall decode time. Below a certain image size the overhead of setting up the accelerated decoding can be greater than the cost of the decoding itself. The most efficient way to use accelerated (e.g. JPEG) decoding is to decode a single, large image. This is advantageously enabled by the present disclosure. Advantageously, the methods of the present disclosure can be implemented by an existing CODEC configured to apply a tile-based encoding / decoding scheme, for example a motion JPEG CODEC, without requiring any changes to the video CODEC. A video CODEC is software or hardware that compresses and decompresses (or encodes and decodes) digital video. CODEC is a portmanteau of encoder and decoder, while a device that only compresses is typically called an encoder, and one that only decompresses is a decoder. In the present disclosure it will be appreciated that any reference to an encoder or a decoder also applies equivalently to a CODEC. Thus, the present disclosure can be implementing by additional processing steps applied to the images received by the CODEC or encoder, and additional processing steps applied to the images output from the CODEC or decoder. Returning to Figure 2B and Figure 2C, it will be appreciated that if the key value (or key colour) corresponds to a colour (i.e. pixel value) that is used in the image 200, then this may result in one or more tiles 202 incorrectly being identified as tiles which have not “changed”. For example, in Figure 2B if the key colour 208 for the second image 200 was white, then the tiles in section 212 of the updated image 210, which are different compared to the same tiles in the first image 100, would be indistinguishable from the unchanged tiles. To reduce the impact of this conflict problem, the key value 208 may be changed between successive frames of the video stream. As around 60 frames can be presented per second in an output video stream, if the incorrect pixel-values for some tiles are displayed in only a single frame, due to the pixel-values corresponding to the key value, this will be essentially imperceptible to the viewer. Another option is to select the key value to correspond to a colour that is less likely to appear in the image, to avoid or reduce the number of conflicts. In a non-limiting example, it may be that colours at the extreme edge of a colour space are less likely to appear compared to those in the body of the colour space. It may even be that some colours cannot be present in the image (due to one or more processes or transformations applied, such as the reversible integer discrete cosine transform (RDCT) applied in the motion JPEG scheme). After the video stream has been encoded, as described, it is transmitted to a receiver comprising a decoder, which decodes the video stream. It will be appreciated that the method of decoding the video stream involves applying a process to reverse the encoding method described above. Figure 3 is a flowchart illustrating a method of decoding a video stream encoded using a tile-based encoding scheme, according to an embodiment of the present disclosure. Step 302 of the method includes receiving a first encoded image corresponding to a first frame of the video stream. Step 304 of the method includes decoding the first encoded image using a tile-based decoding scheme to obtain a first image (e.g image 100). The tilebased decoding scheme is the reverse operation to the tile-based encoding scheme used to encode the video stream, which may be referred to as the corresponding tile-based decoding scheme. Step 306 of the method includes receiving a second encoded image corresponding to a second frame of the video stream. The second frame immediately follows the first frame in the video stream. Step 308 includes decoding the second encoded image using the tile-based decoding scheme to obtain a second image (e.g image 200). Step 310 of the method includes detecting all tiles in the second image where each pixel-value of the plurality of pixels in the tile is a key value, the key value being a predetermined pixel-value for the tile. Thus, at step 310 the decoder identifies all tiles having a solid (or block) colour corresponding to the key colour for that tile. As explained above, the key value may be the same pixel-value for all tiles in the second image (as in Figure 2B), or different key values may be set for different tiles in the second image (as in Figure 2C). In other words, the key value may correspond to a different predetermined pixel-value for different tiles in the second image. Step 310 involves detecting all of the tiles in the second image 200 which were determined during the encoding method not to have “changed” compared to the first image 100. It is essential that at step 310 the decoder (i.e. the processing resource of computingdevice implementing the decoding method) knows what the key value is for each tile in the second image. This information may be transmitted with the video stream, or the decoder may be programmed to apply the same algorithm or sequence as applied by the encoder to determine the key value for each tile. At step 312, each tile detected in step 310 (i.e. each “unchanged” tile) is updated or replaced by replacing each pixel-value in the tile with the pixel-value of the corresponding pixel in the corresponding tile in the first image 100 (i.e. the preceding frame of the video stream). Thus, the solid key colour tiles are replaced by the corresponding tile of the preceding frame of the video stream, to complete the second image 200. Method steps 306 to 312 may be repeated for each subsequent frame of the video stream, wherein step 312 involves replacing each pixel-value in each tile detected in step 310 with a pixel-value of the corresponding pixel in the corresponding tile of the preceding image or frame of the video stream. The key value may be changed for each frame of the video stream. Figure 4 is a flowchart illustrating another method of decoding a video stream encoded using a tile-based encoding scheme, according to a further embodiment of the present disclosure. The method shown in Figure 3 and described above may be referred to as a “tilebased” decoding method, whereas the decoding method in Figure 4 may be referred to as a “pixel-based” decoding method. Steps 402 to 408 of the method are the same as steps 302 to 308 and so will not be repeated for the sake of brevity. At step 414 (following step 408) the method includes detecting each pixel in the second image 200 that has a pixel-value equal to a key value, the key value being a predetermined pixel-value for the second image. Thus, in this embodiment the key value is the same for all tiles in the second image (as in Figure 2B). At step 416 the method includes replacing each pixel detected in step 414 with the pixel-value of the corresponding pixel in the first image 100. It will be appreciated that the corresponding pixel means the pixel at the same location (or position) in the image. If there are any pixels in the second image that have a pixel-value equal to the key value, but do not in fact correspond to “unchanged” pixels, step 416 will still result in the replacement of said pixels by the pixel-value from the preceding frame of the video stream. However, this error may not be perceptible to the viewer, due to high-speed frame rates. It may be preferable for the key value to correspond to a colour that is not frequently used in the image or the video stream, to reduce the number of pixels that are incorrectly replaced at step 416 of the decoding method. This pixel-based decoding method is a simpler process to implement (in software or GPU code) than the tile-based decoding method and so this may be a more efficient decoding method on slower platforms or for high-resolution streams. Method steps 406 to 416 may be repeated for each subsequent frame of the video stream, wherein step 416 involves replacing each detected pixel in step 414 with a pixelvalue of the corresponding pixel in the corresponding tile of the preceding image or frame of the video stream. The key value may be changed for each frame of the video stream. Figure 5 is a block diagram of one example implementation of a computing device 500 according to an embodiment of the present disclosure. The computing device is associated with executable instructions for causing the computing device to perform any one or more of the methodologies discussed herein (e.g. encoding or decoding of a video stream). In some embodiments, the computing device 500 may be connected (e.g., networked) to other machines in a Local Area Network (LAN), an intranet, an extranet, or the Internet. The computing device may operate in the capacity of a server or a client machine in a clientserver network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The computing device may be a personal computer (PC), a tablet computer, a set-top box (STB), a Personal Digital Assistant (PDA), a cellular telephone, a web appliance, a server, a network router, switch or bridge, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that machine. Further, while only a single computing device is illustrated, the term “computing device” shall also be taken to include any collection of machines (e.g., computers), such as a cloud computing system, that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein. The example computing device 500 includes a processing device 502, a main memory 504 (e.g., read-only memory (ROM), flash memory, dynamic random-access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc ), a static memory 506 (e.g., flash memory, static random-access memory (SRAM), etc.), and a secondary memory (e.g., a data storage device 518), which communicate with each other via a bus 530. Processing device 502 represents one or more general-purpose processors such as a microprocessor, central processing unit, or the like. More particularly, the processing device 502 may be a complex instruction set computing (CISC) microprocessor, reduced instruction set computing (RISC) microprocessor, very long instruction word (VLIW) microprocessor, processor implementing other instruction sets, or processors implementing a combination of instruction sets. Processing device 502 may also be one or more special-purpose processing devices such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), network processor, or the like. Processing device 502 is configured to execute the processing logic (instructions 522) for performing the operations and steps discussed herein. The processing device 502 may be referred to as a processing resource. The computing device 500 may further include a network interface device 508. The computing device 500 also may include a video display unit 510 (e.g., a liquid crystal display (LCD) or a cathode ray tube (CRT)), an alphanumeric input device 512 (e.g., a keyboard or touchscreen), a cursor control device 514 (e.g., a mouse or touchscreen), and an audio device 516 (e.g., a speaker). The data storage device 518 may include one or more machine-readable storage media (or more specifically one or more non-transitory computer-readable storage media) 528 on which is stored one or more sets of instructions 522 embodying any one or more of the methodologies or functions described herein. The instructions 522 may also reside, completely or at least partially, within the main memory 504 and / or within the processing device 502 during execution thereof by the computer system 500, the main memory 504 and the processing device 502 also constituting computer-readable storage media. The various methods described above may be implemented by a computer program. The computer program may include computer code arranged to instruct a computer to perform the functions of one or more of the various methods described above. The computer program and / or the code for performing such methods may be provided to an apparatus, such as a computer, on one or more computer readable media or, more generally, a computer program product. The computer readable media may be transitory or non-transitory. The one or more computer readable media could be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or a propagation medium for data transmission, for example for downloading the code over the Internet. Alternatively, the one or more computer readable media could take the form of one or more physical computer readable media such as semiconductor or solid-state memory, magnetic tape, a removable computer diskette, a random-access memory (RAM), a read-only memory (ROM), a rigid magnetic disc, and an optical disk, such as a CD-ROM, CD-R / W or DVD. In an implementation, the modules, components and other features described herein can be implemented as discrete components or integrated in the functionality of hardware components such as ASICS, FPGAs, DSPs or similar devices. A “hardware component” is a tangible (e.g., non-transitory) physical component (e.g., a set of one or more processors) capable of performing certain operations and may be configured or arranged in a certain physical manner. A hardware component may include dedicated circuitry or logic that is permanently configured to perform certain operations. A hardware component may be or include a special-purpose processor, such as a field programmable gate array (FPGA) or an ASIC. A hardware component may also include programmable logic or circuitry that is temporarily configured by software to perform certain operations. Accordingly, the phrase “hardware component” should be understood to encompass a tangible entity that may be physically constructed, permanently configured (e.g., hardwired), or temporarily configured (e.g., programmed) to operate in a certain manner or to perform certain operations described herein. In addition, the modules and components can be implemented as firmware or functional circuitry within hardware devices. Further, the modules and components can be implemented in any combination of hardware devices and software components, or only in software (e.g., code stored or otherwise embodied in a machine-readable medium or in a transmission medium). Unless specifically stated otherwise, as apparent from the following discussion, it is appreciated that throughout the description, discussions utilising terms such as “providing”, “calculating”, “computing,” “identifying”, “detecting ”, “establishing” , “determining”, “storing”, “generating” / ’checking”, “obtaining” or the like, refer to the actions and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices. Accordingly, there has been described computer-implemented methods of encoding and decoding a video stream using tile-based schemes, each frame of the video stream being an image. The encoding method includes determining whether each pixel-value of the plurality of pixels in a tile is within a predetermined tolerance of a pixel-value of the corresponding pixel in the corresponding tile in the preceding image, and, in response to determining that each pixel-value of the plurality of pixels in the tile is within the predetermined tolerance of the pixel-value of the corresponding pixel in the corresponding tile in the preceding image, updating the image by replacing each pixel-value in the tile with a key value, wherein the key value is the same pixel-value for each pixel in the tile. The key value may be the same pixel-value for each tile in the second image. Alternatively, the key value may be a different pixel-value for different tiles in the second image. The key value may be the same pixel-value for each image or frame in the video stream. Alternatively, the key value may be a different pixel-value for different images or frames in the video stream. The key value may be cyclic. The corresponding method of decoding the encoded video stream may be done at tilelevel or pixel-level. Although particular embodiments of this disclosure have been described, it will be appreciated that many modifications / additions and / or substitutions may be made within the scope of the claims.

Claims

1. A computer-implemented method of encoding a video stream, wherein each frame of the video stream is formed of an image, wherein each image comprises a plurality of tiles and each tile comprises a plurality of pixels, each pixel having a respective pixel-value, wherein the method comprises:receiving a first image corresponding to a first frame of the video stream;encoding the first image using a tile-based encoding scheme;receiving a second image corresponding to a second frame of the video stream;for each tile in the second image:determining whether each pixel-value of the plurality of pixels in the tile is within a predetermined tolerance of a pixel-value of the corresponding pixel in the corresponding tile in the first image; andin response to determining that each pixel-value of the plurality of pixels in the tile is within the predetermined tolerance of the pixel-value of the corresponding pixel in the corresponding tile in the first image, updating the second image by replacing each pixel-value in the tile with a key value, wherein the key value is the same pixel-value for each pixel in the tile; andencoding the updated second image using the tile-based encoding scheme.

2. The computer-implemented method of claim 1, wherein the predetermined tolerance is greater than zero.

3. The computer-implemented method of claim 1 or claim 2, wherein:the key value corresponds to a pixel-value not frequently used in the video stream, or not frequently used in the second image; and / orthe key value corresponds to a pixel-value not frequently used in a typical video frame.

4. The computer-implemented method of any preceding claim, wherein the key value is the same for each tile in the second image.

5. The computer-implemented method of any of claims 1 to 3, wherein the key value is not the same for each tile in the second image.

6. The computer-implemented method of any preceding claim, further comprising receiving the key value.

7. The computer-implemented method of any of claims 1 to 5, further comprising determining the key value.

8. The computer-implemented method of claim 7, wherein the key value is determined using data or metadata received with the second image.

9. The computer-implemented method of claim 7 or claim 8, wherein the key value is determined using a predetermined sequence or a predetermined algorithm.

10. The computer-implemented method of any preceding claim, further comprising, for each subsequent frame of the video stream:receiving an image corresponding to a given frame of the video stream;for each tile in the image:determining whether each pixel-value of the plurality of pixels in the tile is within a predetermined tolerance of a pixel-value of the corresponding pixel in the corresponding tile in the preceding image; andin response to determining that each pixel-value of the plurality of pixels in the tile is within the predetermined tolerance of the pixel-value of the corresponding pixel in the corresponding tile in the preceding image, updating the image by replacing each pixel-value in the tile with a key value wherein the key value is the same for each pixel in the tile; andencoding the updated image using the tile-based encoding scheme.

11. The computer-implemented method of claim 10, wherein the key value is the same for each tile in the video stream.

12. The computer-implemented method of any preceding claim, wherein the tile-based encoding scheme is a JPEG encoding scheme, such that each encoded image in the video stream is a JPEG image.

13. A computer-implemented method of decoding a video stream encoded using a tilebased encoding scheme, wherein each frame of the video stream is formed of an image, wherein each image comprises a plurality of tiles and each tile comprises a plurality of pixels, each pixel having a respective pixel-value, wherein the method comprises:receiving a first encoded image corresponding to a first frame of the video stream;decoding the first encoded image using a tile-based decoding scheme to obtain a first image;receiving a second encoded image corresponding to a second frame of the video stream; anddecoding the second encoded image using the tile-based decoding scheme to obtain a second image; anddetecting all tiles in the second image where each pixel-value of the plurality of pixels in the tile is a key value, the key value being a predetermined pixel-value for the tile; andfor each detected tile, replacing the pixel-value of each of the plurality of pixels in the tile with a pixel-value of the corresponding pixel in the corresponding tile of the first image.

14. The computer-implemented method of claim 13, wherein the key value is the same pixel-value for each tile in the second image.

15. The computer-implemented method of claim 13, wherein the key value is not the same pixel-value for each tile in the second image.

16. A computer-implemented method of decoding a video stream encoded using a tilebased encoding scheme, wherein each frame of the video stream is formed of an image, wherein each image comprises a plurality of tiles and each tile comprises a plurality of pixels, each pixel having a respective pixel-value, wherein the method comprises:receiving a first encoded image corresponding to a first frame of the video stream;decoding the first encoded image using a tile-based decoding scheme to obtain a first image;receiving a second encoded image corresponding to a second frame of the video stream;decoding the second encoded image using the tile-based decoding scheme to obtain a second image;detecting each pixel in the second image having a pixel-value equal to a key value, the key value being a predetermined pixel-value for the second image; andfor each detected pixel, replacing the pixel-value with a pixel-value of the corresponding pixel in the first image.

17. The computer-implemented method of any of claims 13 to 16, further comprising receiving the key value.

18. The computer-implemented method of any of claims 13 to 16, further comprising determining the key value.

19. The computer-implemented method of claim 18, wherein the key value is determined using data or metadata received with the second encoded image.

20. The computer-implemented method of claim 18 or claim 19, wherein the key value is determined using a predetermined sequence or a predetermined algorithm.

21. The computer-implemented method of any of claims 13 to 20, wherein the key value is a different pixel-value for each image or frame in the video stream.

22. The computer-implemented method of any of claims 13 to 21, wherein each encoded image is a JPEG image and the tile-based decoding scheme is a JPEG decoding scheme.

23. The computer-implemented method of any of claims 13 to 22, wherein the computer-implemented method is at least partially implemented by a web browser.

24. A computing device comprising:one or more processors; andmemory, the memory including executable instructions that, as a result of execution by the one or more processors, causes the computing device to perform the computer-implemented method of any preceding claim.

25. A computer program comprising instructions which, when the computer program is executed by a computing device, cause the computing device to carry out the method of any of claims 1 to 23.

26. A non-transitory computer-readable medium comprising instructions which, when executed by a computer, cause the computer to carry out the method of any of claims 1 to 23.

Citation Information

Patent Citations

  • Processing of image

    US20120219065A1

  • Efficient transmission of changing images using image caching

    US8255461B1