summaryrefslogtreecommitdiff
path: root/vp9/simple_encode.cc
diff options
context:
space:
mode:
authorangiebird <angiebird@google.com>2019-11-12 18:34:03 -0800
committerangiebird <angiebird@google.com>2019-11-18 11:37:24 -0800
commit21e93eb8140c832ce3bc5f6d40ba6eec507886ee (patch)
treed07e4b9e6fa7eca8510630b20d2f6bc54237fab0 /vp9/simple_encode.cc
parentc4f1fe4b221031f7739a13644b9053eb01f65332 (diff)
downloadlibvpx-21e93eb8140c832ce3bc5f6d40ba6eec507886ee.tar
libvpx-21e93eb8140c832ce3bc5f6d40ba6eec507886ee.tar.gz
libvpx-21e93eb8140c832ce3bc5f6d40ba6eec507886ee.tar.bz2
libvpx-21e93eb8140c832ce3bc5f6d40ba6eec507886ee.zip
Pass in infile_path to SimpleEncode()
Change-Id: If47867d4d59a59e252bfe7eb24c940f9e089d335
Diffstat (limited to 'vp9/simple_encode.cc')
-rw-r--r--vp9/simple_encode.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/vp9/simple_encode.cc b/vp9/simple_encode.cc
index 38f87fc3a..54358c681 100644
--- a/vp9/simple_encode.cc
+++ b/vp9/simple_encode.cc
@@ -97,7 +97,8 @@ static void update_encode_frame_result(
SimpleEncode::SimpleEncode(int frame_width, int frame_height,
int frame_rate_num, int frame_rate_den,
- int target_bitrate, int num_frames, FILE *file)
+ int target_bitrate, int num_frames,
+ const char *infile_path)
: pimpl{ std::unique_ptr<impl>(new impl()) } {
this->frame_width = frame_width;
this->frame_height = frame_height;
@@ -105,7 +106,8 @@ SimpleEncode::SimpleEncode(int frame_width, int frame_height,
this->frame_rate_den = frame_rate_den;
this->target_bitrate = target_bitrate;
this->num_frames = num_frames;
- this->file = file;
+ // TODO(angirbid): Should we keep a file pointer here or keep the file_path?
+ this->file = fopen(infile_path, "r");
pimpl->cpi = NULL;
pimpl->img_fmt = VPX_IMG_FMT_I420;
}