Talk:NTSC video: Difference between revisions
Rainwarrior (talk | contribs) (→C++ code?: new section) |
(→Citation broken link: Notes that the link is now fixed.) |
||
(21 intermediate revisions by 8 users not shown) | |||
Line 12: | Line 12: | ||
auto InColorPhase = [=](int color) { return (color + phase) % 12 < 6; }; // Inline function | auto InColorPhase = [=](int color) { return (color + phase) % 12 < 6; }; // Inline function | ||
-- [[User:Rainwarrior|Rainwarrior]] ([[User talk:Rainwarrior|talk]]) 07:26, 13 August 2014 (MDT) | -- [[User:Rainwarrior|Rainwarrior]] ([[User talk:Rainwarrior|talk]]) 07:26, 13 August 2014 (MDT) | ||
:It appears to be C++11 code. Not all C++ compilers understand C++11 yet. --[[User:Tepples|Tepples]] ([[User talk:Tepples|talk]]) 19:42, 13 August 2014 (MDT) | |||
::Am I just out of touch? Is C++11 the accepted standard now? I didn't know it was safe to call it "C++" now, but maybe it is? :S - [[User:Rainwarrior|Rainwarrior]] ([[User talk:Rainwarrior|talk]]) 21:08, 13 August 2014 (MDT) | |||
::: Yes, it's the standard. The draft was commonly referred to as "C++0x" because they aimed to get it accepted by the end of 2009. It became [[wikipedia:C++11|C++11]] when the changes were officially added to ISO C++ in 2011. --[[User:Tepples|Tepples]] ([[User talk:Tepples|talk]]) 06:56, 14 August 2014 (MDT) | |||
:::: It was an official standard in 2011, but that's different than it being the primary flavour of C++, which is really what I meant. After looking around, I've noted that as usual Microsoft has done a pick-and-choose with which features to implement, but the C++11 features they did implement have been enabled by default since VS2010. GCC on the other hand much more fully supports it, but requires a compiler switch to enable. Clang is in the same situation as GCC. Intel's compiler looks like partial support, off by default. I imagine other compilers are in similar states. As such, I'd say we're in a period of transition, but C++11 will surely become the default before long. - [[User:Rainwarrior|Rainwarrior]] ([[User talk:Rainwarrior|talk]]) 11:56, 14 August 2014 (MDT) | |||
== Differential phase distortion and black/white stroke widening/narrowing? == | |||
I removed this, because it seemed to be debated in a discord discussion. I think the effect may be real, but it might not be the differential phase distortion effect? | |||
This can also be seen to slightly widen black strokes on a white background and narrow white strokes on a black background. | |||
So, it might belong elsewhere in the article. Keeping it here as a reminder to discuss/resolve. - [[User:Rainwarrior|Rainwarrior]] ([[User talk:Rainwarrior|talk]]) 01:10, 1 April 2023 (UTC) | |||
== Citation broken link == | |||
https://www.maximintegrated.com/en/app-notes/index.mvp/id/1184 | |||
This link is broken now. | |||
:The tutorial appears to have moved to analog.com. I've updated the link. --[[User:Fiskbit|Fiskbit]] ([[User talk:Fiskbit|talk]]) 07:58, 6 April 2024 (UTC) |
Latest revision as of 07:58, 6 April 2024
The part of the PPU that generates the video signal (immediately to the right of the NMI and CLK pins) appears to consist of a very long resistor between VCC and GND with taps at various points, and one of them (closest to VCC) is a switchable pulldown to GND (no doubt for color emphasis). The logic itself can select 12 different voltage levels (00/10/20/30, 0D/1D/2D/3D, synch, colorburst L/H, and GND), and they appear to correspond to 10 distinct voltage levels - one of the duplicates is at the highest voltage (likely 20/30), and the other one is the 3rd-lowest [non-GND] voltage (not sure which one). --Quietust 17:59, 28 September 2011 (UTC)
- With the help of ChipSim, I've traced down exactly what the 12 voltage levels correspond to - Synch (GND), Colorburst L, Color 0D, Color xE/xF and Color 1D, Colorburst H, Color 2D, Color 00, Color 10, color 3D, Color 20 and Color 30 ("and" == two signals which select the same actual voltage). --Quietust 11:17, 29 October 2012 (MDT)
Absolute Video Signal Timing
Some tests with Visual2C02 managed to confirm all of the contents of the Scanline Timing table, plus one more interesting bit of information: the offset. Specifically, the "active" region begins at cycle 4, which is when the PPU is just finishing the attribute byte fetch for the 3rd tile in the scanline (the first 2 are fetched at the end of the previous scanline). --Quietust 08:50, 1 November 2012 (MDT)
- But during which cycles is sync output? We need that too to align the NES picture center relative to the NTSC standard picture center (see Overscan). --Tepples 09:41, 1 November 2012 (MDT)
C++ code?
Is this really C++ code? Can we call it what it is, if it's not?
auto InColorPhase = [=](int color) { return (color + phase) % 12 < 6; }; // Inline function
-- Rainwarrior (talk) 07:26, 13 August 2014 (MDT)
- It appears to be C++11 code. Not all C++ compilers understand C++11 yet. --Tepples (talk) 19:42, 13 August 2014 (MDT)
- Am I just out of touch? Is C++11 the accepted standard now? I didn't know it was safe to call it "C++" now, but maybe it is? :S - Rainwarrior (talk) 21:08, 13 August 2014 (MDT)
- Yes, it's the standard. The draft was commonly referred to as "C++0x" because they aimed to get it accepted by the end of 2009. It became C++11 when the changes were officially added to ISO C++ in 2011. --Tepples (talk) 06:56, 14 August 2014 (MDT)
- It was an official standard in 2011, but that's different than it being the primary flavour of C++, which is really what I meant. After looking around, I've noted that as usual Microsoft has done a pick-and-choose with which features to implement, but the C++11 features they did implement have been enabled by default since VS2010. GCC on the other hand much more fully supports it, but requires a compiler switch to enable. Clang is in the same situation as GCC. Intel's compiler looks like partial support, off by default. I imagine other compilers are in similar states. As such, I'd say we're in a period of transition, but C++11 will surely become the default before long. - Rainwarrior (talk) 11:56, 14 August 2014 (MDT)
- Yes, it's the standard. The draft was commonly referred to as "C++0x" because they aimed to get it accepted by the end of 2009. It became C++11 when the changes were officially added to ISO C++ in 2011. --Tepples (talk) 06:56, 14 August 2014 (MDT)
- Am I just out of touch? Is C++11 the accepted standard now? I didn't know it was safe to call it "C++" now, but maybe it is? :S - Rainwarrior (talk) 21:08, 13 August 2014 (MDT)
Differential phase distortion and black/white stroke widening/narrowing?
I removed this, because it seemed to be debated in a discord discussion. I think the effect may be real, but it might not be the differential phase distortion effect?
This can also be seen to slightly widen black strokes on a white background and narrow white strokes on a black background.
So, it might belong elsewhere in the article. Keeping it here as a reminder to discuss/resolve. - Rainwarrior (talk) 01:10, 1 April 2023 (UTC)
Citation broken link
https://www.maximintegrated.com/en/app-notes/index.mvp/id/1184
This link is broken now.