#
#asahi-dev · 2023-11-24 11:54
ydaltoni mean on graphics cards for example
#asahi-dev · 2023-11-24 11:54
chadmedarri and blackmagic being well known vendors of such cameras
#asahi-dev · 2023-11-24 11:54
chadmedyeah but usually on board ISPs for digital video cameras
#asahi-dev · 2023-11-24 11:53
ydaltonare there any hardware prores codecs outside of apple silicon?
#asahi-dev · 2023-11-24 11:52
chadmedwe'd probably be the first (and likely only) hardware prores codec supported upstream though
#asahi-dev · 2023-11-24 11:51
chadmedand davinci resolve has a (mostly) well maintained linux version
#asahi-dev · 2023-11-24 11:50
chadmedprores is a very popular intermediate format in digital video pipelines
#asahi-dev · 2023-11-24 11:50
ydaltoni didn't know linux had any prores support
#asahi-dev · 2023-11-24 11:46
eilnactually none of them are even good enough for avd
#asahi-dev · 2023-11-24 11:45
eilnnone of them are sufficient. prores is/was on my list too but they don't even list all the exotic pixel formats prores uses, let alone an api. but I found out not long ago that I don't have prores, wtf
#asahi-dev · 2023-11-24 11:45
chadmedbootlin did some work on a v4l2 backend for libva but idk if it will suit our needs specifically
#asahi-dev · 2023-11-24 11:44
chadmedwell yeah thats the idea
#asahi-dev · 2023-11-24 11:43
ydaltonit
#asahi-dev · 2023-11-24 11:43
ydaltonsince gstreamer, chromium, firefox are using
#asahi-dev · 2023-11-24 11:43
ydaltonwell, wouldn't that give hardware accelerated video for free? once a kernel driver is written
#asahi-dev · 2023-11-24 11:41
chadmedthere was talk a while ago of writing a backend for vaapi but i cant remember where that ended up
#asahi-dev · 2023-11-24 11:36
ydaltonisn't there vaapi? i don't know enough about that though
#asahi-dev · 2023-11-24 11:36
ydaltonisn
#asahi-dev · 2023-11-24 11:36
eilnI'd like to get ffmpeg hwaccel for scaling too (if that ever comes). meaning v4l2 should obviously have a generic api for it, one gst can make use of too.
#asahi-dev · 2023-11-24 11:33
leiobut there's more to that world than gstreamer, unfortunately :D
#asahi-dev · 2023-11-24 11:33
leioI could poke at anything needed from gstreamer, in theory
#asahi-dev · 2023-11-24 11:33
leio(I jumped to decoding now, not csc)
#asahi-dev · 2023-11-24 11:32
eilnI sent marcan an email about it
#asahi-dev · 2023-11-24 11:32
eilnthat's what I meant by "reworking v4l2"
#asahi-dev · 2023-11-24 11:32
leiowhat I wonder is how exposing this via v4l2 will then work with all the userspace out there
#asahi-dev · 2023-11-24 11:31
ydaltonah man, i remember the opcodes thing, memories
#asahi-dev · 2023-11-24 11:24
leiobut maybe in practice just letting GPU do it is good enough or better
#asahi-dev · 2023-11-24 11:24
ydaltoneiln: what's with AVD_BASE being used? can't you get that from adt?
#asahi-dev · 2023-11-24 11:24
leioto me that just screams for a csc_videoconvertscale gstreamer element to speed up transcodes and such
#asahi-dev · 2023-11-24 11:24
eilnwe'll need to make an api for it, yes.
#asahi-dev · 2023-11-24 11:23
leio(well, if the support for such is written)
#asahi-dev · 2023-11-24 11:23
leiousable standalone in userspace somehow too?
#asahi-dev · 2023-11-24 11:23
eilnleio: colorspace converter and scaler. does a lot of stuff ranging from colorspace conversion, scaling (I'm not being sarcastic), pixel fills, tiling, up to AV1 film grain generation. up next on my list :D we'd need to completely rework V4L2 though
#asahi-dev · 2023-11-24 11:22
ydaltonlooks like it, the regs look different than what i had on my m2
#asahi-dev · 2023-11-24 11:21
eilnagain you need to adjust the offsets
#asahi-dev · 2023-11-24 11:21
leiowhat's CSC about? Is it something we could use e.g. for a gstreamer element that would replace videoconvertscale?
#asahi-dev · 2023-11-24 11:19
ydaltonomg, your tracer script has a function save_firmware, i was doing it manually with the mmio dump 💀
#asahi-dev · 2023-11-24 11:18
ydaltonmaybe i will use your tracer script from your avd branch of m1n1
#asahi-dev · 2023-11-24 11:17
ydaltoni had frame params and the commands from a while ago
#asahi-dev · 2023-11-24 11:17
eilnalso emu is useless without the trace dumps
#asahi-dev · 2023-11-24 11:17
eilnlog show --last 5m --info --debug
#asahi-dev · 2023-11-24 11:16
ydaltont8112 but i don't know the codename of avd
#asahi-dev · 2023-11-24 11:15
eilnyes, the memory layout is different. not rewritten but it needs to be adjusted. soc and avd codename (from macos)?
#asahi-dev · 2023-11-24 11:13
ydaltoneiln: also, i tried your cm3 emulator script and it crashed complaining about unmapped reads/writes. would the emulator script have to be rewritten to suit the m2? that's where i got my firmware from
#asahi-dev · 2023-11-24 11:09
ydaltonomg bad apple decoded by avd :3
#asahi-dev · 2023-11-24 10:00
mazextremely impressive indeed. though I'm in the same situation as j`ey on this front!
#asahi-dev · 2023-11-24 09:46
eilnedit: if macOS says "AVD version Viola" at boot it should work. but m1n1-side register offsets might differ per soc
#asahi-dev · 2023-11-24 09:39
j`eyeiln: this is a fun read even though I understand 0% :-)
#asahi-dev · 2023-11-24 09:22
eilnydalton: cm3 firmware I wrote about here https://eiln.net/avd-notes.html posted another one last night too
#asahi-dev · 2023-11-24 09:22
eiln*can't

plus ›