Graphics processing unit and graphics processing method
A graphics processing unit and method with hardware for parameter setting and providing adaptive video coding. The hardware for parameter setting has a storage device storing a parameter database. The hardware for parameter setting further performs graphic analysis on a video received by the graphics processing unit to extract graphics features, and looks up the matching set of parameters in the parameter database in accordance with the graphics features. Accordingly, video coding hardware within the graphics processing unit performs video coding based on the matching set of parameters.
1. A graphics processing unit, comprising:
hardware for parameter setting, using a storage unit to store a parameter database, performing a graphic analysis on a video received by the graphics processing unit to extract graphics features, and looking up the parameter database in accordance with the graphics features to find a matching set of parameters; and
hardware for video coding, encoding the video based on the matching set of parameters,
wherein:
when not finding any set of parameters in the parameter database matching the graphics features, the hardware for parameter setting uses a variety of parameter combinations to evaluate the matching set of parameters based on video coding efficiency and fills the evaluated matching set of parameters into the parameter database; and
each set of parameters includes a frame type, a quantization parameter and a search range.
2. The graphics processing unit as claimed in claim 1 , wherein:
the hardware for parameter setting further updates the matching set of parameters with respect to a change in the graphics features of the video.
3. The graphics processing unit as claimed in claim 1 , wherein:
the hardware for parameter setting further extracts motion features and complex spatial texture features from color space data, YUV, of the video received by the graphics processing unit, and consults the parameter database accordingly.
4. The graphics processing unit as claimed in claim 3 , wherein:
the hardware for parameter setting further detects scene changes based on the color space data, YUV, of the video received by the graphics processing unit, and consults the parameter database accordingly.
5. The graphics processing unit as claimed in claim 1 , wherein:
the parameter database uses a lookup table to record multiple sets of parameters; and
each set of parameters further includes a coding unit size, a coding unit depth, a discrete cosine transform unit size, or a discrete cosine transform unit depth.
6. A graphics processing method, comprising:
using hardware for parameter setting to provide a storage unit to store a parameter database, and further using the hardware for parameter setting to perform a graphic analysis on a video received by a graphics processing unit to extract graphics features and consulting the parameter database in accordance with the graphics features to find a matching set of parameters; and
using hardware for video coding to encode the video based on the matching set of parameters,
wherein:
when not finding any set of parameters in the parameter database matching the graphics features, the hardware for parameter setting uses a variety of parameter combinations to evaluate the matching set of parameters based on video coding efficiency and fills the evaluated matching set of parameters into the parameter database; and
each set of parameters includes a frame type, a quantization parameter and a search range.
7. The graphics processing method as claimed in claim 6 , further comprising:
using the hardware for parameter setting to update the matching set of parameters with respect to a change in the graphics features of the video.
8. The graphics processing method as claimed in claim 6 , further comprising:
using the hardware for parameter setting to extract motion features and complex spatial texture features from color space data, YUV, of the video received by the graphics processing unit and consult the parameter database accordingly.
9. The graphics processing method as claimed in claim 8 , further comprising:
using the hardware for parameter setting to detect scene changes based on the color space data, YUV, of the video received by the graphics processing unit and consult the parameter database accordingly.
10. The graphics processing method as claimed in claim 6 , further comprising:
using the parameter database to build a lookup table to record multiple sets of parameters,
wherein each set of parameters further includes a coding unit size, a coding unit depth, a discrete cosine transform unit size, or a discrete cosine transform unit depth.