| Code-Review | +1 |
// Y-Plane: stride, offset, sizeUse .name syntax instead of comment?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
Use .name syntax instead of comment?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
1 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: media/gpu/android/ndk_video_encode_accelerator.cc
Insertions: 4, Deletions: 4.
@@ -1037,10 +1037,10 @@
const size_t y_plane_size =
input_buffer_stride_ * input_buffer_yplane_height_;
const std::vector<ColorPlaneLayout> dst_planes = {
- // Y-Plane: stride, offset, size
- {static_cast<size_t>(input_buffer_stride_), 0, y_plane_size},
- // UV-Plane: stride, offset, size
- {static_cast<size_t>(input_buffer_stride_), y_plane_size, uv_plane_len},
+ ColorPlaneLayout(/*stride=*/static_cast<size_t>(input_buffer_stride_),
+ /*offset=*/0, /*size=*/y_plane_size),
+ ColorPlaneLayout(/*stride=*/static_cast<size_t>(input_buffer_stride_),
+ /*offset=*/y_plane_size, /*size=*/uv_plane_len),
};
auto dst_layout = VideoFrameLayout::CreateWithPlanes(
```
media: Use VideoFrameConverter in NdkVideoEncodeAccelerator
Refactors FeedInputBuffer to use VideoFrameConverter for scaling and format
conversion instead of direct libyuv calls.
This simplifies the input handling logic.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
ColorPlaneLayout(/*stride=*/static_cast<size_t>(input_buffer_stride_),I meant `{.stride=$$$, .offset=$$$, .size=$$$}` but this is fine too
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
ColorPlaneLayout(/*stride=*/static_cast<size_t>(input_buffer_stride_),I meant `{.stride=$$$, .offset=$$$, .size=$$$}` but this is fine too
it doesn't work when since `ColorPlaneLayout` has a constructor
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
ColorPlaneLayout(/*stride=*/static_cast<size_t>(input_buffer_stride_),Eugene ZemtsovI meant `{.stride=$$$, .offset=$$$, .size=$$$}` but this is fine too
it doesn't work when since `ColorPlaneLayout` has a constructor
ðŸ˜
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |