Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Issue 164120: Add patches for block-level quant in theora, -O2 on build, and statically link pthread on Windows (Closed)

Created:
11 years, 4 months ago by awong
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Alpha Left Google, kylep
Visibility:
Public.

Description

Add patches for block-level quant in theora, -O2 on build, and statically link pthread on Windows For Theora changes, also includes 4 patches that fix various decoder crash bugs in theora due to bad clamping of values, or forgetting to check return codes. There is a build settings patch to use -O2 for all platforms instead of -O3, and to statically link pthreads on windows. This reduces the produced binary sizes, and decreases CPU usage by like 10% on windows. BUG=17174 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22821

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -4 lines) Patch
M README.chromium View 1 2 3 4 3 chunks +24 lines, -4 lines 0 comments Download
A r18986_theora_block_quant.patch View 1 chunk +230 lines, -0 lines 0 comments Download
A r19350_init_loop_filter_127fix.patch View 1 chunk +47 lines, -0 lines 0 comments Download
A r19351_theora_decode_tables_limit127.patch View 1 chunk +28 lines, -0 lines 0 comments Download
A r19355_invalid_huffman_table.patch View 1 chunk +71 lines, -0 lines 0 comments Download
A r19356_theora_decode_init_error_passing.patch View 1 chunk +32 lines, -0 lines 0 comments Download
A static_pthread_O2.patch View 3 4 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
awong
Here's the changes needed to add basic block-quant support + a couple of suggested theora ...
11 years, 4 months ago (2009-08-07 01:00:24 UTC) #1
fbarchard
looks okay, but I'd like to run some tests.
11 years, 4 months ago (2009-08-07 17:10:03 UTC) #2
awong
Added in patches for frank's static ptherads on windows + -O2 during build. Let me ...
11 years, 4 months ago (2009-08-07 21:26:05 UTC) #3
fbarchard
we need to code patch: http://ffmpeg.arrozcru.org/wiki/images/d/dd/Ffmpeg_r15966_static_pthreads.diff http://codereview.chromium.org/164120/diff/16/1010 File README.chromium (right): http://codereview.chromium.org/164120/diff/16/1010#newcode21 Line 21: distribution, and ...
11 years, 4 months ago (2009-08-07 21:48:34 UTC) #4
scherkus (not reviewing)
http://codereview.chromium.org/164120/diff/16/1010 File README.chromium (right): http://codereview.chromium.org/164120/diff/16/1010#newcode19 Line 19: a modification that statically links pthreadsG2 into the ...
11 years, 4 months ago (2009-08-07 22:46:22 UTC) #5
awong
11 years, 4 months ago (2009-08-07 23:07:03 UTC) #6
Committing for now.  If there are more changes, please feel free to reopen and
add more ocmments.

http://codereview.chromium.org/164120/diff/16/1010
File README.chromium (right):

http://codereview.chromium.org/164120/diff/16/1010#newcode19
Line 19: a modification that statically links pthreadsG2 into the avcodec.dll on
an
On 2009/08/07 22:46:22, scherkus wrote:
> pthreadsG2 -> pthreadGC2
> avcodec.dll -> avcodec-52.dll
> 
> perhaps "into the" -> "into" ?
> 

Done.

http://codereview.chromium.org/164120/diff/16/1010#newcode21
Line 21: distribution, and lowers the total size of the binaries.
On 2009/08/07 22:46:22, scherkus wrote:
> On 2009/08/07 21:48:34, fbarchard wrote:
> > we should include some instructions on pthread.
> > basically follow these instructions
> > http://ffmpeg.arrozcru.org/wiki/index.php?title=Pthreads
> > apply andrews patch to make it build on mingw.  Then
> > make clean GC-static
> > from a msys window
> > Then copy the libpthreadGC2.a pthread.h sched.h into mingw folders.
> > delete this C:\msys\1.0\bin\pthreadGC2.dll
> > update these:
> > C:\msys\1.0\include\pthread.h
> > C:\msys\1.0\lib\libpthreadGC2.a
> > C:\msys\1.0\mingw32\include\pthread.h
> > C:\msys\1.0\mingw32\lib\libpthread.a
> > TODO(fbarchard): build with O2
> 
> These instructions should be a part of the MinGW setup.  Frank, you'll have to
> build + package up pthreads in a way that can be extracted into an msys
> installation so that windows users can build using the proper build of
pthreads.

There's another CL out that has these instructions merged in.  Can you comment
on that one instead?

http://codereview.chromium.org/164120/diff/16/1010#newcode37
Line 37: patch -p1 < ../static_pthread_O2.patch
On 2009/08/07 21:48:34, fbarchard wrote:
> Sorry I forgot theres also a code patch.
> These are the original instructions
> http://ffmpeg.arrozcru.org/wiki/images/d/dd/Ffmpeg_r15966_static_pthreads.diff
> We need the change in libavcodec/allcodecs.c
> 

Code patch added.

Powered by Google App Engine
This is Rietveld 408576698