Thread: VirtualDub2
View Single Post
Old 31st March 2018, 21:46   #502  |  Link
Revan654
Registered User
 
Revan654's Avatar
 
Join Date: May 2004
Posts: 324
Quote:
Originally Posted by shekh View Post
Thanks. Following Revan654 question I was thinking what can be done with metadata capture. Because it can be a sequence of unrelated clips it must be possible to preserve variable metadata (per scene) despite its static nature. The fact that it is included per GOP helps this idea.

After allot of research, some things I've come up with. This should help. Atlease a starting point.

Shaders looks to be where color space is refined at. Which needs to add BT.2020 to it.


Review source Code(The Original Virtual).

I cam across this: AVIStreamHeader_fixedhdr in the AVIReadHandler.cpp

I have no idea what this means Since I don't understand C Programming.


More noting HDR:

Quote:
if (hdr.biWidth != mWidth || hdr.biHeight != mHeight)
return false;

const VDAVIBitmapInfoHeader& hdr = *(const VDAVIBitmapInfoHeader *)format;

if (hdr.biWidth != mWidth || hdr.biHeight != mHeight)
return false;

int pxformat = VDBitmapFormatToPixmapFormat(hdr);

return QueryTargetFormat(pxformat);

bool VDVideoDecompressorDIB::SetTargetFormat(const void *format) {
const VDAVIBitmapInfoHeader& hdr = *(const VDAVIBitmapInfoHeader *)format;

if (hdr.biWidth != mWidth || hdr.biHeight != mHeight)
return false;

int variant;
int pxformat = VDBitmapFormatToPixmapFormat(hdr, variant);
if (!pxformat)
return false;
There allot more with HDR in the file, It's all from VideoSource.cpp file.


Also BlackMagic SDK seems to have HDR and Color Space. Maybe that would help speed things up with HDR aspect? Magewell SDK is being released in one to two weeks time.


Some Free Source code Color/ Shaders which has BT.2020 in them already.

Link: https://github.com/Microsoft/DirectX...eUtility.hlsli

VDub Filter for BT.2020: https://github.com/jpsdr/Filtres_JPS...orSpaceConvert

Here are allot of Links talking about the MetaData and HDR:

https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

Link 2 (Color Space) : https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

Link 3(Setting HDR): https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

Link 3 (Defining HDR) : https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

Link 4(HDR Structure): https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

Link 5 Wide Range: https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
Revan654 is offline   Reply With Quote