Files
RedBear-OS/recipes/tools/file/source/magic/Magdir/subtitle
T
vasilito 7686729069 drm: implement syncobj and fence for VIRGL/VirtIO driver
Extract protocol-agnostic FenceTimeline from Intel to shared
src/drivers/fence.rs — atomic-based fence tracking suitable
for Intel, VIRGL, and AMD drivers.

Extract protocol-agnostic SyncobjManager from Intel to shared
src/drivers/syncobj.rs — syncobj create/destroy/signal/reset/
wait/query and sync_file fd export/import.

Wire both into VirtioDriver:
- Add FenceTimeline + SyncobjManager fields
- Implement all 5 GpuDriver syncobj trait methods
  (create, destroy, wait, export_fd, import_fd)
- Track fence seqnos in virgl_submit_3d (allocate
  before submit, signal after completion)

Intel fence.rs and syncobj.rs converted to thin re-export
modules pointing at shared sources — no behavioral change
for Intel driver.

This gives Mesa VIRGL userspace the standard DRM syncobj
API for GPU/compositor synchronization.
2026-06-02 14:33:28 +03:00

39 lines
1.0 KiB
Plaintext

#------------------------------------------------------------------------------
# $File: subtitle,v 1.2 2022/09/07 11:29:09 christos Exp $
# subtitle: file(1) magic for subtitles files
# EBU-STL
# https://tech.ebu.ch/docs/tech/tech3264.pdf
3 string STL EBU-STL subtitles
>6 regex =^[0-9][0-9] \b, rate %s
>>8 string .01 \b, v1
!:mime application/x-ebu-stl
>>>16 regex =^[^\ ]{0,32} \b, title "%s"
>>>>224 regex =^[0-9]{2} \b, created %-.2s
>>>>>&0 regex =^[0-9]{2} \b-%-.2s
>>>>>>&0 regex =^[0-9]{2} \b-%-.2s
!:ext stl
# SubRip (srt) subtitles
0 regex/20 =^1[\r\n]+0[01]:[0-9]{2}:[0-9]{2},[0-9]{3}\040--> SubRip
!:mime application/x-subrip
!:ext srt
# WebVTT subtitles
# https://www.w3.org/TR/webvtt1/
0 string/t WEBVTT
>&0 regex/255 =[0-9]{2}:[0-9]{2}\\.[0-9]{3}\040--> WebVTT subtitles
!:mime text/vtt
!:ext vtt
# XML TTML subtitles
# https://www.w3.org/TR/ttml2/
0 string/t \<?xml
>20 search/400 \020xmlns=
>>&0 regex ['"]http://www.w3.org/ns/ttml TTML subtitles
!:mime application/ttml+xml
# Augment strength to beat plain XML
!:strength * 3
!:ext ttml