1 /***************************************************************************
3 Copyright 2000 Intel Corporation. All Rights Reserved.
5 Permission is hereby granted, free of charge, to any person obtaining a
6 copy of this software and associated documentation files (the
7 "Software"), to deal in the Software without restriction, including
8 without limitation the rights to use, copy, modify, merge, publish,
9 distribute, sub license, and/or sell copies of the Software, and to
10 permit persons to whom the Software is furnished to do so, subject to
11 the following conditions:
13 The above copyright notice and this permission notice (including the
14 next paragraph) shall be included in all copies or substantial portions
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
20 IN NO EVENT SHALL INTEL, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
21 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
23 THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 **************************************************************************/
28 #include "xf86_OSproc.h"
38 xf86CrtcPtr desired_crtc;
50 /* only used by the overlay */
54 /** YUV data buffers */
55 drm_intel_bo *buf, *old_buf[2];
59 Rotation rotation; /* should remove intel->rotation later */
61 int SyncToVblank; /* -1: auto, 0: off, 1: on */
62 } intel_adaptor_private;
64 static inline intel_adaptor_private *
65 intel_get_adaptor_private(intel_screen_private *intel)
67 return intel->adaptor->pPortPrivates[0].ptr;
70 void I915DisplayVideoTextured(ScrnInfoPtr scrn,
71 intel_adaptor_private *adaptor_priv,
72 int id, RegionPtr dstRegion, short width,
73 short height, int video_pitch, int video_pitch2,
74 short src_w, short src_h,
75 short drw_w, short drw_h, PixmapPtr pixmap);
77 void I965DisplayVideoTextured(ScrnInfoPtr scrn,
78 intel_adaptor_private *adaptor_priv,
79 int id, RegionPtr dstRegion, short width,
80 short height, int video_pitch, int video_pitch2,
81 short src_w, short src_h,
82 short drw_w, short drw_h, PixmapPtr pixmap);
84 void Gen6DisplayVideoTextured(ScrnInfoPtr scrn,
85 intel_adaptor_private *adaptor_priv,
86 int id, RegionPtr dstRegion, short width,
87 short height, int video_pitch, int video_pitch2,
88 short src_w, short src_h,
89 short drw_w, short drw_h, PixmapPtr pixmap);
91 void i965_free_video(ScrnInfoPtr scrn);
93 int is_planar_fourcc(int id);
95 void intel_video_block_handler(intel_screen_private *intel);