Browse Source

Rename cedrus-frame-test to v4l2-request-test

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Maxime Ripard 6 years ago
parent
commit
f4c27ea5c3
8 changed files with 18 additions and 19 deletions
  1. 1 1
      .gitignore
  2. 2 2
      Makefile
  3. 8 7
      README
  4. 1 1
      drm.c
  5. 1 1
      presets.c
  6. 2 2
      v4l2-request-test.c
  7. 2 4
      v4l2-request-test.h
  8. 1 1
      v4l2.c

+ 1 - 1
.gitignore

@@ -1,2 +1,2 @@
 /build/
 /build/
-/cedrus-frame-test
+/v4l2-request-test

+ 2 - 2
Makefile

@@ -20,7 +20,7 @@ CC = gcc
 
 
 # Project
 # Project
 
 
-NAME = cedrus-frame-test
+NAME = v4l2-request-test
 
 
 # Directories
 # Directories
 
 
@@ -29,7 +29,7 @@ OUTPUT = .
 
 
 # Sources
 # Sources
 
 
-SOURCES = cedrus-frame-test.c v4l2.c drm.c presets.c
+SOURCES = v4l2-request-test.c v4l2.c drm.c presets.c
 OBJECTS = $(SOURCES:.c=.o)
 OBJECTS = $(SOURCES:.c=.o)
 DEPS = $(SOURCES:.c=.d)
 DEPS = $(SOURCES:.c=.d)
 
 

+ 8 - 7
README

@@ -1,12 +1,13 @@
-# cedrus-frame-test
+# v4l2-request-test
 
 
-This standalone tool is designed to help with development and testing of the
-Sunxi-Cedrus VPU driver, that supports the Video Engine found on most Allwinner
-SoCs.
+This standalone tool was designed to help with development and testing of the
+Cedrus driver, that supports the Video Engine found on most Allwinner SoCs. It
+implements the Linux v4l2 Request API, so it can help to test any driver being
+developed using that API.
 
 
-It currently supports decoding MPEG2 frames from their slice data (stored as
-files) and associated metadata, as well as displaying the decoded frames through
-a dedicated DRM plane, using the sun4i-drm display driver.
+It currently supports decoding MPEG2 and H264 frames from their slice data
+(stored as files) and associated metadata, as well as displaying the decoded
+frames through a dedicated DRM plane.
 
 
 The behavior of the tool can be configured through command line arguments, that
 The behavior of the tool can be configured through command line arguments, that
 are precised by its usage help.
 are precised by its usage help.

+ 1 - 1
drm.c

@@ -34,7 +34,7 @@
 #include <sun4i_drm.h>
 #include <sun4i_drm.h>
 #include <drm_fourcc.h>
 #include <drm_fourcc.h>
 
 
-#include "cedrus-frame-test.h"
+#include "v4l2-request-test.h"
 
 
 static int create_dumb_buffer(int drm_fd, unsigned int width, unsigned int height, unsigned int bpp, struct gem_buffer *buffer)
 static int create_dumb_buffer(int drm_fd, unsigned int width, unsigned int height, unsigned int bpp, struct gem_buffer *buffer)
 {
 {

+ 1 - 1
presets.c

@@ -23,7 +23,7 @@
 #include <linux/videodev2.h>
 #include <linux/videodev2.h>
 #include <linux/media.h>
 #include <linux/media.h>
 
 
-#include "cedrus-frame-test.h"
+#include "v4l2-request-test.h"
 
 
 static struct frame bbb_mpeg2_frames[] = {
 static struct frame bbb_mpeg2_frames[] = {
 #include "data/bbb-mpeg2/frames.h"
 #include "data/bbb-mpeg2/frames.h"

+ 2 - 2
cedrus-frame-test.c → v4l2-request-test.c

@@ -34,7 +34,7 @@
 #include <xf86drm.h>
 #include <xf86drm.h>
 #include <drm_fourcc.h>
 #include <drm_fourcc.h>
 
 
-#include "cedrus-frame-test.h"
+#include "v4l2-request-test.h"
 
 
 struct format_description formats[] = {
 struct format_description formats[] = {
 	{
 	{
@@ -61,7 +61,7 @@ unsigned int formats_count = sizeof(formats) / sizeof(formats[0]);
 
 
 static void print_help(void)
 static void print_help(void)
 {
 {
-	printf("Usage: cedrus-frame-test [OPTIONS] [SLICES PATH]\n\n"
+	printf("Usage: v4l2-request-test [OPTIONS] [SLICES PATH]\n\n"
 		"Options:\n"
 		"Options:\n"
 		" -v [video path]                path for the video node\n"
 		" -v [video path]                path for the video node\n"
 		" -m [media path]                path for the media node\n"
 		" -m [media path]                path for the media node\n"

+ 2 - 4
cedrus-frame-test.h → v4l2-request-test.h

@@ -15,8 +15,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
-#ifndef _CEDRUS_FRAME_TEST_H_
-#define _CEDRUS_FRAME_TEST_H_
+#ifndef _V4L2_REQUEST_TEST_H_
+#define _V4L2_REQUEST_TEST_H_
 
 
 #include <stdbool.h>
 #include <stdbool.h>
 
 
@@ -28,8 +28,6 @@
  * Structures
  * Structures
  */
  */
 
 
-/* Cedrus Frame Test */
-
 struct config {
 struct config {
 	char *video_path;
 	char *video_path;
 	char *media_path;
 	char *media_path;

+ 1 - 1
v4l2.c

@@ -30,7 +30,7 @@
 #include <linux/videodev2.h>
 #include <linux/videodev2.h>
 #include <linux/media.h>
 #include <linux/media.h>
 
 
-#include "cedrus-frame-test.h"
+#include "v4l2-request-test.h"
 
 
 #define SOURCE_SIZE_MAX						(1024 * 1024)
 #define SOURCE_SIZE_MAX						(1024 * 1024)