Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24511 - libvideogfx and sampeg - threading
Summary: libvideogfx and sampeg - threading
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-15 03:09 UTC by Gary Stein
Modified: 2005-03-27 19:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libvideogfx patch to add back AskBufferSize (libvideogfx.diff,557 bytes, patch)
2003-07-15 03:11 UTC, Gary Stein
Details | Diff
some fixes to sampeg (sampeg3.diff,1.59 KB, patch)
2003-07-15 03:11 UTC, Gary Stein
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Stein 2003-07-15 03:09:47 UTC
the semi-new package for sampeg3 0.0.3 and libvideogfx 1.0.3 works in the
genteral sense however, for the general power gentoo user, they might like to
use the multithreaded capabilities, which seem to be disabled in this release
and do not have configure flags or USE to use it

trying to configure with these options will at least select that option
configure CXXFLAGS="-DMULTITHREADED" LDFLAGS="-lpthread"

but there appears to be compile problems with most likely relate to the original
author, I could create some diffs with the modified source I am working with.

but generally some function were took out of bitbuffer.hh in libvideogfx
int    AskBufferSize() const { return d_bufferidx; }

which used to be in libvideogfx 0.0.2

another issue might be in the new strict gcc 3.2
with -> and . rules in some areas and some path issues

while it doesn't work fully since slices of video get garbled, someone smarter
than I could fix it,but it is mostly visable at the moment

however, this does seem to be an issue I should send to the original author also

diffs pending
Comment 1 Gary Stein 2003-07-15 03:11:07 UTC
Created attachment 14502 [details, diff]
libvideogfx patch to add back AskBufferSize
Comment 2 Gary Stein 2003-07-15 03:11:58 UTC
Created attachment 14503 [details, diff]
some fixes to sampeg
Comment 3 Chris White (RETIRED) gentoo-dev 2005-01-27 17:57:43 UTC
What is the status on these patches?  It sounds like you sent them upstream and I'd like to know if they were accepted.
Comment 4 Chris White (RETIRED) gentoo-dev 2005-03-27 14:16:07 UTC
I'd like to get upstream to accept these patches, but cannot find upstream's site anymore.  Please also refer them to the following errors down below:

MD -MP -MF .deps/jpeg.TPlo  -fPIC -DPIC -o jpeg.o
In file included from ../../../libvideogfx/graphics/datatypes/image.hh:41,
                 from ../../../libvideogfx/graphics/fileio/jpeg.hh:38,
                 from jpeg.cc:20:
../../../libvideogfx/graphics/datatypes/bitmap.hh: In destructor `videogfx::Bitm apProvider_Mem<Pel>::~BitmapProvider_Mem()':
../../../libvideogfx/graphics/datatypes/bitmap.hh:225: error: `d_bitmap_ptr' und eclared (first use this function)
../../../libvideogfx/graphics/datatypes/bitmap.hh:225: error: (Each undeclared i dentifier is reported only once for each function it appears in.)
../../../libvideogfx/graphics/datatypes/bitmap.hh: In member function `void vide ogfx::BitmapProvider_Mem<Pel>::Create(int, int, int, int, int)':
../../../libvideogfx/graphics/datatypes/bitmap.hh:230: error: `d_internal_width'  undeclared (first use this function)
../../../libvideogfx/graphics/datatypes/bitmap.hh:230: error: `d_internal_height ' undeclared (first use this function)
../../../libvideogfx/graphics/datatypes/bitmap.hh:234: error: `d_total_width' un declared (first use this function)
../../../libvideogfx/graphics/datatypes/bitmap.hh:235: error: `d_total_height' u ndeclared (first use this function)
../../../libvideogfx/graphics/datatypes/bitmap.hh:237: error: `d_bitmap_ptr' und eclared (first use this function)
../../../libvideogfx/graphics/datatypes/bitmap.hh:241: error: `d_width' undeclar ed (first use this function)
../../../libvideogfx/graphics/datatypes/bitmap.hh:242: error: `d_height' undecla red (first use this function)
../../../libvideogfx/graphics/datatypes/bitmap.hh:243: error: `d_border' undecla red (first use this function)
../../../libvideogfx/graphics/datatypes/bitmap.hh:244: error: there are no argum ents to `SetFramePtrs' that depend on a template parameter, so a declaration of `SetFramePtrs' must be available
../../../libvideogfx/graphics/datatypes/bitmap.hh:244: error: (if you use `-fper missive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[5]: *** [jpeg.lo] &#12456;&#12521;&#12540; 1

Thanks for your report and thank you for using Gentoo!
Comment 5 Gary Stein 2005-03-27 19:15:19 UTC
I personally couldn't find the upstream anymore, I tried a bit to get this with transcode and SAMPEG.

Used to be:
http://rachmaninoff.informatik.uni-mannheim.de/sampeg/index.html
for SAMPEG-2 and SAMPEG-4, I haven't touched it in a long time
since MJPEG tools have gained multiprocessor support

for my project it was easier than to fork SAMPEG and keep a copy

in case anyone wanted to know