# US 2021/0092452 A1 · Video stream protection device, method and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0092452 A1
- Document ID: US20210092452A1
- Status: Published application
- Kind: A1
- Application number: 17/024,705
- Filed: 2020-09-18
- Published: 2021-03-25
- Earliest claimed: 2019-09-19
- Assignees: Montage LZ Technologies (Chengdu) Co., Ltd.
- Applicants: Montage LZ Technologies (Chengdu) Co., Ltd.
- Inventors: Youyuan HUANG; Zhimin QIU; Chengqiang LIU
- Web page: https://patentgrep.com/patent/US20210092452A1

## CPC

- H04N 19/48: using compressed domain processing techniques other than decoding, e.g. modification of transform coefficients, variable length coding [VLC] data or run-length data (motion estimation in a transform domain H04N19/547; processing of decoded motion vectors H04N19/513)
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 21/2347: involving video stream encryption
- H04N 21/42623: {involving specific decryption arrangements}
- H04N 21/4405: involving video stream decryption
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video stream protection device is for protecting a video stream to be decoded. The video stream contains one or more data units each having a header section and a body section, and the header section contains header information indicative of a data type of the corresponding body section. The video stream protection device comprises: an identification module for identifying the one or more data units based on respective start positions of the one or more data units; a data type detection module for obtaining the header information of the identified data units, and determining the data type of the body section of each identified data unit based on the header information of the identified data unit; and a control module for determining whether to prohibit decoding of data of each data unit based on the data type of the body section of the data unit.

## Claims

### Claim 1

A video stream protection device for protecting a video stream to be decoded, wherein the video stream contains one or more data units each having a header section and a body section, the header section contains header information indicative of a data type of the corresponding body section; and wherein the video stream protection device comprises:
an identification module for identifying the one or more data units based on respective start positions of the one or more data units;
a data type detection module for obtaining the header information of the identified data units, and determining the data type of the body section of each identified data unit based on the header information of the identified data unit; and
a control module for determining whether to prohibit decoding of data of each data unit based on the data type of the body section of the data unit.

### Claim 2 (depends on 1)

The video stream protection device of claim 1, wherein the control module is further configured, for a data unit having a body section whose data type is slice type, to prohibit decoding data of the body section of the data unit.

### Claim 3 (depends on 2)

The video stream protection device of claim 2, wherein the control module comprises:
an accumulation module configured, for a data unit that has been determined having a body section whose data type is slice type, to count a length of the decoded data of the data unit, and to generate an invalidation command for prohibiting further decoding data of the data unit when the counted length exceeds a predetermined accumulation threshold; and
an output module for receiving the video stream, and stopping providing the data that is prohibited to be decoded to a non-secure processor that performs software decoding operation on the video stream.

### Claim 4 (depends on 1)

The video stream protection device of claim 1, wherein the video stream is in conformity with the H.264 or H.265 video codec standard, and the data units are network abstraction layer (NAL) data units.

### Claim 5 (depends on 1)

The video stream protection device of claim 1, wherein the video stream is in conformity with the MPEG2, MPEG4, VC1, AVS/AVS+ or AVS2 video codec standard, and each data unit is a data unit of the video stream which starts with a start code.

### Claim 6 (depends on 1)

The video stream protection device of claim 1, wherein the video stream is preprocessed to insert therein predetermined start code prefixes, and each data unit is a data unit of the preprocessed video stream which starts with a predetermined start code prefix.

### Claim 7 (depends on 2)

The video stream protection device of claim 2, wherein the video stream is in conformity with the H.264 video codec standard, the data units are NAL data units, and the slice type comprises one or more of the following data types of the NAL data units: non instantaneous decoder refresh (IDR) picture coded slice, coded slice data partition A, coded slice data partition B, coded slice data partition C, IDR picture coded slice, coded slice extension, coded slice extension for depth view or 3D view.

### Claim 8 (depends on 1)

The video stream protection device of claim 1, wherein the video stream has start code prefixes at respective start positions of the data units, and the video stream protection device further comprises a start code selection module for obtaining information indicative of a video format of the video stream to be decoded, and for determining one or more start code prefixes corresponding to the video stream based on the information indicative of the video format of the video stream to be decoded; and
the identification module is further configured to identify the start position of each data unit of the video stream to be decoded based on the one or more start code prefixes, to identify each data unit of the video stream.

### Claim 9 (depends on 1)

The video stream protection device of claim 1, wherein the video stream has start code prefixes at respective start positions of the data units, and the identification module is further configured to:
obtain one or more start code prefixes corresponding to the video stream to be decoded; and
identify the start position of each data unit of the video stream to be decoded based on the one or more start code prefixes, to identify each data unit of the video stream.

### Claim 10 (depends on 8)

The video stream protection device of claim 8, wherein the start code selection module is further configured to determine the header information corresponding to the video stream based on the information indicative of the video format of the video stream to be decoded.

### Claim 11 (depends on 9)

The video stream protection device of claim 9, wherein the start code selection module is further configured to determine the header information corresponding to the video stream based on the information indicative of the video format of the video stream to be decoded.

### Claim 12 (depends on 1)

The video stream protection device of claim 1, wherein the control module is further configured, for a data unit having a body section whose data type is slice type, to permit only decoding data of the data unit not greater than a predetermined accumulation threshold.

### Claim 13 (depends on 12)

The video stream protection device of claim 12, wherein the body section comprises a body header and/or body data, and the predetermined accumulation threshold is equal to or greater than a total length of the header section and the body header of the data unit.

### Claim 14

A video stream protection method, comprising:
A) obtaining a video stream to be decoded, wherein the video stream contains one or more data units each having a header section and a body section, and the header section contains header information indicative of a data type of the corresponding body section;
B) identifying the one or more data units based on respective start positions of the one or more data units;
C) obtaining the header information of the identified data units;
D) determining data types of the body sections of the data units based on the identified data units; and
E) determining whether to prohibit decoding of data of each data unit based on the data type of the body section of the data unit.

### Claim 15 (depends on 14)

The video stream protection method of claim 14, wherein the video stream is in conformity with the H.264 or H.265 video codec standard, and the data units are network abstraction layer (NAL) data units.

### Claim 16 (depends on 14)

The video stream protection method of claim 14, wherein the video stream is in conformity with the MPEG2, MPEG4, VC1, AVS/AVS+ or AVS2 video codec standard, and each data unit is a data unit of the video stream which starts with a start code.

### Claim 17 (depends on 14)

The video stream protection method of claim 14, wherein the video stream is preprocessed to insert therein predetermined start code prefixes, and each data unit is a data unit of the preprocessed video stream which starts with a predetermined start code prefix.

### Claim 18 (depends on 14)

The video stream protection method of claim 14, wherein step E further comprises:
for a data unit having a body section whose data type is slice type, prohibiting decoding data of the body section of the data unit.

### Claim 19 (depends on 18)

The video stream protection method of claim 18, the video stream is in conformity with the H.264 video codec standard, the data units are NAL data units, and the slice type comprises one or more of the following data types of the NAL data units: non instantaneous decoder refresh (IDR) picture coded slice, coded slice data partition A, coded slice data partition B, coded slice data partition C, IDR picture coded slice, coded slice extension, coded slice extension for depth view or 3D view.

### Claim 20 (depends on 14)

The video stream protection method of claim 14, wherein step B further comprises:
obtaining information indicative of a video format of the video stream to be decoded;
determining one or more start code prefixes corresponding to the video stream based on the information indicative of the video format of the video stream to be decoded, wherein each start code prefix is at a start position of a data unit of the video stream; and
identifying the start position of each data unit based on the one or more start code prefixes to identify each data unit of the video stream.

### Claim 21 (depends on 14)

The video stream protection method of claim 14, wherein step B further comprises:
obtaining one or more start code prefixes corresponding to the video stream to be decoded, wherein each start code prefix is at a start position of a data unit of the video stream; and
identifying the start position of each data unit based on the start code prefixes to identify each data unit of the video stream.

### Claim 22 (depends on 14)

The video stream protection method of claim 14, where in step E, prohibiting decoding of data of the data unit comprises:
for a data unit having a body section whose data type is slice type, permitting only decoding data of the data unit not greater than a predetermined accumulation threshold.

### Claim 23 (depends on 22)

The video stream protection method of claim 22, wherein the body section comprises a body header and/or body data, and the predetermined accumulation threshold is equal to or greater than a total length of the header section and the body header of the data unit.

### Claim 24 (depends on 22)

The video stream protection method of claim 22, wherein step E further comprises:
for a data unit having a body section whose data type is slice type, permitting only decoding data of the data unit not greater than a predetermined accumulation threshold comprises:
receiving the predetermined accumulation threshold;
for a data unit that has been determined having a body section whose data type is slice type, counting a length of the decoded data of the data unit; and
stopping providing the data that is prohibited to be decoded to a non-secure processor that performs software decoding operation on the video stream when the counted length exceeds the predetermined accumulation threshold.

### Claim 25 (depends on 14)

The video stream protection method of claim 14, wherein the video stream to be decoded is provided from a video stream data source to a video decoder for hardware decoding and further to a non-secure processor for software decoding via the video decoder, wherein the non-secure processor is configured to perform software decoding on the video stream, and the video stream protection method is implemented by the video decoder to stop providing to the non-secure processor data that is prohibited to be decoded.

### Claim 26

A non-transient computer readable storage medium in which executable instructions are stored, wherein the executable instructions can be executed by a processor to perform to the following operations:
A) obtaining a video stream to be decoded, wherein the video stream contains one or more data units each having a header section and a body section, and the header section contains header information indicative of a data type of the corresponding body section;
B) identifying the one or more data units based on respective start positions of the one or more data units;
C) obtaining the header information of the identified data units;
D) determining data types of the body sections of the data units based on the identified data units; and
E) determining whether to prohibit decoding of data of each data unit based on the data type of the body section of the data unit.
