|
|
Created:
6 years, 5 months ago by suderman Modified:
6 years, 5 months ago CC:
chromium-reviews, feature-media-reviews_chromium.org, asvitkine+watch_chromium.org Base URL:
svn://svn.chromium.org/chrome/trunk/src Project:
chromium Visibility:
Public. |
DescriptionAdded UMA logging for Video Rotation metadata.
BUG=47554
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283962
Patch Set 1 #
Total comments: 2
Patch Set 2 : Moved logging to webmediaplayer #
Total comments: 3
Messages
Total messages: 17 (0 generated)
Enum logging for the Video Rotation information. At this point it only logs via the ffmpeg demuxer stream. We can change the logging location to log for all video types however as the rotation metadata is an mp4 feature they are guaranteed to be 0 degree rotations. If we want to express its only occurs with mp4 files we could change the name appropriately.
https://codereview.chromium.org/394373002/diff/1/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/394373002/diff/1/media/filters/ffmpeg_demuxer... media/filters/ffmpeg_demuxer.cc:139: "Media.VideoRotation", video_rotation_, VIDEO_ROTATION_MAX + 1); I believe we'll want this logged inside of webmediaplayer_impl.cc inside of the metadata callback otherwise this path may end up logging rotation values for videos we don't end up playing
also your CL description is a bit funky you'll also want to update the BUG= number https://codereview.chromium.org/394373002/diff/1/media/base/video_rotation.h File media/base/video_rotation.h (right): https://codereview.chromium.org/394373002/diff/1/media/base/video_rotation.h#... media/base/video_rotation.h:17: VIDEO_ROTATION_MAX = VIDEO_ROTATION_270 // MAX VALUE nit: do you need the // MAX VALUE stuff?
Changelist description updated and logging moved to the webmediaplayer.
lgtm
asvitkine@chromium.org: Please review changes in histograms.xml
lgtm % comments https://codereview.chromium.org/394373002/diff/20001/content/renderer/media/w... File content/renderer/media/webmediaplayer_impl.cc (right): https://codereview.chromium.org/394373002/diff/20001/content/renderer/media/w... content/renderer/media/webmediaplayer_impl.cc:968: media::VIDEO_ROTATION_MAX + 1); Optional nit: General convention for UMA histograms is to have the MAX entry be 1 higher than the last entry, so that the +1 here would be unnecessary (once you update the enum) and also makes it so you don't need to change what the MAX ='s to each time you add a new entry. https://codereview.chromium.org/394373002/diff/20001/media/base/video_rotation.h File media/base/video_rotation.h (right): https://codereview.chromium.org/394373002/diff/20001/media/base/video_rotatio... media/base/video_rotation.h:11: // where it can be rotated by 90 degree intervals. Expand comment to mention not to renumber entries and only append at the end, since this is used in UMA.
https://codereview.chromium.org/394373002/diff/20001/content/renderer/media/w... File content/renderer/media/webmediaplayer_impl.cc (right): https://codereview.chromium.org/394373002/diff/20001/content/renderer/media/w... content/renderer/media/webmediaplayer_impl.cc:968: media::VIDEO_ROTATION_MAX + 1); On 2014/07/17 18:20:59, Alexei Svitkine wrote: > Optional nit: > > General convention for UMA histograms is to have the MAX entry be 1 higher than > the last entry, so that the +1 here would be unnecessary (once you update the > enum) and also makes it so you don't need to change what the MAX ='s to each > time you add a new entry. Us media folk decided a while back that defining _MAX as LAST_VALUE + 1 isn't technically correct as "max" is typically defined as an inclusive endpoint. Using something like _NUM (which typically is LAST_VALUE + 1) isn't good either since over the long run, enum values can get deprecated leaving holes in the enum, leading to _NUM being misleading. Also, introducing an extra enum for the sake of UMA pollutes all non-UMA switch/case statements. So we standardized on _MAX and wrote a PRESUBMIT.py to verify that enums, _MAX, and UMA usage is correct: http://src.chromium.org/viewvc/chrome/trunk/src/media/PRESUBMIT.py
Good to know, thanks. On Thu, Jul 17, 2014 at 2:51 PM, <scherkus@chromium.org> wrote: > > https://codereview.chromium.org/394373002/diff/20001/ > content/renderer/media/webmediaplayer_impl.cc > File content/renderer/media/webmediaplayer_impl.cc (right): > > https://codereview.chromium.org/394373002/diff/20001/ > content/renderer/media/webmediaplayer_impl.cc#newcode968 > content/renderer/media/webmediaplayer_impl.cc:968: > media::VIDEO_ROTATION_MAX + 1); > On 2014/07/17 18:20:59, Alexei Svitkine wrote: > >> Optional nit: >> > > General convention for UMA histograms is to have the MAX entry be 1 >> > higher than > >> the last entry, so that the +1 here would be unnecessary (once you >> > update the > >> enum) and also makes it so you don't need to change what the MAX ='s >> > to each > >> time you add a new entry. >> > > Us media folk decided a while back that defining _MAX as LAST_VALUE + 1 > isn't technically correct as "max" is typically defined as an inclusive > endpoint. Using something like _NUM (which typically is LAST_VALUE + 1) > isn't good either since over the long run, enum values can get > deprecated leaving holes in the enum, leading to _NUM being misleading. > Also, introducing an extra enum for the sake of UMA pollutes all non-UMA > switch/case statements. > > So we standardized on _MAX and wrote a PRESUBMIT.py to verify that > enums, _MAX, and UMA usage is correct: > http://src.chromium.org/viewvc/chrome/trunk/src/media/PRESUBMIT.py > > https://codereview.chromium.org/394373002/ > To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
The CQ bit was checked by suderman@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/suderman@chromium.org/394373002/20001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...)
The CQ bit was checked by suderman@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/suderman@chromium.org/394373002/20001
Message was sent while issue was closed.
Change committed as 283962 |