Skip to content

lrafaelz/AV1_SymbolsAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎞️ AV1_SymbolsAnalysis

Status: finished

The goal:

To analyze the AV1 software enconder results, from the replacement of the file Aom/aom_dsp/entenc.c with my colleague’s file @tuliopereirab available in his repository: arithmetic-encoder-av1. Thus generating when running AV1 an output file main_data.csv later used in Count_Symbols.py.

Count_Symbols.py:

This is the main python file, where it formats and organizes the values of the 5th and 6th columns of main_data.csv (respectively n and nsyms) in a matrix and creates from this a new matrix with the recurrence (%) of each symbol in each alphabet (or each s in each nsyms, as described in entenc.c). Description of how to run (also present as comment in the code itself):

  • to run this code is necessary write 3 parameters in terminal
  • first input cq20.csv file and second input cq55.csv file (different CQs files will be compared in the compilation output), like in under example:
    python Count_Symbols.py boat_cq20.csv boat_cq55.csv
Output:

boat.xlsx

ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJ
1
CQ 200123456789101112131415 CQ 550123456789101112131415
2
087041856060000000000000006375618200000000000000
3
1000000000000000010000000000000000
4
210534578443000000000000002159891903200000000000000
5
338934701475800000000000003561214354690000000000000
6
4162191830633083547356000000000000423471615717621796000000000000
7
516937242147203225490000000000059819324432724800000000000
8
6162530162714011579101400000000006521023203040000000000
9
7204532551977521298035582527100000000074825173581787973576531000000000
10
8103623049251986894255226000000000856110110927013470282100000000
11
92363742513638836027357210000000932832149791727428100000000
12
1023351457334289330533716513115422100000001011363981695677991463225974000000
13
11258369546330713896691191000000112841229586735527192213000000
14
12225364743140154950323500001200121331081440000
15
134032639403219630322886882718515081975553130001387013894051105652231493433361114179000
16
1446043262287741931233462245838492117510525001415521087746836504131511600
17
150000000000000000150000000000000000
18
16639172188483874422424820716817110531214821628316211438678191871778527
19
Sum:414341261964446186023816587875778081773207123214928121135673216283 Sum:5683134439510749981831948898246341432831283382127
20
21
% of symb
0123456789101112131415
% of symb
0123456789101112131415
22
050,42%49,58%050,77%49,23%
23
11
24
257,32%42,68%245,66%54,34%
25
383,36%15,02%1,62%374,67%19,09%6,24%
26
450,14%25,68%9,53%14,64%470,73%18,55%5,31%5,41%
27
518,51%7,92%23,48%22,22%27,87%58,83%17,39%21,98%29,46%22,34%
28
624,82%4,60%9,58%21,40%24,12%15,49%637,41%7,19%16,55%14,39%21,58%2,88%
29
76,17%9,82%5,96%15,72%29,58%16,84%15,90%79,23%9,90%6,85%34,21%18,63%11,03%10,16%
30
821,15%4,69%10,04%10,59%17,72%19,23%11,27%5,31%843,35%7,81%8,42%20,87%10,36%5,41%2,16%1,62%
31
912,21%1,91%21,99%7,04%20,07%18,62%14,12%2,95%1,09%938,01%3,71%17,27%9,15%19,93%8,57%3,24%0,12%
32
1024,05%15,01%3,44%29,80%3,14%3,47%1,70%1,35%15,88%2,16%1039,85%13,96%5,93%19,89%2,77%3,19%1,61%1,12%9,08%2,60%
33
1159,08%15,90%10,59%7,02%3,16%2,20%1,58%0,25%0,21%0,02%1135,68%15,33%11,93%10,80%9,17%6,91%3,39%2,39%2,76%1,63%
34
120,45%0,45%11,86%14,32%16,55%6,94%8,95%3,36%10,96%11,19%7,16%7,83%1232,43%2,70%8,11%8,11%2,70%21,62%2,70%10,81%10,81%
35
1329,04%4,60%29,04%1,41%2,18%1,64%6,25%5,96%1,33%10,86%1,42%4,00%2,25%1326,67%4,23%28,82%1,56%3,22%1,99%6,84%4,57%1,04%10,21%1,87%3,49%5,49%
36
1446,68%3,31%23,19%0,75%1,96%1,25%3,51%2,27%0,59%3,89%0,93%1,19%5,17%5,32%1458,85%4,10%29,35%0,23%0,30%0,11%0,23%0,19%0,15%0,04%0,11%5,73%0,61%
37
1515
38
1617,95%4,83%5,28%1,35%10,87%1,24%6,29%6,97%5,81%4,72%4,80%2,95%8,76%4,16%6,07%7,95%1613,38%8,92%1,91%5,10%3,82%4,46%5,10%12,10%11,46%4,46%10,83%4,46%5,10%3,18%1,27%4,46%

Combine_Sheets.py:

This is a secondary python file whose your only propouse is combine different .xlsx files in a only file divided by differents worksheet in the same file(however it loses formatting of the original file). Description of how to run (also present as comment in the code itself):

  • To run this code you need at least 2 parameters in the terminal.
  • first is the name of output xlsx file: output.xlsx file
  • and the second argument is the file that will be attached to the output sheet example: boat.xlsx
  • in that program one can write as many arguments as you please, and all the files added by argument will be added in the output sheet in differents worksheets.
    Example to run:
    python Combine_Sheets.py output.xlsx boat.xlsx dark.xlsx KristenAndSara.xlsx minecraft.xlsx Netflix_DrivingPOV.xlsx Netflix_RollerCoaster.xlsx Netflix_SquareAndTimelapse.xlsx Netflix_TunnelFlag.xlsx rush_hour.xlsx

Releases

No releases published

Packages

No packages published

Languages