Data coding method and apparatus, terminal device, and computer-readable storage medium

US11363263B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11363263-B2
Application numberUS-201916400334-A
CountryUS
Kind codeB2
Filing dateMay 1, 2019
Priority dateJul 6, 2017
Publication dateJun 14, 2022
Grant dateJun 14, 2022

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A data coding method includes determining a length of a current first bit-rate-control-unit data frame in to-be-transmitted data, and the length of the first bit-rate-control-unit data frame is less than or equal to a length of a group of pictures (GOP) data frame. The method also includes determining a first target bit rate of the first bit-rate-control-unit data frame according to the length of the first bit-rate-control-unit data frame, a target bit rate of the to-be-transmitted data, and a frame rate of the to-be-transmitted data and, when a first difference value between a real bit rate of a second bit-rate-control-unit data frame and a second target bit rate of the second bit-rate-control-unit data frame is greater than zero, adjusting the first target bit rate according to the first difference value, and coding the first bit-rate-control-unit data frame according to the adjusted first target bit rate.

First claim

Opening claim text (preview).

What is claimed is: 1. A data coding method, comprising: determining, by a computing device, a length of a first bit-rate-control-unit data frame in to-be-transmitted data, the length of the first bit-rate-control-unit data frame being less than or equal to a length of a group of pictures (GOP) data frame; determining, by the computing device, a first target bit rate of the first bit-rate-control-unit data frame according to the length of the first bit-rate-control-unit data frame, a target bit rate of the to-be-transmitted data, and a frame rate of the to-be-transmitted data; in response to determining a first difference value between a real bit rate of a second bit-rate-control-unit data frame and a second target bit rate of the second bit-rate-control-unit data frame is greater than zero, adjusting, by the computing device, the first target bit rate according to the first difference value to obtain an adjusted first target bit rate, the second bit-rate-control-unit data frame being a previous bit-rate-control-unit data frame of the first bit-rate-control-unit data frame in the to-be-transmitted data, wherein adjusting the first target bit rate according to the first difference value comprises: obtaining the adjusted first target bit rate by subtracting the first difference value from the first target bit rate, in response to determining the first difference value is greater than zero and is less than or equal to a preset difference value; and calculating a weighted value of a second difference value between the first difference value and the preset difference value, in response to determining the first difference value is greater than the preset difference value, and obtaining the adjusted first target bit rate by subtracting the preset difference value and the weighted value from the first target bit rate; and coding, by the computing device, the first bit-rate-control-unit data frame according to the adjusted first target bit rate. 2. The method according to claim 1 , wherein determining the length of the current first bit-rate-control-unit data frame comprises: setting a duration for the to-be-transmitted data; and in response to determining a number of data frames included in the duration is greater than or equal to the length of the GOP data frame, determining that the length of the first bit-rate-control-unit data frame is the length of the GOP data frame. 3. The method according to claim 2 , wherein the length of the GOP data frame is not an integer multiple of the number of data frames and last two bit-rate-control-unit data frames in the GOP data frame are the first bit-rate-control-unit data frame and a third bit-rate-control-unit data frame. 4. The method according to claim 1 , wherein determining the first target bit rate comprises: determining that the first target bit rate is a quotient obtained by dividing a product of the target bit rate of the to-be-transmitted data and the length of the first frame bit-rate-control-unit data frame by the frame rate of the to-be-transmitted data. 5. The method according to claim 1 , further comprising: determining that the preset difference value is a product of the length of the first bit-rate-control-unit data frame and an average lowest bit rate per frame. 6. The method according to claim 1 , further comprising: in response to determining the first difference value is less than or equal to zero, coding the first bit-rate-control-unit data frame at the first target bit rate. 7. A data coding apparatus, comprising: a memory storing computer program instructions; and a processor coupled to the memory and configured to execute the computer program instructions and perform: determining a length of a first bit-rate-control-unit data frame in to-be-transmitted data, the length of the first bit-rate-control-unit data frame being less than or equal to a length of a group of pictures (GOP) data frame; determining a first target bit rate of the first bit-rate-control-unit data frame according to the length of the first bit-rate-control-unit data frame, a target bit rate of the to-be-transmitted data, and a frame rate of the to-be-transmitted data; in response to determining a first difference value between a real bit rate of a second bit-rate-control-unit data frame and a second target bit rate of the second bit-rate-control-unit data frame is greater than zero, adjusting the first target bit rate according to the first difference value to obtain an adjusted first target bit rate, the second bit-rate-control-unit data frame being a previous bit-rate-control-unit data frame of a first bit-rate-control-unit in the to-be-transmitted data, wherein adjusting the first target bit rate according to the first difference value comprises: obtaining the adjusted first target bit rate by subtracting the first difference value from the first target bit rate, in response to determining the first difference value is greater than zero and is less than or equal to a preset difference value; and calculating a weighted value of a second difference value between the first difference value and the preset difference value, in response to determining the first difference value is greater than the preset difference value, and obtaining the adjusted first target bit rate by subtracting the preset difference value and the weighted value from the first target bit rate; and coding the first bit-rate-control-unit data frame according to the adjusted first target bit rate. 8. The apparatus according to claim 7 , wherein the processor is further configured to execute the computer program instructions and perform: setting a duration for the to-be-transmitted data; and in response to determining a number of data frames included in the duration is greater than or equal to the length of the GOP data frame, determining that the length of the first bit-rate-control-unit data frame is the length of the GOP data frame. 9. The apparatus according to claim 8 , wherein the processor is further configured to execute the computer program instructions and perform: determining the length of the GOP data frame is not an integer multiple of the number of data frames and last two bit-rate-control-unit data frames in the GOP data frame are sequentially the first bit-rate-control-unit data frame and a third bit-rate-control-unit data frame. 10. The apparatus according to claim 7 , wherein the processor is further configured to execute the computer program instructions and perform determining that the first target bit rate is a quotient obtained by dividing a product of the target bit rate of the to-be-transmitted data and the length of the first bit-rate-control-unit data frame by the frame rate of the to-be-transmitted data. 11. The apparatus according to claim 7 , wherein the processor is further configured to execute the computer program instructions and perform: adjusting the preset difference value to be a product of the length of the first bit-rate-control-unit data frame and an average lowest bit rate per frame. 12. A non-transitory computer-readable storage medium storing computer program instructions executable by at least one processor to perform: determining a length of a current first bit-rate-control-unit data frame in to-be-transmitted data, the length of the first bit-rate-control-unit data frame being less than or equal to a length of a group of pictures (GOP) data frame; determining a first target bit rate of the first bit-rate-control-unit data frame according to the length of the first bit-rate-control-unit data frame, a target bit rate of the to-be-transmitted data, and a frame rate of the to-be-transmitted data; in response to determi

Assignees

Inventors

Classifications

  • the region being a picture, frame or field · CPC title

  • the unit being a group of pictures [GOP] · CPC title

  • H04N19/115Primary

    Selection of the code volume for a coding unit prior to coding · CPC title

  • by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer · CPC title

  • H04N19/114Primary

    Adapting the group of pictures [GOP] structure, e.g. number of B-frames between two anchor frames (H04N19/107 takes precedence) · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11363263B2 cover?
A data coding method includes determining a length of a current first bit-rate-control-unit data frame in to-be-transmitted data, and the length of the first bit-rate-control-unit data frame is less than or equal to a length of a group of pictures (GOP) data frame. The method also includes determining a first target bit rate of the first bit-rate-control-unit data frame according to the length …
Who is the assignee on this patent?
Tencent Tech Shenzhen Co Ltd
What technology area does this patent fall under?
Primary CPC classification H04N19/115. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue Jun 14 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).