2020-10-09 16:16:16 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Red Hat Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2023-07-21 13:37:20 +00:00
|
|
|
#pragma once
|
2020-10-09 16:16:16 +00:00
|
|
|
|
|
|
|
#include "clutter/clutter-frame.h"
|
|
|
|
|
2022-10-14 16:24:46 +00:00
|
|
|
typedef void (* ClutterFrameRelease) (ClutterFrame *frame);
|
|
|
|
|
2020-10-09 16:16:16 +00:00
|
|
|
struct _ClutterFrame
|
|
|
|
{
|
2022-10-13 15:32:09 +00:00
|
|
|
grefcount ref_count;
|
2022-10-14 16:24:46 +00:00
|
|
|
ClutterFrameRelease release;
|
2022-10-13 15:32:09 +00:00
|
|
|
|
2022-07-06 21:59:46 +00:00
|
|
|
int64_t frame_count;
|
|
|
|
|
2022-07-07 07:12:04 +00:00
|
|
|
gboolean has_target_presentation_time;
|
|
|
|
int64_t target_presentation_time_us;
|
2023-02-06 10:50:00 +00:00
|
|
|
int64_t min_render_time_allowed_us;
|
2022-07-07 07:12:04 +00:00
|
|
|
|
2020-10-09 16:16:16 +00:00
|
|
|
gboolean has_result;
|
|
|
|
ClutterFrameResult result;
|
|
|
|
};
|
|
|
|
|
2022-10-13 15:32:09 +00:00
|
|
|
CLUTTER_EXPORT
|
2022-10-14 16:24:46 +00:00
|
|
|
gpointer clutter_frame_new (size_t size,
|
|
|
|
ClutterFrameRelease release);
|
2022-07-07 07:26:06 +00:00
|
|
|
|
2022-10-14 16:24:46 +00:00
|
|
|
#define clutter_frame_new(FrameType, release) \
|
|
|
|
((FrameType *) (clutter_frame_new (sizeof (FrameType), release)))
|
2022-10-13 15:32:09 +00:00
|
|
|
|
2020-10-09 16:16:16 +00:00
|
|
|
ClutterFrameResult clutter_frame_get_result (ClutterFrame *frame);
|