Home | History | Annotate | Download | only in base

Lines Matching refs:VideoFrame

35                VideoFrame* frame) {
53 void CopyYPlane(const uint8* source, int stride, int rows, VideoFrame* frame) {
54 CopyPlane(VideoFrame::kYPlane, source, stride, rows, frame);
57 void CopyUPlane(const uint8* source, int stride, int rows, VideoFrame* frame) {
58 CopyPlane(VideoFrame::kUPlane, source, stride, rows, frame);
61 void CopyVPlane(const uint8* source, int stride, int rows, VideoFrame* frame) {
62 CopyPlane(VideoFrame::kVPlane, source, stride, rows, frame);
65 void CopyAPlane(const uint8* source, int stride, int rows, VideoFrame* frame) {
66 CopyPlane(VideoFrame::kAPlane, source, stride, rows, frame);
69 void MakeOpaqueAPlane(int stride, int rows, VideoFrame* frame) {
70 int rows_to_clear = std::min(frame->rows(VideoFrame::kAPlane), rows);
71 memset(frame->data(VideoFrame::kAPlane), 255,
72 frame->stride(VideoFrame::kAPlane) * rows_to_clear);
75 void FillYUV(VideoFrame* frame, uint8 y, uint8 u, uint8 v) {
77 uint8* y_plane = frame->data(VideoFrame::kYPlane);
78 int y_rows = frame->rows(VideoFrame::kYPlane);
79 int y_row_bytes = frame->row_bytes(VideoFrame::kYPlane);
82 y_plane += frame->stride(VideoFrame::kYPlane);
86 uint8* u_plane = frame->data(VideoFrame::kUPlane);
87 uint8* v_plane = frame->data(VideoFrame::kVPlane);
88 int uv_rows = frame->rows(VideoFrame::kUPlane);
89 int u_row_bytes = frame->row_bytes(VideoFrame::kUPlane);
90 int v_row_bytes = frame->row_bytes(VideoFrame::kVPlane);
94 u_plane += frame->stride(VideoFrame::kUPlane);
95 v_plane += frame->stride(VideoFrame::kVPlane);
99 static void LetterboxPlane(VideoFrame* frame,
141 void LetterboxYUV(VideoFrame* frame, const gfx::Rect& view_area) {
146 DCHECK(frame->format() == VideoFrame::YV12 ||
147 frame->format() == VideoFrame::YV12J ||
148 frame->format() == VideoFrame::I420);
149 LetterboxPlane(frame, VideoFrame::kYPlane, view_area, 0x00);
154 LetterboxPlane(frame, VideoFrame::kUPlane, half_view_area, 0x80);
155 LetterboxPlane(frame, VideoFrame::kVPlane, half_view_area, 0x80);
282 VideoFrame* frame) {
283 const int kY = VideoFrame::kYPlane;
284 const int kU = VideoFrame::kUPlane;
285 const int kV = VideoFrame::kVPlane;