-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo_resolution.h
89 lines (81 loc) · 2.84 KB
/
video_resolution.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//----------------------------------------------------------------
// _____
// / \
// /____ \____
// / \===\ \==/
// /___\===\___\/ AVNET
// \======/
// \====/
//---------------------------------------------------------------
//
// This design is the property of Avnet. Publication of this
// design is not authorized without written consent from Avnet.
//
// Please direct any questions to: technical.support@avnet.com
//
// Disclaimer:
// Avnet, Inc. makes no warranty for the use of this code or design.
// This code is provided "As Is". Avnet, Inc assumes no responsibility for
// any errors, which may appear in this code, nor does it make a commitment
// to update the information contained herein. Avnet, Inc specifically
// disclaims any implied warranties of fitness for a particular purpose.
// Copyright(c) 2010 Avnet, Inc.
// All rights reserved.
//
//----------------------------------------------------------------
//
// Create Date: Mar 05, 2010
// Design Name: Video Resolution utility
// Module Name: video_resolution.h
// Project Name: FMC-IMAGEON
// Target Devices: Virtex-6, Kintex-7
// Avnet Boards: FMC-IMAGEON
//
// Tool versions: ISE 14.3
//
// Description: IVK Video Resolution
// - video timing definitions
// - video resolution detection
//
// Dependencies:
//
// Revision: Mar 05, 2010: 1.00 Initial version for S6-IVK
// Dec 03, 2011: 1.01 Reuse for FMC-IMAGEON
// Nov 01, 2012: 1.02 Add 576P resolution
//
//----------------------------------------------------------------
#ifndef __VIDEO_RESOLUTION_H__
#define __VIDEO_RESOLUTION_H__
#include "xbasic_types.h"
// Video Pattern Generator - Video Resolution values
#define VIDEO_RESOLUTION_VGA 0
#define VIDEO_RESOLUTION_480P 1
#define VIDEO_RESOLUTION_576P 2
#define VIDEO_RESOLUTION_SVGA 3
#define VIDEO_RESOLUTION_XGA 4
#define VIDEO_RESOLUTION_720P 5
#define VIDEO_RESOLUTION_SXGA 6
#define VIDEO_RESOLUTION_1080P 7
#define VIDEO_RESOLUTION_UXGA 8
#define NUM_VIDEO_RESOLUTIONS 9
struct struct_vres_timing_t
{
char *pName;
Xuint32 VActiveVideo;
Xuint32 VFrontPorch;
Xuint32 VSyncWidth;
Xuint32 VBackPorch;
Xuint32 VSyncPolarity;
Xuint32 HActiveVideo;
Xuint32 HFrontPorch;
Xuint32 HSyncWidth;
Xuint32 HBackPorch;
Xuint32 HSyncPolarity;
};
typedef struct struct_vres_timing_t vres_timing_t;
char * vres_get_name(Xuint32 resolutionId);
Xuint32 vres_get_width(Xuint32 resolutionId);
Xuint32 vres_get_height(Xuint32 resolutionId);
Xuint32 vres_get_timing(Xuint32 resolutionId, vres_timing_t *pTiming );
Xint32 vres_detect( Xuint32 width, Xuint32 height );
#endif // __VIDEO_RESOLUTION_H__