mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
video: Make all frame_number guint32
Unifies the code and ensures that: * subclasses needing to use the frame_number on a void* field will always work * wraparounds will be automatically taken care of if we have to deal with more than 2**32 frames
This commit is contained in:
parent
40a0624e99
commit
6423a4027e
3 changed files with 6 additions and 6 deletions
|
@ -372,8 +372,8 @@ struct _GstVideoDecoderPrivate
|
|||
int reorder_depth;
|
||||
int distance_from_sync;
|
||||
|
||||
guint64 system_frame_number;
|
||||
guint64 decode_frame_number;
|
||||
guint32 system_frame_number;
|
||||
guint32 decode_frame_number;
|
||||
|
||||
GList *frames; /* Protected with OBJECT_LOCK */
|
||||
GstVideoCodecState *input_state;
|
||||
|
|
|
@ -153,7 +153,7 @@ struct _GstVideoEncoderPrivate
|
|||
|
||||
GList *force_key_unit; /* List of pending forced keyunits */
|
||||
|
||||
guint64 system_frame_number;
|
||||
guint32 system_frame_number;
|
||||
|
||||
GList *frames; /* Protected with OBJECT_LOCK */
|
||||
GstVideoCodecState *input_state;
|
||||
|
|
|
@ -222,9 +222,9 @@ struct _GstVideoCodecFrame
|
|||
guint32 flags;
|
||||
|
||||
/*< public >*/
|
||||
gint system_frame_number; /* ED */
|
||||
gint decode_frame_number; /* ED */
|
||||
gint presentation_frame_number; /* ED */
|
||||
guint32 system_frame_number; /* ED */
|
||||
guint32 decode_frame_number; /* ED */
|
||||
guint32 presentation_frame_number; /* ED */
|
||||
|
||||
GstClockTime dts; /* ED */
|
||||
GstClockTime pts; /* ED */
|
||||
|
|
Loading…
Reference in a new issue