summaryrefslogtreecommitdiff
path: root/src/lib/dcp_video_frame.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-14 20:51:43 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-14 20:51:43 +0100
commitade28a703b15af710161faa017cddf95d66c4118 (patch)
treec581d457104195a0219a0197c523981756bf9ecd /src/lib/dcp_video_frame.cc
parent129afab72bfc026b5704c41a6bfc0f4b3a2c4033 (diff)
Try to clarify the difference between line size and stride.
Diffstat (limited to 'src/lib/dcp_video_frame.cc')
-rw-r--r--src/lib/dcp_video_frame.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dcp_video_frame.cc b/src/lib/dcp_video_frame.cc
index 3e5c4b3aa..04735269c 100644
--- a/src/lib/dcp_video_frame.cc
+++ b/src/lib/dcp_video_frame.cc
@@ -188,7 +188,7 @@ DCPVideoFrame::encode_locally ()
int jn = 0;
for (int y = 0; y < _out_size.height; ++y) {
- uint8_t* p = prepared->data()[0] + y * prepared->line_size()[0];
+ uint8_t* p = prepared->data()[0] + y * prepared->stride()[0];
for (int x = 0; x < _out_size.width; ++x) {
/* In gamma LUT (converting 8-bit input to 12-bit) */
@@ -332,7 +332,7 @@ DCPVideoFrame::encode_remotely (ServerDescription const * serv)
socket.write ((uint8_t *) s.str().c_str(), s.str().length() + 1, 30);
for (int i = 0; i < _input->components(); ++i) {
- socket.write (_input->data()[i], _input->line_size()[i] * _input->lines(i), 30);
+ socket.write (_input->data()[i], _input->stride()[i] * _input->lines(i), 30);
}
char buffer[32];