where is the code about rotating video

已查看 68 次
跳至第一个未读帖子

Bang He

未读,
2023年2月7日 12:12:042023/2/7
收件人 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

未读,
2023年2月7日 12:24:562023/2/7
收件人 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

未读,
2023年2月7日 12:33:052023/2/7
收件人 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

未读,
2023年2月8日 14:01:002023/2/8
收件人 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.
回复全部
回复作者
转发
0 个新帖子