mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
radeon/vce: determine idr by pic type
Vaapi encode interface provides idr frame flags, where omx interface doesn't. Therefore, change to use picture type to determine idr frame, which will work for both interfaces. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
This commit is contained in:
parent
c87d91b9d8
commit
130e1d142f
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ void si_vce_52_get_param(struct rvce_encoder *enc, struct pipe_h264_enc_picture_
|
|||
enc->enc_pic.addrmode_arraymode_disrdo_distwoinstants = 0x00000201;
|
||||
else
|
||||
enc->enc_pic.addrmode_arraymode_disrdo_distwoinstants = 0x01000201;
|
||||
enc->enc_pic.is_idr = pic->is_idr;
|
||||
enc->enc_pic.is_idr = (pic->picture_type == PIPE_H264_ENC_PICTURE_TYPE_IDR);
|
||||
}
|
||||
|
||||
static void create(struct rvce_encoder *enc)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue