23 _pCharRenderMap(
NULL),
37 if (_pCharRenderMap !=
NULL)
39 delete []_pCharRenderMap;
40 _pCharRenderMap =
NULL;
49 if (!pBaseVideoAddress)
52 const size_t timeCodeLength (inTimeCodeStr.length());
61 _charPositionY = (_charRenderHeight * percentY) / 100;
65 _charPositionX &= ~0x0f;
67 char *pFrameBuff =
reinterpret_cast<char*
>(pBaseVideoAddress) + (_charPositionY * _rowBytes) + _charPositionX;
69 for (
size_t charNdx(0); charNdx < timeCodeLength; charNdx++)
71 const char currentChar (inTimeCodeStr[charNdx]);
73 if ( currentChar >=
'0' && currentChar <=
'9' )
74 digitOffset = currentChar -
'0';
75 else if ( currentChar ==
':' )
77 else if ( currentChar ==
';' )
81 pFrameBuff += _charWidthBytes;
90 return BurnTimeCode(pBaseVideoAddress, std::string(pTimeCodeString), percentY);
95 char *pDigit = (_pCharRenderMap + (digitOffset * _charWidthBytes * _charHeightLines));
97 for (
int y = 0; y < _charHeightLines; y++)
99 char *pSrc = (pDigit + (y * _charWidthBytes));
100 char *pDst = (pFrameBuff + (y * _rowBytes));
102 memcpy(pDst, pSrc, _charWidthBytes);
117 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
118 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
119 {0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 3, 3, 3, 3, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0},
120 {0, 0, 0, 0, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 1, 0, 0, 0, 0},
121 {0, 0, 0, 1, 2, 3, 3, 3, 2, 1, 0, 0, 0, 0, 1, 2, 3, 3, 3, 2, 1, 0, 0, 0},
122 {0, 0, 0, 1, 2, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 2, 1, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
439 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
440 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
441 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
442 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
452 if (_bRendered && _pCharRenderMap !=
NULL && pixelFormat == _charRenderPixelFormat && (
int)numLines == _charRenderHeight && (
int)numPixels == _charRenderWidth)
460 bool bFormatOK =
true;
523 else if (numLines > 650)
526 int dotWidth = 1 * dotScale;
527 int dotHeight = 2 * dotScale;
530 if (numLines > 900 && numPixels <= 1440)
546 if (_pCharRenderMap !=
NULL)
548 delete []_pCharRenderMap;
549 _pCharRenderMap =
NULL;
553 _pCharRenderMap =
new char[(
kTCMaxTCChars * charWidthBytes * charHeightLines)];
554 if (_pCharRenderMap !=
NULL)
556 char *pRenderMap = _pCharRenderMap;
565 for (
int ydup = 0; ydup < dotHeight; ydup++)
577 case 0: val = char(0x040 >> 2);
break;
578 case 1: val = char(0x164 >> 2);
break;
579 case 2: val = char(0x288 >> 2);
break;
580 case 3: val = char(0x3AC >> 2);
break;
584 for (
int xdup = 0; xdup < dotWidth; xdup++)
586 *pRenderMap++ = char(0x80);
596 case 0: val = (char)0x10;
break;
597 case 1: val = (char)0x4c;
break;
598 case 2: val = (char)0x86;
break;
599 case 3: val = (char)0xc0;
break;
603 for (
int xdup = 0; xdup < dotWidth; xdup++)
606 *pRenderMap++ = (char)0x80;
615 case 0: val = 0x040;
break;
616 case 1: val = 0x164;
break;
617 case 2: val = 0x288;
break;
618 case 3: val = 0x3AC;
break;
622 for (
int xdup = 0; xdup < dotWidth; xdup++)
624 writeV210Pixel (&pRenderMap, ((x * dotWidth) + xdup), 0x200, val);
633 case 0: val = (char)0x00;
break;
634 case 1: val = (char)0x55;
break;
635 case 2: val = (char)0xaa;
break;
636 case 3: val = (char)0xff;
break;
640 for (
int xdup = 0; xdup < dotWidth; xdup++)
654 case 0: val = (char)0x00;
break;
655 case 1: val = (char)0x55;
break;
656 case 2: val = (char)0xaa;
break;
657 case 3: val = (char)0xff;
break;
661 for (
int xdup = 0; xdup < dotWidth; xdup++)
675 case 0: val = (char)0x00;
break;
676 case 1: val = (char)0x55;
break;
677 case 2: val = (char)0xaa;
break;
678 case 3: val = (char)0xff;
break;
682 for (
int xdup = 0; xdup < dotWidth; xdup++)
695 case 0: val = 64;
break;
696 case 1: val = 356;
break;
697 case 2: val = 648;
break;
698 case 3: val = 940;
break;
702 for (
int xdup = 0; xdup < dotWidth; xdup++)
704 *pRenderMap++ = ((val & 0x3fc) >> 2);
705 *pRenderMap++ = ((val & 0x003) << 6) | ((val & 0x3f0) >> 4);
706 *pRenderMap++ = ((val & 0x00f) << 4) | ((val & 0x3c0) >> 6);
707 *pRenderMap++ = ((val & 0x03f) << 2);
715 case 0: val = 0x000;
break;
716 case 1: val = 0x154;
break;
717 case 2: val = 0x2a8;
break;
718 case 3: val = 0x3ff;
break;
722 for (
int xdup = 0; xdup < dotWidth; xdup++)
724 *pRenderMap++ = ((val & 0x0ff));
725 *pRenderMap++ = ((val & 0x03f) << 2) | ((val & 0x300) >> 8);
726 *pRenderMap++ = ((val & 0x00f) << 4) | ((val & 0x3c0) >> 6);
727 *pRenderMap++ = ((val & 0x3f0) >> 4) | 0x300;
737 case 0: val = 64;
break;
738 case 1: val = 356;
break;
739 case 2: val = 648;
break;
740 case 3: val = 940;
break;
744 for (
int xdup = 0; xdup < dotWidth; xdup++)
756 case 0: val = (char)0x10;
break;
757 case 1: val = (char)0x4c;
break;
758 case 2: val = (char)0x86;
break;
759 case 3: val = (char)0xc0;
break;
763 for (
int xdup = 0; xdup < dotWidth; xdup++)
775 _charRenderPixelFormat = pixelFormat;
776 _charRenderHeight = numLines;
777 _charRenderWidth = numPixels;
780 _charWidthBytes = charWidthBytes;
781 _charHeightLines = charHeightLines;
784 int byteWidth = (numPixels * bytesPerPixel);
786 byteWidth = (numPixels * 16) / 6;
789 byteWidth = (numPixels * 5) / 4;
821 p[1] = (( y & 0x03F) << 2) + (( c & 0x300) >> 8);
822 p[2] = (p[2] & 0x0F0) + (( y & 0x3C0) >> 6);
826 p[2] = (( c & 0x00F) << 4) + (p[2] & 0x00F);
827 p[3] = (( c & 0x3F0) >> 4);
829 p[5] = (p[5] & 0x0FC) + (( y & 0x300) >> 8);
834 p[1] = (( c & 0x03F) << 2) + (p[1] & 0x003);
835 p[2] = (( y & 0x00F) << 4) + (( c & 0x3C0) >> 6);
836 p[3] = (( y & 0x3F0) >> 4);
853 p[0] = (y & 0x0FF) << 0;;
854 p[1] = (y & 0x300) >> 8;
858 p[0] |= (y & 0x03F) << 2;
859 p[1] = (y & 0x3C0) >> 6;
863 p[0] |= (y & 0x00F) << 4;
864 p[1] = (y & 0x3F0) >> 4;
868 p[0] |= (y & 0x003) << 6;
869 p[1] = (y & 0x3FC) >> 2;