forked from marfrit/libva-v4l2-request-fourier
Add support for MPEG2 quantization matrices
This adds support for MPEG2 quantization matrices, which are optional given that fallback default matrices are used (on the kernel side) when no such matrix is provided. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
@@ -109,6 +109,14 @@ static VAStatus codec_store_buffer(struct request_data *driver_data,
|
||||
|
||||
case VAIQMatrixBufferType:
|
||||
switch (profile) {
|
||||
case VAProfileMPEG2Simple:
|
||||
case VAProfileMPEG2Main:
|
||||
memcpy(&surface_object->params.mpeg2.iqmatrix,
|
||||
buffer_object->data,
|
||||
sizeof(surface_object->params.mpeg2.iqmatrix));
|
||||
surface_object->params.mpeg2.iqmatrix_set = true;
|
||||
break;
|
||||
|
||||
case VAProfileH264Main:
|
||||
case VAProfileH264High:
|
||||
case VAProfileH264ConstrainedBaseline:
|
||||
|
||||
Reference in New Issue
Block a user