text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
we draw a circle around X which encompasses a number (to be chosen a priori) of points irrespective of their class labels. Then we calculate the number of points in the circle belonging to each class label. From this we calculate the likelihood:


second version: [jsfidd... | [
-0.045201387256383896,
0.07355885952711105,
0.4267367720603943,
-0.1879529058933258,
-0.2113816887140274,
0.3195042908191681,
-0.020580466836690903,
-0.41470807790756226,
-0.12204492837190628,
-0.6940780282020569,
-0.08655603975057602,
0.07317356765270233,
-0.47873830795288086,
0.024938521... | |
then any object that created by that constructor function will be reflected too. But if you were assigned `Triangle.prototype = F.prototype` it could be different.
I've made some changes [**here**](http://jsfiddle.net/f6H8U/1/). Hope it'll help you to understand, see in the console. | [
0.27040982246398926,
-0.011477692052721977,
0.2285773754119873,
-0.23693467676639557,
-0.22167399525642395,
0.2588818371295929,
0.035530779510736465,
0.05757613852620125,
-0.28888675570487976,
-0.873394787311554,
0.40799692273139954,
0.370218962430954,
-0.11262775957584381,
0.0666502267122... | |
```
echo "<tr><td><input type = 'button' value = 'Agregar' onclick = 'addrow($leaguesarray[$numofleagues])' /></td></tr></table><br />\n";
```
I have the above php code which is failing to call the addrow function I'm pretty sure its because of my quutoes.
```
echo "<tr><td><input type = 'button' value = 'Agregar' o... | [
-0.19797566533088684,
0.28708311915397644,
0.22181905806064606,
-0.15904417634010315,
-0.36028265953063965,
0.2504219114780426,
0.566597580909729,
-0.7437307238578796,
-0.11814212054014206,
-0.4175829589366913,
-0.07151003926992416,
0.6608381867408752,
-0.46395355463027954,
0.1299174875020... | |
all
Does anybody know details about **QOMX\_COLOR\_FormatYUV420PackedSemiPlanar64x32Tile2m8ka** format, it's the output format of qcom 7x30 h/w decoder, how data is stored in such color format? thanks
This is my research on this, about **QOMX\_COLOR\_FormatYUV420PackedSemiPlanar64x32Tile2m8ka converting to YUV420Plan... | [
0.05374632403254509,
0.10206108540296555,
0.3629683256149292,
-0.0010653624776750803,
-0.13626930117607117,
0.16905541718006134,
0.08659952878952026,
-0.062040023505687714,
-0.12418683618307114,
-0.8022118210792542,
-0.08238419890403748,
0.5261049270629883,
-0.1908753663301468,
0.329687237... | |
The code is so long about 390 lines, so heavy. Including steps: construct yTileToMb, uvTileToMb, then converting y and u/v as followed.
```
///////////////////////////////////////////////////////////////////////
/**
* Enumeration defining the extended uncompressed image/video
* formats.
*
* ENUMS:
* YVU420PackedSemiP... | [
0.1070203185081482,
-0.13375036418437958,
0.5941793322563171,
-0.09598618000745773,
0.021249456331133842,
0.44404250383377075,
-0.21658875048160553,
-0.40163326263427734,
-0.22131766378879547,
-0.7181048393249512,
-0.1425759196281433,
0.2723015546798706,
-0.29030680656433105,
0.01362133491... | |
YVU420PackedSemiPlanar format, but with the
* following restrictions:
*
* 1. The width and height | [
0.2655574083328247,
-0.09337259829044342,
0.43027621507644653,
0.16714546084403992,
0.05429387465119362,
0.0548737607896328,
-0.3081904351711273,
0.012025241740047932,
-0.2723730802536011,
-0.5006657838821411,
-0.2957884967327118,
0.18991152942180634,
-0.13931135833263397,
0.13563185930252... | |
of both plane must
* be a multiple of 32 texels.
*
* 2. The base address of both planes must be
* | [
-0.14443817734718323,
0.1986798793077469,
0.5062646269798279,
0.023595711216330528,
0.10360537469387054,
0.24744127690792084,
0.27129796147346497,
-0.09830404818058014,
0.07319565862417221,
-0.7757063508033752,
-0.384682297706604,
0.3008102476596832,
-0.3256899416446686,
-0.134528830647468... | |
aligned to a 4kB boundary.
*
* YUV420PackedSemiPlanar16m2ka : YUV planar format, similar to the
* YUV420PackedSemiPlanar format, but with the
* | [
-0.14609253406524658,
-0.3206442892551422,
0.188130721449852,
-0.10726749151945114,
-0.23591122031211853,
0.5189194679260254,
0.14304286241531372,
-0.41998761892318726,
-0.3588844835758209,
-0.5683229565620422,
-0.24748145043849945,
-0.3311713933944702,
-0.30881911516189575,
-0.12693296372... | |
following restrictions:
*
* 1. The width of the luma plane must be a
* multiple of 16 pixels.
*
* | [
0.2768058776855469,
-0.13695256412029266,
0.6130394339561462,
-0.06934124231338501,
-0.0242875125259161,
0.06812194734811783,
-0.08219922333955765,
-0.5155705213546753,
-0.303415447473526,
-0.573197066783905,
-0.009770273230969906,
0.4805496037006378,
-0.22966013848781586,
0.16082115471363... | |
2. The address of both planes must be
* aligned to a 2kB boundary.
*
* YUV420PackedSemiPlanar64x32Tile2m8ka : YUV planar format, similar to the
* | [
-0.3155049681663513,
-0.026591831818223,
0.05773865431547165,
-0.12204048037528992,
-0.04136770963668823,
0.14246168732643127,
0.11078023165464401,
-0.2649727761745453,
-0.001682866015471518,
-0.8727934956550598,
-0.3638210594654083,
0.015023446641862392,
-0.25938519835472107,
-0.014236552... | |
YUV420PackedSemiPlanar format, but with the
* following restrictions:
*
* 1. The data is laid out in a 4x2 MB tiling
* | [
-0.25481072068214417,
-0.0032953007612377405,
0.3860592544078827,
0.2064344882965088,
0.06879907101392746,
0.3316655158996582,
-0.20920348167419434,
0.15196871757507324,
-0.15668252110481262,
-0.5804133415222168,
-0.345096230506897,
-0.047498103231191635,
-0.17992284893989563,
0.0965615138... | |
memory structure
*
* 2. The width of each plane is a multiple of
* 2 4x2 MB tiles.
*
* | [
-0.4037245810031891,
0.1943349838256836,
0.15098358690738678,
0.1477944701910019,
0.1462787389755249,
0.333636999130249,
0.08031723648309708,
-0.09152667224407196,
-0.2641005516052246,
-1.0109974145889282,
-0.1480402797460556,
0.07165265083312988,
0.0534922257065773,
0.175679549574852,
0... | |
3. The height of each plan is a multiple of
* a 4x2 MB tile.
*
* | [
0.20668618381023407,
0.037568286061286926,
0.36326414346694946,
-0.028310049325227737,
0.19124040007591248,
0.18352586030960083,
0.24927039444446564,
-0.49521318078041077,
-0.3620086908340454,
-0.8377628326416016,
-0.09488405287265778,
0.09685654193162918,
-0.05628174915909767,
-0.08060292... | |
4. The base address of both planes must be
* aligned to an 8kB boundary.
*
* 5. The tiles are scanned in the order
* | [
-0.0059395236894488335,
0.14274056255817413,
0.3535929322242737,
0.039184439927339554,
0.15021012723445892,
0.2110510617494583,
0.33765411376953125,
-0.5457448959350586,
-0.03956103324890137,
-0.8783250451087952,
-0.28429940342903137,
-0.15856540203094482,
0.054469529539346695,
-0.06890727... | |
defined in the MFCV5.1 User's Manual.
*
* | [
0.4067470133304596,
0.3717440962791443,
0.7897471785545349,
-0.41359373927116394,
0.37212902307510376,
-0.37652483582496643,
0.3034336268901825,
-0.42226624488830566,
-0.4419305920600891,
-0.4048840403556824,
-0.6001486778259277,
0.130031019449234,
-0.34150993824005127,
0.09136857837438583... | |
i.e, CIF size in pysical location
*
* Luma order(4x2 MB = 64x32 pix): 54 tiles:
* | [
-0.03116895817220211,
-0.16460557281970978,
0.4699510335922241,
0.022501904517412186,
0.06338151544332504,
0.6143767237663269,
-0.20451442897319794,
-0.3456350266933441,
-0.45365703105926514,
-0.8909819722175598,
-0.34477224946022034,
-0.11549308896064758,
0.0020705244969576597,
0.26819905... | |
0 1 6 7 8 9
* | [
-0.29293981194496155,
0.2912149727344513,
0.05695546790957451,
-0.2127572000026703,
-0.20178231596946716,
0.3008516728878021,
0.326073557138443,
0.2340027540922165,
-0.1831256002187729,
-0.38288822770118713,
0.01019836775958538,
-0.13102851808071136,
-0.22165237367153168,
0.420960217714309... | |
2 3 4 5 10 11
* | [
-0.03541039675474167,
0.6774064302444458,
-0.11998167634010315,
-0.46393507719039917,
-0.1757081001996994,
0.3194730579853058,
0.5604945421218872,
0.0680987536907196,
-0.3166612684726715,
-0.5492139458656311,
0.07708791643381119,
0.05614669620990753,
0.0939728394150734,
0.01079840585589408... | |
12 13 18 19 20 21
* 14 15 16 17 22 23
* | [
0.27157843112945557,
0.33827656507492065,
0.14364080131053925,
-0.3089222013950348,
-0.028573861345648766,
0.4423251748085022,
0.4185972809791565,
-0.013858478516340256,
-0.4469727575778961,
-0.8005433082580566,
0.08027603477239609,
-0.0640869289636612,
0.055539172142744064,
-0.22087807953... | |
24 25 30 31 32 33
* | [
0.02239285781979561,
0.4580472707748413,
-0.4819363057613373,
-0.2991507649421692,
-0.48208335041999817,
0.5595152378082275,
0.5523493885993958,
0.08811790496110916,
-0.010457501746714115,
-0.4967736005783081,
-0.051713451743125916,
0.0274908896535635,
-0.273673951625824,
-0.13678200542926... | |
26 27 28 29 34 35
* | [
0.05319475010037422,
0.7054015398025513,
-0.5047154426574707,
-0.3809216320514679,
-0.6414006948471069,
0.40033701062202454,
0.6108349561691284,
-0.039895493537187576,
0.23040595650672913,
-0.30952879786491394,
0.22431690990924835,
-0.027464328333735466,
-0.22857001423835754,
-0.2872889935... | |
36 37 42 43 44 45
* 38 39 | [
0.7055060267448425,
0.8296216130256653,
-0.630921483039856,
0.22368532419204712,
-0.7264953255653381,
0.7325378060340881,
1.218967318534851,
0.05130765214562416,
0.3680937588214874,
-0.415565550327301,
-0.06965231150388718,
0.024650856852531433,
-0.12285647541284561,
0.3018628656864166,
... | |
40 41 46 47
* 48 49 50 51 52 53
* | [
0.513775646686554,
0.2545035183429718,
-0.7533453106880188,
-0.019195599481463432,
-0.539877712726593,
0.7449415326118469,
0.6327537298202515,
-0.2862238585948944,
0.1556250900030136,
-0.32100915908813477,
-0.3914302885532379,
-0.03276294842362404,
-0.02214982733130455,
-0.0267243925482034... | |
MBs in a y tile:
* | [
-0.05364072695374489,
0.21085456013679504,
-0.04193079471588135,
-0.15933889150619507,
-0.001217011478729546,
0.2921057641506195,
0.28735479712486267,
0.20315594971179962,
-0.251421719789505,
-0.6462074518203735,
-0.33270326256752014,
-0.16251994669437408,
-0.11380860954523087,
0.140586882... | |
0 1 2 3
* | [
-0.045607805252075195,
0.36378243565559387,
0.08428197354078293,
-0.2707403898239136,
-0.3559418022632599,
0.08211897313594818,
0.40425023436546326,
0.022442232817411423,
0.06585121899843216,
-0.3123936057090759,
-0.046113818883895874,
-0.10605638474225998,
-0.15596583485603333,
0.39616262... | |
22 23 24 25
* Chromas order(64x32 pix):
* | [
-0.035131022334098816,
0.5369617342948914,
-0.031345661729574203,
-0.02017761580646038,
-0.11419355869293213,
0.5811355710029602,
0.30458709597587585,
-0.10666098445653915,
-0.23753270506858826,
-0.5008082985877991,
-0.2972492575645447,
-0.19270478188991547,
-0.11441677808761597,
0.4262452... | |
0 1 6 7 8 9
* | [
-0.29293981194496155,
0.2912149727344513,
0.05695546790957451,
-0.2127572000026703,
-0.20178231596946716,
0.3008516728878021,
0.326073557138443,
0.2340027540922165,
-0.1831256002187729,
-0.38288822770118713,
0.01019836775958538,
-0.13102851808071136,
-0.22165237367153168,
0.420960217714309... | |
2 3 4 5 10 11
* | [
-0.03541039675474167,
0.6774064302444458,
-0.11998167634010315,
-0.46393507719039917,
-0.1757081001996994,
0.3194730579853058,
0.5604945421218872,
0.0680987536907196,
-0.3166612684726715,
-0.5492139458656311,
0.07708791643381119,
0.05614669620990753,
0.0939728394150734,
0.01079840585589408... | |
12 13 18 19 20 21
* 14 15 16 17 22 23
* | [
0.27157843112945557,
0.33827656507492065,
0.14364080131053925,
-0.3089222013950348,
-0.028573861345648766,
0.4423251748085022,
0.4185972809791565,
-0.013858478516340256,
-0.4469727575778961,
-0.8005433082580566,
0.08027603477239609,
-0.0640869289636612,
0.055539172142744064,
-0.22087807953... | |
24 25 26 27 28 29
* | [
0.13032297790050507,
0.6329657435417175,
-0.30108484625816345,
-0.290277898311615,
-0.3719356954097748,
0.5020625591278076,
0.49248504638671875,
0.11317424476146698,
-0.020168766379356384,
-0.561268150806427,
0.05307311192154884,
0.057205624878406525,
-0.1336587518453598,
-0.21952424943447... | |
MBs in a uv tile:
* | [
-0.29509976506233215,
0.14728423953056335,
-0.10218042880296707,
-0.38687703013420105,
-0.07509534806013107,
0.4138216972351074,
0.2589377760887146,
0.2514767050743103,
-0.346726655960083,
-0.8241711258888245,
-0.49537035822868347,
0.10861130058765411,
-0.14965398609638214,
-0.158541098237... | |
0 1 2 3
* 22 23 24 25
* | [
0.03988601267337799,
0.37406760454177856,
0.06561700999736786,
-0.4390089213848114,
-0.4411238431930542,
0.5387292504310608,
0.2254306524991989,
-0.011550755240023136,
-0.09314990043640137,
-0.6200862526893616,
-0.13118571043014526,
-0.06297032535076141,
-0.06480634957551956,
0.33653676509... | |
44 45 46 47
* | [
1.2409861087799072,
0.3978305160999298,
-0.4708951711654663,
-0.05136632174253464,
-0.10441843420267105,
0.5922043323516846,
0.4538968503475189,
-0.2787114977836609,
0.10953360795974731,
-0.4279928207397461,
-0.09863326698541641,
0.1760837882757187,
-0.224678173661232,
-0.0907394215464592,... | |
66 67 68 69
*
*/
// YUV420PackedSemiPlanar64x32Tile2m8ka, // 12 bit, yyyyyyyy vuvu
// YUV420Planar, 12 bit, yyyyyyyy uu vv
#pragma pack(1)
typedef enum {
Scan_Init = 0,
Scan_Hor,
Scan_VerDown,
Scan_VerUp
} ScanMode;
typedef struct{
uint16_t startMbIndex;
uint8_t | [
-0.26322507858276367,
-0.39512214064598083,
0.6698147654533386,
-0.06679700314998627,
-0.1102529987692833,
0.19281631708145142,
0.22669601440429688,
-0.3815845549106598,
-0.2211890071630478,
-0.5235504508018494,
-0.4203537404537201,
0.3779035210609436,
-0.4541621208190918,
0.06844987720251... | |
numMBs;
// bool lastTileInHor;
bool lastTileInVer;
} MbGroup;
#pragma pack()
#define ALIGN_B(x,a) (((x)+(a)-1) &(~((a)-1)))
#define MAX_RESOLUTION_X 1920 // 4096
#define MAX_RESOLUTION_Y 1088 // 3072
#define MAX_TILES_NUM (((MAX_RESOLUTION_X+63)>>6) * ((MAX_RESOLUTION_Y+31)>... | [
-0.42515695095062256,
-0.39434072375297546,
0.6012545228004456,
-0.1384000927209854,
-0.17451468110084534,
0.46862584352493286,
0.09791572391986847,
-0.5321494936943054,
-0.30897682905197144,
-0.7439095377922058,
-0.08621970564126968,
0.4026322364807129,
-0.08913035690784454,
0.25149920582... | |
const int32_t stride_y, const int32_t stride_u, const int32_t stride_v )
{
const int32_t srcStrideY = ALIGN_B( width, 128 );
const int32_t srcHeightY = ALIGN_B( height, 32 );
const int32_t srcStrideUV = srcStrideY; // v/u interlaced
const int32_t srcHeightUV = ALIGN_B( (height>>1), 32 );
... | [
-0.3612990975379944,
-0.1863677054643631,
0.639471709728241,
-0.5293667316436768,
-0.19531264901161194,
0.5411124229431152,
0.3550199866294861,
-0.6010920405387878,
-0.15483567118644714,
-0.5537983775138855,
-0.37717172503471375,
0.5764575600624084,
-0.48315367102622986,
-0.233029484748840... | |
(srcStrideUV * srcHeightUV), 8192 );
uint8_t* src_y = src;
uint8_t* src_uv = src_y + srcSizeY;
const int32_t wTiles = (width+63)>>6;
const int32_t hTilesY = (height+31)>>5;
const int32_t hTilesUV = (height/2+31)>>5;
const int32_t numTilesY = wTiles... | [
-0.2765721082687378,
-0.20697803795337677,
0.7109358310699463,
-0.45084914565086365,
-0.16221655905246735,
0.3429073989391327,
0.24063758552074432,
-0.7810345888137817,
-0.1929953694343567,
-0.5203219652175903,
-0.5079143643379211,
0.5070257782936096,
-0.026641182601451874,
-0.021424151957... | |
const int32_t numTilesUV = wTiles*hTilesUV;
const int32_t wMacroblocks = (width+15)>>4;
const int32_t hMacroblocks = (height+15)>>4;
int32_t numMbInTile = 4*2; // y: 4*2; uv: 4*4
const int32_t mbOffsetTileHor = 4;
int32_t mbOffsetTileVer = (wMacroblocks<<1); // y:... | [
-0.2974001169204712,
-0.3173364996910095,
0.4383355379104614,
-0.22131162881851196,
-0.057145413011312485,
0.507720410823822,
0.3074353337287903,
-0.6074185371398926,
-0.30283984541893005,
-0.5770158767700195,
-0.5736707448959351,
0.7617439031600952,
-0.37323737144470215,
-0.18289925158023... | |
= {0}; // each Tile index storing according MB index
MbGroup uvTileToMb[MAX_TILES_NUM] = {0}; // each Tile index storing according MB index
assert( numTilesY <= MAX_TILES_NUM && numTilesUV <= MAX_TILES_NUM );
int32_t availableTilesY = numTilesY;
int32_t availableTilesUV = numT... | [
-0.32638609409332275,
-0.297696053981781,
0.29988545179367065,
-0.2757624387741089,
-0.19193512201309204,
0.3829812705516815,
0.18145596981048584,
-0.529776930809021,
-0.1510595828294754,
-0.6427217125892639,
-0.3602014183998108,
0.5629804134368896,
-0.22189056873321533,
0.0495626516640186... | |
= 0;
ScanMode preMode = Scan_Init;
ScanMode curMode = Scan_Hor;
int32_t scanedTiles = 0;
int32_t hMbMultiple | [
-0.11959069967269897,
-0.4417034685611725,
0.6929251551628113,
-0.19138027727603912,
0.051438458263874054,
0.041551623493433,
0.10070212185382843,
-0.31113046407699585,
-0.2997032403945923,
-0.3757987320423126,
-0.2277558594942093,
0.42918774485588074,
-0.38757267594337463,
0.1066500097513... | |
= 0;
int32_t cntScanTimesInPeriod = 0; // maximal scan times is up to 4
int32_t cnt1stLineTiles = 0;
int32_t cnt2ndLineTiles = 0;
uint16_t mbPosition = 0; | [
-0.1794680655002594,
-0.4368059039115906,
0.7578107118606567,
-0.24036836624145508,
0.2765074670314789,
0.13964249193668365,
0.2197442203760147,
-0.1666475087404251,
-0.32914239168167114,
-0.5068663358688354,
-0.26554298400878906,
0.6721298098564148,
-0.44199296832084656,
-0.21848958730697... | |
uint16_t lastMbIdx = mbPosition;
uint16_t firstMbIdxUnit = mbPosition;
bool noEnoughMbInTile = false;
// construct yTileToMb table
while( availableTilesY > 0 ){
if ( availableTilesY >= numTilesYPerScanUnit | [
-0.11037276685237885,
-0.4070945084095001,
0.2631898820400238,
-0.3163479268550873,
0.0029237268026918173,
0.14958083629608154,
0.2287411242723465,
-0.15260109305381775,
-0.142089381814003,
-0.6681274175643921,
-0.23258565366268158,
0.43963509798049927,
-0.3086130619049072,
0.0467717573046... | |
){
preMode = Scan_Init;
curMode = Scan_Hor;
lastMbIdx = mbPosition; | [
-0.16809886693954468,
-0.2378193885087967,
0.7032642960548401,
-0.2859780192375183,
0.438963383436203,
0.060202084481716156,
0.4423130750656128,
-0.18021269142627716,
-0.2330596148967743,
-0.23893463611602783,
-0.3670364022254944,
0.29562222957611084,
-0.4463299810886383,
0.353624403476715... | |
firstMbIdxUnit = mbPosition;
cntScanTimesInPeriod = 0; // maximal scan times is up to 4
cnt1stLineTiles = 0;
cnt2ndLineTiles = 0; | [
-0.1205148994922638,
-0.6661200523376465,
0.8517561554908752,
-0.10809610784053802,
0.24563004076480865,
0.15163907408714294,
0.10420495271682739,
-0.17476165294647217,
-0.48100337386131287,
-0.8250480890274048,
0.026311365887522697,
0.31759676337242126,
-0.5298624634742737,
-0.14601427316... | |
noEnoughMbInTile = false;
scanedTiles = 0;
while ( scanedTiles < numTilesYPerScanUnit ){
if ( (tileIndex & 3) == 0 ){ | [
-0.039497602730989456,
-0.36718711256980896,
0.20788909494876862,
-0.0729830339550972,
0.10550650954246521,
-0.055319059640169144,
0.42808330059051514,
-0.08677100390195847,
0.09642958641052246,
-0.48222339153289795,
-0.22139932215213776,
0.33028605580329895,
-0.1280207335948944,
0.2135687... | |
firstMbIdxUnit = mbPosition;
}
noEnoughMbInTile = false;
if ( curMode == Scan_Hor ){
if ( (preMode == Scan_VerUp && cnt1stLineTiles+1>= wTiles) || | [
-0.19912466406822205,
-0.37703937292099,
0.572543203830719,
-0.29940569400787354,
0.20366233587265015,
0.17778551578521729,
0.14705754816532135,
-0.3376960754394531,
-0.12546852231025696,
-0.6429380774497986,
-0.13939671218395233,
0.36822226643562317,
-0.5584596991539001,
0.243490949273109... | |
(preMode == Scan_VerDown && cnt2ndLineTiles+1>= wTiles) ){
noEnoughMbInTile = (ALIGN_B(width, 16) < srcStrideY);
// yTileToMb[tileIndex].lastTileInHor = true; | [
0.027303706854581833,
-0.11064665019512177,
0.6595848202705383,
-0.10729551315307617,
0.1497059166431427,
0.23274369537830353,
0.3187507390975952,
-0.3533119261264801,
-0.016524022445082664,
-0.4882083237171173,
-0.09196139127016068,
0.3322872519493103,
0.027628889307379723,
0.353747516870... | |
}
yTileToMb[tileIndex].startMbIndex = mbPosition;
yTileToMb[tileIndex].numMBs = noEnoughMbInTile ? ((4-((srcStrideY-ALIGN_B(width,16))>>4))<<1) : numMbInTile;
++ tileIndex; | [
-0.24545329809188843,
-0.1828894466161728,
0.50011146068573,
-0.3385885953903198,
0.18548481166362762,
0.30528271198272705,
0.1878790557384491,
-0.27347180247306824,
0.05677648261189461,
-0.410503625869751,
-0.21549582481384277,
0.46511876583099365,
-0.33064424991607666,
0.1460898965597152... | |
++ cntScanTimesInPeriod;
if ( noEnoughMbInTile && cntScanTimesInPeriod == 1){
if ( preMode == Scan_VerDown ){ | [
-0.04532501846551895,
-0.3463292419910431,
0.8059735298156738,
-0.16141703724861145,
0.5065740942955017,
-0.00806692335754633,
0.42023974657058716,
-0.04893392324447632,
-0.04717898741364479,
-0.42742234468460083,
-0.2683606445789337,
0.5876896381378174,
-0.13382874429225922,
0.35691887140... | |
preMode = curMode; // scan mode change need upate preMode
curMode = Scan_VerUp;
++ cnt2ndLineTiles; | [
0.08614898473024368,
-0.049195148050785065,
0.7575751543045044,
-0.06254985928535461,
0.016014069318771362,
0.20317567884922028,
0.3059171736240387,
-0.48790431022644043,
-0.2839795649051666,
-0.2875065505504608,
-0.0804300308227539,
0.40251266956329346,
-0.3211146295070648,
0.382138341665... | |
mbPosition = firstMbIdxUnit - mbOffsetTileVer;
}else if ( preMode == Scan_VerUp ){
preMode = curMode; // scan mode change need upate preMode | [
-0.09114235639572144,
-0.3477117419242859,
0.6909698843955994,
-0.18246102333068848,
0.12274651229381561,
0.1633070707321167,
0.30153337121009827,
-0.3915972113609314,
-0.4516303539276123,
-0.46685129404067993,
-0.009949825704097748,
0.4696808457374573,
-0.5089170932769775,
0.2527649402618... | |
curMode = Scan_VerDown;
++ cnt1stLineTiles;
mbPosition = firstMbIdxUnit + mbOffsetTileVer; | [
-0.27520227432250977,
-0.273382306098938,
0.5091813206672668,
-0.1804627925157547,
0.02524212747812271,
0.21324416995048523,
0.0003749424940906465,
-0.07498527318239212,
-0.22264496982097626,
-0.6574622988700867,
-0.2146889716386795,
0.3235607147216797,
-0.7105266451835632,
0.4323262870311... | |
}
}else if ( cntScanTimesInPeriod == 2 ){
if ( preMode == Scan_Init || preMode == Scan_VerUp ){
preMode = curMode; // scan mode change need upate preMode | [
-0.047183338552713394,
-0.21649405360221863,
0.9278719425201416,
-0.04705605283379555,
0.37309104204177856,
-0.052804961800575256,
0.2257286161184311,
-0.28354591131210327,
-0.3658437430858612,
-0.32026082277297974,
-0.03287608548998833,
0.49504807591438293,
-0.32635432481765747,
0.3076601... | |
curMode = Scan_VerDown;
++ cnt1stLineTiles;
mbPosition = firstMbIdxUnit + mbOffsetTileVer; | [
-0.27520227432250977,
-0.273382306098938,
0.5091813206672668,
-0.1804627925157547,
0.02524212747812271,
0.21324416995048523,
0.0003749424940906465,
-0.07498527318239212,
-0.22264496982097626,
-0.6574622988700867,
-0.2146889716386795,
0.3235607147216797,
-0.7105266451835632,
0.4323262870311... | |
}else if ( preMode == Scan_VerDown ){
preMode = curMode; // scan mode change need upate preMode
curMode = Scan_VerUp; | [
0.08660046011209488,
-0.16330714523792267,
0.7799096703529358,
-0.23206040263175964,
0.4072316288948059,
-0.01485152542591095,
0.4457613229751587,
-0.4047808051109314,
-0.2089613676071167,
-0.23202919960021973,
-0.29189664125442505,
0.5991770625114441,
-0.3500940203666687,
0.29415082931518... | |
++ cnt2ndLineTiles;
mbPosition = firstMbIdxUnit - mbOffsetTileVer;
}
}else if ( cntScanTimesInPeriod == 4 ){ | [
-0.33062684535980225,
-0.29252222180366516,
0.5326778888702393,
-0.21363948285579681,
0.2510254979133606,
0.2770327925682068,
-0.028812650591135025,
-0.0891309604048729,
-0.318996787071228,
-0.5158228278160095,
-0.1502777487039566,
0.5268397927284241,
-0.36693376302719116,
0.22312328219413... | |
if ( preMode == Scan_VerDown ){
++ cnt2ndLineTiles; | [
0.04404659941792488,
-0.2594902515411377,
0.3971320688724518,
-0.13495199382305145,
0.49800756573677063,
0.06427399069070816,
0.32036900520324707,
-0.08386582136154175,
0.00783964991569519,
-0.36352238059043884,
-0.3425552546977997,
0.49773290753364563,
-0.01666497252881527,
0.324322640895... | |
mbPosition += mbOffsetTileHor;
}else if ( preMode == Scan_VerUp ){
++ cnt1stLineTiles;
mbPosition += mbOffsetTileHor; | [
-0.27864786982536316,
-0.17021961510181427,
0.4606725573539734,
-0.21986088156700134,
0.1279403120279312,
0.4233793020248413,
0.38350048661231995,
-0.08671005815267563,
-0.4065563678741455,
-0.4842575788497925,
-0.19809745252132416,
0.31089073419570923,
-0.44276151061058044,
0.123772703111... | |
}
}else{
if ( preMode == Scan_Init ){
++ cnt1stLineTiles; | [
0.02732488512992859,
-0.42154955863952637,
0.39707058668136597,
-0.13661544024944305,
0.46975234150886536,
0.0092847915366292,
0.2917388379573822,
0.02640431933104992,
-0.060586072504520416,
-0.404238760471344,
-0.19722037017345428,
0.5891597867012024,
-0.16242435574531555,
0.1149538382887... | |
}else if ( preMode == Scan_VerDown ){
++ cnt2ndLineTiles;
}else if ( preMode == Scan_VerUp ){ | [
0.08063384890556335,
-0.3016752302646637,
0.39556315541267395,
-0.0478648878633976,
0.3458904027938843,
0.2619144022464752,
0.43689781427383423,
-0.0905381366610527,
-0.297710657119751,
-0.2840491831302643,
-0.21358256042003632,
0.5048070549964905,
0.038357120007276535,
0.3210184574127197,... | |
++ cnt1stLineTiles;
}
if ( cnt2ndLineTiles >= wTiles && preMode == Scan_VerDown ){ | [
0.09771749377250671,
-0.3026624619960785,
0.44456052780151367,
-0.19963306188583374,
0.34881338477134705,
0.2899257242679596,
0.2933042347431183,
-0.3291870355606079,
-0.08267989754676819,
-0.5724877119064331,
-0.1073978841304779,
0.4623740017414093,
-0.28249049186706543,
0.173091754317283... | |
preMode = curMode; // scan mode change need upate preMode
curMode = Scan_VerUp;
mbPosition = firstMbIdxUnit - | [
-0.09569399058818817,
-0.20501668751239777,
0.580482542514801,
-0.013490632176399231,
-0.06794819235801697,
0.2688773572444916,
0.30665871500968933,
-0.4975988268852234,
-0.4230148196220398,
-0.4453839361667633,
-0.0060184672474861145,
0.4343999922275543,
-0.44815385341644287,
0.2431224435... | |
mbOffsetTileVer;
}else if ( cnt1stLineTiles >= wTiles && preMode == Scan_VerUp ){
preMode = curMode; // scan mode change need upate preMode | [
-0.04008597508072853,
-0.2488003969192505,
0.7265826463699341,
-0.0711192861199379,
0.2932822108268738,
0.20766544342041016,
0.35584500432014465,
-0.4478723704814911,
-0.45575425028800964,
-0.24898165464401245,
-0.04248147830367088,
0.5808678269386292,
-0.5443596243858337,
0.32339420914649... | |
curMode = Scan_VerDown;
mbPosition = firstMbIdxUnit + mbOffsetTileVer;
}else{ | [
-0.23457352817058563,
-0.11207184195518494,
0.4878215789794922,
-0.3138171434402466,
0.16599859297275543,
0.02156207151710987,
0.20368817448616028,
-0.07799922674894333,
-0.18606585264205933,
-0.5255842208862305,
-0.1936206966638565,
0.5992944836616516,
-0.607085645198822,
0.39477714896202... | |
mbPosition += mbOffsetTileHor;
}
}
}else if ( curMode == Scan_VerUp ){
if | [
-0.12557190656661987,
-0.21413199603557587,
0.5688570141792297,
-0.2956728935241699,
0.07492729276418686,
0.10486852377653122,
0.29144540429115295,
-0.21710969507694244,
-0.4269644021987915,
-0.39425987005233765,
-0.13508015871047974,
0.5033659338951111,
-0.48307350277900696,
0.22283677756... | |
( cnt1stLineTiles+1 >= wTiles ){
noEnoughMbInTile = (ALIGN_B(width, 16) < srcStrideY);
// yTileToMb[tileIndex].lastTileInHor = true;
}
yTileToMb[tileIndex].startMbIndex= mbPosition; | [
-0.1917845606803894,
-0.22748856246471405,
0.6753606200218201,
-0.30447423458099365,
0.08040148764848709,
0.3191368579864502,
0.06832334399223328,
-0.3469584584236145,
-0.07580919563770294,
-0.5195593237876892,
-0.14261677861213684,
0.21069714426994324,
-0.17016397416591644,
0.199836358428... | |
yTileToMb[tileIndex].numMBs = noEnoughMbInTile ? ((4-((srcStrideY-ALIGN_B(width,16))>>4))<<1) : numMbInTile;
++ tileIndex;
mbPosition += mbOffsetTileHor;
++ cntScanTimesInPeriod; | [
-0.003303303150460124,
-0.05032731220126152,
0.7926872968673706,
-0.157744899392128,
0.09217645972967148,
0.3944462835788727,
-0.02724560908973217,
-0.10010747611522675,
-0.07242537289857864,
-0.5939739942550659,
-0.22660505771636963,
0.47208428382873535,
-0.3186514675617218,
0.25327193737... | |
++ cnt1stLineTiles;
preMode = curMode; // scan mode change need upate preMode
curMode = Scan_Hor;
}else if ( curMode == Scan_VerDown ){ | [
-0.04073835536837578,
-0.06393682956695557,
0.9619524478912354,
-0.21064762771129608,
0.23303361237049103,
-0.09103335440158844,
0.19373755156993866,
-0.4710172712802887,
-0.30432409048080444,
-0.1939074993133545,
-0.15284296870231628,
0.5285535454750061,
-0.40103745460510254,
0.1878460645... | |
if ( cnt2ndLineTiles+1 >= wTiles ){
noEnoughMbInTile = (ALIGN_B(width, 16) < srcStrideY);
// yTileToMb[tileIndex].lastTileInHor = true;
} | [
0.031019452959299088,
-0.26748234033584595,
0.6172735095024109,
-0.2505303919315338,
0.18112832307815552,
0.22537139058113098,
0.03582705557346344,
-0.3297826051712036,
0.04494894668459892,
-0.5870684385299683,
-0.0018733185715973377,
0.3219572603702545,
-0.03677941858768463,
0.19819863140... | |
yTileToMb[tileIndex].startMbIndex= mbPosition;
yTileToMb[tileIndex].numMBs = noEnoughMbInTile ? ((4-((srcStrideY-ALIGN_B(width,16))>>4))<<1) : numMbInTile;
++ tileIndex;
mbPosition += mbOffsetTileHor; | [
-0.19949546456336975,
-0.11448533833026886,
0.5972362756729126,
-0.32572630047798157,
-0.03545929118990898,
0.4286978840827942,
0.14984793961048126,
-0.3192385137081146,
-0.09227336943149567,
-0.4815487861633301,
-0.3471899628639221,
0.3328994810581207,
-0.39308521151542664,
0.170845463871... | |
++ cntScanTimesInPeriod;
++ cnt2ndLineTiles;
preMode = curMode; // scan mode change need upate preMode
curMode = Scan_Hor;
} | [
-0.21946823596954346,
-0.20344491302967072,
0.8916664123535156,
-0.13455210626125336,
0.3620416224002838,
-0.0061460696160793304,
0.033798716962337494,
-0.3486749231815338,
-0.3023131191730499,
-0.31411871314048767,
-0.0725875124335289,
0.5435003638267517,
-0.431366503238678,
0.10517474263... | |
cntScanTimesInPeriod &= 0x03;
++ scanedTiles;
}
mbPosition = lastMbIdx + (mbOffsetTileVer<<1);
availableTilesY -= numTilesYPerScanUnit;
}else{
scanedTiles = 0; | [
-0.25729885697364807,
-0.42050817608833313,
0.788716197013855,
-0.05122222751379013,
0.2956002950668335,
0.27122962474823,
-0.06712241470813751,
0.006026877090334892,
-0.3581863045692444,
-0.6616376638412476,
-0.13923035562038422,
0.5311320424079895,
-0.37523984909057617,
0.090315908193588... | |
hMbMultiple = hMacroblocks - (tileIndex/wTiles)*2;
noEnoughMbInTile = false;
while ( scanedTiles < wTiles ){
yTileToMb[tileIndex].startMbIndex = mbPosition;
yTileToMb[tileIndex].lastTileInVer= true;
if ( scanedTiles+1 == wTiles ){ | [
-0.17159722745418549,
-0.37672606110572815,
0.8088067173957825,
-0.20504993200302124,
0.2281084656715393,
0.2606302797794342,
0.298296719789505,
-0.4960486590862274,
-0.1327403485774994,
-0.3855213224887848,
-0.26971542835235596,
0.35765355825424194,
-0.3140946924686432,
0.0774405226111412... | |
noEnoughMbInTile = (ALIGN_B(width, 16) < srcStrideY);
// yTileToMb[tileIndex].lastTileInHor = true;
}
yTileToMb[tileIndex].numMBs = noEnoughMbInTile ? ((4-((srcStrideY-ALIGN_B(width,16))>>4))*hMbMultiple) : (4*hMbMultiple);
++ tileIndex; | [
-0.4668470025062561,
-0.11068709939718246,
0.591552197933197,
-0.19707706570625305,
0.058260928839445114,
0.37702304124832153,
0.35498037934303284,
-0.3376806974411011,
-0.19355252385139465,
-0.32832494378089905,
-0.3538278043270111,
0.2612391412258148,
-0.0372474379837513,
0.2773200869560... | |
mbPosition += mbOffsetTileHor;
++ scanedTiles;
}
availableTilesY -= wTiles;
}
}
numMbInTile = 4*4;
mbOffsetTileVer = (wMacroblocks<<2);
mbPosition = 0;
tileIndex = 0;
// construct uvTileToMb | [
-0.28828856348991394,
-0.23590394854545593,
0.6186067461967468,
-0.3307323157787323,
-0.15792763233184814,
0.3585854470729828,
0.3894258737564087,
-0.44054603576660156,
-0.2522799074649811,
-0.7536177039146423,
-0.21700336039066315,
0.2907028794288635,
-0.5047568082809448,
-0.0017471808241... | |
table
while( availableTilesUV > 0 ){
if ( availableTilesUV >= numTilesYPerScanUnit ){
preMode = Scan_Init;
curMode = Scan_Hor; | [
-0.03117765113711357,
-0.28359249234199524,
0.6116756200790405,
-0.056592654436826706,
0.1340993493795395,
-0.03960837423801422,
0.02085679955780506,
-0.24333417415618896,
-0.0021319775842130184,
-0.4300611913204193,
-0.1668597310781479,
0.39074984192848206,
-0.2396090030670166,
0.16000035... | |
lastMbIdx = mbPosition;
firstMbIdxUnit = mbPosition;
cntScanTimesInPeriod= 0; // maximal scan times is up to 4
cnt1stLineTiles = 0;
cnt2ndLineTiles = 0; | [
-0.2662597894668579,
-0.6702021956443787,
0.8725293278694153,
-0.10558705776929855,
0.22644756734371185,
0.15823905169963837,
0.15728239715099335,
-0.11703243106603622,
-0.597987711429596,
-0.7367209792137146,
-0.11055196821689606,
0.2970171868801117,
-0.2327776998281479,
-0.25032502412796... | |
noEnoughMbInTile = false;
scanedTiles = 0;
while ( scanedTiles < numTilesYPerScanUnit ){
if ( (tileIndex & 3) == 0 ){ | [
-0.039497602730989456,
-0.36718711256980896,
0.20788909494876862,
-0.0729830339550972,
0.10550650954246521,
-0.055319059640169144,
0.42808330059051514,
-0.08677100390195847,
0.09642958641052246,
-0.48222339153289795,
-0.22139932215213776,
0.33028605580329895,
-0.1280207335948944,
0.2135687... | |
firstMbIdxUnit = mbPosition;
}
noEnoughMbInTile = false;
if ( curMode == Scan_Hor ){
if ( (preMode == Scan_VerUp && cnt1stLineTiles+1>= wTiles) || | [
-0.19912466406822205,
-0.37703937292099,
0.572543203830719,
-0.29940569400787354,
0.20366233587265015,
0.17778551578521729,
0.14705754816532135,
-0.3376960754394531,
-0.12546852231025696,
-0.6429380774497986,
-0.13939671218395233,
0.36822226643562317,
-0.5584596991539001,
0.243490949273109... | |
(preMode == Scan_VerDown && cnt2ndLineTiles+1>= wTiles) ){
noEnoughMbInTile = (ALIGN_B(width, 16) < srcStrideY);
// uvTileToMb[tileIndex].lastTileInHor = true; | [
-0.19907763600349426,
-0.12999829649925232,
0.7070475220680237,
-0.2434139847755432,
0.040599387139081955,
0.25856608152389526,
0.40905487537384033,
-0.41672608256340027,
-0.05571632459759712,
-0.5672345161437988,
-0.1546235829591751,
0.3390708863735199,
0.041620977222919464,
0.27105209231... | |
}
uvTileToMb[tileIndex].startMbIndex = mbPosition;
uvTileToMb[tileIndex].numMBs = noEnoughMbInTile ? ((4-((srcStrideY-ALIGN_B(width,16))>>4))<<2) : numMbInTile;
++ tileIndex; | [
-0.43754446506500244,
-0.16476261615753174,
0.5871581435203552,
-0.4755168855190277,
0.08263574540615082,
0.3270885646343231,
0.2630065679550171,
-0.3370201289653778,
-0.0253440048545599,
-0.545136570930481,
-0.2909732460975647,
0.4663946330547333,
-0.3076680600643158,
0.003282961901277303... | |
++ cntScanTimesInPeriod;
if ( noEnoughMbInTile && cntScanTimesInPeriod == 1){
if ( preMode == Scan_VerDown ){ | [
-0.04532501846551895,
-0.3463292419910431,
0.8059735298156738,
-0.16141703724861145,
0.5065740942955017,
-0.00806692335754633,
0.42023974657058716,
-0.04893392324447632,
-0.04717898741364479,
-0.42742234468460083,
-0.2683606445789337,
0.5876896381378174,
-0.13382874429225922,
0.35691887140... | |
preMode = curMode; // scan mode change need upate preMode
curMode = Scan_VerUp;
++ cnt2ndLineTiles; | [
0.08614898473024368,
-0.049195148050785065,
0.7575751543045044,
-0.06254985928535461,
0.016014069318771362,
0.20317567884922028,
0.3059171736240387,
-0.48790431022644043,
-0.2839795649051666,
-0.2875065505504608,
-0.0804300308227539,
0.40251266956329346,
-0.3211146295070648,
0.382138341665... | |
mbPosition = firstMbIdxUnit - mbOffsetTileVer;
}else if ( preMode == Scan_VerUp ){
preMode = curMode; // scan mode change need upate preMode | [
-0.09114235639572144,
-0.3477117419242859,
0.6909698843955994,
-0.18246102333068848,
0.12274651229381561,
0.1633070707321167,
0.30153337121009827,
-0.3915972113609314,
-0.4516303539276123,
-0.46685129404067993,
-0.009949825704097748,
0.4696808457374573,
-0.5089170932769775,
0.2527649402618... | |
curMode = Scan_VerDown;
++ cnt1stLineTiles;
mbPosition = firstMbIdxUnit + mbOffsetTileVer;
} | [
-0.2902080714702606,
-0.18988530337810516,
0.5180272459983826,
-0.18111561238765717,
0.14394517242908478,
0.2567823529243469,
0.04712997004389763,
-0.03690586984157562,
-0.2480117231607437,
-0.6458654403686523,
-0.19343367218971252,
0.45080435276031494,
-0.6306920051574707,
0.4310419559478... | |
}else if ( cntScanTimesInPeriod == 2 ){
if ( preMode == Scan_Init || preMode == Scan_VerUp ){
preMode = curMode; // scan mode change need upate preMode | [
-0.02974877320230007,
-0.2198002189397812,
0.9035950899124146,
-0.00859592854976654,
0.3838520646095276,
-0.06632868200540543,
0.23066118359565735,
-0.28296512365341187,
-0.3574857711791992,
-0.32228466868400574,
-0.0214594267308712,
0.49706313014030457,
-0.3221248686313629,
0.282567679882... | |
curMode = Scan_VerDown;
++ cnt1stLineTiles;
mbPosition = firstMbIdxUnit + mbOffsetTileVer; | [
-0.27520227432250977,
-0.273382306098938,
0.5091813206672668,
-0.1804627925157547,
0.02524212747812271,
0.21324416995048523,
0.0003749424940906465,
-0.07498527318239212,
-0.22264496982097626,
-0.6574622988700867,
-0.2146889716386795,
0.3235607147216797,
-0.7105266451835632,
0.4323262870311... | |
}else if ( preMode == Scan_VerDown ){
preMode = curMode; // scan mode change need upate preMode
curMode = Scan_VerUp; | [
0.08660046011209488,
-0.16330714523792267,
0.7799096703529358,
-0.23206040263175964,
0.4072316288948059,
-0.01485152542591095,
0.4457613229751587,
-0.4047808051109314,
-0.2089613676071167,
-0.23202919960021973,
-0.29189664125442505,
0.5991770625114441,
-0.3500940203666687,
0.29415082931518... | |
++ cnt2ndLineTiles;
mbPosition = firstMbIdxUnit - mbOffsetTileVer;
}
}else if ( cntScanTimesInPeriod == 4 ){ | [
-0.33062684535980225,
-0.29252222180366516,
0.5326778888702393,
-0.21363948285579681,
0.2510254979133606,
0.2770327925682068,
-0.028812650591135025,
-0.0891309604048729,
-0.318996787071228,
-0.5158228278160095,
-0.1502777487039566,
0.5268397927284241,
-0.36693376302719116,
0.22312328219413... | |
if ( preMode == Scan_VerDown ){
++ cnt2ndLineTiles; | [
0.04404659941792488,
-0.2594902515411377,
0.3971320688724518,
-0.13495199382305145,
0.49800756573677063,
0.06427399069070816,
0.32036900520324707,
-0.08386582136154175,
0.00783964991569519,
-0.36352238059043884,
-0.3425552546977997,
0.49773290753364563,
-0.01666497252881527,
0.324322640895... | |
mbPosition += mbOffsetTileHor;
}else if ( preMode == Scan_VerUp ){
++ cnt1stLineTiles;
mbPosition += mbOffsetTileHor; | [
-0.27864786982536316,
-0.17021961510181427,
0.4606725573539734,
-0.21986088156700134,
0.1279403120279312,
0.4233793020248413,
0.38350048661231995,
-0.08671005815267563,
-0.4065563678741455,
-0.4842575788497925,
-0.19809745252132416,
0.31089073419570923,
-0.44276151061058044,
0.123772703111... | |
}
}else{
if ( preMode == Scan_Init ){
++ cnt1stLineTiles; | [
0.02732488512992859,
-0.42154955863952637,
0.39707058668136597,
-0.13661544024944305,
0.46975234150886536,
0.0092847915366292,
0.2917388379573822,
0.02640431933104992,
-0.060586072504520416,
-0.404238760471344,
-0.19722037017345428,
0.5891597867012024,
-0.16242435574531555,
0.1149538382887... | |
}else if ( preMode == Scan_VerDown ){
++ cnt2ndLineTiles;
}else if ( preMode == Scan_VerUp ){ | [
0.08063384890556335,
-0.3016752302646637,
0.39556315541267395,
-0.0478648878633976,
0.3458904027938843,
0.2619144022464752,
0.43689781427383423,
-0.0905381366610527,
-0.297710657119751,
-0.2840491831302643,
-0.21358256042003632,
0.5048070549964905,
0.038357120007276535,
0.3210184574127197,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.