summaryrefslogtreecommitdiff
path: root/tools_common.c
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2014-02-26 16:32:09 -0800
committerDmitry Kovalev <dkovalev@google.com>2014-02-26 16:32:09 -0800
commit4334c07357e70b2653e83abb3601680c8366d677 (patch)
treed82ddd607de8cd3bfc8e2b14a55dbebb6a7923d1 /tools_common.c
parent4632a96d9771b49d6edfe78b68e5dfbafa75fff3 (diff)
downloadlibvpx-4334c07357e70b2653e83abb3601680c8366d677.tar
libvpx-4334c07357e70b2653e83abb3601680c8366d677.tar.gz
libvpx-4334c07357e70b2653e83abb3601680c8366d677.tar.bz2
libvpx-4334c07357e70b2653e83abb3601680c8366d677.zip
Reusing mem_get_le{16, 32} defined in vpx_ports/mem_opts.h.
Change-Id: If4b5209ac14aaba6f1c1014bc0497baa8eabfaff
Diffstat (limited to 'tools_common.c')
-rw-r--r--tools_common.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/tools_common.c b/tools_common.c
index f0e160697..667432027 100644
--- a/tools_common.c
+++ b/tools_common.c
@@ -77,26 +77,6 @@ void die_codec(vpx_codec_ctx_t *ctx, const char *s) {
exit(EXIT_FAILURE);
}
-uint16_t mem_get_le16(const void *data) {
- uint16_t val;
- const uint8_t *mem = (const uint8_t*)data;
-
- val = mem[1] << 8;
- val |= mem[0];
- return val;
-}
-
-uint32_t mem_get_le32(const void *data) {
- uint32_t val;
- const uint8_t *mem = (const uint8_t*)data;
-
- val = mem[3] << 24;
- val |= mem[2] << 16;
- val |= mem[1] << 8;
- val |= mem[0];
- return val;
-}
-
int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame) {
FILE *f = input_ctx->file;
struct FileTypeDetectionBuffer *detect = &input_ctx->detect;