linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][sbc] sbc: fix frame_length and codesize documentation
@ 2018-09-04 16:29 Tanu Kaskinen
  2018-09-11  8:10 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 2+ messages in thread
From: Tanu Kaskinen @ 2018-09-04 16:29 UTC (permalink / raw)
  To: linux-bluetooth

frame_length is the output block size when encoding and the input block
size when decoding, with codesize it's vice versa. The documentation was
inaccurate regarding this. Using the terms "compressed" and
"uncompressed" instead of "output" and "input" should make the function
semantics clear.
---
 sbc/sbc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sbc/sbc.h b/sbc/sbc.h
index d6f123e..835460a 100644
--- a/sbc/sbc.h
+++ b/sbc/sbc.h
@@ -100,13 +100,13 @@ ssize_t sbc_decode(sbc_t *sbc, const void *input, size_t input_len,
 ssize_t sbc_encode(sbc_t *sbc, const void *input, size_t input_len,
 			void *output, size_t output_len, ssize_t *written);
 
-/* Returns the output block size in bytes */
+/* Returns the compressed block size in bytes */
 size_t sbc_get_frame_length(sbc_t *sbc);
 
 /* Returns the time one input/output block takes to play in msec*/
 unsigned sbc_get_frame_duration(sbc_t *sbc);
 
-/* Returns the input block size in bytes */
+/* Returns the uncompressed block size in bytes */
 size_t sbc_get_codesize(sbc_t *sbc);
 
 const char *sbc_get_implementation_info(sbc_t *sbc);
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH][sbc] sbc: fix frame_length and codesize documentation
  2018-09-04 16:29 [PATCH][sbc] sbc: fix frame_length and codesize documentation Tanu Kaskinen
@ 2018-09-11  8:10 ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2018-09-11  8:10 UTC (permalink / raw)
  To: Tanu Kaskinen; +Cc: linux-bluetooth

Hi Tanu,

On Tue, Sep 4, 2018 at 7:29 PM, Tanu Kaskinen <tanuk@iki.fi> wrote:
> frame_length is the output block size when encoding and the input block
> size when decoding, with codesize it's vice versa. The documentation was
> inaccurate regarding this. Using the terms "compressed" and
> "uncompressed" instead of "output" and "input" should make the function
> semantics clear.
> ---
>  sbc/sbc.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sbc/sbc.h b/sbc/sbc.h
> index d6f123e..835460a 100644
> --- a/sbc/sbc.h
> +++ b/sbc/sbc.h
> @@ -100,13 +100,13 @@ ssize_t sbc_decode(sbc_t *sbc, const void *input, size_t input_len,
>  ssize_t sbc_encode(sbc_t *sbc, const void *input, size_t input_len,
>                         void *output, size_t output_len, ssize_t *written);
>
> -/* Returns the output block size in bytes */
> +/* Returns the compressed block size in bytes */
>  size_t sbc_get_frame_length(sbc_t *sbc);
>
>  /* Returns the time one input/output block takes to play in msec*/
>  unsigned sbc_get_frame_duration(sbc_t *sbc);
>
> -/* Returns the input block size in bytes */
> +/* Returns the uncompressed block size in bytes */
>  size_t sbc_get_codesize(sbc_t *sbc);
>
>  const char *sbc_get_implementation_info(sbc_t *sbc);
> --
> 2.18.0

Applied, thanks.


-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-11  8:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-04 16:29 [PATCH][sbc] sbc: fix frame_length and codesize documentation Tanu Kaskinen
2018-09-11  8:10 ` Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).