File tree 3 files changed +7
-7
lines changed 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ int main(void)
60
60
.aspect_ratio = (float )video_width / video_height ,
61
61
// Uncomment this line if you want to have some additional black
62
62
// borders to fully display the video on real CRTs.
63
- // .overscan_margin = DEFAULT_CRT_MARGIN ,
63
+ // .overscan_margin = VI_CRT_MARGIN ,
64
64
},
65
65
// 32-bit display mode is mandatory for video playback.
66
66
DEPTH_32_BPP ,
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ typedef struct {
87
87
/**
88
88
* @brief Add a margin to the display output to compensate for the TV overscan.
89
89
*
90
- * Leave 0 for emulators, upscaler or LCD TVs. Use #DEFAULT_CRT_MARGIN for
90
+ * Leave 0 for emulators, upscaler or LCD TVs. Use #VI_CRT_MARGIN for
91
91
* adding some margin that will allow the picture to be fully visible on
92
92
* most TV CRTs.
93
93
*
@@ -99,7 +99,7 @@ typedef struct {
99
99
* On TV CRTs, instead, part of the picture will be displayed by the TV
100
100
* overscan. To compensate for this, you can reduce the picture size by this
101
101
* specified amount (expressed in percentage of the original picture).
102
- * #DEFAULT_CRT_MARGIN (which is 0.05, aka 5%) is the suggested value you can
102
+ * #VI_CRT_MARGIN (which is 0.05, aka 5%) is the suggested value you can
103
103
* use for this field
104
104
*/
105
105
float overscan_margin ;
@@ -121,7 +121,7 @@ typedef struct {
121
121
///@endcond
122
122
123
123
/** Good default for a safe CRT overscan margin (5%) */
124
- #define DEFAULT_CRT_MARGIN 0.05f
124
+ #define VI_CRT_MARGIN 0.05f
125
125
126
126
/** @brief 256x240 mode, stretched to 4:3, no borders */
127
127
const resolution_t RESOLUTION_256x240 = {.width = 256 , .height = 240 , .interlaced = INTERLACE_OFF };
Original file line number Diff line number Diff line change 61
61
* on all the four edges, you will get a 616x456 display output, plus
62
62
* the requested 12 dots of borders on all sides; the actual display output
63
63
* will thus be smaller, and possibly get fully out of overscan. The value
64
- * #DEFAULT_CRT_MARGIN is a good default you can use for overscan compensation on
64
+ * #VI_CRT_MARGIN is a good default you can use for overscan compensation on
65
65
* most CRT TVs.
66
66
*
67
67
* Notice that adding borders also affect the aspect ratio of the display output;
@@ -421,7 +421,7 @@ typedef struct vi_borders_s {
421
421
*
422
422
* The margin is expressed as a percentage relative to the virtual VI display
423
423
* output (640x480). A good default for this margin for most CRTs is
424
- * #DEFAULT_CRT_MARGIN (5%).
424
+ * #VI_CRT_MARGIN (5%).
425
425
*
426
426
* For instance, to create a 16:9 resolution, you can do:
427
427
*
@@ -433,7 +433,7 @@ typedef struct vi_borders_s {
433
433
* @param aspect_ratio Target aspect ratio
434
434
* @param overscan_margin Margin to add to compensate for TV overscan. Use 0
435
435
* to use full picture (eg: for emulators), and something
436
- * like #DEFAULT_CRT_MARGIN to get a good CRT default.
436
+ * like #VI_CRT_MARGIN to get a good CRT default.
437
437
*
438
438
* @return vi_borders_t The requested border settings
439
439
*/
You can’t perform that action at this time.
0 commit comments