notzed.jjmpeg.demo_JDEPMOD=notzed.jjmpeg notzed.jjmpeg.awt notzed.jjmpeg.fx
include java.make
+
+javadoc:
+ javadoc -d bin/doc/jjmpeg \
+ --module-source-path "src/*/classes:bin/gen/*/classes:../nativez/src/*/classes" \
+ --module-path $(JAVAFX_HOME)/lib:../nativez/bin/notzed.nativez \
+ $(patsubst %,--module %,$(java_MODULES) notzed.nativez) \
+ -stylesheetfile doc.css \
+ -header '$(dist_NAME) v$(dist_VERSION) <a href="/">Code</a> <a href="https://www.zedzone.space/">ZedZone</a>' \
+ -footer "Copyright (C) 2019 Michael Zucchi"
public native AVDictionary getDictionary(String name, int flags);
/**
- * Call set_options_string(this, serialised, "=", ",")
+ * Set serialised options.
+ * <p>
+ * Calls set_options_string(this, serialised, "=", ",")
*
* @param serialised
*/
public native void setOptions(String serialised);
/**
- * Call opt_serialise(this, opt_flags, ser_flags, &result, '=', ',')
+ * Get serialised options.
+ * <p>
+ * Calls opt_serialise(this, opt_flags, ser_flags, &result, '=', ',')
*
* @param opt_flags
* @param ser_flags
* <p>
* This interface allows one to retrieve pixels by bands to a specific format.
*
- * @see AVFrame:getPixelReader
+ * @see AVFrame#getPixelReader
*/
public interface AVPixelReader {
/**
* Retrieve converted samples.
* <p>
+ * TODO: pass in lengh and keep calling until drained. problem is how to track the state internally.
*
* @param buffer output buffer
* @param offset output buffer offset
* @param length maximum amount to read, this must currently be at least {@link getNumSamples} * sample data size * channels.
* @return The number of valid samples converted.
- * @todo pass in lengh and keep calling until drained. problem is how to track the state internally.
*/
public int getSamples(byte[] buffer, int offset, int length);
* <p>
* See also AVFrame.getPixelReader() for a higher level implementation.
* <p>
- * @deprecated Not fully implemented Use {@link AVFrame:getPixelReader}
+ * @deprecated Not fully implemented Use {@link AVFrame#getPixelReader}
*/
@Deprecated
public class SwsContext extends AVObject {
/**
* Attempt to seek to the nearest millisecond.
* <p>
- * The next frame will have pts (in milliseconds) >= stamp.
+ * The next frame will have pts (in milliseconds) ≥ stamp.
*
* @param stamp
* @throws AVIOException
}
/**
- * Seek in stream units
+ * Seek in stream units.
* <p>
- * The next frame will have pts >= stamp
+ * The next frame will have pts ≥ stamp
*
* @param stamp
* @throws AVIOException
* Write unencoded frame.
* <p>
* The frame is passed through the
- * {@link AVCodecContext#sendFrame(au.notzed.jjmpeg.AVFrame) /
- * {@link AVCodecContext#receivePacket(au.notzed.jjmpeg.AVPacket)
+ * {@link AVCodecContext#sendFrame(au.notzed.jjmpeg.AVFrame)} /
+ * {@link AVCodecContext#receivePacket(au.notzed.jjmpeg.AVPacket)}
* sequence and then written to the output.
*
* @param frame
$start = "";
$stop = "";
# keep all comments
-$keepc = 1;
+$keepc = 0;
$shift = "";
$interface = "";
$class = "";
$type = "int";
+$nomulti = 0;
@defines = ();
%process = ();
print C "printf(\"\\t */\\n\\n\");\n";
}
+sub tohtml {
+ my $t = $_[0];
+
+ $t =~ s@\"@\\\"@g;
+ $t =~ s@&@\&@g;
+ $t =~ s@<=@\≤@g;
+ $t =~ s@>=@\ⅇ@g;
+ $t =~ s@<@\<@g;
+ $t =~ s@>@\>@g;
+
+ # strip some doxygen? crap
+ $t =~ s:\@\{::g;
+ $t =~ s:\@\}::g;
+ $t =~ s:\@defgroup::g;
+ $t =~ s:\@see :see :g;
+ $t =~ s:\@ingroup :ingroup :g;
+
+ return $t;
+}
+
sub scan {
my %o = %{$_[0]};
my $d = $o{define};
my $def = $1;
#print $1."\n";
if ($lastc ne "") {
- $lastc =~ s@\"@\\\"@g;
+ $lastc = tohtml($lastc);
print C "\tprintf(\"%s\", \"$lastc\");\n";
} elsif (m@///< (.*)@ || m@/\*\|<(.*)\*@) {
- my $com = $1;
- $com =~ s@\"@\\\"@g;
+ my $com = tohtml($1);
# handle single-line comments, perhaps these should override
print C "\tprintf(\"\\t/**\\n\\t * $com\\n\\t */\\n\");\n";
}
last if m/^\};/;
if (m@///< (.*)@) {
- s@\*/@@g;
- s@/\*@@g;
- print C "\tprintf(\"\\t/**\\n\\t * $1\\n\\t */\\n\");\n";
+ my $t = tohtml($1);
+ $t =~ s@\*/@@g;
+ $t =~ s@/\*@@g;
+ print C "\tprintf(\"\\t/**\\n\\t * $t\\n\\t */\\n\");\n";
}
if (m/($d\w*) = (0x[0-9x]+)/) {
exit 0;
+sub tohtml {
+ my $t = $_[0];
+
+ $t =~ s@\"@\\\"@g;
+ $t =~ s@&@\&@g;
+ $t =~ s@<=@\≤@g;
+ $t =~ s@>=@\ⅇ@g;
+ $t =~ s@<@\<@g;
+ $t =~ s@>@\>@g;
+
+ # strip some doxygen? crap
+ $t =~ s:\@\{::g;
+ $t =~ s:\@\}::g;
+ $t =~ s:\@defgroup::g;
+ $t =~ s:\@see :see :g;
+ $t =~ s:\@ingroup.*::g;
+
+ return $t;
+}
+
sub scanCopyright {
my $h = $_[0];
my $copyright = "";
$(tmp)/AVOptionsBits-gen.c: $(extract_defines) $(dep)
@install -d $(@D)
- perl $(extract_defines) -c -interface AVOptionsBits -f $(FFMPEG_HOME) -header libavutil/opt.h -d AV_OPT_ $@
+ perl $(extract_defines) -interface AVOptionsBits -f $(FFMPEG_HOME) -header libavutil/opt.h -d AV_OPT_ $@