deinterlace: Clean up includes and clean up order of instance struct fields

This commit is contained in:
Sebastian Dröge 2009-06-10 14:45:06 +02:00
parent 645b9449a5
commit 4710a91cbf
2 changed files with 23 additions and 27 deletions

View file

@ -37,10 +37,6 @@
#include "config.h"
#endif
#include <gst/gst.h>
#include <gst/video/video.h>
#include <liboil/liboil.h>
#include "gstdeinterlace.h"
#include "tvtime/plugins.h"

View file

@ -23,7 +23,7 @@
#define __GST_DEINTERLACE_H__
#include <gst/gst.h>
#include <gst/base/gstbasetransform.h>
#include <gst/video/video.h>
#include <liboil/liboil.h>
#include <liboil/liboilcpu.h>
#include <liboil/liboilfunction.h>
@ -205,33 +205,14 @@ struct _GstDeinterlace
GstDeinterlaceFieldLayout field_layout;
guint frame_size;
gint frame_rate_n, frame_rate_d;
gboolean interlaced;
/* Duration of one field */
GstClockTime field_duration;
GstDeinterlaceFields fields;
GstDeinterlaceMethods method_id;
GstDeinterlaceMethod *method;
/* The most recent pictures
PictureHistory[0] is always the most recent.
Pointers are NULL if the picture in question isn't valid, e.g. because
the program just started or a picture was skipped.
*/
GstPicture field_history[MAX_FIELD_HISTORY];
guint history_count;
/* Set to TRUE if we're in still frame mode,
i.e. just forward all buffers
*/
gboolean still_frame_mode;
/* Last buffer that was pushed in */
GstBuffer *last_buffer;
guint frame_size;
gint frame_rate_n, frame_rate_d;
gboolean interlaced;
/* Number of bytes of actual data in each scanline. May be less than
OverlayPitch since the overlay's scanlines might have alignment
@ -255,6 +236,25 @@ struct _GstDeinterlace
*/
guint field_stride;
/* Duration of one field */
GstClockTime field_duration;
/* The most recent pictures
PictureHistory[0] is always the most recent.
Pointers are NULL if the picture in question isn't valid, e.g. because
the program just started or a picture was skipped.
*/
GstPicture field_history[MAX_FIELD_HISTORY];
guint history_count;
/* Set to TRUE if we're in still frame mode,
i.e. just forward all buffers
*/
gboolean still_frame_mode;
/* Last buffer that was pushed in */
GstBuffer *last_buffer;
/* Current segment */
GstSegment segment;