Bug 1453 - libsrd should support streamed/packetized binary output
Summary: libsrd should support streamed/packetized binary output
Status: CONFIRMED
Alias: None
Product: libsigrokdecode
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-12 09:36 CET by Soeren Apel
Modified: 2019-12-12 09:36 CET (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Soeren Apel 2019-12-12 09:36:10 CET
Currently, libsrd simply sends out binary data as provided by the PD. However, the PDs make use of this in different ways:

1) The I2S PD sends out a stream of bytes that resemble a WAV file, so each srd_proto_data_binary struct sent out is part of that one WAV file.

2) The hd44780 PD sends out PNG images, so each srd_proto_data_binary struct sent out is a separate PNG image.

For this reason, the libsrd API must provide information whether the PD sends out streamed or packetized binary data so that the application can handle it properly.