aribb24
aribb24 copied to clipboard
Decoding ARIB STD-B24 to Latin
I'm trying to implement Latin character decodification. Would it be possible if I add the Latin tables to convtable.h file static const unsigned int decoder_latin_table[] = { ... }
, create a new decoder_handler at decoder.c?
void arib_initialize_decoder(arib_decoder_t *decoder)
{
arib_finalize_decoder(decoder);
decoder->buf = NULL;
decoder->count = 0;
decoder->ubuf = NULL;
decoder->ucount = 0;
decoder->handle_gl = &decoder->handle_g0;
decoder->handle_gl_single = NULL;
decoder->handle_gr = &decoder->handle_g2;
decoder->handle_g0 = decoder_handle_kanji;
decoder->handle_g1 = decoder_handle_alnum;
decoder->handle_g2 = decoder_handle_hiragana;
decoder->handle_g3 = decoder_handle_katakana;
//New code
decoder->handle_g4 = decoder_handle_latin;
decoder->kanji_ku = -1;
What I want is to open closed caption subtitles in pt-BR.
afaik there's no G4 graphic set in B24
Those graphics are part of the B24 specification or only a definition in the code?
What's the part of the/your spec mentioning Latin N ?
The Latin tables are used to decode arib to portuguese subtitles. I want to add Brazilian portuguese support to this code. The Brazilian Digital TV system is based on the Japanese ones.
I just made a pull request with an implementation proposal in #16.