summaryrefslogtreecommitdiff
path: root/src/sna/sna_video.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-09 10:15:11 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-09 10:26:49 +0000
commitf62b9f94f64f402e731463205635d386386e274e (patch)
tree90eab48d449b52c88f6c5ada765fa6dad898036c /src/sna/sna_video.h
parent5809b1ad934d6e19dbcf00f1b59e156761ec16b6 (diff)
sna/video: Pass cropped source dimensions along with frame data
So pack all the relevant details into the same structure. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video.h')
-rw-r--r--src/sna/sna_video.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/sna/sna_video.h b/src/sna/sna_video.h
index 41874b94..ab8289b6 100644
--- a/src/sna/sna_video.h
+++ b/src/sna/sna_video.h
@@ -68,8 +68,13 @@ struct sna_video_frame {
uint32_t size;
uint32_t UBufOffset;
uint32_t VBufOffset;
+
uint16_t width, height;
uint16_t pitch[2];
+
+ /* extents */
+ uint16_t top, left;
+ uint16_t npixels, nlines;
};
void sna_video_init(struct sna *sna, ScreenPtr screen);
@@ -97,15 +102,14 @@ static inline int is_planar_fourcc(int id)
Bool
sna_video_clip_helper(ScrnInfoPtr scrn,
struct sna_video *adaptor_priv,
+ struct sna_video_frame *frame,
xf86CrtcPtr * crtc_ret,
BoxPtr dst,
short src_x, short src_y,
short drw_x, short drw_y,
short src_w, short src_h,
short drw_w, short drw_h,
- int id,
- int *top, int* left, int* npixels, int *nlines,
- RegionPtr reg, INT32 width, INT32 height);
+ RegionPtr reg);
void
sna_video_frame_init(struct sna *sna,
@@ -117,8 +121,6 @@ Bool
sna_video_copy_data(struct sna *sna,
struct sna_video *video,
struct sna_video_frame *frame,
- int top, int left,
- int npixels, int nlines,
const uint8_t *buf);
void sna_video_frame_fini(struct sna *sna,