/external/chromium_org/third_party/WebKit/Source/core/html/track/ |
InbandTextTrack.cpp | 146 RefPtr<TextTrackCueGeneric> cue = TextTrackCueGeneric::create(scriptExecutionContext(), cueData->startTime(), cueData->endTime(), cueData->content()); local 148 cue->setId(cueData->id()); 149 cue->setBaseFontSizeRelativeToVideoHeight(cueData->baseFontSize()); 150 cue->setFontSizeMultiplier(cueData->relativeFontSize()); 151 cue->setFontName(cueData->fontName()); 154 cue->setPosition(lround(cueData->position()), IGNORE_EXCEPTION); 156 cue->setLine(lround(cueData->line()), IGNORE_EXCEPTION); 158 cue->setSize(lround(cueData->size()), IGNORE_EXCEPTION); 160 cue->setBackgroundColor(cueData->backgroundColor().rgb()); 162 cue->setForegroundColor(cueData->foregroundColor().rgb()) 186 RefPtr<TextTrackCue> cue = TextTrackCue::create(scriptExecutionContext(), start, end, content); local [all...] |
TextTrackCueGeneric.cpp | 39 static PassRefPtr<TextTrackCueGenericBoxElement> create(Document* document, TextTrackCueGeneric* cue) 41 return adoptRef(new TextTrackCueGenericBoxElement(document, cue)); 50 TextTrackCueGenericBoxElement::TextTrackCueGenericBoxElement(Document* document, TextTrackCue* cue) 51 : TextTrackCueBox(document, cue) 60 TextTrackCueGeneric* cue = static_cast<TextTrackCueGeneric*>(getCue()); local 62 float size = static_cast<float>(cue->getCSSSize()); 63 if (cue->useDefaultPosition()) { 67 setInlineStyleProperty(CSSPropertyLeft, static_cast<float>(cue->position()), CSSPrimitiveValue::CSS_PERCENTAGE); 68 setInlineStyleProperty(CSSPropertyTop, static_cast<float>(cue->line()), CSSPrimitiveValue::CSS_PERCENTAGE); 70 if (cue->getWritingDirection() == TextTrackCue::Horizontal [all...] |
TextTrackCueList.cpp | 42 unsigned long TextTrackCueList::getCueIndex(TextTrackCue* cue) const 44 return m_list.find(cue); 70 RefPtr<TextTrackCue> cue = m_list[i]; local 71 if (cue->isActive()) 72 m_activeCues->add(cue); 77 bool TextTrackCueList::add(PassRefPtr<TextTrackCue> cue) 79 ASSERT(cue->startTime() >= 0); 80 ASSERT(cue->endTime() >= 0); 82 return add(cue, 0, m_list.size()); 90 // Maintain text track cue order 92 RefPtr<TextTrackCue> cue = prpCue; local [all...] |
/external/chromium_org/media/webm/ |
webm_webvtt_parser_unittest.cc | 13 typedef std::vector<uint8> Cue; 15 static Cue EncodeCue(const std::string& id, 20 return Cue(buf, buf + result.length()); 23 static void DecodeCue(const Cue& cue, 27 WebMWebVTTParser::Parse(&cue[0], static_cast<int>(cue.size()), 39 const Cue cue = EncodeCue("", "", "Subtitle"); local 42 DecodeCue(cue, &id, &settings, &content) 53 const Cue cue = EncodeCue(idsrc, "", "Subtitle"); local 74 const Cue cue = EncodeCue("", settings_str[i], "Subtitle"); local 95 const Cue cue = EncodeCue("", "", content_str[i]); local [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
RenderTextTrackCue.cpp | 92 // 3. Let line position be the text track cue computed line position. 250 // Note: this is supported only for internal UA styling, not through the cue selector. 271 TextTrackCueGeneric* cue = static_cast<TextTrackCueGeneric*>(m_cue); local 272 if (!cue->useDefaultPosition())
|
/external/libvpx/libvpx/ |
webmenc.c | 251 /* Save a cue point if this is a keyframe. */ 253 struct cue_entry *cue, *new_cue_list; local 260 fatal("Failed to realloc cue list."); 262 cue = &glob->cue_list[glob->cues]; 263 cue->time = glob->cluster_timecode; 264 cue->loc = glob->cluster_pos; 305 struct cue_entry *cue = &glob->cue_list[i]; local 307 Ebml_SerializeUnsigned(glob, CueTime, cue->time); 312 cue->loc - glob->position_reference);
|
/external/chromium_org/third_party/WebKit/Source/core/html/shadow/ |
MediaControlElements.cpp | 721 // track's list of cues that have their text track cue active flag set. 724 // 9. If reset is false, then, for each text track cue cue in cues: if cue's 725 // text track cue display state has a set of CSS boxes, then add those boxes 726 // to output, and remove cue from cues. 729 // within the TextTrackCue instance itself. If parameters of the cue change, 732 // 10. For each text track cue cue in cues that has not yet had 733 // corresponding CSS boxes added to output, in text track cue order, run th 736 TextTrackCue* cue = activeCues[i].data(); local 807 TextTrackCue* cue = activeCues[i].data(); local [all...] |
/frameworks/base/media/java/android/media/ |
SubtitleTrack.java | 52 final protected Vector<Cue> mActiveCues = new Vector<Cue>(); 118 public abstract void updateView(Vector<Cue> activeCues); 128 for(Iterator<Pair<Long, Cue> > it = 130 Pair<Long, Cue> event = it.next(); 131 Cue cue = event.second; local 133 if (cue.mEndTimeMs == event.first) { 135 if (DEBUG) Log.v(TAG, "Removing " + cue); 136 mActiveCues.remove(cue); 165 Cue cue = run.mFirstCue; local 511 Cue cue = mLastEntry.second; local [all...] |
WebVttRenderer.java | 77 // spans with timestamp will be enabled by Cue.onTime 152 // for politeness, finish last cue-line if it ends abruptly 166 * Tokenizer tokenizes the WebVTT Cue Text into tags and data 378 class TextTrackCue extends SubtitleTrack.Cue { 429 TextTrackCue cue = (TextTrackCue) o; local 430 boolean res = mId.equals(cue.mId) && 431 mPauseOnExit == cue.mPauseOnExit && 432 mWritingDirection == cue.mWritingDirection && 433 mRegionId.equals(cue.mRegionId) && 434 mSnapToLines == cue.mSnapToLines & 1222 final TextTrackCue cue = (TextTrackCue) activeCues.get(i); local 1380 final TextTrackCue cue = cueBox.getCue(); local 1452 final TextTrackCue cue = cueBox.getCue(); local 1738 final TextTrackCue cue = mCue; local [all...] |