ali1234 / vhs-teletext

Software to recover teletext data from VHS recordings.
GNU General Public License v3.0
179 stars 21 forks source link

Elements should not call into the various Printers #64

Open ali1234 opened 3 years ago

ali1234 commented 3 years ago

Currently each element has various methods to convert a packet into ANSI, or HTML etc. This prevents feeding codepage information to the conversion process, because packets are not aware of each other. Instead, each Element should have one method to return it's displayable data as teletext bytes, and then the top level Packet object should handle conversion. This will avoid having to pass around a lot of state and reduce the amount of boilerplate code in the Elements.

Needed for #63