mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miracle-dispd: extract encoder from dispd, part 2
Change-Id: Ie61daa87a83b875013c525fe3f15222bf9057926
This commit is contained in:
parent
f1f5ee2385
commit
dbe5ea612a
6 changed files with 270 additions and 529 deletions
|
@ -115,7 +115,7 @@ internal class GstEncoder : DispdEncoder, GLib.Object
|
|||
startx=%u starty=%u endx=%u endy=%u
|
||||
! video/x-raw, framerate=%u/1
|
||||
! videoscale method=0
|
||||
! video/x-raw, width=640, height=480
|
||||
! video/x-raw, width=1920, height=1080
|
||||
! videoconvert dither=0
|
||||
! video/x-raw, format=YV12
|
||||
! x264enc pass=4 b-adapt=false key-int-max=%u speed-preset=4 tune=4
|
||||
|
@ -137,10 +137,10 @@ internal class GstEncoder : DispdEncoder, GLib.Object
|
|||
: 0,
|
||||
configs.contains(DispdEncoderConfig.WIDTH)
|
||||
? configs.get(DispdEncoderConfig.WIDTH).get_uint32() - 1
|
||||
: 640,
|
||||
: 1919,
|
||||
configs.contains(DispdEncoderConfig.HEIGHT)
|
||||
? configs.get(DispdEncoderConfig.HEIGHT).get_uint32() - 1
|
||||
: 480,
|
||||
: 1079,
|
||||
framerate,
|
||||
framerate,
|
||||
configs.contains(DispdEncoderConfig.AUDIO_TYPE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue