[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103916670B - A kind of coding of image, coding/decoding method and device - Google Patents

A kind of coding of image, coding/decoding method and device Download PDF

Info

Publication number
CN103916670B
CN103916670B CN201310004957.9A CN201310004957A CN103916670B CN 103916670 B CN103916670 B CN 103916670B CN 201310004957 A CN201310004957 A CN 201310004957A CN 103916670 B CN103916670 B CN 103916670B
Authority
CN
China
Prior art keywords
coefficient
block
index
image
sub
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.)
Active
Application number
CN201310004957.9A
Other languages
Chinese (zh)
Other versions
CN103916670A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310004957.9A priority Critical patent/CN103916670B/en
Priority to PCT/CN2013/080297 priority patent/WO2014106377A1/en
Publication of CN103916670A publication Critical patent/CN103916670A/en
Application granted granted Critical
Publication of CN103916670B publication Critical patent/CN103916670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
    • H04N19/33Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability in the spatial domain
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/129Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/187Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a scalable video layer

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Apparatus For Radiation Diagnosis (AREA)

Abstract

The invention discloses a kind of coding method of image, including:The hierarchical information of image coefficient block is determined, described image coefficient block includes multiple images coefficient sub-block, and described image coefficient sub-block includes multiple images coefficient;Described image coefficient sub-block in target factor layer is determined according to the hierarchical information, it is determined that belonging to the described image coefficient of the target factor layer in the image coefficient sub-block in the layer positioned at target factor;Described image coefficient is encoded.The embodiment of the present invention also provides corresponding coding/decoding method and coding and decoding device.Decoding method provided in an embodiment of the present invention, can be layered the image coefficient block of a variety of sizes of encoding and decoding, so as to improve encoding-decoding efficiency.

Description

A kind of coding of image, coding/decoding method and device
Technical field
The present invention relates to encoding and decoding technique field, and in particular to a kind of coding of image, coding/decoding method and code device and Decoding apparatus.
Background technology
In network environment, because the network bandwidth is limited, in order to which the demand for meeting user has used telescopic video (SVC, the Scalable Video Coding) method of coding.
SVC is layering encoding and decoding, is divided into Primary layer and enhancement layer, the resolution ratio of Primary layer is minimum, the resolution of enhancement layer Rate is higher.
A kind of new enhancement layer layering, i.e. medium size layering (MGS, Medium Grain are introduced in nearest SVC again Scalability).One enhancement layer can at most be divided into 16 layers by MGS, and specific method is by the conversion coefficient of image coefficient block Packet, different system numbers are put into different MGS layers.
This MGS layered approach is only applicable in the enhancement layer layering that image coefficient block is 4x4 in the prior art, if Image coefficient block is 8x8,16x16,32x32 or other size, and this layered approach of MGS can not just be used.
It was found by the inventors of the present invention that when image coefficient block is 8x8,16x16,32x32 or other sizes, based on MGS The decoding method of layering can not also be used, if the different size of image coefficient block of the above can not carry out being divided into volume solution Code, can reduce the efficiency of encoding and decoding.
The content of the invention
The embodiment of the present invention provides a kind of encoding and decoding method of image, can be layered the image of a variety of sizes of encoding and decoding Coefficient block, so as to improve encoding-decoding efficiency.The embodiment of the present invention additionally provides corresponding code device and decoding apparatus.
First aspect present invention provides a kind of coding method of image, including:
The hierarchical information of image coefficient block is determined, described image coefficient block includes multiple images coefficient sub-block, described image Coefficient sub-block includes multiple images coefficient;
Described image coefficient sub-block in target factor layer is determined according to the hierarchical information, wherein, the target factor One in multiple images coefficient hierarchical after the described image coefficient block layering that layer is reflected by the hierarchical information, the mesh Described image coefficient sub-block in mark coefficient layer, which refers to, wherein has at least one image coefficient to belong to the described of the target factor layer Image coefficient sub-block;
It is determined that belonging to the described image of the target factor layer in the image coefficient sub-block in target factor layer Coefficient;
Described image coefficient is encoded.
With reference in a first aspect, in the first possible implementation, the hierarchical information for determining image coefficient block is wrapped Include:
Configure the hierarchical information, and the hierarchical information of configuration is write into code stream, or, using preset with decoding Hold the hierarchical information of agreement.
With reference to first aspect or first aspect the first possible implementation, in second of possible implementation In, image coefficient in described image coefficient block constitutes multiple coefficient sets, wherein each coefficient sets are included with level to the right 0 Spend for reference to the row image coefficient arranged in a straight line for being in the counterclockwise direction 45 degree;It is described that mesh is determined according to the hierarchical information The described image coefficient sub-block in coefficient layer is marked, including:
The coefficient sets starting index and coefficient group termination index of the target factor layer are determined according to the hierarchical information, its In, the coefficient sets starting index is the scanning index of the coefficient sets of scanning index minimum in target factor layer;The system Array terminates scanning index of the index for the maximum coefficient sets of scanning index in target factor layer;
According to coefficient sets starting index and coefficient group termination index, determine what is included in the target factor layer The image coefficient sub-block starting index and image coefficient sub-block of image coefficient sub-block terminate index, the starting of described image coefficient sub-block Index during for all image coefficient sub-blocks in scanning described image coefficient block scanning index in target factor layer minimum The scanning index of image coefficient sub-block;It is all figures in scanning described image coefficient block that described image coefficient sub-block, which terminates index, During as coefficient sub-block in target factor layer the maximum image coefficient sub-block of scanning index scanning index;
Index is terminated according to described image coefficient sub-block starting index and image coefficient sub-block, the target factor layer is determined In all image coefficient sub-blocks;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
With reference to second of possible implementation of first aspect, in the third possible implementation, the layering letter Breath includes being used to mark multiple coefficient sets on the layered boundary of all image coefficient layerings in described image coefficient block The information of the information of scanning index;
The coefficient sets starting index and coefficient group termination rope that the target factor layer is determined according to the hierarchical information Draw, including:
It is used to mark multiple systems on the layered boundary that all image coefficients are layered in described image coefficient block according to described The information of the information of the scanning index of array determines the coefficient sets starting index and coefficient group termination index of the target factor layer.
With reference to second of first aspect or the third possible implementation, in the 4th kind of possible implementation, It is described to be indexed according to coefficient sets starting index and the coefficient group termination, determine the image included in the target factor layer The image coefficient sub-block starting index and image coefficient sub-block of coefficient sub-block terminate index, including:
It will be swept in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets The scanning index for retouching the minimum image coefficient sub-block of index is indexed as the starting of described image coefficient sub-block;
It will be swept in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination The scanning index for retouching the maximum image coefficient sub-block of index is indexed as the termination of described image coefficient sub-block.
With reference to first aspect or first aspect the first possible implementation, in the 5th kind of possible implementation In, the described image coefficient sub-block determined according to the hierarchical information in target factor layer, including:
The target factor tomographic image coefficient block coefficient for determining the target factor layer according to the hierarchical information originates index Terminate and index with target factor tomographic image coefficient block coefficient;The target factor tomographic image coefficient block coefficient starting index is scanning Scanning index is minimum in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Image coefficient scanning index;It is scanning described image coefficient block that the target factor tomographic image coefficient block coefficient, which terminates index, In all image coefficients when target factor layer in all image coefficients in scanning index maximum image coefficient sweep Retouch index;
According to target factor tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block system Number terminates the image coefficient sub-block starting index and image that index determines the image coefficient sub-block in target factor layer Coefficient sub-block terminates index, so that it is determined that all image coefficient sub-blocks in target factor layer;Described image coefficient sub-block Scanning index is most in the target factor layer when starting index is all image coefficient sub-block in scanning described image coefficient block The scanning index of small image coefficient sub-block;It is the institute in scanning described image coefficient block that described image coefficient sub-block, which terminates index, When having an image coefficient sub-block in the target factor layer the maximum image coefficient sub-block of scanning index scanning index;
The scanning index of described image coefficient is to all image coefficients in described image coefficient block by given scanning sequency It is scanned the index value of determination;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
With reference to the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation, the layering letter Breath includes being used to mark sweeping for the multiple images coefficient on the layered boundary that all image coefficients are layered in described image coefficient block Retouch the information of the information of index;
It is described to determine that the target factor tomographic image coefficient block coefficient of the target factor layer is originated according to the hierarchical information Index and target factor tomographic image coefficient block coefficient terminate index, including:
According to the multiple images system on the layered boundary that all image coefficients are layered in the mark described image coefficient block The information of the information of several scanning indexs determines the target factor tomographic image coefficient block coefficient starting index of the target factor layer Terminate and index with target factor tomographic image coefficient block coefficient.
With reference to the 5th kind or the 6th kind possible implementation of first aspect, in the 7th kind of possible implementation, It is described whole according to target factor tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient Only index determines the image coefficient sub-block starting index and image coefficient for the image coefficient sub-block being located in target factor layer Sub-block terminates index, including:
By comprising image coefficient in have image coefficient scanning index be more than or equal to the target factor tomographic image In the image coefficient sub-block of the image coefficient of coefficient block coefficient starting index, the image of the scanning index minimum of image coefficient sub-block The image coefficient sub-block scanning index of coefficient sub-block is originated as described image coefficient sub-block and indexed;
By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image Coefficient block coefficient is terminated in the image coefficient sub-block of the image coefficient of index, the image of the scanning index maximum of image coefficient sub-block The image coefficient sub-block scanning index of coefficient sub-block is terminated as described image coefficient sub-block and indexed.
With reference to first aspect, first aspect the first any one into the 7th kind of possible implementation, the 8th Plant in possible implementation, belong to the target system in the image coefficient sub-block being located at described in the determination in target factor layer Several layers of described image coefficient, including:
The image coefficient sub-block coefficient for determining image coefficient sub-block in the target factor layer according to the hierarchical information rises Begin index and image coefficient sub-block coefficient termination index, so that it is determined that belonging to the target factor layer in described image coefficient sub-block Image coefficient;
Described image coefficient sub-block coefficient starting index is described image coefficient sub-block in all of target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in image coefficient;Described image coefficient sub-block coefficient terminates index For the image coefficient sub-block of described image coefficient sub-block scanning index maximum in all image coefficients of target factor layer Coefficient scanning is indexed;
Described image coefficient sub-block coefficient scanning index is to owning in described image coefficient sub-block by given scanning sequency Image coefficient is scanned the index value of determination.
With reference to any one in the 8th kind of possible implementation of first aspect, in the 9th kind of possible implementation In, it is described to determine that the image coefficient sub-block coefficient of image coefficient sub-block in the target factor layer is originated according to the hierarchical information Index and image coefficient sub-block coefficient terminate index, including:
The mesh is determined according to the coefficient sets starting index and coefficient group termination index of target factor layer The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient for marking image coefficient sub-block in coefficient layer terminate index.
It is possible at the tenth kind with reference to any one in the 8th kind or the 9th kind possible implementation of first aspect In implementation, described indexed according to the coefficient sets starting index of target factor layer and the coefficient group termination determines The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block are terminated in the target factor layer Index, including:
By in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets, sweep Retouch the minimum image coefficient sub-block coefficient scanning index of index and be defined as described image coefficient sub-block coefficient starting index;
By in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination, sweep Retouch the maximum image coefficient sub-block coefficient scanning index of index and be defined as described image coefficient sub-block coefficient termination index.
With reference to any one in the 8th kind of possible implementation of first aspect, in a kind of the tenth possible implementation In, it is described to determine that the image coefficient sub-block coefficient of image coefficient sub-block in the target factor layer is originated according to the hierarchical information Index and image coefficient sub-block coefficient terminate index, including:
According to the target factor tomographic image coefficient block coefficient starting index of target factor layer and the target system Number tomographic image coefficient block coefficient terminates the image coefficient sub-block coefficient that index determines image coefficient sub-block in the target factor layer Starting index and image coefficient sub-block coefficient terminate index.
, can at the 12nd kind with reference to any one in the 8th kind of first aspect or a kind of the tenth possible implementation Can implementation in, it is described according to the target factor layer the target factor tomographic image coefficient block coefficient starting index and The target factor tomographic image coefficient block coefficient terminates the image system that index determines image coefficient sub-block in the target factor layer Number sub-block coefficient starting index and image coefficient sub-block coefficient terminate index, including:
Scanning index comprising described image coefficient is more than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block for the image coefficient for originating index, the minimum image coefficient sub-block coefficient scanning index of scanning index is determined Originate and index for described image coefficient sub-block coefficient;
Scanning index comprising described image coefficient is less than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block for the image coefficient for terminating index, the maximum image coefficient sub-block coefficient scanning index of scanning index is determined Terminate and index for described image coefficient sub-block coefficient.
Second aspect of the present invention provides a kind of coding/decoding method of image, including
The hierarchical information of image coefficient block is determined, described image coefficient block includes multiple images coefficient sub-block, described image Coefficient sub-block includes multiple images coefficient;
Described image coefficient sub-block in target factor layer is determined according to the hierarchical information, wherein, the target factor One in multiple images coefficient hierarchical after the described image coefficient block layering that layer is reflected by the hierarchical information, the mesh Described image coefficient sub-block in mark coefficient layer, which refers to, wherein has at least one image coefficient to belong to the described of the target factor layer Image coefficient sub-block;
It is determined that belonging to the described image of the target factor layer in the image coefficient sub-block in target factor layer Coefficient;
Decoded bit stream is to obtain described image coefficient.
With reference to second aspect, in the first possible implementation, the hierarchical information for determining image coefficient block, bag Include:
The hierarchical information is parsed from code stream, or uses the preset hierarchical information arranged with coding side.
With reference to second aspect or second aspect the first possible implementation, in second of possible implementation In, image coefficient in described image coefficient block constitutes multiple coefficient sets, wherein each coefficient sets are included with level to the right 0 Spend for reference to the row image coefficient arranged in a straight line for being in the counterclockwise direction 45 degree;It is described that mesh is determined according to the hierarchical information The described image coefficient sub-block in coefficient layer is marked, including:
The coefficient sets starting index and coefficient group termination index of the target factor layer are determined according to the hierarchical information, its In, the coefficient sets starting index is the scanning index of the coefficient sets of scanning index minimum in target factor layer;The system Array terminates scanning index of the index for the maximum coefficient sets of scanning index in target factor layer;
According to coefficient sets starting index and coefficient group termination index, determine what is included in the target factor layer The image coefficient sub-block starting index and image coefficient sub-block of image coefficient sub-block terminate index, the starting of described image coefficient sub-block Index during for all image coefficient sub-blocks in scanning described image coefficient block scanning index in target factor layer minimum The scanning index of image coefficient sub-block;It is all figures in scanning described image coefficient block that described image coefficient sub-block, which terminates index, During as coefficient sub-block in target factor layer the maximum image coefficient sub-block of scanning index scanning index;
Index is terminated according to described image coefficient sub-block starting index and image coefficient sub-block, the target factor layer is determined In all image coefficient sub-blocks;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
With reference to second of possible implementation of second aspect, in the third possible implementation, the layering letter Breath includes being used to mark multiple coefficient sets on the layered boundary of all image coefficient layerings in described image coefficient block The information of the information of scanning index;
The coefficient sets starting index and coefficient group termination rope that the target factor layer is determined according to the hierarchical information Draw, including:
It is used to mark multiple systems on the layered boundary that all image coefficients are layered in described image coefficient block according to described The information of the information of the scanning index of array determines the coefficient sets starting index and coefficient group termination index of the target factor layer.
With reference to second of second aspect or the third possible implementation, in the 4th kind of possible implementation, It is described to be indexed according to coefficient sets starting index and the coefficient group termination, determine the image included in the target factor layer The image coefficient sub-block starting index and image coefficient sub-block of coefficient sub-block terminate index, including:
It will be swept in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets The scanning index for retouching the minimum image coefficient sub-block of index is indexed as the starting of described image coefficient sub-block;
It will be swept in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination The scanning index for retouching the maximum image coefficient sub-block of index is indexed as the termination of described image coefficient sub-block.
With reference to second aspect or second aspect the first possible implementation, in the 5th kind of possible implementation In, the described image coefficient sub-block determined according to the hierarchical information in target factor layer, including:
The target factor tomographic image coefficient block coefficient for determining the target factor layer according to the hierarchical information originates index Terminate and index with target factor tomographic image coefficient block coefficient;The target factor tomographic image coefficient block coefficient starting index is scanning Scanning index is minimum in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Image coefficient scanning index;It is scanning described image coefficient block that the target factor tomographic image coefficient block coefficient, which terminates index, In all image coefficients when target factor layer in all image coefficients in scanning index maximum image coefficient sweep Retouch index;
According to target factor tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block system Number terminates the image coefficient sub-block starting index and image that index determines the image coefficient sub-block in target factor layer Coefficient sub-block terminates index, so that it is determined that all image coefficient sub-blocks in target factor layer;Described image coefficient sub-block Scanning index is most in the target factor layer when starting index is all image coefficient sub-block in scanning described image coefficient block The scanning index of small image coefficient sub-block;It is the institute in scanning described image coefficient block that described image coefficient sub-block, which terminates index, When having an image coefficient sub-block in the target factor layer the maximum image coefficient sub-block of scanning index scanning index;
The scanning index of described image coefficient is to all image coefficients in described image coefficient block by given scanning sequency It is scanned the index value of determination;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
With reference to the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation, the layering letter Breath includes being used to mark sweeping for the multiple images coefficient on the layered boundary that all image coefficients are layered in described image coefficient block Retouch the information of the information of index;
It is described to determine that the target factor tomographic image coefficient block coefficient of the target factor layer is originated according to the hierarchical information Index and target factor tomographic image coefficient block coefficient terminate index, including:
According to the multiple images system on the layered boundary that all image coefficients are layered in the mark described image coefficient block The information of the information of several scanning indexs determines the target factor tomographic image coefficient block coefficient starting index of the target factor layer Terminate and index with target factor tomographic image coefficient block coefficient.
With reference to the 5th kind or the 6th kind possible implementation of second aspect, in the 7th kind of possible implementation, It is described whole according to target factor tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient Only index determines the image coefficient sub-block starting index and image coefficient for the image coefficient sub-block being located in target factor layer Sub-block terminates index, including:
By comprising image coefficient in have image coefficient scanning index be more than or equal to the target factor tomographic image In the image coefficient sub-block of the image coefficient of coefficient block coefficient starting index, the image of the scanning index minimum of image coefficient sub-block The image coefficient sub-block scanning index of coefficient sub-block is originated as described image coefficient sub-block and indexed;
By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image Coefficient block coefficient is terminated in the image coefficient sub-block of the image coefficient of index, the image of the scanning index maximum of image coefficient sub-block The image coefficient sub-block scanning index of coefficient sub-block is terminated as described image coefficient sub-block and indexed.
With reference to second aspect, second aspect the first any one into the 7th kind of possible implementation, the 8th Plant in possible implementation, belong to the target system in the image coefficient sub-block being located at described in the determination in target factor layer Several layers of described image coefficient, including:
The image coefficient sub-block coefficient for determining image coefficient sub-block in the target factor layer according to the hierarchical information rises Begin index and image coefficient sub-block coefficient termination index, so that it is determined that belonging to the target factor layer in described image coefficient sub-block Image coefficient;
Described image coefficient sub-block coefficient starting index is described image coefficient sub-block in all of target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in image coefficient;Described image coefficient sub-block coefficient terminates index For the image coefficient sub-block of described image coefficient sub-block scanning index maximum in all image coefficients of target factor layer Coefficient scanning is indexed;
Described image coefficient sub-block coefficient scanning index is to owning in described image coefficient sub-block by given scanning sequency Image coefficient is scanned the index value of determination.
With reference to any one in the 8th kind of possible implementation of second aspect, in the 9th kind of possible implementation In, it is described to determine that the image coefficient sub-block coefficient of image coefficient sub-block in the target factor layer is originated according to the hierarchical information Index and image coefficient sub-block coefficient terminate index, including:
The mesh is determined according to the coefficient sets starting index and coefficient group termination index of target factor layer The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient for marking image coefficient sub-block in coefficient layer terminate index.
It is possible at the tenth kind with reference to any one in the 8th kind or the 9th kind possible implementation of second aspect In implementation, described indexed according to the coefficient sets starting index of target factor layer and the coefficient group termination determines The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block are terminated in the target factor layer Index, including:
By in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets, sweep Retouch the minimum image coefficient sub-block coefficient scanning index of index and be defined as described image coefficient sub-block coefficient starting index;
By in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination, sweep Retouch the maximum image coefficient sub-block coefficient scanning index of index and be defined as described image coefficient sub-block coefficient termination index.
With reference to any one in the 8th kind of possible implementation of second aspect, in a kind of the tenth possible realization side It is described to determine that the image coefficient sub-block coefficient of image coefficient sub-block in the target factor layer rises according to the hierarchical information in formula Begin index and image coefficient sub-block coefficient termination index, including:
According to the target factor tomographic image coefficient block coefficient starting index of target factor layer and the target system Number tomographic image coefficient block coefficient terminates the image coefficient sub-block coefficient that index determines image coefficient sub-block in the target factor layer Starting index and image coefficient sub-block coefficient terminate index.
, can at the 12nd kind with reference to any one in the 8th kind of second aspect or a kind of the tenth possible implementation Can implementation in, it is described according to the target factor layer the target factor tomographic image coefficient block coefficient starting index and The target factor tomographic image coefficient block coefficient terminates the image system that index determines image coefficient sub-block in the target factor layer Number sub-block coefficient starting index and image coefficient sub-block coefficient terminate index, including:
Scanning index comprising described image coefficient is more than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block for the image coefficient for originating index, the minimum image coefficient sub-block coefficient scanning index of scanning index is determined Originate and index for described image coefficient sub-block coefficient;
Scanning index comprising described image coefficient is less than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block for the image coefficient for terminating index, the maximum image coefficient sub-block coefficient scanning index of scanning index is determined Terminate and index for described image coefficient sub-block coefficient.
Third aspect present invention provides a kind of code device, including:
First determining unit, the hierarchical information for determining image coefficient block, described image coefficient block includes multiple images Coefficient sub-block;Described image coefficient sub-block includes multiple images coefficient;
Second determining unit, the hierarchical information for being determined according to first determining unit is determined in target factor layer Described image coefficient sub-block, wherein, the described image coefficient block that the target factor layer is reflected by the hierarchical information is layered Described image coefficient sub-block in one in multiple images coefficient hierarchical afterwards, the target factor layer, which refers to wherein, at least one Individual image coefficient belongs to the described image coefficient sub-block of the target factor layer;
3rd determining unit, for determining the image coefficient being located in target factor layer that second determining unit is determined Belong to the described image coefficient of the target factor layer in sub-block;
Coding unit, for being encoded to the image coefficient that the 3rd determining unit is determined.
With reference to the third aspect, in the first possible implementation,
First determining unit, code stream is write for configuring the hierarchical information, and by the hierarchical information of configuration, Or, use the preset hierarchical information arranged with decoding end.
With reference to the third aspect, the third aspect the first possible implementation, in second of possible implementation, institute The image coefficient stated in image coefficient block constitutes multiple coefficient sets, wherein each coefficient sets include and are for 0 degree to the right with level With reference to the row image coefficient arranged in a straight line for being in the counterclockwise direction 45 degree;
Second determining unit includes:
First determination subelement, is indexed for determining that the coefficient sets of the target factor layer are originated according to the hierarchical information Indexed with coefficient group termination, wherein, the coefficient sets starting index is the coefficient of scanning index minimum in target factor layer The scanning index of group;The coefficient group termination index is the scanning rope of the coefficient sets of scanning index maximum in target factor layer Draw;
Second determination subelement, for the coefficient sets starting index determined according to first determination subelement and the system Array terminates index, determines the image coefficient sub-block starting index of the image coefficient sub-block included in the target factor layer and schemes Indexed as coefficient sub-block is terminated, described image coefficient sub-block starting index is all image systems in scanning described image coefficient block Count the scanning index of the minimum image coefficient sub-block of scanning index in target factor layer during sub-block;Described image coefficient sub-block Scanning index is most in the target factor layer when terminating index for all image coefficient sub-blocks in scanning described image coefficient block The scanning index of big image coefficient sub-block;
3rd determination subelement, for the image coefficient sub-block starting index that is determined according to second determination subelement and Image coefficient sub-block terminates index, determines all image coefficient sub-blocks in the target factor layer;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
With reference to second of possible implementation of the third aspect, in the third possible implementation, the layering letter Breath includes being used to mark multiple coefficient sets on the layered boundary of all image coefficient layerings in described image coefficient block The information of the information of scanning index;
First determination subelement, for being used to mark all image coefficients point in described image coefficient block according to described The information of the information of the scanning index of multiple coefficient sets on the layered boundary of layer determines that the coefficient sets of the target factor layer rise Begin index and coefficient group termination index.
With reference to second of the third aspect or the third possible implementation, in the 4th kind of possible implementation,
Second determination subelement, for the image that will be originated comprising the coefficient sets in the coefficient sets indicated by indexing The scanning index of the minimum image coefficient sub-block of scanning index is used as described image coefficient sub-block in the image coefficient sub-block of coefficient Starting index;It will be swept in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination The scanning index for retouching the maximum image coefficient sub-block of index is indexed as the termination of described image coefficient sub-block.
With reference to the third aspect, the third aspect the first possible implementation, in the 5th kind of possible implementation, institute Stating the second determining unit includes:
4th determination subelement, the target factor tomographic image for determining the target factor layer according to the hierarchical information Coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image coefficient block Coefficient starting index is all images in target factor layer when scanning all image coefficients in described image coefficient block The scanning index of the minimum image coefficient of scanning index in coefficient;The target factor tomographic image coefficient block coefficient terminates index Scan scanning index in all image coefficients during all image coefficients in described image coefficient block in the target factor layer The scanning index of maximum image coefficient;
5th determination subelement, for the target factor tomographic image coefficient block system determined according to the 4th determination subelement Number starting index and the target factor tomographic image coefficient block coefficient terminate the figure that index determines to be located in target factor layer As the image coefficient sub-block starting index and image coefficient sub-block of coefficient sub-block terminate index, so that it is determined that target factor layer In all image coefficient sub-blocks;Described image coefficient sub-block starting index is all images in scanning described image coefficient block During coefficient sub-block in target factor layer the minimum image coefficient sub-block of scanning index scanning index;Described image coefficient Scanning index in target factor layer when termination of a block index is all image coefficient sub-block in scanning described image coefficient block The scanning index of maximum image coefficient sub-block;
The scanning index of described image coefficient is to all image coefficients in described image coefficient block by given scanning sequency It is scanned the index value of determination;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
With reference to the 5th kind of possible implementation of the third aspect, in the 6th kind of possible implementation, the layering letter Breath includes being used to mark sweeping for the multiple images coefficient on the layered boundary that all image coefficients are layered in described image coefficient block Retouch the information of the information of index;
4th determination subelement, for what is be layered according to all image coefficients in the mark described image coefficient block The information of the information of the scanning index of multiple images coefficient on layered boundary determines the target factor layer of the target factor layer Image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index.
With reference to the 5th kind or the 6th kind possible implementation of the third aspect, in the 7th kind of possible implementation,
5th determination subelement, for by comprising image coefficient in have image coefficient scanning index be more than or In image coefficient sub-block equal to the image coefficient that the target factor tomographic image coefficient block coefficient originates index, image coefficient The image coefficient sub-block scanning index of the minimum image coefficient sub-block of the scanning index of block is originated as described image coefficient sub-block Index;By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image coefficient Block coefficient is terminated in the image coefficient sub-block of the image coefficient of index, the image coefficient of the scanning index maximum of image coefficient sub-block The image coefficient sub-block scanning index of sub-block is terminated as described image coefficient sub-block and indexed.
With reference to the first any one into the 7th kind of possible implementation of the third aspect, in the 8th kind of possible reality In existing mode,
3rd determining unit, for determining image coefficient sub-block in the target factor layer according to the hierarchical information Image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient terminate index, so that it is determined that described image coefficient sub-block In belong to the image coefficient of target factor layer;
Described image coefficient sub-block coefficient starting index is described image coefficient sub-block in all of target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in image coefficient;Described image coefficient sub-block coefficient terminates index For the image coefficient sub-block of described image coefficient sub-block scanning index maximum in all image coefficients of target factor layer Coefficient scanning is indexed;
Described image coefficient sub-block coefficient scanning index is to owning in described image coefficient sub-block by given scanning sequency Image coefficient is scanned the index value of determination.
With reference to the 8th kind of possible implementation of the third aspect, in the 9th kind of possible implementation, the described 3rd is true Order member includes:
7th determination subelement, for the system of the target factor layer determined according to the 6th determination subelement Array starting index and the coefficient group termination index image coefficient for determining image coefficient sub-block in the target factor layer Block coefficient starting index and image coefficient sub-block coefficient terminate index.
With reference to the 8th kind or the 9th kind possible implementation of the third aspect, in the tenth kind of possible implementation,
7th determination subelement, for the image that will be originated comprising the coefficient sets in the coefficient sets indicated by indexing In the image coefficient sub-block of coefficient, the minimum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient Sub-block coefficient starting index;By the image coefficient of the image coefficient indexed comprising the coefficient group termination in indicated coefficient sets In sub-block, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient and terminates rope Draw.
With reference to the 8th kind of possible implementation of the third aspect, in a kind of the tenth possible implementation, the described 3rd Determining unit includes:
8th determination subelement, the target factor tomographic image for determining the target factor layer according to the hierarchical information Coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image coefficient block Coefficient starting index is all images in target factor layer when scanning all image coefficients in described image coefficient block The scanning index of the minimum image coefficient of scanning index in coefficient;The target factor tomographic image coefficient block coefficient terminates index Scan scanning index in all image coefficients during all image coefficients in described image coefficient block in the target factor layer The scanning index of maximum image coefficient;
9th determination subelement, for being risen according to the target factor tomographic image coefficient block coefficient of target factor layer Begin to index and the target factor tomographic image coefficient block coefficient terminates index and determines image coefficient sub-block in the target factor layer Image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient terminate index.
With reference to the 8th kind of the third aspect or a kind of the tenth possible implementation, in the 12nd kind of possible implementation In,
9th determination subelement, it is described for the scanning index comprising described image coefficient to be more than or equal to In the image coefficient sub-block of the image coefficient of target factor tomographic image coefficient block coefficient starting index, the minimum image of scanning index Coefficient sub-block coefficient scanning index is defined as described image coefficient sub-block coefficient starting index;By sweeping comprising described image coefficient Retouch index and be less than or equal to image coefficient that the target factor tomographic image coefficient block coefficient terminates the image coefficient of index In block, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient and terminates rope Draw.
Fourth aspect present invention provides a kind of decoding apparatus, including:
4th determining unit, the hierarchical information for determining image coefficient block, described image coefficient block includes multiple images Coefficient sub-block, described image coefficient sub-block includes multiple images coefficient;
5th determining unit, for the described image coefficient in the target factor layer that is determined according to the 4th determining unit Sub-block, wherein, the multiple images after the described image coefficient block layering that the target factor layer is reflected by the hierarchical information One in coefficient hierarchical, the described image coefficient sub-block in target factor layer, which refers to wherein, at least one image coefficient category In the described image coefficient sub-block of target factor layer;
6th determining unit, for the image for determining described in the 5th determining unit determination to be located in target factor layer Belong to the described image coefficient of the target factor layer in coefficient sub-block;
Decoding unit, for decoded bit stream to obtain the image coefficient that the 6th determining unit is determined.
With reference to fourth aspect, in the first possible implementation,
4th determining unit, for parsing the hierarchical information from code stream, or using preset with coding Hold the hierarchical information of agreement.
With reference to fourth aspect, the first possible implementation of fourth aspect, in second of possible implementation, institute The image coefficient stated in image coefficient block constitutes multiple coefficient sets, wherein each coefficient sets include and are for 0 degree to the right with level With reference to the row image coefficient arranged in a straight line for being in the counterclockwise direction 45 degree;
5th determining unit includes:
Tenth determination subelement, is indexed for determining that the coefficient sets of the target factor layer are originated according to the hierarchical information Indexed with coefficient group termination, wherein, the coefficient sets starting index is the coefficient of scanning index minimum in target factor layer The scanning index of group;The coefficient group termination index is the scanning rope of the coefficient sets of scanning index maximum in target factor layer Draw;
11st determination subelement, the coefficient sets starting for being determined according to the tenth determination subelement is indexed and described Coefficient group termination is indexed, and determines the image coefficient sub-block starting index of image coefficient sub-block included in the target factor layer Terminate and index with image coefficient sub-block, described image coefficient sub-block starting index is all figures in scanning described image coefficient block During as coefficient sub-block in target factor layer the minimum image coefficient sub-block of scanning index scanning index;Described image coefficient Sub-block terminates index and scans rope in the target factor layer during all image coefficient sub-blocks in described image coefficient block to scan Draw the scanning index of the image coefficient sub-block of maximum;
12nd determination subelement, the image coefficient sub-block for being determined according to the 11st determination subelement originates rope Draw to terminate with image coefficient sub-block and index, determine all image coefficient sub-blocks in the target factor layer;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
With reference to second of possible implementation of fourth aspect, in the third possible implementation, the layering letter Breath includes being used to mark multiple coefficient sets on the layered boundary of all image coefficient layerings in described image coefficient block The information of the information of scanning index;
Tenth determination subelement, for being used to mark all image coefficients point in described image coefficient block according to described The information of the information of the scanning index of multiple coefficient sets on the layered boundary of layer determines that the coefficient sets of the target factor layer rise Begin index and coefficient group termination index.
With reference to second of fourth aspect or the third possible implementation, in the 4th kind of possible implementation,
11st determination subelement, for the figure that will be originated comprising the coefficient sets in the coefficient sets indicated by indexing The scanning index of the minimum image coefficient sub-block of scanning index is used as described image coefficient in the image coefficient sub-block of picture coefficient Block starting index;By in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination The scanning index of the maximum image coefficient sub-block of scanning index is terminated as described image coefficient sub-block to be indexed;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
With reference to fourth aspect, fourth aspect the first possible implementation, in the 5th kind of possible implementation,
5th determining unit includes:
13rd determination subelement, for determining that the target factor layer of the target factor layer is schemed according to the hierarchical information As coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image coefficient Block coefficient starting index is all figures in target factor layer when scanning all image coefficients in described image coefficient block As the scanning index of the minimum image coefficient of scanning index in coefficient;The target factor tomographic image coefficient block coefficient terminates index Rope is scanned to scan in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Draw the scanning index of the image coefficient of maximum;
14th determination subelement, for the target factor tomographic image coefficient determined according to the 13rd determination subelement Block coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine to be located in target factor layer Image coefficient sub-block image coefficient sub-block starting index and image coefficient sub-block terminate index, so that it is determined that the target system All image coefficient sub-blocks in several layers;Described image coefficient sub-block starting index is all in scanning described image coefficient block During image coefficient sub-block in target factor layer the minimum image coefficient sub-block of scanning index scanning index;Described image system Number sub-block terminates index and scanned to scan during all image coefficient sub-blocks in described image coefficient block in the target factor layer Index the scanning index of maximum image coefficient sub-block;
The scanning index of described image coefficient is to all image coefficients in described image coefficient block by given scanning sequency It is scanned the index value of determination;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
With reference to the 5th kind of possible implementation of fourth aspect, in the 6th kind of possible implementation, the layering letter Breath includes being used to mark sweeping for the multiple images coefficient on the layered boundary that all image coefficients are layered in described image coefficient block Retouch the information of the information of index;
13rd determination subelement, for being layered according to all image coefficients in the mark described image coefficient block Layered boundary on the information of information of scanning index of multiple images coefficient determine the target factor of target factor layer Tomographic image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index.
With reference to the 5th kind or the 6th kind possible implementation of fourth aspect, in the 7th kind of possible implementation,
14th determination subelement, for by comprising image coefficient in have image coefficient scanning index be more than or Person is equal in the image coefficient sub-block for the image coefficient that the target factor tomographic image coefficient block coefficient originates index, image coefficient The image coefficient sub-block scanning index of the minimum image coefficient sub-block of the scanning index of sub-block rises as described image coefficient sub-block Begin index;By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image system Several piece coefficient is terminated in the image coefficient sub-block of the image coefficient of index, the image system of the scanning index maximum of image coefficient sub-block The image coefficient sub-block scanning index of number sub-block is terminated as described image coefficient sub-block to be indexed.
With reference to fourth aspect, fourth aspect the first any one into the 7th kind of possible implementation, the 8th Plant in possible implementation,
6th determining unit, for determining image coefficient sub-block in the target factor layer according to the hierarchical information Image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient terminate index, so that it is determined that described image coefficient sub-block In belong to the image coefficient of target factor layer;
Described image coefficient sub-block coefficient starting index is described image coefficient sub-block in all of target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in image coefficient;Described image coefficient sub-block coefficient terminates index For the image coefficient sub-block of described image coefficient sub-block scanning index maximum in all image coefficients of target factor layer Coefficient scanning is indexed;
Described image coefficient sub-block coefficient scanning index is to owning in described image coefficient sub-block by given scanning sequency Image coefficient is scanned the index value of determination.
With reference to the 8th kind of possible implementation of fourth aspect, in the 9th kind of possible implementation,
6th determining unit includes:
16th determination subelement, for the institute of the target factor layer determined according to the 15th determination subelement State coefficient sets starting index and the coefficient group termination indexes the image system for determining image coefficient sub-block in the target factor layer Number sub-block coefficient starting index and image coefficient sub-block coefficient terminate index.
With reference to the 8th kind or the 9th kind possible implementation of fourth aspect, in the tenth kind of possible implementation,
16th determination subelement, for will be originated comprising the coefficient sets in the coefficient sets indicated by indexing In the image coefficient sub-block of image coefficient, the minimum image coefficient sub-block coefficient scanning index of scanning index is defined as described image Coefficient sub-block coefficient starting index;By the image of the image coefficient indexed comprising the coefficient group termination in indicated coefficient sets In coefficient sub-block, it is whole that the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient Only index.
With reference to the 8th kind of possible implementation of fourth aspect, in a kind of the tenth possible implementation, the described 6th Determining unit includes:
17th determination subelement, for determining that the target factor layer of the target factor layer is schemed according to the hierarchical information As coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image coefficient Block coefficient starting index is all figures in target factor layer when scanning all image coefficients in described image coefficient block As the scanning index of the minimum image coefficient of scanning index in coefficient;The target factor tomographic image coefficient block coefficient terminates index Rope is scanned to scan in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Draw the scanning index of the image coefficient of maximum;
18th determination subelement, for the mesh of the target factor layer determined according to the 17th determination subelement Mark coefficient layer image coefficient block coefficient is originated to index to terminate with the target factor tomographic image coefficient block coefficient and indexed described in determination The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index in target factor layer.
With reference to the 8th kind of fourth aspect or a kind of the tenth possible implementation, in the 12nd kind of possible implementation In,
18th determination subelement, it is described for the scanning index comprising described image coefficient to be more than or equal to In the image coefficient sub-block of the image coefficient of target factor tomographic image coefficient block coefficient starting index, the minimum image of scanning index Coefficient sub-block coefficient scanning index is defined as described image coefficient sub-block coefficient starting index;By sweeping comprising described image coefficient Retouch index and be less than or equal to image coefficient that the target factor tomographic image coefficient block coefficient terminates the image coefficient of index In block, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient and terminates rope Draw.
On the one hand, the embodiment of the present invention is using the hierarchical information for determining image coefficient block, and described image coefficient block includes many Individual image coefficient sub-block, described image coefficient sub-block includes multiple images coefficient;Target factor is determined according to the hierarchical information Described image coefficient sub-block in layer, wherein, the described image coefficient that the target factor layer is reflected by the hierarchical information Described image coefficient sub-block in one in multiple images coefficient hierarchical after block layering, the target factor layer, which refers to, wherein to be had At least one image coefficient belongs to the described image coefficient sub-block of the target factor layer;It is determined that described be located in target factor layer Image coefficient sub-block in belong to the described image coefficient of target factor layer;Described image coefficient is encoded.With showing The image coefficient block that 4x4 sizes can only be layered by having the MGS in technology is compared, coding method provided in an embodiment of the present invention, can be with The image coefficient block of a variety of sizes of hierarchical coding, so as to improve code efficiency.
On the other hand, the embodiment of the present invention is using the hierarchical information for determining image coefficient block, and described image coefficient block includes Multiple images coefficient sub-block, described image coefficient sub-block includes multiple images coefficient;Target system is determined according to the hierarchical information Described image coefficient sub-block in several layers, wherein, the described image system that the target factor layer is reflected by the hierarchical information Described image coefficient sub-block in one in multiple images coefficient hierarchical after several piece layering, the target factor layer refers to wherein There is at least one image coefficient to belong to the described image coefficient sub-block of the target factor layer;It is determined that described be located at target factor layer In image coefficient sub-block in belong to the described image coefficient of target factor layer;Decoded bit stream is to obtain described image system Number.Compared with MGS of the prior art can only be layered the image coefficient block of 4x4 sizes, decoding side provided in an embodiment of the present invention Method, can be with the image coefficient block of a variety of sizes of hierarchical decoding, so as to improve decoding efficiency.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is an embodiment schematic diagram of coding method in the embodiment of the present invention;
Fig. 2 a are a scene example schematics in the embodiment of the present invention;
Fig. 2 b are another scene example schematics in the embodiment of the present invention;
Fig. 3 a are another scene example schematics in the embodiment of the present invention;
Fig. 3 b are another scene example schematics in the embodiment of the present invention;
Fig. 3 c are another scene example schematics in the embodiment of the present invention;
Fig. 4 a are another scene example schematics in the embodiment of the present invention;
Fig. 4 b are another scene example schematics in the embodiment of the present invention;
Fig. 4 c are another scene example schematics in the embodiment of the present invention;
Fig. 4 d are another scene example schematics in the embodiment of the present invention;
Fig. 5 is an embodiment schematic diagram of coding/decoding method in the embodiment of the present invention;
Fig. 6 is an embodiment schematic diagram of code device in the embodiment of the present invention;
Fig. 7 is another embodiment schematic diagram of code device in the embodiment of the present invention;
Fig. 8 is another embodiment schematic diagram of code device in the embodiment of the present invention;
Fig. 9 is another embodiment schematic diagram of code device in the embodiment of the present invention;
Figure 10 is another embodiment schematic diagram of code device in the embodiment of the present invention;
Figure 11 is an embodiment schematic diagram of decoding apparatus in the embodiment of the present invention;
Figure 12 is another embodiment schematic diagram of decoding apparatus in the embodiment of the present invention;
Figure 13 is another embodiment schematic diagram of decoding apparatus in the embodiment of the present invention;
Figure 14 is another embodiment schematic diagram of decoding apparatus in the embodiment of the present invention;
Figure 15 is another embodiment schematic diagram of decoding apparatus in the embodiment of the present invention;
Figure 16 is an embodiment schematic diagram of encoding device in the embodiment of the present invention;
Figure 17 is an embodiment schematic diagram of decoding device in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of encoding and decoding method of image, can be layered the image of a variety of sizes of encoding and decoding Coefficient block, so as to improve encoding-decoding efficiency.The embodiment of the present invention additionally provides corresponding decoding apparatus and connects decoding apparatus.This hair Bright embodiment also provides corresponding device.It is described in detail individually below.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Refering to Fig. 1, an embodiment of the determination method of image coefficient provided in an embodiment of the present invention includes:
101st, code device determines the hierarchical information of image coefficient block, and described image coefficient block includes multiple images coefficient Block, described image coefficient sub-block includes multiple images coefficient.
Figure coefficient picture block in the embodiment of the present invention can be 4x4,8x8,16x16,32x32 or other sized images coefficient Block.
Hierarchical information is the information of mark layered boundary.
Image coefficient sub-block in the embodiment of the present invention obtains for image coefficient block according to 4x4 ratio cut partition, image system The size of number sub-block is 4x4.If image coefficient block is 16x16 image coefficient block, then the image coefficient block of the 16x16 is pressed 16 4x4 image coefficient sub-block can be obtained according to 4x4 ratio cut partition.
Image coefficient is the coefficient that includes in image coefficient block, and an image coefficient block can include the side of the image coefficient block Long product image coefficient, such as:One 8x8 image coefficient block can include 64 image coefficients, 16x16 image coefficient Block can be included can be comprising 16 image coefficients in 256 image coefficients, an image coefficient sub-block.
102nd, code device determines the described image coefficient sub-block in target factor layer according to the hierarchical information, wherein, In multiple images coefficient hierarchical after the described image coefficient block layering that the target factor layer is reflected by the hierarchical information One, the described image coefficient sub-block in target factor layer, which refers to wherein, has at least one image coefficient to belong to the target The described image coefficient sub-block of coefficient layer.
Target factor layer is the image coefficient layer encoded in the embodiment of the present invention.
103rd, code device determines to belong to the target factor in the image coefficient sub-block in the layer positioned at target factor The described image coefficient of layer.
It is to determine image coefficient in target factor layer in each image coefficient sub-block in the embodiment of the present invention Position.
104th, code device is encoded to described image coefficient.
Image coefficient cataloged procedure in the embodiment of the present invention can be realized using prior art, for example, can use high-performance Cataloged procedure in Video coding (HEVC, High efficiency video coding) is realized, no longer superfluous in detail herein State.
The embodiment of the present invention includes multiple images system using the hierarchical information for determining image coefficient block, described image coefficient block Number sub-block, described image coefficient sub-block includes multiple images coefficient;Institute in target factor layer is determined according to the hierarchical information Image coefficient sub-block is stated, wherein, after the described image coefficient block layering that the target factor layer is reflected by the hierarchical information Multiple images coefficient hierarchical in one, the described image coefficient sub-block in target factor layer, which refers to, wherein at least one Image coefficient belongs to the described image coefficient sub-block of the target factor layer;;It is determined that the image in the layer positioned at target factor Belong to the described image coefficient of the target factor layer in coefficient sub-block;Described image coefficient is encoded.With prior art In MGS can only be layered the image coefficient blocks of 4x4 sizes and compare, coding method provided in an embodiment of the present invention can be layered volume The image coefficient block of a variety of sizes of code, so as to improve code efficiency.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 1, the coding method of image provided in an embodiment of the present invention First alternative embodiment in, it is described determine image coefficient block hierarchical information, can include:
Configure the hierarchical information, and the hierarchical information of configuration is write into code stream, or, using preset with decoding Hold the hierarchical information of agreement.
In the embodiment of the present invention, coding side can voluntarily configure hierarchical information, and will be written to the hierarchical information postponed In code stream, so that decoding end carries out complete decoding operate according to the hierarchical information.Can also be that coding side is directly used and decoding Hold the hierarchical information made an appointment.
Alternatively, on the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 1 and Fig. 1, this hair In second alternative embodiment of the coding method for the image that bright embodiment is provided, the image coefficient structure in described image coefficient block Into multiple coefficient sets, wherein each coefficient sets include with level to the right 0 degree be with reference to being in 45 degree straight in the counterclockwise direction One row image coefficient of line arrangement;The described image coefficient sub-block determined according to the hierarchical information in target factor layer, It can include:
The coefficient sets starting index and coefficient group termination index of the target factor layer are determined according to the hierarchical information, its In, the coefficient sets starting index is the scanning index of the coefficient sets of scanning index minimum in target factor layer;The system Array terminates scanning index of the index for the maximum coefficient sets of scanning index in target factor layer;
According to coefficient sets starting index and coefficient group termination index, determine what is included in the target factor layer The image coefficient sub-block starting index and image coefficient sub-block of image coefficient sub-block terminate index, the starting of described image coefficient sub-block Index during for all image coefficient sub-blocks in scanning described image coefficient block scanning index in target factor layer minimum The scanning index of image coefficient sub-block;It is all figures in scanning described image coefficient block that described image coefficient sub-block, which terminates index, During as coefficient sub-block in target factor layer the maximum image coefficient sub-block of scanning index scanning index;
Index is terminated according to described image coefficient sub-block starting index and image coefficient sub-block, the target factor layer is determined In all image coefficient sub-blocks;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
In the embodiment of the present invention, the size of index value can represent the order of scanning, all be since 0.
In the embodiment of the present invention give scanning sequency be from lower-left to upper right, actually can also be right from lower right to upper left This is not limited, but the scanning sequency in the embodiment of the present invention can only be in the counterclockwise direction for 0 degree to the right for reference with level It is scanned on 45 degree of direction.
The embodiment of the present invention is exemplified below:Refering to Fig. 2 a, Fig. 2 a are 8x8 image coefficient block, the figure of the 8x8 4 4x4 image coefficient sub-block can be obtained after being divided as coefficient block, each image coefficient sub-block has an image coefficient sub-block Scanning index, by the given scanning sequency from lower-left to upper right, the scanning index of image coefficient sub-block is to show in Fig. 2 a 0,1,2,3.
Refering to Fig. 2 b, each 4x4 image coefficient sub-block is divided according to 1x1 proportionate relationship, the image coefficient block of the 8x8 64 image coefficient microliths are divide into, each image coefficient microlith includes an image coefficient, therefore each image coefficient has One image coefficient scanning index, during scan image coefficient block, the image coefficient block of the 8x8 has 64 image coefficients, this 64 The scanning index of image coefficient is from 0~63.In Fig. 2 b with level to the right 0 degree be with reference in the counterclockwise direction on 45 degree of directions Straight line, and the vertical distance of adjacent two straight lines has 15 for the parallel lines of the length of side of described image microlith, and the present invention is implemented Vertical distance in example is two times of the radical sign of vertical range between adjacent two straight lines, that is, between adjacent two straight lines vertically Distance is the radical sign 1/2nd of the length of side of image microlith.With numbering line 0, line 1, line 2, line 3, line 4, line 5, line 6, line 7, line 8, Line 9, line 10, line 11, line 12, line 13 and line 14 mark the parallel lines from the upper left corner to the lower right corner respectively, each pass straight through this Image microlith corresponding image coefficient can be passed through during image coefficient block, e.g., line 0 passes through the corresponding image coefficient of scanning index 0, line 1 passes through scanning index 1,2 corresponding image coefficients, and line 2 passes through scanning index 3,4,5 corresponding image coefficients, and line 3 passes through scanning 6,7,8,9 corresponding image coefficients are indexed, line 4 passes through scanning index 10,11,12,13,14 corresponding image coefficients, and line 5 is passed through Scanning index 15,16,17,18,19,20 corresponding image coefficients, line 6 through scanning index 21,22,23,24,25,26,27 pairs The image coefficient answered, line 7 passes through scanning index 28,29,30,31,32,33,34,35 corresponding image coefficients, and line 8 passes through scanning 36,37,38,39,40,41,42 corresponding image coefficients are indexed, line 9 is corresponding through scanning index 43,44,45,46,47,48 Image coefficient, line 10 pass through scanning index 49,50,51,52,53 corresponding image coefficients, line 11 through scanning index 54,55, 56th, 57 corresponding image coefficient, line 12 passes through scanning index 58,59,60 corresponding image coefficients, and line 13 passes through scanning index 61st, 62 corresponding image coefficient, line 14 passes through the corresponding image coefficient of scanning index 63, it can be understood as coefficient sets 0 include line 0 The corresponding image coefficient of scanning index 0 passed through, coefficient sets 1 include scanning index 1, the 2 corresponding image coefficients that line 1 is passed through, Coefficient sets 2 include scanning index 3,4, the 5 corresponding image coefficients that line 2 is passed through, and coefficient sets 3 include the scanning index that line 3 is passed through 6th, 7,8,9 corresponding image coefficient, coefficient sets 4 include scanning index 10,11,12,13, the 14 corresponding image systems that line 4 is passed through Number, coefficient sets 5 include scanning index 15,16,17,18,19, the 20 corresponding image coefficients that line 5 is passed through, and coefficient sets 6 include line 6 The scanning index 21 that passes through, 22,23,24,25,26,27 corresponding image coefficients, coefficient sets 7 include the scanning index that line 7 is passed through 28th, 29,30,31,32,33,34,35 corresponding image coefficient, scanning index 36 that coefficient sets 8 are passed through comprising line 8,37,38, 39th, 40,41,42 corresponding image coefficient, coefficient sets 9 are corresponding comprising the scanning index 43,44,45,46,47,48 that line 9 is passed through Image coefficient, coefficient sets 10 include scanning index 49,50,51,52, the 53 corresponding image coefficients, coefficient sets 11 that line 10 is passed through The scanning index 54 that is passed through comprising line 11,55,56,57 corresponding image coefficients, coefficient sets 12 include the scanning rope that line 12 is passed through Draw 58,59,60 corresponding image coefficients, coefficient sets 13 include scanning index 61, the 62 corresponding image coefficients that line 13 is passed through, are Array 14 includes the corresponding image coefficient of scanning index 63 that line 14 is passed through.
If the scanning index of the minimum coefficient sets of scanning index is 0 in the target factor layer, the target factor layer The scanning index of the maximum coefficient sets of middle scanning index is also 0, then can determine the coefficient sets starting rope of target factor layer It is respectively 0 to draw with coefficient group termination index, if the coefficient sets starting index and coefficient group termination index of target factor layer Respectively 0, then can determine only to include in target factor layer in coefficient sets 0, coefficient sets 0 only comprising the correspondence of scanning index 0 An image coefficient.If for marking the coefficient sets starting index and coefficient group termination on target factor layer border to index difference For 4 and 8, then the scanning index that can determine the minimum coefficient sets of scanning index in target factor layer is 4, the target system The scanning index of the maximum coefficient sets of scanning index is also 8 in several layers, then can determine that the coefficient sets of target factor layer rise Begin index and coefficient group termination index respectively 4 and 8, it may be determined that includes coefficient sets 4,5,6,7,8 in target factor layer, can With determine according to line 4, line 5, line 6, line 7, line 8 scanning sequency, wherein the scanning of the minimum image coefficient sub-block scanned Index as 0, the scanning index of maximum image coefficient sub-block is 3, then can determine to include image system in target factor layer Number sub-block 0,1,2,3.
Alternatively, on the basis of corresponding second alternative embodiment of above-mentioned Fig. 1, image provided in an embodiment of the present invention Coding method the 3rd alternative embodiment in, the hierarchical information include be used for mark in described image coefficient block own The information of the information of the scanning index of multiple coefficient sets on the layered boundary of image coefficient layering;
The coefficient sets starting index and coefficient group termination rope that the target factor layer is determined according to the hierarchical information Draw, can include:
It is used to mark multiple systems on the layered boundary that all image coefficients are layered in described image coefficient block according to described The information of the information of the scanning index of array determines the coefficient sets starting index and coefficient group termination index of the target factor layer.
In the embodiment of the present invention, the hierarchical information can include being used to mark the layering of each in described image coefficient block side The information of the scanning index of the coefficient sets on boundary, can be the index value of the scanning index of the coefficient sets of each layered boundary, this point Layer information can also be the information of the information of the scanning index of the coefficient sets for calculating each layered boundary, such as:For marking The difference of the coefficient sets index value on the border of two adjacent layers, such as providing first is used to mark the coefficient sets of layered boundary to scan Index as 1, the difference then provided with the scanning index of the coefficient sets of next layered boundary is 3, then the can be calculated Two scanning indexs for being used to mark the coefficient sets of layered boundary are 4, the like, all marks that are used for can be calculated and divided The scanning index of the coefficient sets on layer border.Such as:Hierarchical information includes the scanning index 1,4,9,12 of coefficient sets in including, then root According to the scanning index 1,4,9,12 of above-mentioned coefficient sets, it may be determined that the image coefficient block is divided into 5 layers, the 0th layer includes coefficient sets 0, the 1st layer includes the 1,2,3, the 2nd layer of coefficient sets and includes the 9,10,11, the 4th layer of coefficient sets for the 4,5,6,7,8, the 3rd layer comprising coefficient sets Comprising coefficient sets 12,13,14, if the target factor layer handled is the 2nd layer, then target factor layer can be determined The coefficient sets starting index and coefficient group termination index of coefficient sets are respectively 4 and 8.
Alternatively, on the basis of above-mentioned Fig. 1 corresponding second or the 3rd alternative embodiment, the embodiment of the present invention It is described according to coefficient sets starting index and the coefficient in 4th alternative embodiment of the coding method of the image of offer Group termination is indexed, and determines the image coefficient sub-block starting index and image of image coefficient sub-block included in the target factor layer Coefficient sub-block terminates index, including:
It will be swept in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets The scanning index for retouching the minimum image coefficient sub-block of index is indexed as the starting of described image coefficient sub-block;
It will be swept in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination The scanning index for retouching the maximum image coefficient sub-block of index is indexed as the termination of described image coefficient sub-block;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
In the embodiment of the present invention, or by taking Fig. 2 b as an example, if coefficient sets starting index and coefficient group termination index difference For 4 and 8, then scanning index in the image coefficient sub-block of the image coefficient in coefficient sets indicated by coefficient sets starting index 4 The scanning index of minimum image coefficient sub-block is 0, then the image coefficient sub-block starting index of target factor layer is 0;That The maximum image of scanning index in the image coefficient sub-block of the image coefficient in coefficient sets indicated by coefficient group termination index 8 The scanning index of coefficient sub-block is 3, then it is 3 that the image coefficient sub-block of target factor layer, which terminates index,.
When coefficient sets starting index is 4, then corresponding for 10,11,12,13,14 comprising scanning index in coefficient sets 4 In image coefficient, this 5 coefficients, the corresponding coefficient of scanning index 10 is in image coefficient sub-block 1, the correspondence of scanning index 11,12,13 Coefficient in image coefficient sub-block 0, the corresponding coefficient of scanning index 14 is in image coefficient sub-block 2, it may be determined that scanning index is most The scanning index of the image coefficient sub-block of small image coefficient sub-block is 0, then the image coefficient sub-block of target factor layer rises Begin to index is 0.If target factor layer in coefficient group termination index be 8, then in coefficient sets 8 comprising image coefficient 36,37, 38th, 39,40,41,42, in this 7 coefficients, scanning index 36,37,38 corresponding image coefficients are in image coefficient sub-block 1, scanning 39 corresponding image coefficients are indexed in image coefficient sub-block 3, scanning index 40,41,42 corresponding image coefficients are in image coefficient Sub-block 1, then the image coefficient sub-block scanning index that can determine the maximum image coefficient sub-block of scanning index in coefficient sets 8 is 3, that is, terminate index using image coefficient sub-block 3 as described image coefficient sub-block.
Alternatively, on the basis of corresponding first alternative embodiment of above-mentioned Fig. 1 and Fig. 1, the embodiment of the present invention is provided Image coding method the 5th alternative embodiment in, it is described according to the hierarchical information determine target factor layer in institute Image coefficient sub-block is stated, can be included:
The target factor tomographic image coefficient block coefficient for determining the target factor layer according to the hierarchical information originates index Terminate and index with target factor tomographic image coefficient block coefficient;The target factor tomographic image coefficient block coefficient starting index is to sweep Retouch in all image coefficients during all image coefficients in described image coefficient block in the target factor layer scanning index most The scanning index of small image coefficient;It is scanning described image coefficient that the target factor tomographic image coefficient block coefficient, which terminates index, The maximum image coefficient of scanning index in all image coefficients during all image coefficients in block in the target factor layer Scanning index;
According to target factor tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block system Number terminates the image coefficient sub-block starting index and image that index determines the image coefficient sub-block in target factor layer Coefficient sub-block terminates index, so that it is determined that all image coefficient sub-blocks in target factor layer;Described image coefficient sub-block Scanning index is most in the target factor layer when starting index is all image coefficient sub-block in scanning described image coefficient block The scanning index of small image coefficient sub-block;It is the institute in scanning described image coefficient block that described image coefficient sub-block, which terminates index, When having an image coefficient sub-block in the target factor layer the maximum image coefficient sub-block of scanning index scanning index;
The scanning index of described image coefficient is to all image coefficients in described image coefficient block by given scanning sequency It is scanned the index value of determination;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
The target factor tomographic image coefficient block coefficient scanning index of target factor layer is image microlith in the embodiment of the present invention In the numerical value that identifies, have 64 image coefficients in such as Fig. 2 b, the scanning index of image coefficient is respectively 0~63.
The embodiment of the present invention is using the image coefficient sub-block in the true target factor layer of another scheme, for example, refer to Fig. 2 a, 8x8 image coefficient block, the image coefficient block of the 8x8 can obtain 4 4x4 image coefficient sub-block after dividing, Each image coefficient sub-block has what an image coefficient sub-block swept to retouch index, by the given scanning sequency from lower-left to upper right, The scanning index of image coefficient sub-block is 0,1,2,3 shown in Fig. 2 a.
Refering to Fig. 2 b, if the target factor tomographic image coefficient block coefficient of the target factor layer determined according to hierarchical information rises Begin index and target factor tomographic image coefficient block coefficient terminate index be respectively 10 and 42, then the target factor layer contain from Corresponding all image coefficients of the scanning index of target factor tomographic image coefficient block coefficient from 10~42, wherein target factor layer The scanning index 10 of image coefficient block coefficient is the minimum image system of scanning index in all image coefficients of target factor layer Several scanning indexs, the scanning index 42 of target factor tomographic image coefficient block coefficient is all image systems of target factor layer The scanning index of the maximum image coefficient of scanning index in number.
It can be seen that target factor tomographic image coefficient block coefficient starting index 10 and target factor tomographic image system from Fig. 2 b Several piece coefficient terminates index 42 and is distributed in image coefficient sub-block 0,1,2,3, it may be determined that state the image system in target factor layer It is respectively 0 and 3 that the image coefficient sub-block starting index and image coefficient sub-block of number sub-block, which terminate index, may thereby determine that the mesh The image coefficient sub-block that mark coefficient layer is included is image coefficient sub-block 0,1,2,3.
Alternatively, on the basis of above-mentioned 5th alternative embodiment, the coding staff of image provided in an embodiment of the present invention In 6th alternative embodiment of method, the hierarchical information includes being used to mark all image coefficients point in described image coefficient block The information of the information of the scanning index of multiple images coefficient on the layered boundary of layer;
It is described to determine that the target factor tomographic image coefficient block coefficient of the target factor layer is originated according to the hierarchical information Index and target factor tomographic image coefficient block coefficient terminate index, can include:
According to the multiple images system on the layered boundary that all image coefficients are layered in the mark described image coefficient block The information of the information of several scanning indexs determines the target factor tomographic image coefficient block coefficient starting index of the target factor layer Terminate and index with target factor tomographic image coefficient block coefficient.
Hierarchical information in the embodiment of the present invention can be for marking each layered boundary in described image coefficient block When the scanning index of image coefficient is respectively 1,10,43,58, it may be determined that the image coefficient block of the 8x8 includes 5 layers, the 0th layer It is respectively 0 and 0 that image coefficient starting index and image coefficient, which terminate index, the 1st tomographic image coefficient starting index and image coefficient It is respectively 1 and 9 to terminate index, and the 2nd tomographic image coefficient originates index and image coefficient terminates respectively the 10 and 42, the 3rd layer of index It is respectively 43 and 57 that image coefficient starting index and image coefficient, which terminate index, the 4th tomographic image coefficient starting index and image system It is respectively 58 and 63 that number, which terminates index, if target factor layer is the 2nd layer, then can determine the target system of target factor layer It is respectively 10 and 42 that number tomographic image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient, which terminate index,.
Hierarchical information in the embodiment of the present invention, which can also be, can calculate for marking in described image coefficient block respectively The numerical value of the scanning index of the image coefficient of individual layered boundary, is such as used for the difference of the scanning index of two adjacent layers of mark.
Alternatively, on the basis of above-mentioned Fig. 1 corresponding 5th or the 6th alternative embodiment, the embodiment of the present invention It is described according to the target factor tomographic image coefficient block system in 7th alternative embodiment of the coding method of the image of offer Number starting index and the target factor tomographic image coefficient block coefficient terminate the figure that index determines to be located in target factor layer As the image coefficient sub-block starting index and image coefficient sub-block of coefficient sub-block terminate index, it can include:
By comprising image coefficient in have image coefficient scanning index be more than or equal to the target factor tomographic image In the image coefficient sub-block of the image coefficient of coefficient block coefficient starting index, the image of the scanning index minimum of image coefficient sub-block The image coefficient sub-block scanning index of coefficient sub-block is originated as described image coefficient sub-block and indexed;
By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image Coefficient block coefficient is terminated in the image coefficient sub-block of the image coefficient of index, the image of the scanning index maximum of image coefficient sub-block The image coefficient sub-block scanning index of coefficient sub-block is terminated as described image coefficient sub-block and indexed.
In the embodiment of the present invention, refering to Fig. 2 b, when target factor tomographic image coefficient block coefficient starting index is 10, target system When number tomographic image coefficient block coefficient termination index is 42, it is impossible to which it is 10 institutes that target factor tomographic image coefficient block coefficient is originated into index Image coefficient sub-block 1 as image coefficient sub-block image coefficient sub-block originate index, but will by comparing, it is determined that should The minimum image coefficient block of the scanning index of image coefficient sub-block, such as works as target factor tomographic image coefficient block system in target factor layer Number starting index is 10, when target factor tomographic image coefficient block coefficient termination index is 42, and in instant image coefficient sub-block 0 is Number 11,12,13,17,18,24 is all bigger than 10, but because the scan fraction of the image coefficient sub-block is minimum, also by image coefficient Block 0 is originated as the image coefficient sub-block of target factor layer and indexed, as a same reason, and target factor tomographic image coefficient block coefficient is whole Only index 42 includes the coefficient 39 in image coefficient sub-block 3 in image coefficient sub-block 2, but in target factor layer, also will Image coefficient sub-block 3 is terminated as image coefficient sub-block and indexed.
Alternatively, on the basis of corresponding first to the 7th alternative embodiment of above-mentioned Fig. 1 and Fig. 1, the present invention is real It is located at the figure in target factor layer in 8th alternative embodiment of the coding method that the image of example offer is provided, described in the determination Described image coefficient as belonging to the target factor layer in coefficient sub-block, can include:
The image coefficient sub-block coefficient for determining image coefficient sub-block in the target factor layer according to the hierarchical information rises Begin index and image coefficient sub-block coefficient termination index, so that it is determined that belonging to the target factor layer in described image coefficient sub-block Image coefficient;
Described image coefficient sub-block coefficient starting index is described image coefficient sub-block in all of target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in image coefficient;Described image coefficient sub-block coefficient terminates index For the image coefficient sub-block of described image coefficient sub-block scanning index maximum in all image coefficients of target factor layer Coefficient scanning is indexed;
Described image coefficient sub-block coefficient scanning index is to owning in described image coefficient sub-block by given scanning sequency Image coefficient is scanned the index value of determination.
It is according to an image coefficient sub-block when handling the image coefficient block of target factor layer in the embodiment of the present invention Then the order of an image coefficient sub-block is handled, rather than at the order according to the coefficient sets of image coefficient block Reason, there are 16 image coefficient sub-block coefficients, the scanning index difference of image coefficient sub-block coefficient in each image coefficient sub-block For 0~15, if it is determined that it is 1, image coefficient sub-block system to be indexed to the image coefficient sub-block coefficient starting in a figure sub-block It is 15 that number, which terminates index, then it is image coefficient sub-block coefficient index 1~15 that can determine the coefficient in the image coefficient sub-block Corresponding image coefficient sub-block coefficient, the corresponding image coefficient of each image coefficient sub-block coefficient is decided, just completed The determination of image coefficient.
Alternatively, on the basis of corresponding 8th alternative embodiment of above-mentioned Fig. 1, image provided in an embodiment of the present invention Coding method the 9th alternative embodiment in, it is described that image system in target factor layer is determined according to the hierarchical information The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of number sub-block terminate index, can include:
The coefficient sets starting index and coefficient group termination index of the target factor layer are determined according to the hierarchical information, its In, the coefficient sets starting index is the scanning index of the coefficient sets of scanning index minimum in target factor layer;The system Array terminates scanning index of the index for the maximum coefficient sets of scanning index in target factor layer;
The mesh is determined according to the coefficient sets starting index and coefficient group termination index of target factor layer The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient for marking image coefficient sub-block in coefficient layer terminate index.
It is to be appreciated that in the selectable embodiment, the coefficient that directly can be obtained using previous embodiment Group starting index and coefficient group termination index to be operated accordingly, without repeating to obtain.
Or illustrated with reference to Fig. 2 b and 2c, when the coefficient sets starting index and coefficient group termination rope of target factor layer When drawing respectively 4 and 8, it may be determined that target factor layer includes image coefficient sub-block 0,1,2,3, the figure of image coefficient sub-block 0 It is 10 as the starting of coefficient sub-block coefficient is indexed, corresponding image coefficient is 11, it is 15 that image coefficient sub-block coefficient, which terminates index, right The image coefficient answered is 24, then scan image coefficient from the scanning index 10~15 of the coefficient according to image coefficient sub-block During block 0, all image coefficients for belonging to target factor layer in the image coefficient sub-block 0 corresponding will be determined.Image system The image coefficient sub-block coefficient starting index of number sub-block 1 is 0, and corresponding image coefficient is 10, and image coefficient sub-block coefficient is terminated Index as 12, corresponding image coefficient is 38, so, should according to the scanning of scanning index 0~12 of the coefficient of image coefficient sub-block During image coefficient sub-block 1, all image systems for belonging to target factor layer in the image coefficient sub-block 1 corresponding will be determined Number.By that analogy, it is possible to determine the image coefficient sub-block coefficient starting rope of image coefficient sub-block 2 and image coefficient sub-block 3 Draw to terminate with image coefficient sub-block coefficient and index, it is possible to by being originated according to the image coefficient sub-block coefficient of image coefficient sub-block When indexing the scanning sequency scan image coefficient sub-block of image coefficient sub-block coefficient termination index, it is possible to determine each figure Image coefficient as belonging to the destination layer in coefficient sub-block.
Alternatively, on the basis of above-mentioned Fig. 1 corresponding 8th or the 9th alternative embodiment, the embodiment of the present invention In tenth alternative embodiment of the coding method of the image of offer, the coefficient sets according to target factor layer rise Begin index and the image coefficient sub-block coefficient of image coefficient sub-block in the coefficient group termination index determination target factor layer Starting index and image coefficient sub-block coefficient terminate index, can include:
By in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets, sweep Retouch the minimum image coefficient sub-block coefficient scanning index of index and be defined as described image coefficient sub-block coefficient starting index;
By in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination, sweep Retouch the maximum image coefficient sub-block coefficient scanning index of index and be defined as described image coefficient sub-block coefficient termination index.
Alternatively, on the basis of corresponding 8th alternative embodiment of above-mentioned Fig. 1, image provided in an embodiment of the present invention Coding method 11 alternative embodiments in, it is described that image system in target factor layer is determined according to the hierarchical information The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of number sub-block terminate index, can include:
The target factor tomographic image coefficient block coefficient for determining the target factor layer according to the hierarchical information originates index Terminate and index with target factor tomographic image coefficient block coefficient;The target factor tomographic image coefficient block coefficient starting index is scanning Scanning index is minimum in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Image coefficient scanning index;It is scanning described image coefficient block that the target factor tomographic image coefficient block coefficient, which terminates index, In all image coefficients when target factor layer in all image coefficients in scanning index maximum image coefficient sweep Retouch index;
According to the target factor tomographic image coefficient block coefficient starting index of target factor layer and the target system Number tomographic image coefficient block coefficient terminates the image coefficient sub-block coefficient that index determines image coefficient sub-block in the target factor layer Starting index and image coefficient sub-block coefficient terminate index.
In the embodiment of the present invention, refering to Fig. 2 b and 2c, when the target factor tomographic image coefficient block system of target factor layer When number starting index is respectively 10 and 42 with target factor tomographic image coefficient block coefficient termination index, it may be determined that the target Coefficient layer includes image coefficient sub-block 0,1,2,3 four image coefficient sub-blocks, the image coefficient sub-block coefficient of image coefficient sub-block 0 Starting index is 10, and it is 15 that image coefficient sub-block coefficient, which terminates index, if during the image coefficient sub-block 0 of the 2nd layer of processing, so that it may Handled with the order according to image coefficient sub-block coefficient index 10~15.The image coefficient starting rope of image coefficient sub-block 1 10 are cited as, the starting of image coefficient sub-block coefficient indexes 0, and it is 38 that image coefficient, which terminates index, correspond to image coefficient sub-block coefficient Terminate index be 12, then processing image coefficient sub-block 1 when just can according to image coefficient sub-block coefficient index 0~12 order Handled.The image coefficient starting index of image coefficient sub-block 2 is 14, and corresponding image coefficient sub-block coefficient terminates index and is 0, it is 42 that image coefficient, which terminates index, and it is 12 that corresponding image coefficient sub-block coefficient, which terminates index, then processing image coefficient It can just be handled during block 2 according to the order of image coefficient sub-block coefficient index 0~12.The image system of image coefficient sub-block 3 Number starting index is 39, and it is 0 that corresponding image coefficient sub-block coefficient, which terminates index, and image coefficient sub-block coefficient terminates index and is 39, it is 0 that corresponding image coefficient sub-block coefficient, which terminates index, then just can be according to image system during processing image coefficient sub-block 3 The order of number sub-block coefficient index 0~0 is handled.
Alternatively, on the basis of above-mentioned Fig. 1 corresponding 8th or the 11st alternative embodiment, the embodiment of the present invention In 12nd alternative embodiment of the coding method of the image of offer, the target system according to target factor layer Number tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine the target The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index in coefficient layer, can With including:
Scanning index comprising described image coefficient is more than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block for the image coefficient for originating index, the minimum image coefficient sub-block coefficient scanning index of scanning index is determined Originate and index for described image coefficient sub-block coefficient;
Scanning index comprising described image coefficient is less than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block for the image coefficient for terminating index, the maximum image coefficient sub-block coefficient scanning index of scanning index is determined Terminate and index for described image coefficient sub-block coefficient.
In the embodiment of the present invention, when target factor tomographic image coefficient block coefficient starting index is 10, target factor tomographic image Coefficient block coefficient terminates index when being 42, it is impossible to which it is the image where 10 that target factor tomographic image coefficient block coefficient is originated into index Coefficient sub-block 1 is originated as the image coefficient sub-block of image coefficient sub-block and indexed, but to determine the target factor by comparing The minimum image coefficient block of the scanning index of image coefficient sub-block in layer, such as when target factor tomographic image coefficient block coefficient originates rope Be cited as 10, target factor tomographic image coefficient block coefficient terminates index when being 42, coefficient 11 in instant image coefficient sub-block 0,12, 13rd, 17,18,24 is all bigger than 10, but because the scan fraction of the image coefficient sub-block is minimum, also using image coefficient sub-block 0 as The image coefficient sub-block starting index of target factor layer, as a same reason, target factor tomographic image coefficient block coefficient terminates index 42 in image coefficient sub-block 2, but the coefficient 39 in image coefficient sub-block 3 is included in target factor layer, also by image system Number sub-block 3 is terminated as image coefficient sub-block and indexed.
In order to make it easy to understand, illustrating the determination of image coefficient in the embodiment of the present invention by taking two application scenarios as an example below The process of method:
Using hierarchical information as marking the multiple of all layered boundaries in described image coefficient block in first application scenarios Illustrated exemplified by the information of the scanning index of coefficient sets:
Refering to Fig. 3 a, Fig. 3 a are 16x16 image coefficient block, and the image coefficient block of the 16x16 can be obtained after dividing To 16 4x4 image coefficient sub-block, each image coefficient sub-block has an image coefficient sub-block scanning index, by it is given from Lower-left is to the scanning sequency of upper right, and the scanning index of image coefficient sub-block, can also be by 0~15 0~15 shown in Fig. 3 a It is interpreted as the scanning index of image coefficient sub-block.
Refering to Fig. 3 b, each 4x4 image coefficient sub-block is divided according to 1x1 proportionate relationship, the image coefficient of the 16x16 Block divide into 256 image microliths, and each image microlith corresponds to an image coefficient, and 0~255 is the scanning of each image coefficient Index.Do not identify the corresponding image coefficient of each image microlith in Fig. 3 b completely, but it is understood that, present invention application It is that, according to the scanning sequency from lower-left to upper right, the coefficient not indicated is followed successively by line in the middle of the image coefficient of two ends in scene Numerical value.
If the letter for marking the scanning index of multiple coefficient sets of all layered boundaries in Fig. 3 b image coefficient blocks Cease for 9 and 19, then can determine that the image coefficient block is divided into 3 layers, the 0th layer from coefficient sets 0~8, the 1st layer from coefficient sets 9 ~18, the 2nd layer from coefficient sets 19~30.
If target factor layer is the 1st layer, then can determine that the coefficient sets of the coefficient sets of the 1st layer of target factor layer rise Begin index and coefficient group termination index respectively 9 and 18.
The scanning index of image coefficient in the embodiment of the present invention in coefficient sets 9 is from the image in 45~54, coefficient sets 18 The scanning index of coefficient is whole according to the coefficient sets starting index 9 and coefficient sets of the coefficient sets of target factor layer from 165~177 Only index 18 determines that the image coefficient sub-block starting index and image coefficient sub-block of target factor layer terminate index, can be from figure It is respectively image that the image coefficient sub-block starting index and image coefficient sub-block that the 1st layer is determined in 3b and Fig. 3 c, which terminate index, Coefficient sub-block 1 and image coefficient sub-block 12, then the 1st layer of image coefficient sub-block includes image coefficient sub-block 1 and arrives image system Number sub-block 12.Fig. 3 c are whole for the coefficient sets starting index and coefficient sets for increasing the coefficient sets of target factor layer on the basis of Fig. 3 a Only index.
In Fig. 3 c, numeral is each image coefficient sub-block (CG) scanning index in grid, and solid oblique line represents target factor Cornerwise parallel lines parallel to image coefficient block where the coefficient sets starting index Start of the coefficient sets of layer pass through the The CG of one CG scanning index is CGStart, by thick empty oblique line represent coefficient group termination index where Stop parallel to image The CG for last CG scanning index that cornerwise parallel lines of coefficient block are passed through is CGStop.Obviously, CGStart is 1, CGStop is 12.CGStart and CGStop and in all CG be all CG included in target factor layer.
The specific formula for calculating CGStart and CGStop can be obtained by calculating.We index in the starting of known coefficient group Start and coefficient group termination index Stop, calculates the image coefficient sub-block starting index of each image coefficient sub-block first It is the size of image coefficient block that CGStart and image coefficient sub-block, which terminate index CGStop, TrafoSize, such as 4,8,16,32 etc. Deng.Wherein i is a variable.
So pass through above-mentioned formula, it is possible to calculate i from 9~18 when CGStart for 1, CGStop be 12.
Followed by second step, the image coefficient sub-block coefficient starting index of each CG in target factor layer is calculated CoeffStart and image coefficient sub-block coefficient terminate index CoeffStop.
CoeffStart, CoeffStop represent which coefficient belongs to target factor layer in a CG.Using parallel or In the case of the cornerwise parallel line sweeping for coinciding with image coefficient block, CoeffStart represents the 4x4 systems inside for CG The starting CG coefficient index of the diagonal sequential scan of number, CoeffStop represents the termination of the 4x4 coefficient diagonal scans inside for CG CG coefficient index.All coefficients between CoeffStart and CoeffStop belong to target factor layer.
From Fig. 3 c, ordinary circumstance, if the image microlith in each CG is linked up with the diagonal on 45 degree of directions, Parallel lines where coefficient sets starting index Start can cross the CG on two CG diagonal, through on first CG diagonal CG top half on CG the latter half and Article 2 CG diagonal.Parallel lines where coefficient group termination index Stop The CG on two diagonal can be crossed, through first diagonal on CG the latter half and CG on second day diagonal it is upper Half part.For originating the CG that index Start is passed through by coefficient sets, CoeffStart should carry out corresponding assignment, by coefficient The CG that group termination index Stop is passed through, CoeffStop should carry out corresponding assignment.And for being wrapped in current goal coefficient layer The CoeffStart and CoeffStop not being assigned in all CG contained, are entered as 0 and 15.That is CoeffStart=0, CoeffStop=15.
Fig. 4 (a) and Fig. 4 (b) be in Fig. 3 b by coefficient sets originate the CG that index Start is crossed CoeffStart and CoeffStop examples, Fig. 4 c and Fig. 4 d is to index each CG CoeffStart that Stop is crossed by coefficient group termination in Fig. 3 b With CoeffStop examples.Wherein, CGidx represents CG scanning index.Fig. 4 (a) represents horizontal by coefficient sets starting index Start The CG on first CG diagonal worn, it may be seen that image coefficient sub-block coefficient starting index CoeffStart is 13 (being marked by Dark grey shaded box).Fig. 4 b represent to be originated on the Article 2 CG diagonal that index Start is crossed by coefficient sets CG, image coefficient sub-block coefficient starting index CoeffStart is 1 (being marked by Dark grey shaded box).Fig. 4 c are represented Array terminates the CG on first CG diagonal that index Stop is crossed, and image coefficient sub-block coefficient terminates index CoeffStop It is 15 (being marked by Dark grey shaded box), Fig. 4 (d) represents that the Article 2 CG crossed by coefficient group termination index Stop is diagonal CG on line, it is 5 (being marked by Dark grey shaded box) that image coefficient sub-block coefficient, which terminates index CoeffStop,.
If coefficient sets starting index Start is just through a CG diagonal, then these CG CoeffStart is 6。
If coefficient group termination indexes Stop just through a CG diagonal, then these CG CoeffStop is 9.
During initialization, to all CG, CoeffStart is defaulted as 0, CoeffStop and is defaulted as 15.
Firstly, for the CG that index Start cuttings are originated by coefficient sets, we change these CG CoeffStart.
The first situation, iStart=-1, then now CGStart=0, simple tired for CGIdx=CGStart CG Plus understand,
Second of situation, 0≤iStart<2*TrafoSize/4-2, defines dStart=Start+1-4* (iStart+ 1).If dStart is more than 0, the parallel lines where now coefficient sets starting index pass through the CG on two CG diagonal, first Calculate the CoeffStart of CG on the first CG diagonal crossed;
I.e.:Work as CGStart<=CGIdx<=CGStart+TrafoSize/4- | iStart+1-TrafoSize/4 | -1, Now
Then the CoeffStart of CG on the Article 2 CG diagonal crossed is calculated;
I.e.:Work as CGStart+TrafoSize/4- | iStart+1-TrafoSize/4 |<=CGIdx<=CGStart+ TrafoSize/4- | iStart+1-TrafoSize/4 |+TrafoSize/4- | iStart+2-TrafoSize/4 | -1, nowIf dStart is 0, the parallel lines where illustrating coefficient sets starting index are diagonal just through a CG CG on line,
I.e.:Work as CGStart<=CGIdx<=CGStart+TrafoSize/4- | iStart+1-TrafoSize/4 | -1 When, CoeffStart=6.
The third situation, iStart=2*TrafoSize/4-2, now target factor layer is only comprising last CG, letter It is single cumulative, dStart=Start+1-4* (iStart+1) is defined,
If dStart is more than 0,If dStart is 0, CoeffStart=6.
Then, for by the CG of coefficient group termination index Stop cuttings, we change these CG CoeffStop.
The first situation, iStop=0, target factor layer is only comprising first CG, as CGIdx=0, and simple add up can
Second of situation, 0<iStop<2*TrafoSize/4-1, defines dStop=Stop+1-4*iStop, if DStop is less than 4, then coefficient group termination index Stop passes through the CG on two CG diagonal.
The CG on the Article 2 CG diagonal crossed is calculated first;
I.e.:Work as CGStop-TrafoSize/4+ | iStop+1-TrafoSize/4 |+1<=CGIdx<=CGStop, this When,
Then the CG on the first CG diagonal crossed is calculated;
I.e.:Work as CGStop-TrafoSize/4+ | iStop+1-TrafoSize/4 |-TrafoSize/4+ | iStop- TrafoSize/4|+1<=CGIdx<=CGStop-TrafoSize/4+ | iStop+1-TrafoSize/4 |, nowIf dStop=4, illustrate coefficient group termination index where parallel lines just through CG on one CG diagonal.
Then work as CGStop-TrafoSize/4+ | iStop+1-TrafoSize/4 |+1<=CGIdx<During=CGStop, CoeffStop=9.
The third situation, iStop=2*Traofisize/4-1, coefficient group termination is indexed only through last CG, Simple add up can just calculate CoeffStop.DStop=Stop+1-4*iStop is defined, whenWhen,
Using hierarchical information as marking the multiple of all layered boundaries in described image coefficient block in second application scenarios Illustrated exemplified by the scanning index of image coefficient:
Or refering to the image coefficient block that Fig. 3 a, Fig. 3 a are a 16x16, the image coefficient block of the 16x16 can after dividing To obtain 16 4x4 image coefficient sub-block, each image coefficient sub-block has an image coefficient sub-block scanning index, by given The scanning sequency from lower-left to upper right, the scanning index of image coefficient sub-block, can also be by 0 0~15 shown in Fig. 3 a ~15 are interpreted as the scanning index of image coefficient sub-block.
Refering to Fig. 3 b, each 4x4 image coefficient sub-block is divided according to 1x1 proportionate relationship, the image coefficient of the 16x16 Block divide into 256 image microliths, and each image microlith corresponds to a coefficient, and 0~255 is the corresponding scanning of each image coefficient Index.Do not identify the image coefficient scanning index in each image microlith in Fig. 3 b completely, but it is understood that, the present invention It is that, according to the scanning sequency from lower-left to upper right, the coefficient not indicated is followed successively by line in the middle of the coefficient of two ends in application scenarios Numerical value.
When the scanning rope of the image coefficient of all layered boundaries of the 16x16 provided in hierarchical information image coefficient block When being cited as 45 and 178, it may be determined that the image coefficient block of the 16x16 is divided into three layers, the 0th layer is scanning index from image coefficient 0~44, the 1st layer is that, from the scanning index 45~177 of image coefficient, the 2nd layer is scanning index 178~255 from image coefficient.
If target factor layer be the 1st layer, can according to mark the 16x16 image coefficient block all layered boundaries The scanning index of image coefficient determine that scanning index in all image coefficients in target factors layer is minimum for 45 and 178 The scanning index of image coefficient is 45, the maximum image coefficient of scanning index in all image coefficients in target factor layer Scanning index is 177, may thereby determine that target factor tomographic image coefficient block coefficient starting index and target factor tomographic image It is respectively 45 and 177 that coefficient block coefficient, which terminates index,.
Refering to Fig. 3 b, it may be determined that the starting of target factor tomographic image coefficient block coefficient indexes 45 in image coefficient sub-block 3, But the image coefficient scanning index 47,48,58 for belonging to target factor layer is distributed in image coefficient block 1, although 47,48,58 More than 45, but image coefficient sub-block scanning index 1 is less than image coefficient sub-block scanning index 3, and the image coefficient sub-block Scanning index 1 is minimum image coefficient of scanning index of image coefficient sub-block in image coefficient sub-block in target factor layer The image coefficient sub-block scanning index of block, so the image coefficient sub-block starting index of target factor layer is 1.As a same reason, Although target factor tomographic image coefficient block coefficient terminates index 177 in image coefficient sub-block 9, belong to target factor layer Image coefficient scanning index 147,161,162,174,175,176 be distributed in image coefficient sub-block 12, although 147,161, 162nd, 174,175,176 are less than image coefficient termination index 177, but image coefficient sub-block scanning index 12 is the target factor The image coefficient sub-block of the maximum image coefficient sub-block of the scanning index of image coefficient sub-block is scanned in image coefficient sub-block in layer Index, so it is 12 that the image coefficient sub-block of target factor layer, which terminates index, it is possible to determine in target factor layer All image coefficient scanning indexs are distributed in image coefficient block 1 into image coefficient block 12.
Determine the target factor layer in so after image coefficient sub-block, it is necessary to according to the scanning rope of image coefficient sub-block Draw order and handle each image coefficient sub-block successively, it is necessary to first determine the image coefficient sub-block during such as processing image coefficient sub-block 1 1 image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient terminates index, refering to Fig. 3 b, it may be determined that image system It is respectively 47 and 58, corresponding image coefficient sub-block system that the image coefficient starting index and image coefficient of number sub-block 1, which terminate index, Number starting index is 13, and it is 15 that image coefficient sub-block coefficient, which terminates index, the image coefficient of image coefficient sub-block 2 starting index and It is respectively 51 and 62 that image coefficient, which terminates index, and corresponding image coefficient sub-block coefficient starting index is 13, image coefficient sub-block It is 15 that coefficient, which terminates index, and it is respectively 45 Hes that the image coefficient starting index and image coefficient of image coefficient sub-block 3, which terminate index, 108, corresponding image coefficient sub-block coefficient starting index is 1, and it is 15 that image coefficient sub-block coefficient, which terminates index, by that analogy, It is assured that the image coefficient sub-block coefficient from each image coefficient sub-block into image coefficient sub-block 12 of image coefficient sub-block 1 Starting index and image coefficient sub-block coefficient terminate index, then handle each image coefficient sub-block when, according to from lower-left to The scanning sequency of upper right handles the image coefficient sub-block coefficient in each image coefficient sub-block.
Image coefficient sub-block starting index CGStart and image coefficient sub-block in second in application scenarios terminate index CGStop, image coefficient sub-block coefficient starting index CoeffStart and image coefficient sub-block coefficient terminate index CoeffStop It can also be obtained by calculating.
Target factor tomographic image coefficient block coefficient starting index Start and target factor layer are given in hierarchical information first Image coefficient block coefficient terminates index Stop, according to given scan mode, such as from lower-left to upper right, is schemed by target factor layer As coefficient block coefficient starting index Start can obtain target factor tomographic image coefficient block coefficient starting index in the 16x16 Coordinate (Startx, Starty) in image coefficient block, terminating index Stop by target factor tomographic image coefficient block coefficient can be with Obtain target factor tomographic image coefficient block coefficient terminate index in the image coefficient block of the 16x16 coordinate (Stopx, Stopy)。
Define coefficient sets starting index IdxStart and coefficient group termination index IdxStop, IdxStart=Startx+ Starty, IdxStop=Stopx+Stopy.
The Start and Stop in the first scene embodiment are replaced with IdxStart and IdxStop, CGStart can be obtained, CGStop。
Then the target factor tomographic image coefficient block coefficient sub-block coefficient of image coefficient sub-block CG in target factor layer is calculated Starting index is terminated with target factor tomographic image coefficient block coefficient sub-block coefficient to be indexed.Method is identical, with the CGStart of previous step And CGStop, IdxStart and IdxStop is replaced into the Start and Stop in the first application scenarios, will obtain each CG's CoeffStart and CoeffStop.
In two above application scenarios, the image coefficient sub-block of the image coefficient sub-block of target factor layer can be calculated Starting index and image coefficient sub-block terminate index CGStart, CGStop, and each CG CoeffStart and CoeffStop。
When being scanned according to the backward from lower right to upper left to a CG, we judge this CG scanning index CGIdx Whether it is located between CGStart and CGStop, i.e. CGStart<=CGIdx<=CGStop, if it is determined that very, from code stream Flag bit SigCoeffGroupFlag is read, 0 is otherwise forced to.
When this CGSigCoeffGroupFlag is 1, for the CG, we judge the scanning rope in this CG intra coeff Draw whether CoeffIdx is located between CoeffStart and CoeffStop, i.e. CoeffStart<=CoeffIdx< CoeffStop, if it is determined that very, Sig is read from code stream, otherwise, is forced to 0.
Refering to Fig. 5, an a kind of embodiment of the coding/decoding method of image provided in an embodiment of the present invention includes:
201st, decoding apparatus determines the hierarchical information of image coefficient block, and described image coefficient block includes multiple images coefficient Block, described image coefficient sub-block includes multiple images coefficient.
Figure coefficient picture block in the embodiment of the present invention can be 4x4,8x8,16x16,32x32 or other sized images coefficient Block.
Hierarchical information is the information of mark layered boundary.
Image coefficient sub-block in the embodiment of the present invention obtains for image coefficient block according to 4x4 ratio cut partition, image system The size of number sub-block is 4x4.If image coefficient block is 16x16 image coefficient block, then the image coefficient block of the 16x16 is pressed 16 4x4 image coefficient sub-block can be obtained according to 4x4 ratio cut partition.
Image coefficient is the coefficient that includes in image coefficient block, and an image coefficient block can include the side of the image coefficient block Long product image coefficient, such as:One 8x8 image coefficient block can include 64 image coefficients, 16x16 image coefficient Block can be included can be comprising 16 image coefficients in 256 image coefficients, an image coefficient sub-block.
202nd, decoding apparatus determines the described image coefficient sub-block in target factor layer according to the hierarchical information, wherein, In multiple images coefficient hierarchical after the described image coefficient block layering that the target factor layer is reflected by the hierarchical information One, the described image coefficient sub-block in target factor layer, which refers to wherein, has at least one image coefficient to belong to the target The described image coefficient sub-block of coefficient layer.
Target factor layer is the image coefficient layer decoded in the embodiment of the present invention.
203rd, decoding apparatus determines to belong to the target factor in the image coefficient sub-block in the layer positioned at target factor The described image coefficient of layer.
It is to determine image coefficient in target factor layer in each image coefficient sub-block in the embodiment of the present invention Position.
204th, decoding apparatus decoded bit stream is to obtain described image coefficient.
Image coefficient decoding process in the embodiment of the present invention can be realized using prior art, for example, can use high-performance Cataloged procedure in Video coding (HEVC, High efficiency video coding) is realized, no longer superfluous in detail herein State.
The embodiment of the present invention includes multiple images system using the hierarchical information for determining image coefficient block, described image coefficient block Number sub-block, described image coefficient sub-block includes multiple images coefficient;Institute in target factor layer is determined according to the hierarchical information Image coefficient sub-block is stated, wherein, after the described image coefficient block layering that the target factor layer is reflected by the hierarchical information Multiple images coefficient hierarchical in one, the described image coefficient sub-block in target factor layer, which refers to, wherein at least one Image coefficient belongs to the described image coefficient sub-block of the target factor layer;It is determined that the image system in the layer positioned at target factor Belong to the described image coefficient of the target factor layer in number sub-block;Decoded bit stream is to obtain described image coefficient.With existing skill The image coefficient block that MGS in art can only be layered 4x4 sizes is compared, and coding/decoding method provided in an embodiment of the present invention can be layered The image coefficient block of a variety of sizes is decoded, so as to improve decoding efficiency.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 5, a kind of decoding of image provided in an embodiment of the present invention In first alternative embodiment of method, the hierarchical information for determining image coefficient block can include:
The hierarchical information is parsed from code stream, or uses the preset hierarchical information arranged with coding side.
In the embodiment of the present invention, when being in decoding end, the hierarchical information if decoding end is not made an appointment with coding side, So decoding end needs to parse hierarchical information from code stream, if decoding end arranges hierarchical information with coding side, then The hierarchical information made an appointment can be used to carry out decoding operate.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 5 and corresponding first alternative embodiments of Fig. 5, the present invention In a kind of second alternative embodiment of the coding/decoding method for image that embodiment is provided, the image coefficient structure in described image coefficient block Into multiple coefficient sets, wherein each coefficient sets include with level to the right 0 degree be with reference to being in 45 degree straight in the counterclockwise direction One row image coefficient of line arrangement;The described image coefficient sub-block determined according to the hierarchical information in target factor layer, Including:
The coefficient sets starting index and coefficient group termination index of the target factor layer are determined according to the hierarchical information, its In, the coefficient sets starting index is the scanning index of the coefficient sets of scanning index minimum in target factor layer;The system Array terminates scanning index of the index for the maximum coefficient sets of scanning index in target factor layer;
According to coefficient sets starting index and coefficient group termination index, determine what is included in the target factor layer The image coefficient sub-block starting index and image coefficient sub-block of image coefficient sub-block terminate index, the starting of described image coefficient sub-block Index during for all image coefficient sub-blocks in scanning described image coefficient block scanning index in target factor layer minimum The scanning index of image coefficient sub-block;It is all figures in scanning described image coefficient block that described image coefficient sub-block, which terminates index, During as coefficient sub-block in target factor layer the maximum image coefficient sub-block of scanning index scanning index;
Index is terminated according to described image coefficient sub-block starting index and image coefficient sub-block, the target factor layer is determined In all image coefficient sub-blocks;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
The detailed process of the embodiment of the present invention can be understood refering to corresponding second alternative embodiment of Fig. 1, be decoded End is identical with the processing of coding side in this step, is not described in detail here.
Alternatively, on the basis of corresponding second alternative embodiments of above-mentioned Fig. 5, a kind of figure provided in an embodiment of the present invention In 3rd alternative embodiment of the coding/decoding method of picture, the hierarchical information includes being used to mark in described image coefficient block owning The information of the information of the scanning index of multiple coefficient sets on the layered boundary of image coefficient layering;
The coefficient sets starting index and coefficient group termination rope that the target factor layer is determined according to the hierarchical information Draw, can include:
It is used to mark multiple systems on the layered boundary that all image coefficients are layered in described image coefficient block according to described The information of the information of the scanning index of array determines the coefficient sets starting index and coefficient group termination index of the target factor layer.
The detailed process of the embodiment of the present invention can be understood refering to corresponding 3rd alternative embodiment of Fig. 1, be decoded End is identical with the processing of coding side in this step, is not described in detail here.
Alternatively, on the basis of above-mentioned Fig. 5 corresponding second or the 3rd alternative embodiment, the embodiment of the present invention is carried It is described according to coefficient sets starting index and the system in a kind of 4th alternative embodiment of the coding/decoding method of the image supplied Array terminates index, determines the image coefficient sub-block starting index of the image coefficient sub-block included in the target factor layer and schemes As coefficient sub-block terminates index, it can include:
It will be swept in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets The scanning index for retouching the minimum image coefficient sub-block of index is indexed as the starting of described image coefficient sub-block;
It will be swept in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination The scanning index for retouching the maximum image coefficient sub-block of index is indexed as the termination of described image coefficient sub-block;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
The detailed process of the embodiment of the present invention can be understood refering to corresponding 4th alternative embodiment of Fig. 1, be decoded End is identical with the processing of coding side in this step, is not described in detail here.
Alternatively, on the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 5 and Fig. 5, this hair It is described to be determined according to the hierarchical information in a kind of 5th alternative embodiment of the coding/decoding method for image that bright embodiment is provided Described image coefficient sub-block in target factor layer, can include:
The target factor tomographic image coefficient block coefficient for determining the target factor layer according to the hierarchical information originates index Terminate and index with target factor tomographic image coefficient block coefficient;The target factor tomographic image coefficient block coefficient starting index is scanning Scanning index is minimum in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Image coefficient scanning index;It is scanning described image coefficient block that the target factor tomographic image coefficient block coefficient, which terminates index, In all image coefficients when target factor layer in all image coefficients in scanning index maximum image coefficient sweep Retouch index;
According to target factor tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block system Number terminates the image coefficient sub-block starting index and image that index determines the image coefficient sub-block in target factor layer Coefficient sub-block terminates index, so that it is determined that all image coefficient sub-blocks in target factor layer;Described image coefficient sub-block Scanning index is most in the target factor layer when starting index is all image coefficient sub-block in scanning described image coefficient block The scanning index of small image coefficient sub-block;It is the institute in scanning described image coefficient block that described image coefficient sub-block, which terminates index, When having an image coefficient sub-block in the target factor layer the maximum image coefficient sub-block of scanning index scanning index;
The scanning index of described image coefficient is to all image coefficients in described image coefficient block by given scanning sequency It is scanned the index value of determination;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
The detailed process of the embodiment of the present invention can be understood refering to corresponding 5th alternative embodiment of Fig. 1, be decoded End is identical with the processing of coding side in this step, is not described in detail here.
Alternatively, on the basis of corresponding 5th alternative embodiment of above-mentioned Fig. 5, one kind provided in an embodiment of the present invention In 6th alternative embodiment of the coding/decoding method of image, the hierarchical information includes being used to mark institute in described image coefficient block Have image coefficient be layered layered boundary on multiple images coefficient scanning index information information;
It is described to determine that the target factor tomographic image coefficient block coefficient of the target factor layer is originated according to the hierarchical information Index and target factor tomographic image coefficient block coefficient terminate index, can include:
According to the multiple images system on the layered boundary that all image coefficients are layered in the mark described image coefficient block The information of the information of several scanning indexs determines the target factor tomographic image coefficient block coefficient starting index of the target factor layer Terminate and index with target factor tomographic image coefficient block coefficient.
The detailed process of the embodiment of the present invention can be understood refering to corresponding 6th alternative embodiment of Fig. 1, be decoded End is identical with the processing of coding side in this step, is not described in detail here.
Alternatively, on the basis of above-mentioned Fig. 5 corresponding 5th or the 6th alternative embodiment, the embodiment of the present invention is carried It is described according to the target factor tomographic image coefficient block system in a kind of 7th alternative embodiment of the coding/decoding method of the image supplied Number starting index and the target factor tomographic image coefficient block coefficient terminate the figure that index determines to be located in target factor layer As the image coefficient sub-block starting index and image coefficient sub-block of coefficient sub-block terminate index, it can include:
By comprising image coefficient in have image coefficient scanning index be more than or equal to the target factor tomographic image In the image coefficient sub-block of the image coefficient of coefficient block coefficient starting index, the image of the scanning index minimum of image coefficient sub-block The image coefficient sub-block scanning index of coefficient sub-block is originated as described image coefficient sub-block and indexed;
By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image Coefficient block coefficient is terminated in the image coefficient sub-block of the image coefficient of index, the image of the scanning index maximum of image coefficient sub-block The image coefficient sub-block scanning index of coefficient sub-block is terminated as described image coefficient sub-block and indexed.
The detailed process of the embodiment of the present invention can be understood refering to corresponding 7th alternative embodiment of Fig. 1, be decoded End is identical with the processing of coding side in this step, is not described in detail here.
Alternatively, on corresponding first basis to the 7th alternative embodiment of the corresponding embodiments of above-mentioned Fig. 5 and Fig. 5 On, in a kind of the 8th alternative embodiment of coding/decoding method of image provided in an embodiment of the present invention, it is located at described in the determination Belong to the described image coefficient of the target factor layer in image coefficient sub-block in target factor layer, can include:
The image coefficient sub-block coefficient for determining image coefficient sub-block in the target factor layer according to the hierarchical information rises Begin index and image coefficient sub-block coefficient termination index, so that it is determined that belonging to the target factor layer in described image coefficient sub-block Image coefficient;
Described image coefficient sub-block coefficient starting index is described image coefficient sub-block in all of target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in image coefficient;Described image coefficient sub-block coefficient terminates index For the image coefficient sub-block of described image coefficient sub-block scanning index maximum in all image coefficients of target factor layer Coefficient scanning is indexed;
Described image coefficient sub-block coefficient scanning index is to owning in described image coefficient sub-block by given scanning sequency Image coefficient is scanned the index value of determination.
The detailed process of the embodiment of the present invention can be understood refering to corresponding 8th alternative embodiment of Fig. 1, be decoded End is identical with the processing of coding side in this step, is not described in detail here.
Alternatively, on the basis of corresponding 8th alternative embodiment of above-mentioned Fig. 5, one kind provided in an embodiment of the present invention It is described to be determined to scheme in the target factor layer according to the hierarchical information in 9th alternative embodiment of the coding/decoding method of image As the image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of coefficient sub-block terminate index, it can include:
The coefficient sets starting index and coefficient group termination index of the target factor layer are determined according to the hierarchical information, its In, the coefficient sets starting index is the scanning index of the coefficient sets of scanning index minimum in target factor layer;The system Array terminates scanning index of the index for the maximum coefficient sets of scanning index in target factor layer;
The mesh is determined according to the coefficient sets starting index and coefficient group termination index of target factor layer The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient for marking image coefficient sub-block in coefficient layer terminate index.
It is to be appreciated that in the selectable embodiment, the coefficient that directly can be obtained using previous embodiment Group starting index and coefficient group termination index to be operated accordingly, without repeating to obtain.
The detailed process of the embodiment of the present invention can be understood refering to corresponding 9th alternative embodiment of Fig. 1, be decoded End is identical with the processing of coding side in this step, is not described in detail here.
Alternatively, on the basis of above-mentioned Fig. 5 corresponding 8th or the 9th alternative embodiment, the embodiment of the present invention is carried In a kind of tenth alternative embodiment of the coding/decoding method of the image supplied, the coefficient sets according to target factor layer Starting index and the coefficient group termination index the image coefficient sub-block system for determining image coefficient sub-block in the target factor layer Number starting index and image coefficient sub-block coefficient terminate index, can include:
By in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets, sweep Retouch the minimum image coefficient sub-block coefficient scanning index of index and be defined as described image coefficient sub-block coefficient starting index;
By in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination, sweep Retouch the maximum image coefficient sub-block coefficient scanning index of index and be defined as described image coefficient sub-block coefficient termination index.
The detailed process of the embodiment of the present invention can be understood refering to the corresponding ten alternative embodiment of Fig. 1, be decoded End is identical with the processing of coding side in this step, is not described in detail here.
Alternatively, on the basis of corresponding 8th alternative embodiment of above-mentioned Fig. 5, one kind provided in an embodiment of the present invention It is described to be determined according to the hierarchical information in the target factor layer in 11st alternative embodiment of the coding/decoding method of image The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index, including:
The target factor tomographic image coefficient block coefficient for determining the target factor layer according to the hierarchical information originates index Terminate and index with target factor tomographic image coefficient block coefficient;The target factor tomographic image coefficient block coefficient starting index is scanning Scanning index is minimum in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Image coefficient scanning index;It is scanning described image coefficient block that the target factor tomographic image coefficient block coefficient, which terminates index, In all image coefficients when target factor layer in all image coefficients in scanning index maximum image coefficient sweep Retouch index;
According to the target factor tomographic image coefficient block coefficient starting index of target factor layer and the target system Number tomographic image coefficient block coefficient terminates the image coefficient sub-block coefficient that index determines image coefficient sub-block in the target factor layer Starting index and image coefficient sub-block coefficient terminate index.
The detailed process of the embodiment of the present invention can be understood refering to corresponding 11st alternative embodiment of Fig. 1, be solved Code end is identical with the processing of coding side in this step, is not described in detail here.
Alternatively, on the basis of above-mentioned Fig. 5 corresponding 8th or the 11st alternative embodiment, the embodiment of the present invention In a kind of 12nd alternative embodiment of the coding/decoding method of the image provided, the mesh according to target factor layer Mark coefficient layer image coefficient block coefficient is originated to index to terminate with the target factor tomographic image coefficient block coefficient and indexed described in determination The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index in target factor layer, It can include:
Scanning index comprising described image coefficient is more than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block for the image coefficient for originating index, the minimum image coefficient sub-block coefficient scanning index of scanning index is determined Originate and index for described image coefficient sub-block coefficient;
Scanning index comprising described image coefficient is less than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block for the image coefficient for terminating index, the maximum image coefficient sub-block coefficient scanning index of scanning index is determined Terminate and index for described image coefficient sub-block coefficient.
The detailed process of the embodiment of the present invention can be understood refering to corresponding 12nd alternative embodiment of Fig. 1, be solved Code end is identical with the processing of coding side in this step, is not described in detail here.
Refering to Fig. 6, an embodiment of code device 30 provided in an embodiment of the present invention includes:
First determining unit 301, the hierarchical information for determining image coefficient block, described image coefficient block includes multiple figures As coefficient sub-block;Described image coefficient sub-block includes multiple images coefficient;
Second determining unit 302, the hierarchical information for being determined according to first determining unit 301 determines target factor Described image coefficient sub-block in layer, wherein, the described image coefficient that the target factor layer is reflected by the hierarchical information Described image coefficient sub-block in one in multiple images coefficient hierarchical after block layering, the target factor layer, which refers to, wherein to be had At least one image coefficient belongs to the described image coefficient sub-block of the target factor layer;
3rd determining unit 303, for determining the figure being located in target factor layer that second determining unit 302 is determined Described image coefficient as belonging to the target factor layer in coefficient sub-block;
Coding unit 304, for being encoded to the image coefficient that the 3rd determining unit 303 is determined.
In the embodiment of the present invention, the first determining unit 301 determines the hierarchical information of image coefficient block, described image coefficient block Including multiple images coefficient sub-block;Described image coefficient sub-block includes multiple images coefficient;Second determining unit 302 is according to described The hierarchical information that first determining unit 301 is determined determines the described image coefficient sub-block in target factor layer, wherein, the target One in multiple images coefficient hierarchical after the described image coefficient block layering that coefficient layer is reflected by the hierarchical information, institute Stating the described image coefficient sub-block in target factor layer and referring to wherein has at least one image coefficient to belong to target factor layer Described image coefficient sub-block;;3rd determining unit 303 determines that what second determining unit 302 determined is located at target factor layer In image coefficient sub-block in belong to the described image coefficient of target factor layer;304 pairs of coding unit the described 3rd is determined The image coefficient that unit 303 is determined is encoded.Compared with prior art, code device provided in an embodiment of the present invention can be with The image coefficient block of a variety of sizes of hierarchical coding, so as to improve code efficiency.
On the basis of the corresponding embodiments of above-mentioned Fig. 6, the first of code device 30 provided in an embodiment of the present invention is optional In embodiment,
First determining unit 301, code is write for configuring the hierarchical information, and by the hierarchical information of configuration Stream, or, use the preset hierarchical information arranged with decoding end.
On the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 6 or Fig. 6, refering to Fig. 7, this hair In second alternative embodiment of the code device 30 that bright embodiment is provided, the image coefficient in described image coefficient block constitutes multiple Coefficient sets, wherein each coefficient sets include with level to the right 0 degree be with reference to being in 45 degree arranged in a straight line in the counterclockwise direction A row image coefficient;
Second determining unit 302 includes:
First determination subelement 3021, for determining that the coefficient sets of the target factor layer are originated according to the hierarchical information Index and coefficient group termination index, wherein, the coefficient sets starting indexes minimum for scanning index in target factor layer The scanning index of coefficient sets;The coefficient group termination index is swept for the maximum coefficient sets of scanning index in target factor layer Retouch index;
Second determination subelement 3022, the coefficient sets for being determined according to first determination subelement 3021, which are originated, to be indexed With coefficient group termination index, the image coefficient sub-block starting of image coefficient sub-block included in the target factor layer is determined Index and image coefficient sub-block terminate index, and described image coefficient sub-block starting index is the institute in scanning described image coefficient block When having an image coefficient sub-block in the target factor layer the minimum image coefficient sub-block of scanning index scanning index;Described image Coefficient sub-block terminates index and swept to scan during all image coefficient sub-blocks in described image coefficient block in the target factor layer Retouch the scanning index of the maximum image coefficient sub-block of index;
3rd determination subelement 3023, the image coefficient sub-block for being determined according to second determination subelement 3022 rises Begin index and image coefficient sub-block termination index, determines all image coefficient sub-blocks in the target factor layer;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
On the basis of corresponding second alternative embodiment of above-mentioned Fig. 7, code device provided in an embodiment of the present invention In 3rd alternative embodiment,
First determination subelement 3021, for being used to mark all image systems in described image coefficient block according to described The information of the information of the scanning index of multiple coefficient sets on the layered boundary of number layering determines the coefficient of the target factor layer Group starting index and coefficient group termination index.
It is provided in an embodiment of the present invention on the basis of above-mentioned Fig. 7 corresponding second or the 3rd alternative embodiment In 4th alternative embodiment of code device,
Second determination subelement 3022, for will be originated comprising the coefficient sets in the coefficient sets indicated by indexing The scanning index of the minimum image coefficient sub-block of scanning index is used as described image coefficient in the image coefficient sub-block of image coefficient Sub-block starting index;By the image coefficient sub-block of the image coefficient indexed comprising the coefficient group termination in indicated coefficient sets The scanning index of the maximum image coefficient sub-block of middle scanning index is terminated as described image coefficient sub-block to be indexed;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
On the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 6 or Fig. 6, refering to Fig. 8, this hair In 5th alternative embodiment of the code device 30 that bright embodiment is provided,
Second determining unit 302 includes:
4th determination subelement 3024, the target factor layer for determining the target factor layer according to the hierarchical information Image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image system Several piece coefficient starting index is all in the target factor layer during all image coefficients in described image coefficient block to scan The scanning index of the minimum image coefficient of scanning index in image coefficient;The target factor tomographic image coefficient block coefficient terminates rope It is cited as scanning and is scanned in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Index the scanning index of maximum image coefficient;
5th determination subelement 3025, for the target factor tomographic image determined according to the 4th determination subelement 3024 Coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine to be located at the target factor The image coefficient sub-block starting index and image coefficient sub-block of image coefficient sub-block in layer terminate index, so that it is determined that the mesh Mark all image coefficient sub-blocks in coefficient layer;Described image coefficient sub-block starting index is in scanning described image coefficient block All image coefficient sub-blocks when target factor layer in the minimum image coefficient sub-block of scanning index scanning index;It is described Image coefficient sub-block terminates index to scan target factor layer during all image coefficient sub-blocks in described image coefficient block The scanning index of the maximum image coefficient sub-block of middle scanning index;
The scanning index of described image coefficient is to all image coefficients in described image coefficient block by given scanning sequency It is scanned the index value of determination;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
On the basis of corresponding 5th alternative embodiment of above-mentioned Fig. 8, code device provided in an embodiment of the present invention In 6th alternative embodiment, the hierarchical information includes being used to mark all image coefficient layerings in described image coefficient block The information of the information of the scanning index of multiple images coefficient on layered boundary;
4th determination subelement 3024, for according to all image coefficients point in the mark described image coefficient block The information of the information of the scanning index of multiple images coefficient on the layered boundary of layer determines the target system of the target factor layer Number tomographic image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index.
It is provided in an embodiment of the present invention to compile on the basis of above-mentioned Fig. 8 corresponding 5th or the 6th alternative embodiment In 7th alternative embodiment of code device,
5th determination subelement 3025, for by comprising image coefficient in have image coefficient scanning index be more than Or originated equal to the target factor tomographic image coefficient block coefficient in the image coefficient sub-block of image coefficient of index, image system The image coefficient sub-block scanning index of the image coefficient sub-block of the scanning index minimum of number sub-block is used as described image coefficient sub-block Starting index;By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image Coefficient block coefficient is terminated in the image coefficient sub-block of the image coefficient of index, the image of the scanning index maximum of image coefficient sub-block The image coefficient sub-block scanning index of coefficient sub-block is terminated as described image coefficient sub-block and indexed.
On the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 6 or Fig. 6, the embodiment of the present invention In 8th alternative embodiment of the code device 30 of offer,
3rd determining unit 303, for determining image coefficient in the target factor layer according to the hierarchical information The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of sub-block terminate index, so that it is determined that described image system Belong to the image coefficient of the target factor layer in number sub-block;
Described image coefficient sub-block coefficient starting index is described image coefficient sub-block in all of target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in image coefficient;Described image coefficient sub-block coefficient terminates index For the image coefficient sub-block of described image coefficient sub-block scanning index maximum in all image coefficients of target factor layer Coefficient scanning is indexed;
Described image coefficient sub-block coefficient scanning index is to owning in described image coefficient sub-block by given scanning sequency Image coefficient is scanned the index value of determination.
On the basis of corresponding 8th alternative embodiment of above-mentioned Fig. 6, refering to Fig. 9, volume provided in an embodiment of the present invention In 9th alternative embodiment of code device 30, the 3rd determining unit 303 includes:
6th determination subelement 3031, for determining that the coefficient sets of the target factor layer are originated according to the hierarchical information Index and coefficient group termination index, wherein, the coefficient sets starting indexes minimum for scanning index in target factor layer The scanning index of coefficient sets;The coefficient group termination index is swept for the maximum coefficient sets of scanning index in target factor layer Retouch index;
7th determination subelement 3032, for the target factor layer determined according to the 6th determination subelement 3031 Coefficient sets starting index and the coefficient group termination index the figure for determining image coefficient sub-block in target factor layer As coefficient sub-block coefficient starting index and image coefficient sub-block coefficient terminate index.
On the basis of corresponding 9th alternative embodiment of above-mentioned Fig. 9, code device 30 provided in an embodiment of the present invention The tenth alternative embodiment in,
7th determination subelement 3032, for will be originated comprising the coefficient sets in the coefficient sets indicated by indexing In the image coefficient sub-block of image coefficient, the minimum image coefficient sub-block coefficient scanning index of scanning index is defined as described image Coefficient sub-block coefficient starting index;By the image of the image coefficient indexed comprising the coefficient group termination in indicated coefficient sets In coefficient sub-block, it is whole that the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient Only index.
It is to be appreciated that in other selectable embodiments, be able to can be not provided with the 3rd determining unit described 6th determination subelement, and by obtaining coefficient sets starting index and coefficient group termination that the first determination subelement is recognized really Index to be operated accordingly.
On the basis of corresponding 8th alternative embodiment of above-mentioned Fig. 6, refering to Figure 10, volume provided in an embodiment of the present invention In 11st alternative embodiment of code device 30, the 3rd determining unit 303 includes:
8th determination subelement 3033, the target factor layer for determining the target factor layer according to the hierarchical information Image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image system Several piece coefficient starting index is all in the target factor layer during all image coefficients in described image coefficient block to scan The scanning index of the minimum image coefficient of scanning index in image coefficient;The target factor tomographic image coefficient block coefficient terminates rope It is cited as scanning and is scanned in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Index the scanning index of maximum image coefficient;
9th determination subelement 3034, for the institute of the target factor layer determined according to the 8th determination subelement 3033 State target factor tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient terminates index and determined The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block are terminated in the target factor layer Index.
On the basis of corresponding 8th alternative embodiment of above-mentioned Figure 10, code device 30 provided in an embodiment of the present invention The 12nd alternative embodiment in,
9th determination subelement 3034, for the scanning index comprising described image coefficient to be more than or equal into institute In the image coefficient sub-block for the image coefficient for stating target factor tomographic image coefficient block coefficient starting index, the minimum figure of scanning index As coefficient sub-block coefficient scanning index is defined as described image coefficient sub-block coefficient starting index;Described image coefficient will be included Scanning index is less than or equal to the image coefficient that the target factor tomographic image coefficient block coefficient terminates the image coefficient of index In sub-block, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient and terminates rope Draw.
Refering to Figure 11, an embodiment of decoding apparatus 40 provided in an embodiment of the present invention includes:
4th determining unit 401, the hierarchical information for determining image coefficient block, described image coefficient block includes multiple figures As coefficient sub-block;
5th determining unit 402, for the hierarchical information of the image coefficient block determined according to the 4th determining unit 401 It is determined that the described image coefficient sub-block in target factor layer, wherein, the target factor layer is the hierarchical information institute One in multiple images coefficient hierarchical after the described image coefficient hierarchical of reflection, described image coefficient sub-block includes multiple figures As coefficient;
6th determining unit 403, for determining that the 5th determining unit 402 is located in target factor layer described in determining Image coefficient sub-block in belong to the described image coefficient of target factor layer;
Decoding unit 404, for decoded bit stream to obtain the image coefficient that the 6th determining unit 403 is determined.
In the embodiment of the present invention, the 4th determining unit 401 determines the hierarchical information of image coefficient block, described image coefficient block Including multiple images coefficient sub-block;The image coefficient block that 5th determining unit 402 is determined according to the 4th determining unit 401 Hierarchical information determines the described image coefficient sub-block being located in target factor layer, wherein, the target factor layer is described point One in multiple images coefficient hierarchical after the described image coefficient hierarchical that layer information is reflected, described image coefficient sub-block bag Include multiple images coefficient;It is described positioned at target factor layer that 6th determining unit 403 determines that the 5th determining unit 402 is determined In image coefficient sub-block in belong to the described image coefficient of target factor layer;The decoded bit stream of decoding unit 404 is to obtain The image coefficient that 6th determining unit 403 is determined.Compared with prior art, decoding apparatus provided in an embodiment of the present invention can With the image coefficient block of a variety of sizes of hierarchical coding, so as to improve code efficiency.
On the basis of the corresponding embodiments of above-mentioned Figure 11, first of decoding apparatus provided in an embodiment of the present invention is optional In embodiment,
4th determining unit 401, for parsing the hierarchical information from code stream, or using preset with volume The hierarchical information of code end agreement.
On the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Figure 11 and Figure 11, refering to Figure 12, In second alternative embodiment of decoding apparatus provided in an embodiment of the present invention, the image coefficient in described image coefficient block is constituted Multiple coefficient sets, wherein each coefficient sets include with level to the right 0 degree be with reference in the counterclockwise direction in 45 degree of straight line One row image coefficient of arrangement;
Described 5th determines that single 402 include:
Tenth determination subelement 4021, for determining that the coefficient sets of the target factor layer are originated according to the hierarchical information Index and coefficient group termination index, wherein, the coefficient sets starting indexes minimum for scanning index in target factor layer The scanning index of coefficient sets;The coefficient group termination index is swept for the maximum coefficient sets of scanning index in target factor layer Retouch index;
11st determination subelement 4022, the coefficient sets for being determined according to the tenth determination subelement 4021 originate rope Draw and indexed with the coefficient group termination, determine that the image coefficient sub-block of the image coefficient sub-block included in the target factor layer rises Begin index and image coefficient sub-block termination index, and described image coefficient sub-block starting index is to scan in described image coefficient block During all image coefficient sub-blocks in target factor layer the minimum image coefficient sub-block of scanning index scanning index;It is described Image coefficient sub-block terminates index to scan target factor layer during all image coefficient sub-blocks in described image coefficient block The scanning index of the maximum image coefficient sub-block of middle scanning index;
12nd determination subelement 4023, for image coefficient determined according to the 11st determination subelement 4022 Block starting index and image coefficient sub-block terminate index, determine all image coefficient sub-blocks in the target factor layer;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
On the basis of corresponding second alternative embodiment of above-mentioned Figure 12, decoding apparatus provided in an embodiment of the present invention In 3rd alternative embodiment, the hierarchical information includes being used to mark all image coefficient layerings in described image coefficient block The information of the information of the scanning index of multiple coefficient sets on layered boundary;
Tenth determination subelement 4021, for being used to mark all image systems in described image coefficient block according to described The information of the information of the scanning index of multiple coefficient sets on the layered boundary of number layering determines the coefficient of the target factor layer Group starting index and coefficient group termination index.
On the basis of above-mentioned Figure 12 corresponding second or the 3rd alternative embodiment, solution provided in an embodiment of the present invention In 4th alternative embodiment of code device,
11st determination subelement 4022, for will be originated comprising the coefficient sets in the coefficient sets indicated by indexing Image coefficient image coefficient sub-block in the scanning index of the minimum image coefficient sub-block of scanning index be used as described image system Number sub-block starting index;By image coefficient of the image coefficient indexed comprising the coefficient group termination in indicated coefficient sets The scanning index of the maximum image coefficient sub-block of scanning index is terminated as described image coefficient sub-block in block indexes;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
On the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Figure 11 and Figure 11, refering to Figure 13, In 5th alternative embodiment of decoding apparatus provided in an embodiment of the present invention,
5th determining unit 402 includes:
13rd determination subelement 4024, the target factor for determining the target factor layer according to the hierarchical information Tomographic image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image The starting of coefficient block coefficient indexes to scan institute during all image coefficients in described image coefficient block in the target factor layer There is the scanning index of the minimum image coefficient of scanning index in image coefficient;The target factor tomographic image coefficient block coefficient is terminated Index and swept to scan in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Retouch the scanning index of the maximum image coefficient of index;
14th determination subelement 4025, for the target factor layer determined according to the 13rd determination subelement 4024 Image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine to be located at the target The image coefficient sub-block starting index and image coefficient sub-block of image coefficient sub-block in coefficient layer terminate index, so that it is determined that institute State all image coefficient sub-blocks in target factor layer;Described image coefficient sub-block starting index is scanning described image coefficient block In all image coefficient sub-blocks when target factor layer in the minimum image coefficient sub-block of scanning index scanning index;Institute State target factor when image coefficient sub-block terminates index to scan all image coefficient sub-blocks in described image coefficient block The scanning index of the maximum image coefficient sub-block of scanning index in layer;
The scanning index of described image coefficient is to all image coefficients in described image coefficient block by given scanning sequency It is scanned the index value of determination;
The scanning index of described image coefficient sub-block is to all images in described image coefficient block by given scanning sequency Coefficient sub-block is scanned the index value of determination.
On the basis of corresponding 5th alternative embodiment of above-mentioned Figure 13, decoding apparatus provided in an embodiment of the present invention In 6th alternative embodiment, the hierarchical information includes being used to mark all image coefficient layerings in described image coefficient block The information of the information of the scanning index of multiple images coefficient on layered boundary;
13rd determination subelement 4024, for according to all image coefficients in the mark described image coefficient block The information of the information of the scanning index of multiple images coefficient on the layered boundary of layering determines the target of the target factor layer Coefficient layer image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index.
On the basis of above-mentioned Figure 13 corresponding 5th or the 6th alternative embodiment, solution provided in an embodiment of the present invention In 7th alternative embodiment of code device,
14th determination subelement 4025, for by comprising image coefficient in have the scanning index of image coefficient big In the image coefficient sub-block of the image coefficient of the target factor tomographic image coefficient block coefficient starting index, image The image coefficient sub-block scanning index of the minimum image coefficient sub-block of the scanning index of coefficient sub-block is used as described image coefficient Block starting index;By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor layer figure In the image coefficient sub-block that the image coefficient of index is terminated as coefficient block coefficient, the figure of the scanning index maximum of image coefficient sub-block Indexed as the image coefficient sub-block scanning index of coefficient sub-block is terminated as described image coefficient sub-block.
On the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Figure 11 and Figure 11, the present invention is implemented In 8th alternative embodiment of the decoding apparatus that example is provided,
6th determining unit 403, for determining image coefficient in the target factor layer according to the hierarchical information The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of sub-block terminate index, so that it is determined that described image coefficient Belong to the image coefficient of the target factor layer in sub-block;
Described image coefficient sub-block coefficient starting index is described image coefficient sub-block in all of target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in image coefficient;Described image coefficient sub-block coefficient terminates index For the image coefficient sub-block of described image coefficient sub-block scanning index maximum in all image coefficients of target factor layer Coefficient scanning is indexed;
Described image coefficient sub-block coefficient scanning index is to owning in described image coefficient sub-block by given scanning sequency Image coefficient is scanned the index value of determination.
It is provided in an embodiment of the present invention refering to Figure 14 on the basis of corresponding 8th alternative embodiment of above-mentioned Figure 11 In 9th alternative embodiment of decoding apparatus, the 6th determining unit 403 includes:
15th determination subelement 4031, for determining that the coefficient sets of the target factor layer rise according to the hierarchical information Begin index and coefficient group termination index, wherein, the coefficient sets starting index is minimum for scanning index in target factor layer Coefficient sets scanning index;The coefficient group termination index is the maximum coefficient sets of scanning index in target factor layer Scanning index;
16th determination subelement 4032, for the target system determined according to the 15th determination subelement 4031 Several layers of coefficient sets starting index and coefficient group termination index determines image coefficient sub-block in the target factor layer Image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient terminate index.
It is to be understood that in an alternative embodiment, the 6th determining unit can be not provided with the 15th determination subelement, and The coefficient sets starting index directly determined by the tenth determination subelement is operated accordingly with coefficient group termination index.
On the basis of above-mentioned Figure 11 corresponding 8th or the 9th alternative embodiment, solution provided in an embodiment of the present invention In tenth alternative embodiment of code device,
16th determination subelement 4032, for will be originated comprising the coefficient sets in the coefficient sets indicated by indexing Image coefficient image coefficient sub-block in, the minimum image coefficient sub-block coefficient scanning index of scanning index is defined as the figure As coefficient sub-block coefficient starting index;By the figure of the image coefficient indexed comprising the coefficient group termination in indicated coefficient sets As in coefficient sub-block, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient Terminate index.
It is provided in an embodiment of the present invention refering to Figure 15 on the basis of corresponding 8th alternative embodiment of above-mentioned Figure 11 In 11st alternative embodiment of decoding apparatus, the 6th determining unit 403 includes:
17th determination subelement 4033, the target factor for determining the target factor layer according to the hierarchical information Tomographic image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image The starting of coefficient block coefficient indexes to scan institute during all image coefficients in described image coefficient block in the target factor layer There is the scanning index of the minimum image coefficient of scanning index in image coefficient;The target factor tomographic image coefficient block coefficient is terminated Index and swept to scan in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Retouch the scanning index of the maximum image coefficient of index;
18th determination subelement 4034, for the target factor layer determined according to the 17th determination subelement 4033 The target factor tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index Determine the image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block in the target factor layer Terminate index.
At above-mentioned 8th or be an alternative embodiment on the basis of, decoding apparatus provided in an embodiment of the present invention In 11st alternative embodiment,
18th determination subelement 4034, for the scanning index comprising described image coefficient to be more than or equal to In the image coefficient sub-block of the image coefficient of the target factor tomographic image coefficient block coefficient starting index, scanning index minimum Image coefficient sub-block coefficient scanning index is defined as described image coefficient sub-block coefficient starting index;Described image system will be included Several scanning indexs is less than or equal to the image that the target factor tomographic image coefficient block coefficient terminates the image coefficient of index In coefficient sub-block, it is whole that the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient Only index.
Refering to Figure 16, an embodiment of the encoding device that the embodiment of the present invention is supplied includes:First receiver 310, first is sent out Send device 320, first memory 330 and first processor 340;
First receiver 310, the first transmitter 320, first memory 330 and first processor 340 by bus or Other modes are connected;
Wherein, the first processor 340 is used to perform following steps:
The hierarchical information of image coefficient block is determined, described image coefficient block includes multiple images coefficient sub-block, described image Coefficient sub-block includes multiple images coefficient;
Described image coefficient sub-block in target factor layer is determined according to the hierarchical information, wherein, the target factor One in multiple images coefficient hierarchical after the described image coefficient block layering that layer is reflected by the hierarchical information, the mesh Described image coefficient sub-block in mark coefficient layer, which refers to, wherein has at least one image coefficient to belong to the described of the target factor layer Image coefficient sub-block;;
It is determined that belonging to the described image of the target factor layer in the image coefficient sub-block in target factor layer Coefficient;
Described image coefficient is encoded.
In some embodiments of the invention, the first processor 340 is additionally operable to configure the hierarchical information, and by configuration The hierarchical information writes code stream, or, use the preset hierarchical information arranged with decoding end.
In some embodiments of the invention, the image coefficient in described image coefficient block constitutes multiple coefficient sets, wherein each The coefficient sets include with level to the right 0 degree be with reference in the counterclockwise direction in 45 degree of a row image coefficient arranged in a straight line; The first processor 340 is additionally operable to determine the coefficient sets starting index of the target factor layer according to the hierarchical information and is Array terminates index, wherein, the coefficient sets starting index is the minimum coefficient sets of scanning index in target factor layer Scanning index;The coefficient group termination index is the scanning index of the coefficient sets of scanning index maximum in target factor layer; According to coefficient sets starting index and coefficient group termination index, the image coefficient included in the target factor layer is determined Image coefficient sub-block starting index and the image coefficient sub-block of sub-block terminate index, and described image coefficient sub-block starting index is to sweep Retouch the image coefficient of scanning index minimum in target factor layer during all image coefficient sub-blocks in described image coefficient block The scanning index of sub-block;It is all image coefficients in scanning described image coefficient block that described image coefficient sub-block, which terminates index, During block in target factor layer the maximum image coefficient sub-block of scanning index scanning index;According to described image coefficient sub-block Starting index and image coefficient sub-block terminate index, determine all image coefficient sub-blocks in the target factor layer;
Wherein, the scanning index of the coefficient sets is to all coefficient sets in described image coefficient block by given scanning sequency It is scanned the index value of determination;The scanning index of described image coefficient sub-block is to described image coefficient by given scanning sequency All image coefficient sub-blocks are scanned the index value of determination in block.
In some embodiments of the invention, the hierarchical information includes being used to mark all image systems in described image coefficient block The information of the information of the scanning index of multiple coefficient sets on the layered boundary of number layering;
The first processor 340 is additionally operable to be used to mark all image coefficients point in described image coefficient block according to described The information of the information of the scanning index of multiple coefficient sets on the layered boundary of layer determines that the coefficient sets of the target factor layer rise Begin index and coefficient group termination index.
In some embodiments of the invention, the first processor 340 is additionally operable to comprising coefficient sets starting index institute The scanning index of the minimum image coefficient sub-block of scanning index in the image coefficient sub-block of image coefficient in the coefficient sets of instruction Originate and index as described image coefficient sub-block;The image system that will be indexed comprising the coefficient group termination in indicated coefficient sets The scanning index of the maximum image coefficient sub-block of scanning index is whole as described image coefficient sub-block in several image coefficient sub-blocks Only index;
Wherein, the scanning index of described image coefficient sub-block is to owning in described image coefficient block by given scanning sequency Image coefficient sub-block is scanned the index value of determination.
In some embodiments of the invention, the first processor 340 is additionally operable to determine the mesh according to the hierarchical information The target factor tomographic image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient for marking coefficient layer terminate index; The target factor tomographic image coefficient block coefficient starting index is all image coefficients when institute in scanning described image coefficient block State the scanning index of the minimum image coefficient of scanning index in all image coefficients in target factor layer;The target factor layer Image coefficient block coefficient terminates index to scan during all image coefficients in described image coefficient block in the target factor layer All image coefficients in the maximum image coefficient of scanning index scanning index;According to the target factor tomographic image coefficient block Coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine to be located in target factor layer The image coefficient sub-block starting index and image coefficient sub-block of image coefficient sub-block terminate index, so that it is determined that the target factor All image coefficient sub-blocks in layer;Described image coefficient sub-block starting index is all figures in scanning described image coefficient block During as coefficient sub-block in target factor layer the minimum image coefficient sub-block of scanning index scanning index;Described image coefficient Sub-block terminates index and scans rope in the target factor layer during all image coefficient sub-blocks in described image coefficient block to scan Draw the scanning index of the image coefficient sub-block of maximum;
Wherein, the scanning index of described image coefficient is to all images in described image coefficient block by given scanning sequency Coefficient is scanned the index value of determination;The scanning index of described image coefficient sub-block is to described image by given scanning sequency All image coefficient sub-blocks are scanned the index value of determination in coefficient block.
In some embodiments of the invention, the hierarchical information includes being used to mark all image systems in described image coefficient block The information of the information of the scanning index of multiple images coefficient on the layered boundary of number layering;
The first processor 340 is additionally operable to what is be layered according to all image coefficients in the mark described image coefficient block The information of the information of the scanning index of multiple images coefficient on layered boundary determines the target factor layer of the target factor layer Image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index.
In some embodiments of the invention, the first processor 340 be additionally operable to by comprising image coefficient in have image system Several scanning indexs is more than or equal to the image that the target factor tomographic image coefficient block coefficient originates the image coefficient of index In coefficient sub-block, the image coefficient sub-block scanning index conduct of the image coefficient sub-block of the scanning index minimum of image coefficient sub-block Described image coefficient sub-block starting index;By comprising image coefficient in have image coefficient scanning index be less than or equal to institute In the image coefficient sub-block for stating the image coefficient that target factor tomographic image coefficient block coefficient terminates index, image coefficient sub-block is swept The image coefficient sub-block scanning index for retouching the maximum image coefficient sub-block of index is indexed as the termination of described image coefficient sub-block.
In some embodiments of the invention, the first processor 340 is additionally operable to determine the mesh according to the hierarchical information The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient for marking image coefficient sub-block in coefficient layer terminate index, from And determine to belong to the image coefficient of the target factor layer in described image coefficient sub-block;
Wherein, described image coefficient sub-block coefficient starting index is described image coefficient sub-block in target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in all image coefficients;Described image coefficient sub-block coefficient is whole Only index is described image coefficient sub-block maximum image system of scanning index in all image coefficients of target factor layer Number sub-block coefficient scanning index;
Wherein, described image coefficient sub-block coefficient scanning index is in described image coefficient sub-block by given scanning sequency All image coefficients are scanned the index value of determination.
In some embodiments of the invention, the first processor 340 is additionally operable to determine the mesh according to the hierarchical information The coefficient sets starting index and coefficient group termination index of coefficient layer are marked, wherein, the coefficient sets starting index is the target system The scanning index of the minimum coefficient sets of scanning index in several layers;The coefficient group termination index is scanning in target factor layer Index the scanning index of maximum coefficient sets;According to the coefficient sets starting index of target factor layer and the coefficient sets Terminate image coefficient sub-block coefficient starting index and image coefficient that index determines image coefficient sub-block in the target factor layer Sub-block coefficient terminates index.
In some embodiments of the invention, the first processor 340 is additionally operable to comprising coefficient sets starting index institute In the image coefficient sub-block of image coefficient in the coefficient sets of instruction, the minimum image coefficient sub-block coefficient scanning rope of scanning index Draw and be defined as described image coefficient sub-block coefficient starting index;It will be indexed comprising the coefficient group termination in indicated coefficient sets Image coefficient image coefficient sub-block in, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as the figure As coefficient sub-block coefficient terminates index.
In some embodiments of the invention, the first processor 340 is additionally operable to determine the mesh according to the hierarchical information The target factor tomographic image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient for marking coefficient layer terminate index; The target factor tomographic image coefficient block coefficient starting index is all image coefficients when institute in scanning described image coefficient block State the scanning index of the minimum image coefficient of scanning index in all image coefficients in target factor layer;The target factor layer Image coefficient block coefficient terminates index to scan during all image coefficients in described image coefficient block in the target factor layer All image coefficients in the maximum image coefficient of scanning index scanning index;According to the target of target factor layer Coefficient layer image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine the mesh The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient for marking image coefficient sub-block in coefficient layer terminate index.
In some embodiments of the invention, the first processor 340 is additionally operable to the scanning rope comprising described image coefficient In the image coefficient sub-block for drawing the image coefficient that index is originated more than or equal to the target factor tomographic image coefficient block coefficient, The minimum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient starting index;
Scanning index comprising described image coefficient is less than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block for the image coefficient for terminating index, the maximum image coefficient sub-block coefficient scanning index of scanning index is determined Terminate and index for described image coefficient sub-block coefficient.
Refering to Figure 17, an embodiment of the decoding device that the embodiment of the present invention is supplied includes:Second receiver 410, second is sent out Send device 420, second memory 430 and second processor 440;
Second receiver 410, the second transmitter 420, second memory 430 and second processor 440 by bus or Other modes are connected;
Wherein, the second processor 440 is used to perform following steps:
The hierarchical information of image coefficient block is determined, described image coefficient block includes multiple images coefficient sub-block, described image Coefficient sub-block includes multiple images coefficient;
Described image coefficient sub-block in target factor layer is determined according to the hierarchical information, wherein, the target factor One in multiple images coefficient hierarchical after the described image coefficient block layering that layer is reflected by the hierarchical information, the mesh Described image coefficient sub-block in mark coefficient layer, which refers to, wherein has at least one image coefficient to belong to the described of the target factor layer Image coefficient sub-block;;
It is determined that belonging to the described image of the target factor layer in the image coefficient sub-block in target factor layer Coefficient;
Decoded bit stream is to obtain described image coefficient.
In some embodiments of the invention, the second processor 440 is additionally operable to parse the hierarchical information from code stream, Or use the preset hierarchical information arranged with coding side.
In some embodiments of the invention, the image coefficient in described image coefficient block constitutes multiple coefficient sets, wherein each The coefficient sets include with level to the right 0 degree be with reference in the counterclockwise direction in 45 degree of a row image coefficient arranged in a straight line; The second processor 440 is additionally operable to determine the coefficient sets starting index of the target factor layer according to the hierarchical information and is Array terminates index, wherein, the coefficient sets starting index is the minimum coefficient sets of scanning index in target factor layer Scanning index;The coefficient group termination index is the scanning index of the coefficient sets of scanning index maximum in target factor layer; According to coefficient sets starting index and coefficient group termination index, the image coefficient included in the target factor layer is determined Image coefficient sub-block starting index and the image coefficient sub-block of sub-block terminate index, and described image coefficient sub-block starting index is to sweep Retouch the image coefficient of scanning index minimum in target factor layer during all image coefficient sub-blocks in described image coefficient block The scanning index of sub-block;It is all image coefficients in scanning described image coefficient block that described image coefficient sub-block, which terminates index, During block in target factor layer the maximum image coefficient sub-block of scanning index scanning index;According to described image coefficient sub-block Starting index and image coefficient sub-block terminate index, determine all image coefficient sub-blocks in the target factor layer;
Wherein, the scanning index of the coefficient sets is to all coefficient sets in described image coefficient block by given scanning sequency It is scanned the index value of determination;The scanning index of described image coefficient sub-block is to described image coefficient by given scanning sequency All image coefficient sub-blocks are scanned the index value of determination in block.
In some embodiments of the invention, the hierarchical information includes being used to mark all image systems in described image coefficient block The information of the information of the scanning index of multiple coefficient sets on the layered boundary of number layering;
The second processor 440 is additionally operable to be used to mark all image coefficients point in described image coefficient block according to described The information of the information of the scanning index of multiple coefficient sets on the layered boundary of layer determines that the coefficient sets of the target factor layer rise Begin index and coefficient group termination index.
In some embodiments of the invention, the second processor 440 is additionally operable to comprising coefficient sets starting index institute The scanning index of the minimum image coefficient sub-block of scanning index in the image coefficient sub-block of image coefficient in the coefficient sets of instruction Originate and index as described image coefficient sub-block;The image system that will be indexed comprising the coefficient group termination in indicated coefficient sets The scanning index of the maximum image coefficient sub-block of scanning index is whole as described image coefficient sub-block in several image coefficient sub-blocks Only index;
Wherein, the scanning index of described image coefficient sub-block is to owning in described image coefficient block by given scanning sequency Image coefficient sub-block is scanned the index value of determination.
In some embodiments of the invention, the second processor 440 is additionally operable to determine the mesh according to the hierarchical information The target factor tomographic image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient for marking coefficient layer terminate index; The target factor tomographic image coefficient block coefficient starting index is all image coefficients when institute in scanning described image coefficient block State the scanning index of the minimum image coefficient of scanning index in all image coefficients in target factor layer;The target factor layer Image coefficient block coefficient terminates index to scan during all image coefficients in described image coefficient block in the target factor layer All image coefficients in the maximum image coefficient of scanning index scanning index;According to the target factor tomographic image coefficient block Coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine to be located in target factor layer The image coefficient sub-block starting index and image coefficient sub-block of image coefficient sub-block terminate index, so that it is determined that the target factor All image coefficient sub-blocks in layer;Described image coefficient sub-block starting index is all figures in scanning described image coefficient block During as coefficient sub-block in target factor layer the minimum image coefficient sub-block of scanning index scanning index;Described image coefficient Sub-block terminates index and scans rope in the target factor layer during all image coefficient sub-blocks in described image coefficient block to scan Draw the scanning index of the image coefficient sub-block of maximum;
Wherein, the scanning index of described image coefficient is to all images in described image coefficient block by given scanning sequency Coefficient is scanned the index value of determination;The scanning index of described image coefficient sub-block is to described image by given scanning sequency All image coefficient sub-blocks are scanned the index value of determination in coefficient block.
In some embodiments of the invention, the hierarchical information includes being used to mark all image systems in described image coefficient block The information of the information of the scanning index of multiple images coefficient on the layered boundary of number layering;
The second processor 440 is additionally operable to what is be layered according to all image coefficients in the mark described image coefficient block The information of the information of the scanning index of multiple images coefficient on layered boundary determines the target factor layer of the target factor layer Image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index.
In some embodiments of the invention, the second processor 440 be additionally operable to by comprising image coefficient in have image system Several scanning indexs is more than or equal to the image that the target factor tomographic image coefficient block coefficient originates the image coefficient of index In coefficient sub-block, the image coefficient sub-block scanning index conduct of the image coefficient sub-block of the scanning index minimum of image coefficient sub-block Described image coefficient sub-block starting index;By comprising image coefficient in have image coefficient scanning index be less than or equal to institute In the image coefficient sub-block for stating the image coefficient that target factor tomographic image coefficient block coefficient terminates index, image coefficient sub-block is swept The image coefficient sub-block scanning index for retouching the maximum image coefficient sub-block of index is indexed as the termination of described image coefficient sub-block.
In some embodiments of the invention, the second processor 440 is additionally operable to determine the mesh according to the hierarchical information The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient for marking image coefficient sub-block in coefficient layer terminate index, from And determine to belong to the image coefficient of the target factor layer in described image coefficient sub-block;
Wherein, described image coefficient sub-block coefficient starting index is described image coefficient sub-block in target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in all image coefficients;Described image coefficient sub-block coefficient is whole Only index is described image coefficient sub-block maximum image system of scanning index in all image coefficients of target factor layer Number sub-block coefficient scanning index;
Wherein, described image coefficient sub-block coefficient scanning index is in described image coefficient sub-block by given scanning sequency All image coefficients are scanned the index value of determination.
In some embodiments of the invention, the second processor 440 is additionally operable to determine the mesh according to the hierarchical information The coefficient sets starting index and coefficient group termination index of coefficient layer are marked, wherein, the coefficient sets starting index is the target system The scanning index of the minimum coefficient sets of scanning index in several layers;The coefficient group termination index is scanning in target factor layer Index the scanning index of maximum coefficient sets;According to the coefficient sets starting index of target factor layer and the coefficient sets Terminate image coefficient sub-block coefficient starting index and image coefficient that index determines image coefficient sub-block in the target factor layer Sub-block coefficient terminates index.
In some embodiments of the invention, the second processor 440 is additionally operable to comprising coefficient sets starting index institute In the image coefficient sub-block of image coefficient in the coefficient sets of instruction, the minimum image coefficient sub-block coefficient scanning rope of scanning index Draw and be defined as described image coefficient sub-block coefficient starting index;It will be indexed comprising the coefficient group termination in indicated coefficient sets Image coefficient image coefficient sub-block in, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as the figure As coefficient sub-block coefficient terminates index.
In some embodiments of the invention, the second processor 440 is additionally operable to determine the mesh according to the hierarchical information The target factor tomographic image coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient for marking coefficient layer terminate index; The target factor tomographic image coefficient block coefficient starting index is all image coefficients when institute in scanning described image coefficient block State the scanning index of the minimum image coefficient of scanning index in all image coefficients in target factor layer;The target factor layer Image coefficient block coefficient terminates index to scan during all image coefficients in described image coefficient block in the target factor layer All image coefficients in the maximum image coefficient of scanning index scanning index;According to the target of target factor layer Coefficient layer image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine the mesh The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient for marking image coefficient sub-block in coefficient layer terminate index.
In some embodiments of the invention, the second processor 440 is additionally operable to the scanning rope comprising described image coefficient In the image coefficient sub-block for drawing the image coefficient that index is originated more than or equal to the target factor tomographic image coefficient block coefficient, The minimum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient starting index;
Scanning index comprising described image coefficient is less than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block for the image coefficient for terminating index, the maximum image coefficient sub-block coefficient scanning index of scanning index is determined Terminate and index for described image coefficient sub-block coefficient.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage Medium can include:ROM, RAM, disk or CD etc..
The determination method and device of the image coefficient provided above the embodiment of the present invention are described in detail, this Apply specific case in text to be set forth the principle and embodiment of the present invention, the explanation of above example is only intended to Help to understand method and its core concept of the invention;Simultaneously for those of ordinary skill in the art, the think of according to the present invention Think, will change in specific embodiments and applications, in summary, this specification content should not be construed as pair The limitation of the present invention.

Claims (52)

1. a kind of coding method of image, it is characterised in that including:
The hierarchical information of image coefficient block is determined, described image coefficient block includes multiple images coefficient sub-block, described image coefficient Sub-block includes multiple images coefficient, and the hierarchical information is the information of mark layered boundary, and the hierarchical information is including for marking Remember the information of the scanning index of each layered boundary in described image coefficient block;
Described image coefficient sub-block in target factor layer is determined according to the hierarchical information, wherein, the target factor layer is One in multiple images coefficient hierarchical after the described image coefficient block layering that the hierarchical information is reflected, the target system Described image coefficient sub-block in several layers refers to the described image for wherein having at least one image coefficient to belong to the target factor layer Coefficient sub-block;
It is determined that belonging to the described image coefficient of the target factor layer in the image coefficient sub-block in target factor layer;
Described image coefficient is encoded.
2. according to the method described in claim 1, it is characterised in that the hierarchical information for determining image coefficient block, including:
Configure the hierarchical information, and the hierarchical information of configuration write into code stream, or, using it is preset with decoding end about The fixed hierarchical information.
3. method according to claim 1 or 2, it is characterised in that the image coefficient in described image coefficient block constitutes many Individual coefficient sets, are arranged for 0 degree to the right in 45 degree of straight line in the counterclockwise direction wherein each coefficient sets are included with level for reference One row image coefficient of row;The described image coefficient sub-block determined according to the hierarchical information in target factor layer, including:
The coefficient sets starting index and coefficient group termination index of the target factor layer are determined according to the hierarchical information, wherein, The coefficient sets starting index is the scanning index of the coefficient sets of scanning index minimum in target factor layer;The coefficient sets Terminate scanning index of the index for the maximum coefficient sets of scanning index in target factor layer;
According to coefficient sets starting index and coefficient group termination index, the image included in the target factor layer is determined The image coefficient sub-block starting index and image coefficient sub-block of coefficient sub-block terminate index, described image coefficient sub-block starting index To scan the image of scanning index minimum in target factor layer during all image coefficient sub-blocks in described image coefficient block The scanning index of coefficient sub-block;It is all image systems in scanning described image coefficient block that described image coefficient sub-block, which terminates index, Count the scanning index of the maximum image coefficient sub-block of scanning index in target factor layer during sub-block;
Index is terminated according to described image coefficient sub-block starting index and image coefficient sub-block, determined in the target factor layer All image coefficient sub-blocks;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are scanned by given scanning sequency The index value of determination;
The scanning index of described image coefficient sub-block is to all image coefficients in described image coefficient block by given scanning sequency Sub-block is scanned the index value of determination.
4. method according to claim 3, it is characterised in that the hierarchical information includes being used to mark described image coefficient The information of the information of the scanning index of multiple coefficient sets in block on the layered boundary of all image coefficient layerings;
It is described to determine that the coefficient sets starting index and coefficient group termination of the target factor layer are indexed according to the hierarchical information, bag Include:
It is used to mark multiple coefficient sets on the layered boundary that all image coefficients are layered in described image coefficient block according to described The information of information of scanning index determine the coefficient sets starting index and coefficient group termination index of target factor layer.
5. method according to claim 4, it is characterised in that described according to coefficient sets starting index and the coefficient Group termination is indexed, and determines the image coefficient sub-block starting index and image of image coefficient sub-block included in the target factor layer Coefficient sub-block terminates index, including:
Rope will be scanned in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets The scanning index for drawing the image coefficient sub-block of minimum is indexed as the starting of described image coefficient sub-block;
Rope will be scanned in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination The scanning index for drawing the image coefficient sub-block of maximum is indexed as the termination of described image coefficient sub-block.
6. method according to claim 1 or 2, it is characterised in that described that target factor is determined according to the hierarchical information Described image coefficient sub-block in layer, including:
The target factor tomographic image coefficient block coefficient starting index and mesh of the target factor layer are determined according to the hierarchical information Mark coefficient layer image coefficient block coefficient and terminate index;The target factor tomographic image coefficient block coefficient starting index is described for scanning The minimum figure of scanning index in all image coefficients during all image coefficients in image coefficient block in the target factor layer As the scanning index of coefficient;The target factor tomographic image coefficient block coefficient terminates index in scanning described image coefficient block The scanning rope of the maximum image coefficient of scanning index in all image coefficients during all image coefficients in the target factor layer Draw;
It is whole according to target factor tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient Only index determines the image coefficient sub-block starting index and image coefficient for the image coefficient sub-block being located in target factor layer Sub-block terminates index, so that it is determined that all image coefficient sub-blocks in target factor layer;Described image coefficient sub-block is originated Index during for all image coefficient sub-blocks in scanning described image coefficient block scanning index in target factor layer minimum The scanning index of image coefficient sub-block;It is all figures in scanning described image coefficient block that described image coefficient sub-block, which terminates index, During as coefficient sub-block in target factor layer the maximum image coefficient sub-block of scanning index scanning index;
The scanning index of described image coefficient is that all image coefficients in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all image coefficients in described image coefficient block by given scanning sequency Sub-block is scanned the index value of determination.
7. method according to claim 6, it is characterised in that the hierarchical information includes being used to mark described image coefficient The information of the information of the scanning index of multiple images coefficient in block on the layered boundary of all image coefficient layerings;
It is described to determine that the target factor tomographic image coefficient block coefficient of the target factor layer originates index according to the hierarchical information Terminate and index with target factor tomographic image coefficient block coefficient, including:
According to the multiple images coefficient on the layered boundary that all image coefficients are layered in the mark described image coefficient block The information of the information of scanning index determines the target factor tomographic image coefficient block coefficient starting index and mesh of the target factor layer Mark coefficient layer image coefficient block coefficient and terminate index.
8. method according to claim 7, it is characterised in that described according to the target factor tomographic image coefficient block coefficient Starting index and the target factor tomographic image coefficient block coefficient terminate the image that index determines to be located in target factor layer The image coefficient sub-block starting index and image coefficient sub-block of coefficient sub-block terminate index, including:
By comprising image coefficient in have image coefficient scanning index be more than or equal to the target factor tomographic image coefficient In the image coefficient sub-block of the image coefficient of block coefficient starting index, the image coefficient of the scanning index minimum of image coefficient sub-block The image coefficient sub-block scanning index of sub-block is originated as described image coefficient sub-block and indexed;
By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image coefficient Block coefficient is terminated in the image coefficient sub-block of the image coefficient of index, the image coefficient of the scanning index maximum of image coefficient sub-block The image coefficient sub-block scanning index of sub-block is terminated as described image coefficient sub-block and indexed.
9. method according to claim 8, it is characterised in that be located at the image system in target factor layer described in the determination Belong to the described image coefficient of the target factor layer in number sub-block, including:
The image coefficient sub-block coefficient for determining image coefficient sub-block in the target factor layer according to the hierarchical information originates rope Draw to terminate with image coefficient sub-block coefficient and index, so that it is determined that belonging to the figure of the target factor layer in described image coefficient sub-block As coefficient;
Described image coefficient sub-block coefficient starting index is all images of the described image coefficient sub-block in target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in coefficient;Described image coefficient sub-block coefficient terminates index for institute State image coefficient sub-block maximum image coefficient sub-block coefficient of scanning index in all image coefficients of target factor layer Scanning index;
Described image coefficient sub-block coefficient scanning index is to all images in described image coefficient sub-block by given scanning sequency Coefficient is scanned the index value of determination.
10. method according to claim 9, it is characterised in that described that the target system is determined according to the hierarchical information The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index in several layers, including:
The target system is determined according to the coefficient sets starting index and coefficient group termination index of target factor layer The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index in several layers.
11. method according to claim 10, it is characterised in that the coefficient sets according to target factor layer Starting index and the coefficient group termination index the image coefficient sub-block system for determining image coefficient sub-block in the target factor layer Number starting index and image coefficient sub-block coefficient terminate index, including:
By in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets, rope is scanned The image coefficient sub-block coefficient scanning index for drawing minimum is defined as described image coefficient sub-block coefficient starting index;
By in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination, rope is scanned The image coefficient sub-block coefficient scanning index for drawing maximum is defined as described image coefficient sub-block coefficient termination index.
12. method according to claim 9, it is characterised in that described that the target system is determined according to the hierarchical information The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index in several layers, including:
According to the target factor tomographic image coefficient block coefficient starting index and target factor layer of target factor layer Image coefficient block coefficient terminates the image coefficient sub-block coefficient starting that index determines image coefficient sub-block in the target factor layer Index and image coefficient sub-block coefficient terminate index.
13. method according to claim 12, it is characterised in that the target system according to target factor layer Number tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine the target The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index, bag in coefficient layer Include:
Scanning index comprising described image coefficient is originated more than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block of the image coefficient of index, the minimum image coefficient sub-block coefficient scanning index of scanning index is defined as institute State image coefficient sub-block coefficient starting index;
Scanning index comprising described image coefficient is terminated less than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block of the image coefficient of index, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as institute State image coefficient sub-block coefficient and terminate index.
14. a kind of coding/decoding method of image, it is characterised in that including:
The hierarchical information of image coefficient block is determined, described image coefficient block includes multiple images coefficient sub-block, described image coefficient Sub-block includes multiple images coefficient, and the hierarchical information is the information of mark layered boundary, and the hierarchical information is including for marking Remember the information of the scanning index of each layered boundary in described image coefficient block;
Described image coefficient sub-block in target factor layer is determined according to the hierarchical information, wherein, the target factor layer is One in multiple images coefficient hierarchical after the described image coefficient block layering that the hierarchical information is reflected, the target system Described image coefficient sub-block in several layers refers to the described image for wherein having at least one image coefficient to belong to the target factor layer Coefficient sub-block;
It is determined that belonging to the described image coefficient of the target factor layer in the image coefficient sub-block in target factor layer;
Decoded bit stream is to obtain described image coefficient.
15. method according to claim 14, it is characterised in that the hierarchical information of the determination image coefficient block, including:
The hierarchical information is parsed from code stream, or uses the preset hierarchical information arranged with coding side.
16. the method according to claims 14 or 15, it is characterised in that the image coefficient in described image coefficient block is constituted Multiple coefficient sets, wherein each coefficient sets include with level to the right 0 degree be with reference in the counterclockwise direction in 45 degree of straight line One row image coefficient of arrangement;The described image coefficient sub-block determined according to the hierarchical information in target factor layer, bag Include:
The coefficient sets starting index and coefficient group termination index of the target factor layer are determined according to the hierarchical information, wherein, The coefficient sets starting index is the scanning index of the coefficient sets of scanning index minimum in target factor layer;The coefficient sets Terminate scanning index of the index for the maximum coefficient sets of scanning index in target factor layer;
According to coefficient sets starting index and coefficient group termination index, the image included in the target factor layer is determined The image coefficient sub-block starting index and image coefficient sub-block of coefficient sub-block terminate index, described image coefficient sub-block starting index To scan the image of scanning index minimum in target factor layer during all image coefficient sub-blocks in described image coefficient block The scanning index of coefficient sub-block;It is all image systems in scanning described image coefficient block that described image coefficient sub-block, which terminates index, Count the scanning index of the maximum image coefficient sub-block of scanning index in target factor layer during sub-block;
Index is terminated according to described image coefficient sub-block starting index and image coefficient sub-block, determined in the target factor layer All image coefficient sub-blocks;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are scanned by given scanning sequency The index value of determination;
The scanning index of described image coefficient sub-block is to all image coefficients in described image coefficient block by given scanning sequency Sub-block is scanned the index value of determination.
17. method according to claim 16, it is characterised in that the hierarchical information includes being used to mark described image system The information of the information of the scanning index of multiple coefficient sets in several piece on the layered boundary of all image coefficient layerings;
It is described to determine that the coefficient sets starting index and coefficient group termination of the target factor layer are indexed according to the hierarchical information, bag Include:
It is used to mark multiple coefficient sets on the layered boundary that all image coefficients are layered in described image coefficient block according to described The information of information of scanning index determine the coefficient sets starting index and coefficient group termination index of target factor layer.
18. method according to claim 17, it is characterised in that described according to coefficient sets starting index and the system Array terminates index, determines the image coefficient sub-block starting index of the image coefficient sub-block included in the target factor layer and schemes Indexed as coefficient sub-block is terminated, including:
Rope will be scanned in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets The scanning index for drawing the image coefficient sub-block of minimum is indexed as the starting of described image coefficient sub-block;
Rope will be scanned in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination The scanning index for drawing the image coefficient sub-block of maximum is indexed as the termination of described image coefficient sub-block;
The scanning index of described image coefficient sub-block is to all image coefficients in described image coefficient block by given scanning sequency Sub-block is scanned the index value of determination.
19. the method according to claims 14 or 15, it is characterised in that described that target system is determined according to the hierarchical information Described image coefficient sub-block in several layers, including:
The target factor tomographic image coefficient block coefficient starting index and mesh of the target factor layer are determined according to the hierarchical information Mark coefficient layer image coefficient block coefficient and terminate index;The target factor tomographic image coefficient block coefficient starting index is described for scanning The minimum figure of scanning index in all image coefficients during all image coefficients in image coefficient block in the target factor layer As the scanning index of coefficient;The target factor tomographic image coefficient block coefficient terminates index in scanning described image coefficient block The scanning rope of the maximum image coefficient of scanning index in all image coefficients during all image coefficients in the target factor layer Draw;
It is whole according to target factor tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient Only index determines the image coefficient sub-block starting index and image coefficient for the image coefficient sub-block being located in target factor layer Sub-block terminates index, so that it is determined that all image coefficient sub-blocks in target factor layer;Described image coefficient sub-block is originated Index during for all image coefficient sub-blocks in scanning described image coefficient block scanning index in target factor layer minimum The scanning index of image coefficient sub-block;It is all figures in scanning described image coefficient block that described image coefficient sub-block, which terminates index, During as coefficient sub-block in target factor layer the maximum image coefficient sub-block of scanning index scanning index;
The scanning index of described image coefficient is that all image coefficients in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all image coefficients in described image coefficient block by given scanning sequency Sub-block is scanned the index value of determination.
20. method according to claim 19, it is characterised in that the hierarchical information includes being used to mark described image system The information of the information of the scanning index of multiple images coefficient in several piece on the layered boundary of all image coefficient layerings;
It is described to determine that the target factor tomographic image coefficient block coefficient of the target factor layer originates index according to the hierarchical information Terminate and index with target factor tomographic image coefficient block coefficient, including:
According to the multiple images coefficient on the layered boundary that all image coefficients are layered in the mark described image coefficient block The information of the information of scanning index determines the target factor tomographic image coefficient block coefficient starting index and mesh of the target factor layer Mark coefficient layer image coefficient block coefficient and terminate index.
21. method according to claim 20, it is characterised in that described according to the target factor tomographic image coefficient block system Number starting index and the target factor tomographic image coefficient block coefficient terminate the figure that index determines to be located in target factor layer As the image coefficient sub-block starting index and image coefficient sub-block termination index of coefficient sub-block, including:
By comprising image coefficient in have image coefficient scanning index be more than or equal to the target factor tomographic image coefficient In the image coefficient sub-block of the image coefficient of block coefficient starting index, the image coefficient of the scanning index minimum of image coefficient sub-block The image coefficient sub-block scanning index of sub-block is originated as described image coefficient sub-block and indexed;
By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image coefficient Block coefficient is terminated in the image coefficient sub-block of the image coefficient of index, the image coefficient of the scanning index maximum of image coefficient sub-block The image coefficient sub-block scanning index of sub-block is terminated as described image coefficient sub-block and indexed.
22. method according to claim 21, it is characterised in that be located at the image in target factor layer described in the determination Belong to the described image coefficient of the target factor layer in coefficient sub-block, including:
The image coefficient sub-block coefficient for determining image coefficient sub-block in the target factor layer according to the hierarchical information originates rope Draw to terminate with image coefficient sub-block coefficient and index, so that it is determined that belonging to the figure of the target factor layer in described image coefficient sub-block As coefficient;
Described image coefficient sub-block coefficient starting index is all images of the described image coefficient sub-block in target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in coefficient;Described image coefficient sub-block coefficient terminates index for institute State image coefficient sub-block maximum image coefficient sub-block coefficient of scanning index in all image coefficients of target factor layer Scanning index;
Described image coefficient sub-block coefficient scanning index is to all images in described image coefficient sub-block by given scanning sequency Coefficient is scanned the index value of determination.
23. method according to claim 22, it is characterised in that described that the target system is determined according to the hierarchical information The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index in several layers, including:
The target system is determined according to the coefficient sets starting index and coefficient group termination index of target factor layer The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index in several layers.
24. method according to claim 23, it is characterised in that the coefficient sets according to target factor layer Starting index and the coefficient group termination index the image coefficient sub-block system for determining image coefficient sub-block in the target factor layer Number starting index and image coefficient sub-block coefficient terminate index, including:
By in the image coefficient sub-block that the image coefficient in the coefficient sets indicated by indexing is originated comprising the coefficient sets, rope is scanned The image coefficient sub-block coefficient scanning index for drawing minimum is defined as described image coefficient sub-block coefficient starting index;
By in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination, rope is scanned The image coefficient sub-block coefficient scanning index for drawing maximum is defined as described image coefficient sub-block coefficient termination index.
25. method according to claim 22, it is characterised in that described that the target system is determined according to the hierarchical information The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index in several layers, including:
According to the target factor tomographic image coefficient block coefficient starting index and target factor layer of target factor layer Image coefficient block coefficient terminates the image coefficient sub-block coefficient starting that index determines image coefficient sub-block in the target factor layer Index and image coefficient sub-block coefficient terminate index.
26. method according to claim 25, it is characterised in that the target system according to target factor layer Number tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine the target The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index, bag in coefficient layer Include:
Scanning index comprising described image coefficient is originated more than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block of the image coefficient of index, the minimum image coefficient sub-block coefficient scanning index of scanning index is defined as institute State image coefficient sub-block coefficient starting index;
Scanning index comprising described image coefficient is terminated less than or equal to the target factor tomographic image coefficient block coefficient In the image coefficient sub-block of the image coefficient of index, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as institute State image coefficient sub-block coefficient and terminate index.
27. a kind of code device, it is characterised in that including:
First determining unit, the hierarchical information for determining image coefficient block, described image coefficient block includes multiple images coefficient Sub-block;Described image coefficient sub-block includes multiple images coefficient, and the hierarchical information is the information of mark layered boundary, described point Layer information includes the information for being used to mark the scanning index of each layered boundary in described image coefficient block;
Second determining unit, described in being determined according to the hierarchical information that first determining unit is determined in target factor layer Image coefficient sub-block, wherein, after the described image coefficient block layering that the target factor layer is reflected by the hierarchical information One in multiple images coefficient hierarchical, the described image coefficient sub-block in target factor layer, which refers to wherein, at least one figure As coefficient belongs to the described image coefficient sub-block of the target factor layer;
3rd determining unit, for determining the image coefficient sub-block being located in target factor layer that second determining unit is determined In belong to the described image coefficient of target factor layer;
Coding unit, for being encoded to the image coefficient that the 3rd determining unit is determined.
28. code device according to claim 27, it is characterised in that
First determining unit, code stream is write for configuring the hierarchical information, and by the hierarchical information of configuration, or Person, uses the preset hierarchical information arranged with decoding end.
29. the code device according to claim 27 or 28, it is characterised in that the image coefficient in described image coefficient block Constitute multiple coefficient sets, wherein each coefficient sets include with level to the right 0 degree be with reference to being in 45 degree in the counterclockwise direction A row image coefficient arranged in a straight line;
Second determining unit includes:
First determination subelement, the coefficient sets starting for determining the target factor layer according to the hierarchical information indexes and is Array terminates index, wherein, the coefficient sets starting index is the minimum coefficient sets of scanning index in target factor layer Scanning index;The coefficient group termination index is the scanning index of the coefficient sets of scanning index maximum in target factor layer;
Second determination subelement, for the coefficient sets starting index determined according to first determination subelement and the coefficient sets Index is terminated, determines that the image coefficient sub-block starting of the image coefficient sub-block included in the target factor layer is indexed and image system Number sub-block terminates index, and described image coefficient sub-block starting index is all image coefficients in scanning described image coefficient block During block in target factor layer the minimum image coefficient sub-block of scanning index scanning index;Described image coefficient sub-block is terminated Index during for all image coefficient sub-blocks in scanning described image coefficient block scanning index in target factor layer maximum The scanning index of image coefficient sub-block;
3rd determination subelement, for the image coefficient sub-block starting index and image determined according to second determination subelement Coefficient sub-block terminates index, determines all image coefficient sub-blocks in the target factor layer;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are scanned by given scanning sequency The index value of determination;
The scanning index of described image coefficient sub-block is to all image coefficients in described image coefficient block by given scanning sequency Sub-block is scanned the index value of determination.
30. code device according to claim 29, it is characterised in that the hierarchical information includes being used to mark the figure As the information of the information of the scanning index of multiple coefficient sets in coefficient block on the layered boundary of all image coefficient layerings;
First determination subelement, for being used to mark all image coefficient layerings in described image coefficient block according to described The information of the information of the scanning index of multiple coefficient sets on layered boundary determines the coefficient sets starting rope of the target factor layer Draw and coefficient group termination index.
31. code device according to claim 30, it is characterised in that
Second determination subelement, for the image coefficient that will be originated comprising the coefficient sets in the coefficient sets indicated by indexing Image coefficient sub-block in the scanning index of the minimum image coefficient sub-block of scanning index be used as the starting of described image coefficient sub-block Index;Rope will be scanned in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination The scanning index for drawing the image coefficient sub-block of maximum is indexed as the termination of described image coefficient sub-block.
32. the code device according to claim 27 or 28, it is characterised in that second determining unit includes:
4th determination subelement, the target factor tomographic image coefficient for determining the target factor layer according to the hierarchical information Block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image coefficient block coefficient Starting index is all image coefficients in target factor layer when scanning all image coefficients in described image coefficient block The scanning index of the minimum image coefficient of middle scanning index;It is scanning that the target factor tomographic image coefficient block coefficient, which terminates index, Scanning index is maximum in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Image coefficient scanning index;
5th determination subelement, the target factor tomographic image coefficient block coefficient for being determined according to the 4th determination subelement rises Begin to index and the target factor tomographic image coefficient block coefficient terminates index and determines the image system in target factor layer The image coefficient sub-block starting index and image coefficient sub-block of number sub-block terminate index, so that it is determined that in target factor layer All image coefficient sub-blocks;Described image coefficient sub-block starting index is all image coefficients in scanning described image coefficient block During sub-block in target factor layer the minimum image coefficient sub-block of scanning index scanning index;Described image coefficient sub-block is whole Only scanning index is maximum in the target factor layer to scan during all image coefficient sub-blocks in described image coefficient block for index Image coefficient sub-block scanning index;
The scanning index of described image coefficient is that all image coefficients in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all image coefficients in described image coefficient block by given scanning sequency Sub-block is scanned the index value of determination.
33. code device according to claim 32, it is characterised in that the hierarchical information includes being used to mark the figure As the information of the information of the scanning index of the multiple images coefficient in coefficient block on the layered boundary of all image coefficient layerings;
4th determination subelement, for according to the layering that all image coefficients are layered in the mark described image coefficient block The information of the information of the scanning index of borderline multiple images coefficient determines the target factor tomographic image of the target factor layer Coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index.
34. code device according to claim 33, it is characterised in that
5th determination subelement, for by comprising image coefficient in have image coefficient scanning index be more than or equal to In the image coefficient sub-block of the image coefficient of the target factor tomographic image coefficient block coefficient starting index, image coefficient sub-block The image coefficient sub-block scanning index of the minimum image coefficient sub-block of scanning index is originated as described image coefficient sub-block to be indexed; By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image coefficient block system Number is terminated in the image coefficient sub-block of the image coefficient of index, the image coefficient sub-block of the scanning index maximum of image coefficient sub-block Image coefficient sub-block scanning index be used as described image coefficient sub-block terminate index.
35. code device according to claim 34, it is characterised in that
3rd determining unit, the figure for determining image coefficient sub-block in the target factor layer according to the hierarchical information As coefficient sub-block coefficient starting index and image coefficient sub-block coefficient terminate index, so that it is determined that belonging in described image coefficient sub-block In the image coefficient of target factor layer;
Described image coefficient sub-block coefficient starting index is all images of the described image coefficient sub-block in target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in coefficient;Described image coefficient sub-block coefficient terminates index for institute State image coefficient sub-block maximum image coefficient sub-block coefficient of scanning index in all image coefficients of target factor layer Scanning index;
Described image coefficient sub-block coefficient scanning index is to all images in described image coefficient sub-block by given scanning sequency Coefficient is scanned the index value of determination.
36. code device according to claim 35, it is characterised in that the 3rd determining unit includes:
6th determination subelement, the coefficient sets starting for determining the target factor layer according to the hierarchical information indexes and is Array terminates index, wherein, the coefficient sets starting index is the minimum coefficient sets of scanning index in target factor layer Scanning index;The coefficient group termination index is the scanning index of the coefficient sets of scanning index maximum in target factor layer;
7th determination subelement, for the coefficient sets of the target factor layer determined according to the 6th determination subelement Starting index and the coefficient group termination index the image coefficient sub-block system for determining image coefficient sub-block in the target factor layer Number starting index and image coefficient sub-block coefficient terminate index.
37. code device according to claim 36, it is characterised in that
7th determination subelement, for the image coefficient that will be originated comprising the coefficient sets in the coefficient sets indicated by indexing Image coefficient sub-block in, the minimum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block Coefficient starting index;By the image coefficient sub-block of the image coefficient indexed comprising the coefficient group termination in indicated coefficient sets In, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient and terminates index.
38. code device according to claim 35, it is characterised in that the 3rd determining unit includes:
8th determination subelement, the target factor tomographic image coefficient for determining the target factor layer according to the hierarchical information Block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image coefficient block coefficient Starting index is all image coefficients in target factor layer when scanning all image coefficients in described image coefficient block The scanning index of the minimum image coefficient of middle scanning index;It is scanning that the target factor tomographic image coefficient block coefficient, which terminates index, Scanning index is maximum in all image coefficients during all image coefficients in described image coefficient block in the target factor layer Image coefficient scanning index;
9th determination subelement, for originating rope according to the target factor tomographic image coefficient block coefficient of target factor layer Draw and terminate the figure that index determines image coefficient sub-block in the target factor layer with the target factor tomographic image coefficient block coefficient As coefficient sub-block coefficient starting index and image coefficient sub-block coefficient terminate index.
39. the code device according to claim 38, it is characterised in that
9th determination subelement, for the scanning index comprising described image coefficient to be more than or equal into the target system In the image coefficient sub-block of the image coefficient of number tomographic image coefficient block coefficient starting index, minimum image coefficient of scanning index Block coefficient scanning index is defined as described image coefficient sub-block coefficient starting index;The scanning index of described image coefficient will be included In image coefficient sub-block less than or equal to the image coefficient that the target factor tomographic image coefficient block coefficient terminates index, sweep Retouch the maximum image coefficient sub-block coefficient scanning index of index and be defined as described image coefficient sub-block coefficient termination index.
40. a kind of decoding apparatus, it is characterised in that including:
4th determining unit, the hierarchical information for determining image coefficient block, described image coefficient block includes multiple images coefficient Sub-block, described image coefficient sub-block includes multiple images coefficient, and the hierarchical information is the information of mark layered boundary, described point Layer information includes the information for being used to mark the scanning index of each layered boundary in described image coefficient block;
5th determining unit, for described image coefficient in the target factor layer that is determined according to the 4th determining unit Block, wherein, the multiple images system after the described image coefficient block layering that the target factor layer is reflected by the hierarchical information One in number layering, the described image coefficient sub-block in target factor layer, which refers to wherein, has at least one image coefficient to belong to The described image coefficient sub-block of the target factor layer;
6th determining unit, for the image coefficient for determining described in the 5th determining unit determination to be located in target factor layer Belong to the described image coefficient of the target factor layer in sub-block;
Decoding unit, for decoded bit stream to obtain the image coefficient that the 6th determining unit is determined.
41. decoding apparatus according to claim 40, it is characterised in that
4th determining unit, for parsing the hierarchical information from code stream, or using it is preset with coding side about The fixed hierarchical information.
42. the decoding apparatus according to claim 40 or 41, it is characterised in that the image coefficient in described image coefficient block Constitute multiple coefficient sets, wherein each coefficient sets include with level to the right 0 degree be with reference to being in 45 degree in the counterclockwise direction A row image coefficient arranged in a straight line;
5th determining unit includes:
Tenth determination subelement, the coefficient sets starting for determining the target factor layer according to the hierarchical information indexes and is Array terminates index, wherein, the coefficient sets starting index is the minimum coefficient sets of scanning index in target factor layer Scanning index;The coefficient group termination index is the scanning index of the coefficient sets of scanning index maximum in target factor layer;
11st determination subelement, for the coefficient sets starting index determined according to the tenth determination subelement and the coefficient Group termination is indexed, and determines the image coefficient sub-block starting index and image of image coefficient sub-block included in the target factor layer Coefficient sub-block terminates index, and described image coefficient sub-block starting index is all image coefficients in scanning described image coefficient block During sub-block in target factor layer the minimum image coefficient sub-block of scanning index scanning index;Described image coefficient sub-block is whole Only scanning index is maximum in the target factor layer to scan during all image coefficient sub-blocks in described image coefficient block for index Image coefficient sub-block scanning index;
12nd determination subelement, for the image coefficient sub-block starting index that is determined according to the 11st determination subelement and Image coefficient sub-block terminates index, determines all image coefficient sub-blocks in the target factor layer;
The scanning index of the coefficient sets is that all coefficient sets in described image coefficient block are scanned by given scanning sequency The index value of determination;
The scanning index of described image coefficient sub-block is to all image coefficients in described image coefficient block by given scanning sequency Sub-block is scanned the index value of determination.
43. decoding apparatus according to claim 42, it is characterised in that the hierarchical information includes being used to mark the figure As the information of the information of the scanning index of multiple coefficient sets in coefficient block on the layered boundary of all image coefficient layerings;
Tenth determination subelement, for being used to mark all image coefficient layerings in described image coefficient block according to described The information of the information of the scanning index of multiple coefficient sets on layered boundary determines the coefficient sets starting rope of the target factor layer Draw and coefficient group termination index.
44. decoding apparatus according to claim 43, it is characterised in that
11st determination subelement, for the image system that will be originated comprising the coefficient sets in the coefficient sets indicated by indexing The scanning index of the minimum image coefficient sub-block of scanning index rises as described image coefficient sub-block in several image coefficient sub-blocks Begin index;It will be scanned in the image coefficient sub-block that the image coefficient in indicated coefficient sets is indexed comprising the coefficient group termination The scanning index for indexing maximum image coefficient sub-block is indexed as the termination of described image coefficient sub-block;
The scanning index of described image coefficient sub-block is to all image coefficients in described image coefficient block by given scanning sequency Sub-block is scanned the index value of determination.
45. the decoding apparatus according to claim 40 or 41, it is characterised in that the 5th determining unit includes:
13rd determination subelement, the target factor tomographic image system for determining the target factor layer according to the hierarchical information Several piece coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image coefficient block system Number starting index is all image systems in target factor layer when scanning all image coefficients in described image coefficient block The scanning index of the minimum image coefficient of scanning index in number;The target factor tomographic image coefficient block coefficient terminates index to sweep Retouch in all image coefficients during all image coefficients in described image coefficient block in the target factor layer scanning index most The scanning index of big image coefficient;
14th determination subelement, for the target factor tomographic image coefficient block system determined according to the 13rd determination subelement Number starting index and the target factor tomographic image coefficient block coefficient terminate the figure that index determines to be located in target factor layer As the image coefficient sub-block starting index and image coefficient sub-block of coefficient sub-block terminate index, so that it is determined that target factor layer In all image coefficient sub-blocks;Described image coefficient sub-block starting index is all images in scanning described image coefficient block During coefficient sub-block in target factor layer the minimum image coefficient sub-block of scanning index scanning index;Described image coefficient Scanning index in target factor layer when termination of a block index is all image coefficient sub-block in scanning described image coefficient block The scanning index of maximum image coefficient sub-block;
The scanning index of described image coefficient is that all image coefficients in described image coefficient block are carried out by given scanning sequency Scan the index value determined;
The scanning index of described image coefficient sub-block is to all image coefficients in described image coefficient block by given scanning sequency Sub-block is scanned the index value of determination.
46. decoding apparatus according to claim 45, it is characterised in that the hierarchical information includes being used to mark the figure As the information of the information of the scanning index of the multiple images coefficient in coefficient block on the layered boundary of all image coefficient layerings;
13rd determination subelement, for according to point that all image coefficients are layered in the mark described image coefficient block The information of the information of the scanning index of the borderline multiple images coefficient of layer determines the target factor layer figure of the target factor layer As coefficient block coefficient starting index and target factor tomographic image coefficient block coefficient terminate index.
47. decoding apparatus according to claim 46, it is characterised in that
14th determination subelement, for by comprising image coefficient in have image coefficient scanning index be more than or wait In the image coefficient sub-block for the image coefficient that index is originated in the target factor tomographic image coefficient block coefficient, image coefficient sub-block The image coefficient sub-block scanning index of the minimum image coefficient sub-block of scanning index be used as described image coefficient sub-block starting rope Draw;By comprising image coefficient in have image coefficient scanning index be less than or equal to the target factor tomographic image coefficient block Coefficient is terminated in the image coefficient sub-block of the image coefficient of index, and the image coefficient that the scanning index of image coefficient sub-block is maximum is sub The image coefficient sub-block scanning index of block is terminated as described image coefficient sub-block and indexed.
48. decoding apparatus according to claim 47, it is characterised in that
6th determining unit, the figure for determining image coefficient sub-block in the target factor layer according to the hierarchical information As coefficient sub-block coefficient starting index and image coefficient sub-block coefficient terminate index, so that it is determined that belonging in described image coefficient sub-block In the image coefficient of target factor layer;
Described image coefficient sub-block coefficient starting index is all images of the described image coefficient sub-block in target factor layer The minimum image coefficient sub-block coefficient scanning index of scanning index in coefficient;Described image coefficient sub-block coefficient terminates index for institute State image coefficient sub-block maximum image coefficient sub-block coefficient of scanning index in all image coefficients of target factor layer Scanning index;
Described image coefficient sub-block coefficient scanning index is to all images in described image coefficient sub-block by given scanning sequency Coefficient is scanned the index value of determination.
49. decoding apparatus according to claim 48, it is characterised in that the 6th determining unit includes:
15th determination subelement, for determined according to the hierarchical information target factor layer coefficient sets starting index and Coefficient group termination is indexed, wherein, the coefficient sets starting index is the minimum coefficient sets of scanning index in target factor layer Scanning index;The coefficient group termination index is the scanning rope of the coefficient sets of scanning index maximum in target factor layer Draw;
16th determination subelement, for the system of the target factor layer determined according to the 15th determination subelement Array starting index and the coefficient group termination index image coefficient for determining image coefficient sub-block in the target factor layer Block coefficient starting index and image coefficient sub-block coefficient terminate index.
50. decoding apparatus according to claim 49, it is characterised in that
16th determination subelement, for the image system that will be originated comprising the coefficient sets in the coefficient sets indicated by indexing In several image coefficient sub-blocks, the minimum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient Block coefficient starting index;By image coefficient of the image coefficient indexed comprising the coefficient group termination in indicated coefficient sets In block, the maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient and terminates rope Draw.
51. decoding apparatus according to claim 48, it is characterised in that the 6th determining unit includes:
17th determination subelement, the target factor tomographic image system for determining the target factor layer according to the hierarchical information Several piece coefficient starting index and target factor tomographic image coefficient block coefficient terminate index;The target factor tomographic image coefficient block system Number starting index is all image systems in target factor layer when scanning all image coefficients in described image coefficient block The scanning index of the minimum image coefficient of scanning index in number;The target factor tomographic image coefficient block coefficient terminates index to sweep Retouch in all image coefficients during all image coefficients in described image coefficient block in the target factor layer scanning index most The scanning index of big image coefficient;
18th determination subelement, for the target system of the target factor layer determined according to the 17th determination subelement Number tomographic image coefficient block coefficient starting index and the target factor tomographic image coefficient block coefficient terminate index and determine the target The image coefficient sub-block coefficient starting index and image coefficient sub-block coefficient of image coefficient sub-block terminate index in coefficient layer.
52. decoding apparatus according to claim 51, it is characterised in that
18th determination subelement, for the scanning index comprising described image coefficient to be more than or equal into the target In the image coefficient sub-block of the image coefficient of coefficient layer image coefficient block coefficient starting index, the minimum image coefficient of scanning index Sub-block coefficient scanning index is defined as described image coefficient sub-block coefficient starting index;By the scanning rope comprising described image coefficient In the image coefficient sub-block for drawing the image coefficient that index is terminated less than or equal to the target factor tomographic image coefficient block coefficient, The maximum image coefficient sub-block coefficient scanning index of scanning index is defined as described image coefficient sub-block coefficient and terminates index.
CN201310004957.9A 2013-01-07 2013-01-07 A kind of coding of image, coding/decoding method and device Active CN103916670B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310004957.9A CN103916670B (en) 2013-01-07 2013-01-07 A kind of coding of image, coding/decoding method and device
PCT/CN2013/080297 WO2014106377A1 (en) 2013-01-07 2013-07-29 Coding and decoding method and device for image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310004957.9A CN103916670B (en) 2013-01-07 2013-01-07 A kind of coding of image, coding/decoding method and device

Publications (2)

Publication Number Publication Date
CN103916670A CN103916670A (en) 2014-07-09
CN103916670B true CN103916670B (en) 2017-08-04

Family

ID=51042014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310004957.9A Active CN103916670B (en) 2013-01-07 2013-01-07 A kind of coding of image, coding/decoding method and device

Country Status (2)

Country Link
CN (1) CN103916670B (en)
WO (1) WO2014106377A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116800968A (en) * 2022-03-17 2023-09-22 中兴通讯股份有限公司 Encoding method and apparatus, decoding method and apparatus, storage medium, and electronic apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101606391A (en) * 2007-01-18 2009-12-16 弗劳恩霍夫应用研究促进协会 Quality Scalable Video Streaming
JP2012119893A (en) * 2010-11-30 2012-06-21 Nippon Hoso Kyokai <Nhk> Intra prediction device, encoder, decoder and program
CN104390398A (en) * 2014-11-26 2015-03-04 珠海格力电器股份有限公司 Filling gun and filling system with same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390398A (en) * 2006-01-09 2009-03-18 诺基亚公司 Method and apparatus for entropy coding in fine-grained scalable video coding
KR101345287B1 (en) * 2007-10-12 2013-12-27 삼성전자주식회사 Scalable video encoding method and apparatus and scalable video decoding method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101606391A (en) * 2007-01-18 2009-12-16 弗劳恩霍夫应用研究促进协会 Quality Scalable Video Streaming
JP2012119893A (en) * 2010-11-30 2012-06-21 Nippon Hoso Kyokai <Nhk> Intra prediction device, encoder, decoder and program
CN104390398A (en) * 2014-11-26 2015-03-04 珠海格力电器股份有限公司 Filling gun and filling system with same

Also Published As

Publication number Publication date
WO2014106377A1 (en) 2014-07-10
CN103916670A (en) 2014-07-09

Similar Documents

Publication Publication Date Title
US11089316B2 (en) Method and apparatus for decoding a received set of encoded data
ES2659189T3 (en) Inheritance in multiple tree subdivision of sample matrix
KR102071764B1 (en) Picture coding and decoding methods and devices
CN104378640B (en) The method of decoding video signal
CN203057193U (en) Data processing apparatus
CN104604235B (en) Sending device and its method for video processing
CN105100814B (en) Image coding and decoding method and device
CN108337511A (en) Image encoding apparatus
CN107911699A (en) The coding method of video and equipment and non-transitory computer-readable medium
CN104853211A (en) Image compression method and apparatus employing various forms of reference pixel storage spaces
WO2021196392A1 (en) Point cloud geometry encoding method, decoding method, encoding apparatus, and decoding apparatus
CN106375766B (en) A kind of light field image compression method
CN103428499A (en) Coding unit partition method and multi-view video coding method using coding unit partition method
BR102013027082A2 (en) ENCODER, DECODER AND METHOD
CN103916670B (en) A kind of coding of image, coding/decoding method and device
CN103096052A (en) Image encoding and decoding method and device thereof
CN102801981A (en) Multipath compressed kernel parallel encoding control method on basis of JPEG-LS (Joint Pho-tographic Experts Group-Lossless Standard) algorithm
CN103999490B (en) The terminable position encoded and decoded method and apparatus based on space tree
CN102685531B (en) Depth and color code rate distribution method for three-dimensional video coding
CN108235018A (en) A kind of point cloud intraframe coding optimization method and device based on Lagrange multiplier model
CN112995758A (en) Point cloud data encoding method, decoding method, storage medium, and device
CN101389030B (en) Encoding method, system and video encoder
CN116126957A (en) Data format conversion method, device, equipment and storage medium
CN103763569A (en) HEVC fine grit parallel prediction method based on first input first output queues
CN103533331B (en) Encoding and decoding method and device for image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant