mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 05:20:30 +01:00
radeon/uvd: add Define Restart Interval to MJPEG bitstream reconstruction
It adds the capacity to decode MJPEG stream with DRI marker Signed-off-by: Leo Liu <leo.liu@amd.com>
This commit is contained in:
parent
3b02a8e9dd
commit
8514c5d078
1 changed files with 11 additions and 0 deletions
|
|
@ -1012,6 +1012,17 @@ static void get_mjpeg_slice_header(struct ruvd_decoder *dec, struct pipe_mjpeg_p
|
|||
|
||||
saved_size = size;
|
||||
|
||||
/* DRI */
|
||||
if (pic->slice_parameter.restart_interval) {
|
||||
buf[size++] = 0xff;
|
||||
buf[size++] = 0xdd;
|
||||
buf[size++] = 0x00;
|
||||
buf[size++] = 0x04;
|
||||
bs = (uint16_t*)&buf[size++];
|
||||
*bs = util_bswap16(pic->slice_parameter.restart_interval);
|
||||
saved_size = ++size;
|
||||
}
|
||||
|
||||
/* SOF */
|
||||
buf[size++] = 0xff;
|
||||
buf[size++] = 0xc0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue