Skip to content

Commit 74eedaa

Browse files
authored
Merge pull request #41 from mariodon/master
2 parents b048752 + 6dc0e8a commit 74eedaa

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

players/mariodon/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,13 @@ int main()
235235
236236
```
237237

238-
顺便,之前那位的做法在新版 gcc 也行不通了,因为目前 `const char []` 所在的 `.rodata` 不是可执行了
238+
顺便,之前那位的做法在新版 gcc 也行不通了,因为目前 `.rodata` 所在的 Segment Section 不再是可执行了
239+
240+
之前 gcc 把 .text 和 .rodata 合并在一起看起来是[优化](https://stackoverflow.com/questions/44938745/rodata-section-loaded-in-executable-page)
241+
242+
![readelf](assets/readelf.png)
243+
244+
![readelf2](assets/readelf2.png)
239245

240246
## 图之上的信息
241247

@@ -455,9 +461,9 @@ RAID 5 特点是把连续数据分散到多个盘储存,有冗余并且有 左
455461

456462
那么第一步,就是将 gif 读取成一个 numpy 数组
457463

458-
这解析 gif 还挺坑的,试了好多库读出来的数据格式都和原来不一样
464+
没想到这解析 gif 还挺坑的,试了好多库读出来的数据格式都和原来不一样
459465

460-
找了个 librosa 的 example sound 作为调试,完成了解析 gif 的代码
466+
找了个 librosa 的 example sound 来调试,完成了解析 gif 的代码
461467

462468
```python
463469
gif_frames = []
@@ -478,7 +484,6 @@ for image_file in frame_list:
478484
S = []
479485
red_pixel_np = np.array(red_pixel)
480486
white_pixel_np = np.array(white_pixel)
481-
freq_range = range(num_freqs * 2 + 1)
482487

483488
for frame in gif_frames:
484489
S_frame = []

players/mariodon/assets/readelf.png

64.4 KB
Loading

players/mariodon/assets/readelf2.png

67.6 KB
Loading

0 commit comments

Comments
 (0)