mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
HEVC: decode: Update Cropping Rectangle
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
This commit is contained in:
parent
eaf57cc90b
commit
8762b04a19
1 changed files with 12 additions and 6 deletions
|
@ -50,8 +50,7 @@ typedef struct _GstVaapiFrameStoreClass GstVaapiFrameStoreClass;
|
|||
typedef struct _GstVaapiParserInfoH265 GstVaapiParserInfoH265;
|
||||
typedef struct _GstVaapiPictureH265 GstVaapiPictureH265;
|
||||
|
||||
static gboolean
|
||||
nal_is_slice (guint8 nal_type);
|
||||
static gboolean nal_is_slice (guint8 nal_type);
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* --- H.265 Parser Info --- */
|
||||
|
@ -2251,7 +2250,14 @@ decode_picture (GstVaapiDecoderH265 * decoder, GstVaapiDecoderUnit * unit)
|
|||
gst_vaapi_picture_unref (picture);
|
||||
|
||||
/* Update cropping rectangle */
|
||||
/* Fixme: Add cropping rectangle, fix needed in codecparser */
|
||||
if (sps->conformance_window_flag) {
|
||||
GstVaapiRectangle crop_rect;
|
||||
crop_rect.x = sps->crop_rect_x;
|
||||
crop_rect.y = sps->crop_rect_y;
|
||||
crop_rect.width = sps->crop_rect_width;
|
||||
crop_rect.height = sps->crop_rect_height;
|
||||
gst_vaapi_picture_set_crop_rect (&picture->base, &crop_rect);
|
||||
}
|
||||
|
||||
status = ensure_quant_matrix (decoder, picture);
|
||||
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS) {
|
||||
|
|
Loading…
Reference in a new issue