Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
12th July 2016, 03:55 | #2081 | Link | |
typo lover
Join Date: May 2009
Posts: 595
|
bool is_uint16 = (vi.pixel_type & VideoInfo::CS_Sample_Bits_16) != 0;
bool is_float = (vi.pixel_type & VideoInfo::CS_Sample_Bits_32) != 0; Quote:
__________________
my repositories Last edited by Chikuzen; 12th July 2016 at 04:05. |
|
12th July 2016, 11:26 | #2082 | Link | |
AVS+ Dev
Join Date: Aug 2013
Posts: 359
|
Quote:
bool is_uint16 = vi.ComponentSize() == 2; bool is_float = vi.ComponentSize() == 4; Btw, there is a another new function vi.NumComponents(), which is 1 for greyscale, 3 for yuv/rgb, 4 for rgba etc. Unlike IScriptEnv2, these can be considered stable.
__________________
AviSynth+ |
|
12th July 2016, 12:10 | #2083 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
@ultim, pinterf
Did you guys get a chance to look at this one? Not high priority I guess but still...
__________________
Groucho's Avisynth Stuff |
12th July 2016, 12:45 | #2084 | Link | |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Quote:
|
|
12th July 2016, 12:55 | #2085 | Link | |
typo lover
Join Date: May 2009
Posts: 595
|
Quote:
Code:
int size = pitchY * height + 2 * pitchUV * heightUV; size = size + align -1; VideoFrame *res = GetNewFrame(size); max of int32_t is 2^31 - 1= 2147483647 i don't know whether this is bug or spec.
__________________
my repositories Last edited by Chikuzen; 12th July 2016 at 13:08. |
|
12th July 2016, 13:12 | #2086 | Link | |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Quote:
There was discussion recently regarding x64 and whether the frame size should be INT(32-bit) like Ultim implemented or 64-bit. Changing that would require recompiling every x64 plugin. |
|
12th July 2016, 13:40 | #2087 | Link | |
typo lover
Join Date: May 2009
Posts: 595
|
see groucho's post.
Quote:
Code:
VideoFrame* ScriptEnvironment::AllocateFrame(size_t vfb_size) { if (vfb_size > (size_t)std::numeric_limits<int>::max()) { throw AvisynthError(this->Sprintf("Requested buffer size of %zu is too large", vfb_size)); } vfb_size should be calculated on size_t. error messages should be correct.
__________________
my repositories |
|
12th July 2016, 15:42 | #2089 | Link |
AVS+ Dev
Join Date: Aug 2013
Posts: 359
|
ok. it might happen that we accidentially break vs2010 because none of the active developers use it so we don't test it. but if you let us know of problems with vs2010 we'll correct it, as long as it is only the public headers.
__________________
AviSynth+ |
12th July 2016, 16:36 | #2090 | Link | |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Quote:
|
|
12th July 2016, 18:29 | #2092 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,419
|
Lines 443 and 444 in turn.cpp cause compilation errors in VS2013. Is 'constexpr' an intended change, or was it a typo that slipped in there?
EDIT: Okay, apparently it is (why didn't I try looking that up before?). But since it fails, I'm thinking either VS2013 is missing the header to support it, or turn.cpp needs the right header added to its includes. Last edited by qyot27; 12th July 2016 at 18:31. |
12th July 2016, 19:01 | #2094 | Link | ||
AVS+ Dev
Join Date: Aug 2013
Posts: 359
|
Quote:
Quote:
__________________
AviSynth+ |
||
12th July 2016, 21:48 | #2095 | Link |
Excessively jovial fellow
Join Date: Jun 2004
Location: rude
Posts: 1,100
|
templated intrinsics is the new cool thing to do if you want to write optimized code that supports multiple bitdepths without copypasting shit all over the place, get with the times and upgrade yer compilers
Last edited by TheFluff; 12th July 2016 at 21:51. |
13th July 2016, 00:43 | #2097 | Link |
typo lover
Join Date: May 2009
Posts: 595
|
hmm, ok.
I'll send a PR. btw, when does AVS+ keep supporting VS2013? 22nd century?
__________________
my repositories |
13th July 2016, 04:46 | #2099 | Link |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
I have a question. Let's say I run a script at 8fps, then in the middle of it, I'm running something else. Obviously performance goes down to, say, 4fps. Once the other task is done and the script has all the resources again, however, it stays stuck at 4fps and doesn't go back to 8fps. Has anyone else noticed this? What's causing that?
|
Thread Tools | Search this Thread |
Display Modes | |
|
|