skia2/experimental/ffmpeg/BUILD.gn
Florin Malita 123e3b893f [skottie/tools] Video playback support
Implement a VideoAsset wrapper, used for Skottie video layers.  This
requires a non-testlib build target for SkVideoDecoder, hence a
dedicated BUILD.gn.

Add software conversion fallback for SkVideoDecoder, using libswscale.

Change-Id: I80dd555a1241081e50ee4834b64ad3518948a0f1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/285378
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2020-04-24 15:56:50 +00:00

54 lines
1.0 KiB
Plaintext

# Copyright 2020 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../gn/skia.gni")
if (skia_use_ffmpeg) {
config("public_decoder_config") {
defines = [ "HAVE_VIDEO_DECODER" ]
include_dirs = [ "." ]
}
static_library("video_decoder") {
public_configs = [ ":public_decoder_config" ]
sources = [
"SkVideoDecoder.cpp",
"SkVideoDecoder.h",
]
deps = [ "../..:skia" ]
libs = [
"swscale",
"avcodec",
"avformat",
"avutil",
]
}
config("public_encoder_config") {
defines = [ "HAVE_VIDEO_ENCODER" ]
include_dirs = [ "." ]
}
static_library("video_encoder") {
public_configs = [ ":public_encoder_config" ]
sources = [
"SkVideoEncoder.cpp",
"SkVideoEncoder.h",
]
deps = [ "../..:skia" ]
libs = [
"swscale",
"avcodec",
"avformat",
"avutil",
]
}
} else {
group("video_decoder") {
}
group("video_encoder") {
}
}