Lines Matching defs:plane
287 size_t plane,
295 switch (plane) {
306 switch (plane) {
318 switch (plane) {
336 NOTREACHED() << "Unsupported video frame format/plane: "
337 << format << "/" << plane;
360 // additional alpha plane that has the same size and alignment as the Y plane.
424 bool VideoFrame::IsValidPlane(size_t plane) const {
425 return (plane < NumPlanes(format_));
428 int VideoFrame::stride(size_t plane) const {
429 DCHECK(IsValidPlane(plane));
430 return strides_[plane];
433 int VideoFrame::row_bytes(size_t plane) const {
434 DCHECK(IsValidPlane(plane));
439 if (plane == kAPlane)
446 if (plane == kYPlane)
459 int VideoFrame::rows(size_t plane) const {
460 DCHECK(IsValidPlane(plane));
467 if (plane == kAPlane)
472 if (plane == kYPlane)
485 uint8* VideoFrame::data(size_t plane) const {
486 DCHECK(IsValidPlane(plane));
487 return data_[plane];
505 for (int plane = 0; plane < kMaxPlanes; ++plane) {
506 if (!IsValidPlane(plane))
508 for (int row = 0; row < rows(plane); ++row) {
510 reinterpret_cast<char*>(data(plane) + stride(plane) * row),
511 row_bytes(plane)));