<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 12, 2013 at 5:56 AM, Derek Buitenhuis <span dir="ltr"><<a href="mailto:derek.buitenhuis@gmail.com" target="_blank">derek.buitenhuis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 9/12/2013 11:46 AM, Steve Borho wrote:<br>
> The short term issue is that STL makes integration into applications that were compiled by a different compiler pretty fragile, and just having the same class not in namespace std makes those problems go away.<br>
<br>
</div>From what I understand, std::list is very well supported in all major C++ compilers.<br></blockquote><div><br></div><div>Yes, and they each have their own implementations (with identical bindings) with enough differences that they break each other at run time. Our first workaround for this was to add CMake support for compiling with STLport, which is just a replacement for the STL classes in a private namespace. It avoids these conflicts, but is just a stop-gap.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> The medium term issue is that the encoder still has logic that inserts NALs between other NALs in the access unit, and so we can't simply concatenate NALs as we generate them, we still need a list structure. And since we also need a list structure for the picture lists, this is the one place in the encoder (outside of vector primitives) where templating would be somewhat sane.<br>
<br>
</div>I'm not a C++ guy, but couldn't you use something like std::vector's insert() method?<br>
Perhaps that would be slow? Don't know. std::vector is very well supported.<br></blockquote><div><br></div><div>Using a std:vector<> as a list doesn't really resolve the short or medium term problems though</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> Long term.. I haven't looked at how this is handled in x264. Advice welcome.<br>
<br>
</div>You should ask Jason, Anton, or Kieran.<br></blockquote><div><br></div><div>That's good advice :) I think I'll do that after a bit of sleep.</div><div><br></div><div>Thanks.</div><div><br></div><div>--</div>
<div>Steve Borho</div></div></div></div>