]> git.baikalelectronics.ru Git - kernel.git/commit
media: vidtv: avoid copying data for PES structs
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 22 Sep 2020 09:01:17 +0000 (11:01 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 26 Nov 2020 06:47:34 +0000 (07:47 +0100)
commitd4d403ba0d0751974e1a522cb1ee8787d2f7e609
tree4c27a660b597140a0dc41df226d9b544b5aa6550
parenta0b5eafe31d419191e923d0bbef11b8681ac596d
media: vidtv: avoid copying data for PES structs

Minimize the number of data copies and initialization at
the code, passing them as pointers instead of duplicating
the data.

The only case where we're keeping the data copy is at
vidtv_pes_write_h(), as it needs a copy of the passed
arguments. On such case, we're being more explicit.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vidtv/vidtv_mux.c
drivers/media/test-drivers/vidtv/vidtv_pes.c
drivers/media/test-drivers/vidtv/vidtv_pes.h