Skip to content

Commit 3d4f514

Browse files
committed
Fix various typos
1 parent 7b3c983 commit 3d4f514

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed

src/aaf2/auid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class AUID(object):
66
"""
7-
A higher performance UUID class that is more specialised for AAF.
7+
A higher performance UUID class that is more specialized for AAF.
88
"""
99
__slots__ = ('bytes_le')
1010
def __init__(self, hex=None, bytes_le=None, bytes_be=None, int=None):

src/aaf2/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def make_first(self, node):
4343
node.prev = self.head.prev
4444
node.next = self.head.prev.next
4545

46-
# update neighbours to point to new node
46+
# update neighbors to point to new node
4747
node.next.prev = node
4848
node.prev.next = node
4949

src/aaf2/cfb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def read(self, n=-1):
164164

165165
while bytes_to_read > 0:
166166

167-
# inlined on purpose this loop runs alot
167+
# inlined on purpose this loop runs a lot
168168
if is_mini_stream:
169169
mini_stream_sid = self.fat_chain[mini_fat_index]
170170
mini_stream_pos = (mini_stream_sid * mini_sector_size) + mini_sector_offset
@@ -267,7 +267,7 @@ def write(self, data):
267267

268268
while data_size > 0:
269269

270-
# inlined on purpose this method can get called alot
270+
# inlined on purpose this method can get called a lot
271271
if is_mini_stream:
272272
mini_stream_sid = self.fat_chain[mini_fat_index]
273273
mini_stream_pos = (mini_stream_sid * mini_sector_size) + mini_sector_offset
@@ -405,7 +405,7 @@ def validate_rbtree(root):
405405
raise CompoundFileBinaryError("Binary tree violation")
406406

407407
# Black height mismatch
408-
# cannot gerentee all aaf Implementions use rbtree
408+
# cannot guarantee all aaf Implementations use rbtree
409409
# if lh != 0 and rh != 0 and lh != rh:
410410
# print(lh, rh)
411411
# raise CompoundFileBinaryError("Black violation {}".format(root.path()))

src/aaf2/metadict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def read_properties(self):
521521
prop = typedef.property_entries.pop(old_pid)
522522
prop.pid = new_pid
523523
typedef.property_entries[new_pid] = prop
524-
# print("conflcit", typedef, pdef.name, old_pid, "->", new_pid)
524+
# print("conflict", typedef, pdef.name, old_pid, "->", new_pid)
525525

526526
self['TypeDefinitions'].append(typedef)
527527
if classdef.auid not in self['ClassDefinitions']:

src/aaf2/mobid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
material numbers and instance numbers is given in SMPTE RP 205.
4444
4545
46-
UMID univeral label (SMPTELabel)
46+
UMID universal label (SMPTELabel)
4747
4848
Byte No. Description Value (hex) Meaning
4949
----------------------------------------------------------------------------------------
@@ -60,7 +60,7 @@
6060
11 Material type XXh See Section 6.1.2.1
6161
12 Number creation method YYh See Section 6.1.2.2
6262
63-
6.1.2.1 - Meterial type identification
63+
6.1.2.1 - Material type identification
6464
6565
Byte 11 of the UL shall define the material type being identified using one of the values defined in Table 2.
6666
The use of material types '01h', '02h', '03h' and '04h' shall be deprecated for use in implementations using

src/aaf2/mobs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ def create_timeline_slot(self, edit_rate, slot_id=None):
105105

106106
def create_empty_sequence_slot(self, edit_rate, slot_id=None, media_kind=None):
107107
"""
108-
Create an empty timeline slot and sets its segment to a new, empty
109-
`aaf2.components.Sequence` component. Timeline slots are for continuous,
108+
Create an empty timeline slot and sets its segment to a new, empty
109+
`aaf2.components.Sequence` component. Timeline slots are for continuous,
110110
monotonically-changing media, like picture and sound.
111111
"""
112112
slot = self.create_timeline_slot(edit_rate, slot_id)
@@ -117,22 +117,22 @@ def create_empty_sequence_slot(self, edit_rate, slot_id=None, media_kind=None):
117117

118118
def create_picture_slot(self, edit_rate=25):
119119
"""
120-
Create an empty timeline slot, with the 'picture' media kind, and sets
120+
Create an empty timeline slot, with the 'picture' media kind, and sets
121121
its segment to a new, empty `aaf2.components.Sequence` component.
122122
"""
123123
return self.create_empty_sequence_slot(edit_rate, media_kind="picture")
124124

125125
def create_sound_slot(self, edit_rate=25):
126126
"""
127-
Create an empty timeline slot, with the 'sound' media kind, and sets
127+
Create an empty timeline slot, with the 'sound' media kind, and sets
128128
its segment to a new, empty `aaf2.components.Sequence` component.
129129
"""
130130
return self.create_empty_sequence_slot(edit_rate, media_kind="sound")
131131

132132
def create_source_clip(self, slot_id=None, start=None, length=None, media_kind=None):
133133
"""
134134
Create a SourceClip of Mobs slot with `slot_id`. If no length given the default
135-
length will be the full length of slots segment minius `start`.
135+
length will be the full length of slots segment minus `start`.
136136
Returns :class:`aaf2.components.SourceClip` Object
137137
"""
138138
source_slot = self.slot_at(slot_id)

src/aaf2/properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def copy(self, parent):
205205
return p
206206

207207
def decode(self):
208-
# first byte is endianess
208+
# first byte is endianness
209209
assert self.data[0:1] == b'\x55' # unspecified
210210
self.stream_name = decode_utf16le(self.data[1:])
211211

src/aaf2/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def store_format(self):
475475
elif self.element_typedef.store_format == properties.SF_DATA:
476476
return properties.SF_DATA
477477
else:
478-
raise AAFPropertyError("unkown store format: 0x%x" % self.element_typedef.store_format)
478+
raise AAFPropertyError("unknown store format: 0x%x" % self.element_typedef.store_format)
479479

480480
def decode(self, data):
481481

src/aaf2/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def int_from_bytes(data, byte_order='big'):
166166
num += byte << ((length-i) * 8)
167167
return num
168168
else:
169-
raise ValueError('endianess must be "little" or "big"')
169+
raise ValueError('endianness must be "little" or "big"')
170170

171171
def bytes_from_int(num, length, byte_order='big'):
172172
if byte_order == 'little':
@@ -176,7 +176,7 @@ def bytes_from_int(num, length, byte_order='big'):
176176
v = bytearray((num >> (length - 1 - i) * 8) & 0xff for i in range(length))
177177
return bytes(v)
178178
else:
179-
raise ValueError('endianess must be "little" or "big"')
179+
raise ValueError('endianness must be "little" or "big"')
180180

181181

182182
def squeeze_name(name, size):

src/aaf2/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def dnx_frame_size(cid, width=None, height=None):
133133
if size:
134134
return size
135135

136-
# DNxHR frame size caclulation
136+
# DNxHR frame size calculation
137137
ratio = dnxhr_compression_ratio[cid]
138138
size = ((height + 15) // 16) * ((width + 15) // 16) * ratio[0] // ratio[1]
139139
size = (size + 2048) // 4096 * 4096;

0 commit comments

Comments
 (0)