Skip to content
Permalink
Browse files

Added support of UTF16

  • Loading branch information...
Evgeny
Evgeny committed Jan 10, 2017
1 parent a41cd3f commit d60baf18953f1501e2d450fd7e97406cd9624c58
Showing with 2 additions and 9 deletions.
  1. +2 −9 src/lib_ccx/ccx_decoders_708_output.c
@@ -95,15 +95,8 @@ void _dtvcc_write_row(ccx_dtvcc_writer_ctx *writer, dtvcc_tv_screen *tv, int row
buf[buf_len++] = CCX_DTVCC_SYM(space);
for (int j = first; j <= last; j++)
{
if (CCX_DTVCC_SYM_IS_16(tv->chars[row_index][j]))
{
buf[buf_len++] = CCX_DTVCC_SYM_16_FIRST(tv->chars[row_index][j]);
buf[buf_len++] = CCX_DTVCC_SYM_16_SECOND(tv->chars[row_index][j]);
}
else
{
buf[buf_len++] = CCX_DTVCC_SYM(tv->chars[row_index][j]);
}
int size = utf16_to_utf8(tv->chars[row_index][j].sym, buf + buf_len);
buf_len += size;
}
for (int i = last + 1; i < CCX_DECODER_608_SCREEN_WIDTH; i++)
buf[buf_len++] = CCX_DTVCC_SYM(space);

0 comments on commit d60baf1

Please sign in to comment.
You can’t perform that action at this time.