[issue19641] Add audioop.byteswap()

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fbebc90abcd1 by Serhiy Storchaka in branch 'default':
Issue #19641: Added the audioop.byteswap() function to convert big-endian
http://hg.python.org/cpython/rev/fbebc90abcd1

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19641] Add audioop.byteswap()

2013-11-23 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I have committed simplified patch, without optimization for 1-byte samples.

--
assignee:  - serhiy.storchaka
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19641] Add audioop.byteswap()

2013-11-21 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The patch is synchronized  with tip (after committing issue19633). It enables 
temporary disabled in issue19633 tests.

--
Added file: http://bugs.python.org/file32749/audioop_byteswap_3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19641] Add audioop.byteswap()

2013-11-18 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

The audio modules often need convert between little endian and big endian data. 
The array module can be used to byteswap 16- and 32-bit samples, but it can't 
help with 24-bit samples. Python implemented function for swapping bytes is not 
very efficient. In any case the use of array is not so simple (see issue19276, 
issue19633).

The proposed patch adds efficient byteswap() function in the audioop module. 
byteswap(fragment, width) byteswaps every width-byte sample in the fragment 
and returns modified data.

--
components: Library (Lib)
files: audioop_byteswap.patch
keywords: patch
messages: 203273
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Add audioop.byteswap()
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file32686/audioop_byteswap.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19641] Add audioop.byteswap()

2013-11-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Updated patch addresses some Victor's comments. Added optimization for trivial 
case byteswap(bytes, 1).

--
Added file: http://bugs.python.org/file32688/audioop_byteswap_2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com