Skip to content

Instantly share code, notes, and snippets.

@Koasing
Koasing / TComPicYuv.natvis
Created August 24, 2016 01:37
Image Watch natvis for HEVC HM Reference Software
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" MenuName="Add to Image Watch"/>
<Type Name="TComPicYuv">
<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" />
</Type>
<Type Name="TComPicYuv">
<DisplayString Condition="m_chromaFormatIDC == CHROMA_400">{{TComPicYuv YUV400 {m_iPicWidth} x {m_iPicHeight} x {m_chromaFormatIDC}}}</DisplayString>
from datetime import datetime
from urllib.parse import quote
from xml.etree import ElementTree
import json
import base64
import os
import os.path
import re
#define begin {
#define end }
static const char *BASE64STR = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
int getBase64Length(int len)
{
return (len+2)/3*4;
}
static void b64(char in1, char in2, char in3, char *out)
{