Recent

Author Topic: NTSC/CRT port for Free Pascal  (Read 625 times)

hukka

  • New Member
  • *
  • Posts: 44
    • Github
NTSC/CRT port for Free Pascal
« on: February 07, 2025, 06:48:07 pm »
Integer-only NTSC video signal encoding/decoding emulation, originally by EMMIR.
Also does VHS simulation.
A rather straight port from C, so currently does not follow good/modern Pascal coding practices.
Includes usage examples for SDL2/SDL3/BGRABitmap/Graphics32. (An LCL-only example would be welcome!)

Github: https://github.com/hukkax/ntsc_crt_pas

MarkMLl

  • Hero Member
  • *****
  • Posts: 8334
Re: NTSC/CRT port for Free Pascal
« Reply #1 on: February 07, 2025, 08:37:07 pm »
Ooh nice. Will it give us composite video on an RPi Pico?

Sorry, couldn't resist :-)

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

lainz

  • Hero Member
  • *****
  • Posts: 4691
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: NTSC/CRT port for Free Pascal
« Reply #2 on: February 08, 2025, 12:26:54 am »
Can you point in the help where to download the libraries? Like SDL 2 and SDL 3, I've tested only BGRABitmap one..

Edit: found it
https://github.com/sechshelme/Lazarus-SDL-3.0-Packages-and-Examples
« Last Edit: February 08, 2025, 12:33:22 am by lainz »

hukka

  • New Member
  • *
  • Posts: 44
    • Github
Re: NTSC/CRT port for Free Pascal
« Reply #3 on: February 08, 2025, 12:35:52 am »
Can you point in the help where to download the libraries? Like SDL 2 and SDL 3, I've tested only BGRABitmap one..

They all function the same (apart from the BGRABitmap example being more interactive than the rest currently with keyboard controls to modify parameters in real time). They're just examples on how to interface their bitmap buffers with the library.
Anyway, here's the FPC interface for SDL3: https://github.com/sechshelme/Lazarus-SDL-3.0-Packages-and-Examples

 

TinyPortal © 2005-2018