Skip to content

Commit 8d1a758

Browse files
authored
Merge pull request #119 from AcademySoftwareFoundation/improve_imhex_pattern
Improve ImHex Pattern file to detect file type automatically
2 parents 30cffeb + aef069c commit 8d1a758

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ Decoding:
103103

104104
Pattern file of APV bitstream for [ImHex](https://github.com/WerWolv/ImHex) is provided [here](/util/apv.hexpat).
105105
1. Install [ImHex](https://github.com/WerWolv/ImHex) application
106-
2. Download [APV pattern file](/util/apv.hexpat)
107-
2. Open APV bitstream (\*.apv file) with ImHex
108-
3. Import the APV pattern file on Pattern editor view of ImHex and apply
106+
2. Download [APV pattern file](/util/apv.hexpat) and copy it to 'patterns' directory of the ImHex application
107+
3. Open an APV bitstream (*.apv file) file with the ImHex application
108+
4. The APV pattern file will be selected automatically and press 'yes' to apply it
109109

110110
![APV_on_ImHex](/readme/img/apv_parser_on_imhex.png)
111111

util/apv.hexpat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#pragma pattern for Advanced Professional Video (*.apv)
22

3+
#pragma magic [ 61 50 76 31 ] @ 0x04
4+
#pragma endian big
5+
36
import std.io;
47
import std.mem;
5-
#pragma endian big
68

79
/* PBU types */
810
enum PbuType : u8 {

0 commit comments

Comments
 (0)