Skip to content

Commit 9605825

Browse files
committed
Update dualsynth platform: Add field
1 parent 5f51a11 commit 9605825

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

include/dualsynth/ds_videoinfo.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ struct DSVideoInfo
1919
int64_t Audio_NSamples {0};
2020
int Audio_NChannels {0};
2121

22+
int Field {0};
23+
2224
DSVideoInfo() {}
2325
DSVideoInfo(DSFormat format, int64_t fpsnum, int64_t fpsdenom, int width, int height, int frames)
2426
: Format(format)
@@ -41,11 +43,12 @@ struct DSVideoInfo
4143
, Audio_SType(avsvi.sample_type)
4244
, Audio_NSamples(avsvi.num_audio_samples)
4345
, Audio_NChannels(avsvi.nchannels)
46+
, Field(avsvi.image_type)
4447
{ }
4548
const VSVideoInfo* ToVSVI(const VSCore* vscore, const VSAPI* vsapi) {
4649
return new VSVideoInfo {Format.ToVSFormat(vscore, vsapi), FPSNum, FPSDenom, Width, Height, Frames, 0};
4750
}
4851
const VideoInfo ToAVSVI() {
49-
return VideoInfo{Width, Height, static_cast<unsigned>(FPSNum), static_cast<unsigned>(FPSDenom), Frames, Format.ToAVSFormat(), Audio_SPS, Audio_SType, Audio_NSamples, Audio_NChannels};
52+
return VideoInfo{Width, Height, static_cast<unsigned>(FPSNum), static_cast<unsigned>(FPSDenom), Frames, Format.ToAVSFormat(), Audio_SPS, Audio_SType, Audio_NSamples, Audio_NChannels, Field};
5053
}
5154
};

0 commit comments

Comments
 (0)