Skip to content

Commit

Permalink
Add unused hdr10plus stuff to match ffms2
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Sep 29, 2023
1 parent 43b245a commit 8e1f8bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vapoursynth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ static const VSFrame *VS_CC BestVideoSourceGetFrame(int n, int ActivationReason,
vsapi->mapSetData(Props, "DolbyVisionRPU", reinterpret_cast<const char *>(Src->DolbyVisionRPU), static_cast<int>(Src->DolbyVisionRPUSize), dtBinary, maAppend);
}

if (Src->HDR10Plus && Src->HDR10PlusSize > 0) {
vsapi->mapSetData(Props, "HDR10Plus", reinterpret_cast<const char *>(Src->HDR10Plus), Src->HDR10PlusSize, dtBinary, maReplace);
}

vsapi->mapSetInt(Props, "FlipVertical", VP.FlipVerical, maAppend);
vsapi->mapSetInt(Props, "FlipHorizontal", VP.FlipHorizontal, maAppend);
vsapi->mapSetInt(Props, "Rotation", VP.Rotation, maAppend);
Expand Down
4 changes: 4 additions & 0 deletions src/videosource.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ class BestVideoFrame {
/* DolbyVisionRPU */
uint8_t *DolbyVisionRPU = nullptr;
size_t DolbyVisionRPUSize = 0;

/* HDR10Plus */
uint8_t *HDR10Plus = nullptr;
size_t HDR10PlusSize = 0;
};

class BestVideoSource {
Expand Down

0 comments on commit 8e1f8bf

Please sign in to comment.