tests: migrate gtest suite to the ffmpeg_bridge API and add bridge coverage
- Replace direct FFmpeg usage in the test suite (channel layout masks, pixel/sample format constants, AVFrame field access, sws_scale) with the bridge equivalents and the olive::AVFrame adapter - Drop CoreRational.ToAVRational (API removed with core's FFmpeg dependency) and the GetSwsColorspaceFromAVColorSpace tests (helper moved inside the bridge) - New ffmpeg_bridge_test.cpp exercises the C API directly: constants vs core, error strings, pixel format utilities, frames/packets, scaler, resampler, audio graph tempo processing, probe/decoder round-trip on tests/demo.mp4 (including hw-frame transfer), SRT subtitle reading, and encoder end-to-end tests (PNG video and PCM audio probed back)
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
extern "C" {
|
||||
#include <libavutil/avutil.h>
|
||||
}
|
||||
#include <cstdint>
|
||||
|
||||
#include <QBuffer>
|
||||
#include <QXmlStreamReader>
|
||||
@@ -86,7 +84,7 @@ TEST(RenderVideoParams, ValidityAndTimebase)
|
||||
olive::VideoParams params;
|
||||
EXPECT_FALSE(params.is_valid());
|
||||
EXPECT_EQ(params.get_time_in_timebase_units(olive::core::rational(1, 1)),
|
||||
AV_NOPTS_VALUE);
|
||||
INT64_MIN /* AV_NOPTS_VALUE */);
|
||||
|
||||
params.set_width(1920);
|
||||
params.set_height(1080);
|
||||
|
||||
Reference in New Issue
Block a user