[FFmpeg-devel] [PATCH] Is gray8 a paletted format?

Stefano Sabatini stefano.sabatini-lala
Tue Feb 23 01:05:48 CET 2010


On date Monday 2010-02-22 21:19:24 +0100, Michael Niedermayer encoded:
> On Tue, Feb 16, 2010 at 01:18:15AM +0100, Stefano Sabatini wrote:
> > On date Monday 2010-02-01 20:44:36 +0100, Stefano Sabatini encoded:
> [...]
> > > Conversion in some cases is ~10% slower.
> [...]
> > Ping.
> 
> 10% slower -> rejected

I elaborated more the results, so that you can have a more precise
view.

If this is not acceptable then I believe we should also skip to
allocate place for palette in the pictures for the gray format.

Regards.
-- 
FFmpeg = Fancy and Fabulous Mortal Plastic Emblematic Gymnast
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elaborate-gray-test.pl
Type: text/x-perl
Size: 1080 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100223/8335f6ce/attachment.pl>
-------------- next part --------------
yuv420p      -> gray        : pal:2101330080     nopal:1912787040     diff:  188543040 rel_diff:  0.089726
yuyv422      -> gray        : pal:2434660200     nopal:2433670680     diff:     989520 rel_diff:  0.000406
rgb24        -> gray        : pal:2223310680     nopal:2146036080     diff:   77274600 rel_diff:  0.034757
bgr24        -> gray        : pal:2614374840     nopal:2447588520     diff:  166786320 rel_diff:  0.063796
yuv422p      -> gray        : pal:2639499720     nopal:3060547080     diff: -421047360 rel_diff: -0.159518
yuv444p      -> gray        : pal:3022912200     nopal:3246809520     diff: -223897320 rel_diff: -0.074067
yuv410p      -> gray        : pal:2554189320     nopal:2568772800     diff:  -14583480 rel_diff: -0.005710
yuv411p      -> gray        : pal:2883098520     nopal:2575363560     diff:  307734960 rel_diff:  0.106738
gray         -> gray        : pal:1871613720     nopal:2368929600     diff: -497315880 rel_diff: -0.265715
monow        -> gray        : pal:3607528680     nopal:2539425600     diff: 1068103080 rel_diff:  0.296076
monob        -> gray        : pal:2335035120     nopal:2066360880     diff:  268674240 rel_diff:  0.115062
yuvj420p     -> gray        : pal:2577067920     nopal:2587330680     diff:  -10262760 rel_diff: -0.003982
yuvj422p     -> gray        : pal:3128279160     nopal:2860744200     diff:  267534960 rel_diff:  0.085521
yuvj444p     -> gray        : pal:3389258160     nopal:3287608560     diff:  101649600 rel_diff:  0.029992
uyvy422      -> gray        : pal:2425399440     nopal:2473788240     diff:  -48388800 rel_diff: -0.019951
bgr8         -> gray        : pal:2440070400     nopal:2164354680     diff:  275715720 rel_diff:  0.112995
bgr4_byte    -> gray        : pal:2147622000     nopal:2414970600     diff: -267348600 rel_diff: -0.124486
rgb8         -> gray        : pal:2152555560     nopal:2180440320     diff:  -27884760 rel_diff: -0.012954
rgb4_byte    -> gray        : pal:2185405680     nopal:2152537440     diff:   32868240 rel_diff:  0.015040
nv12         -> gray        : pal:1937651640     nopal:2212302120     diff: -274650480 rel_diff: -0.141744
nv21         -> gray        : pal:2062082520     nopal:1914348120     diff:  147734400 rel_diff:  0.071643
argb         -> gray        : pal:2207867400     nopal:2462068920     diff: -254201520 rel_diff: -0.115134
rgba         -> gray        : pal:2476711560     nopal:2198148720     diff:  278562840 rel_diff:  0.112473
abgr         -> gray        : pal:2204623080     nopal:2215450200     diff:  -10827120 rel_diff: -0.004911
bgra         -> gray        : pal:2183477520     nopal:2194670760     diff:  -11193240 rel_diff: -0.005126
gray16be     -> gray        : pal:2328175680     nopal:2014628400     diff:  313547280 rel_diff:  0.134675
gray16le     -> gray        : pal:2086765440     nopal:2339133600     diff: -252368160 rel_diff: -0.120937
yuv440p      -> gray        : pal:2684423160     nopal:2579085000     diff:  105338160 rel_diff:  0.039241
yuvj440p     -> gray        : pal:2948783400     nopal:2843144880     diff:  105638520 rel_diff:  0.035824
yuva420p     -> gray        : pal:2283037800     nopal:2151078000     diff:  131959800 rel_diff:  0.057800
rgb48be      -> gray        : pal:2547716880     nopal:2295917400     diff:  251799480 rel_diff:  0.098833
rgb48le      -> gray        : pal:2275329720     nopal:2285587680     diff:  -10257960 rel_diff: -0.004508
rgb565le     -> gray        : pal:2155824600     nopal:2165002080     diff:   -9177480 rel_diff: -0.004257
rgb555le     -> gray        : pal:2156102520     nopal:2172642240     diff:  -16539720 rel_diff: -0.007671
bgr565le     -> gray        : pal:2483558640     nopal:2164762560     diff:  318796080 rel_diff:  0.128363
bgr555le     -> gray        : pal:2502401640     nopal:2185379280     diff:  317022360 rel_diff:  0.126687
yuv420p16le  -> gray        : pal:2084576640     nopal:2074143600     diff:   10433040 rel_diff:  0.005005
yuv420p16be  -> gray        : pal:2089374960     nopal:2074802760     diff:   14572200 rel_diff:  0.006974
yuv422p16le  -> gray        : pal:2751579120     nopal:2739985680     diff:   11593440 rel_diff:  0.004213
yuv422p16be  -> gray        : pal:2880759480     nopal:2859398400     diff:   21361080 rel_diff:  0.007415
yuv444p16le  -> gray        : pal:3174509760     nopal:3157815240     diff:   16694520 rel_diff:  0.005259
yuv444p16be  -> gray        : pal:3340803720     nopal:3332613960     diff:    8189760 rel_diff:  0.002451
gray         -> yuv444p16be : pal:3245873280     nopal:2958770640     diff:  287102640 rel_diff:  0.088452
gray         -> yuv444p16be : pal:2968753680     nopal:2958168600     diff:   10585080 rel_diff:  0.003565
gray         -> yuv444p16be : pal:2978532720     nopal:2962167240     diff:   16365480 rel_diff:  0.005494
gray         -> yuv444p16be : pal:2971457520     nopal:2960723880     diff:   10733640 rel_diff:  0.003612
gray         -> yuv444p16be : pal:3229829400     nopal:2965263240     diff:  264566160 rel_diff:  0.081913
gray         -> yuv444p16be : pal:3046769640     nopal:2966678640     diff:   80091000 rel_diff:  0.026287
gray         -> yuv444p16be : pal:3785041440     nopal:2992539000     diff:  792502440 rel_diff:  0.209377
gray         -> yuv444p16be : pal:2972873760     nopal:2968808760     diff:    4065000 rel_diff:  0.001367
gray         -> yuv444p16be : pal:2978399040     nopal:2966166120     diff:   12232920 rel_diff:  0.004107
gray         -> yuv444p16be : pal:2978770200     nopal:2964380280     diff:   14389920 rel_diff:  0.004831
gray         -> yuv444p16be : pal:2972345520     nopal:2962420080     diff:    9925440 rel_diff:  0.003339
gray         -> yuv444p16be : pal:3212414640     nopal:2962623960     diff:  249790680 rel_diff:  0.077758
gray         -> yuv444p16be : pal:3496279200     nopal:3110459400     diff:  385819800 rel_diff:  0.110352
gray         -> yuv444p16be : pal:2967976800     nopal:3191649240     diff: -223672440 rel_diff: -0.075362
gray         -> yuv444p16be : pal:2958269880     nopal:2974684800     diff:  -16414920 rel_diff: -0.005549
gray         -> yuv444p16be : pal:3207588840     nopal:2960875800     diff:  246713040 rel_diff:  0.076915
gray         -> yuv444p16be : pal:3008952480     nopal:3223633320     diff: -214680840 rel_diff: -0.071347
gray         -> yuv444p16be : pal:3236851560     nopal:3210023040     diff:   26828520 rel_diff:  0.008288
gray         -> yuv444p16be : pal:2961869760     nopal:2963892720     diff:   -2022960 rel_diff: -0.000683
gray         -> yuv444p16be : pal:2962818720     nopal:3260263320     diff: -297444600 rel_diff: -0.100392
gray         -> yuv444p16be : pal:3074789280     nopal:3245052000     diff: -170262720 rel_diff: -0.055374
gray         -> yuv444p16be : pal:2960743080     nopal:2962209000     diff:   -1465920 rel_diff: -0.000495
gray         -> yuv444p16be : pal:2955804240     nopal:2960490960     diff:   -4686720 rel_diff: -0.001586
gray         -> yuv444p16be : pal:3208744800     nopal:2971048440     diff:  237696360 rel_diff:  0.074078
gray         -> yuv444p16be : pal:2962448400     nopal:2959012080     diff:    3436320 rel_diff:  0.001160
gray         -> yuv444p16be : pal:2978045880     nopal:2964488160     diff:   13557720 rel_diff:  0.004553
gray         -> yuv444p16be : pal:2960006880     nopal:2962545480     diff:   -2538600 rel_diff: -0.000858
gray         -> yuv444p16be : pal:2964007680     nopal:2958317280     diff:    5690400 rel_diff:  0.001920
gray         -> yuv444p16be : pal:2968814040     nopal:3200269800     diff: -231455760 rel_diff: -0.077962
gray         -> yuv444p16be : pal:2971030440     nopal:2952208680     diff:   18821760 rel_diff:  0.006335
gray         -> yuv444p16be : pal:2963591640     nopal:2957881560     diff:    5710080 rel_diff:  0.001927
gray         -> yuv444p16be : pal:2970459720     nopal:2955113160     diff:   15346560 rel_diff:  0.005166
gray         -> yuv444p16be : pal:2971363080     nopal:2951017440     diff:   20345640 rel_diff:  0.006847
gray         -> yuv444p16be : pal:2971866840     nopal:2956971720     diff:   14895120 rel_diff:  0.005012
gray         -> yuv444p16be : pal:2966711400     nopal:2959835520     diff:    6875880 rel_diff:  0.002318
gray         -> yuv444p16be : pal:3280233000     nopal:2955192600     diff:  325040400 rel_diff:  0.099091
gray         -> yuv444p16be : pal:3238072080     nopal:2957238720     diff:  280833360 rel_diff:  0.086729
gray         -> yuv444p16be : pal:3250070400     nopal:2954688600     diff:  295381800 rel_diff:  0.090885
gray         -> yuv444p16be : pal:3226386600     nopal:2957700120     diff:  268686480 rel_diff:  0.083278
gray         -> yuv444p16be : pal:2959973880     nopal:2962124880     diff:   -2151000 rel_diff: -0.000727
gray         -> yuv444p16be : pal:2969360160     nopal:2955553680     diff:   13806480 rel_diff:  0.004650
gray         -> yuv444p16be : pal:3280761840     nopal:3190800480     diff:   89961360 rel_diff:  0.027421
gray         -> yuv444p16be : pal:3242607480     nopal:2963315520     diff:  279291960 rel_diff:  0.086132



More information about the ffmpeg-devel mailing list