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 --- */
struct _GstVaapiFrameStore
{
- /*< private >*/
+ /*< private > */
GstVaapiMiniObject parent_instance;
GstVaapiPictureH265 *buffer;
*/
struct _GstVaapiDecoderH265
{
- /*< private >*/
+ /*< private > */
GstVaapiDecoder parent_instance;
GstVaapiDecoderH265Private priv;
};
*/
struct _GstVaapiDecoderH265Class
{
- /*< private >*/
+ /*< private > */
GstVaapiDecoderClass parent_class;
};
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) {