where is the code about rotating video

68 views
Skip to first unread message

Bang He

unread,
Feb 7, 2023, 12:12:04 PM2/7/23
to Chromium-dev
Dear all:

html:
<body>
<video autoplay controls style="transform: rotate(90deg);" src="./11.mp4" >
</video>
</body>

The code above will rotate video. 
So where is the c++ code about rotating video? i can not find it. Can you give some clues?

K. Moon

unread,
Feb 7, 2023, 12:24:56 PM2/7/23
to hezha...@gmail.com, Chromium-dev
This isn't specific to video, it's just a CSS transform:

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/61d51c25-eaeb-4144-bd7d-4bfad609c7aen%40chromium.org.

Xianzhu Wang

unread,
Feb 7, 2023, 12:33:05 PM2/7/23
to hezha...@gmail.com, Chromium-dev
The question is not easy to answer because the rotation involves almost all stages of the rendering pipeline. You can start with the paint properties. You can dump paint properties, and see 
   Transform (LayoutVideo VIDEO) 0x33000033e1a0 {"parent":"0x33000033e300","changed":"node-add-remove","matrix":"translate: +0 +0 +0, scale: +1 +1 +1, skew: +0 +0 +0, perspective: +0 +0 +0 +1, quaternion: +0 +0 +0.707107 +0.707107","origin":"150,75,0","compositorElementId":"(742)"}

--

Bang He

unread,
Feb 8, 2023, 2:01:00 PM2/8/23
to Chromium-dev, Xianzhu Wang, Chromium-dev, hezha...@gmail.com, km...@chromium.org
To be precise, I want to locate the code which be executed for texture/surface rotation in the gpu process.
Reply all
Reply to author
Forward
0 new messages