File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,13 @@ int main()
235
235
236
236
```
237
237
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 )
239
245
240
246
## 图之上的信息
241
247
@@ -455,9 +461,9 @@ RAID 5 特点是把连续数据分散到多个盘储存,有冗余并且有 左
455
461
456
462
那么第一步,就是将 gif 读取成一个 numpy 数组
457
463
458
- 这解析 gif 还挺坑的,试了好多库读出来的数据格式都和原来不一样
464
+ 没想到这解析 gif 还挺坑的,试了好多库读出来的数据格式都和原来不一样
459
465
460
- 找了个 librosa 的 example sound 作为调试 ,完成了解析 gif 的代码
466
+ 找了个 librosa 的 example sound 来调试 ,完成了解析 gif 的代码
461
467
462
468
``` python
463
469
gif_frames = []
@@ -478,7 +484,6 @@ for image_file in frame_list:
478
484
S = []
479
485
red_pixel_np = np.array(red_pixel)
480
486
white_pixel_np = np.array(white_pixel)
481
- freq_range = range (num_freqs * 2 + 1 )
482
487
483
488
for frame in gif_frames:
484
489
S_frame = []
You can’t perform that action at this time.
0 commit comments