Re: [RFC, WIP, v4 08/11] media: vidtv: implement a PSI generator

2020-05-06 Thread Mauro Carvalho Chehab
Em Wed, 6 May 2020 03:28:17 -0300 "Daniel W. S. Almeida" escreveu: > >> + /* Just a sanity check, should not really happen because we stuff > >> + * the packet when we finish a section, i.e. when we write the crc at > >> + * the end. But if this happens then we have messed up the logic > >>

Re: [RFC, WIP, v4 08/11] media: vidtv: implement a PSI generator

2020-05-05 Thread Daniel W. S. Almeida
Hi Mauro, >> +static u32 >> +vidtv_psi_ts_psi_write_into(struct psi_write_args args) >> +{ >> +/* >> + * Packetize PSI sections into TS packets: >> + * push a TS header (4bytes) every 184 bytes >> + * manage the continuity_counter >> + * add stuffing after the CRC >> + */

Re: [RFC, WIP, v4 08/11] media: vidtv: implement a PSI generator

2020-05-03 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 00:22:13 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > PSI packets contain general information about a MPEG Transport Stream. > A PSI generator is needed so userspace apps can retrieve information > about the Transport Stream and eventually tune i

[RFC, WIP, v4 08/11] media: vidtv: implement a PSI generator

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" PSI packets contain general information about a MPEG Transport Stream. A PSI generator is needed so userspace apps can retrieve information about the Transport Stream and eventually tune into a (dummy) channel. Because the generator is implemented in a separate file,